Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cod HTML generic pentru un movie:
- <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
- <div class="movies-data-show">
- <div class="movie-image" style="background-image: url(/photo_url.jpg)"></div>
- <div class="movie-info">
- <div class="movie-name">
- <a href="/movies/3" style="font-size: 130%">Terminator 3</a>
- </div>
- <div class="movie-price">
- LEI 28.00
- </div>
- <div class="movie-book-now">
- <a href="/program/">
- <button class="movie-button-book-now">
- Book now
- </button>
- </a>
- </div>
- </div>
- </div>
- </div>
- Pus într-un <div class="row">
- Cod CSS:
- .movies-data-show {
- background-position: top;
- background-repeat: no-repeat;
- background-color: #43425d;
- display: flex;
- flex-direction: column;
- flex-wrap: wrap;
- font-family: 'Source Sans Pro', sans-serif;
- text-align: center;
- box-shadow: 0 0 2px 1px rgba(150, 150, 150, 0.2);
- position: relative;
- overflow: hidden;
- margin-bottom: 15px;
- }
- .movie-image {
- width: 100%;
- height: 350px;
- background-size: cover;
- background-position: center center;
- }
- .movie-info {
- padding: 10px;
- padding-bottom: 14px;
- background-color: #43425d;
- position: absolute;
- bottom: 0;
- margin-bottom: -250px;
- transition: .3s margin-bottom;
- width: 100%;
- }
- .movie-image:before {
- content: '';
- display: block;
- width: 100%;
- height: 100%;
- background: rgba(140, 140, 140, 0.2);
- opacity: 0;
- transition: .3s opacity;
- }
- .movies-data-show:hover .movie-info {
- margin-bottom: 0;
- }
- .movies-data-show:hover .movie-image:before {
- opacity: 1;
- }
- .movie-name {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- width: 100%;
- color: white;
- font-family: 'Source Sans Pro', sans-serif;
- font-weight: bold;
- font-size: 14px;
- }
- .movie-price {
- color: white;
- font-size: 18px;
- text-align: center;
- padding-bottom: 5px;
- }
- .movie-button-book-now {
- color: white;
- background-color: #8f8dae;
- border-radius: 5px;
- padding: 10px 40px;
- border: none;
- }
- .movie-button-book-now:disabled {
- background-color: #5C9AFF;
- }
- .movie-button-book-now:active {
- background-color: #ffffff !important;
- }
- .page-item.active .page-link {
- z-index: 1;
- color: #fff;
- background-color: #dedee7 !important;
- border-color: #dedee7 !important;
- }
- .movie-info a {
- color: #fff;
- }
- .movie-info a:hover {
- color: #fff;
- text-decoration: none;
- }
- .movie-button-book-now:hover{
- background-color: #dedde7 !important;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement