UNPKG

@randstad-design/orbit-multitheme

Version:

multitheme Front-end code based on Randstad Human Forward components

248 lines (226 loc) 6.78 kB
/***** in this file *************** base styling cards - specific for S/M & L hover & focus effects cards - viewport L only focus effect CTA ***********************************/ .teaser { border-radius: 8px; color: var(--color-white); height: 500px; overflow: hidden; position: relative; text-decoration: none; width: 100%; } @media (max-width: 940px) { .teaser { margin-right: 5px; } } @media (min-width: 941px) { .teaser--large { height: 550px; } } .teaser--small { height: 400px; } .teaser .list--checks li::before { background-color: var(--color-white); } .teaser__content { padding: 30px 20px; } .teaser__gradient, .teaser__img { border-radius: 8px; height: 100%; left: 0; -o-object-fit: cover; object-fit: cover; position: absolute; text-decoration: none; top: 0; width: 100%; } .teaser .teaser__shade { background: rgba(15, 25, 65, 0.7); opacity: 0; -webkit-transition: opacity .3s ease; transition: opacity .3s ease; height: 100%; width: 100%; } .teaser a { text-decoration: none; } .teaser__gradient { background: -webkit-linear-gradient(top, rgba(15, 25, 65, 0) 33%, #0f1941 100%); background: linear-gradient(-180deg, rgba(15, 25, 65, 0) 33%, #0f1941 100%); cursor: pointer; -webkit-transition: all 0.3s ease -1s; transition: all 0.3s ease -1s; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; padding: 30px 20px; } @media (min-width: 941px) { .teaser__gradient { padding: 40px; } .cards__list--halves .teaser__gradient { background: -webkit-linear-gradient(top, rgba(15, 25, 65, 0) 50%, #0f1941 100%); background: linear-gradient(-180deg, rgba(15, 25, 65, 0) 50%, #0f1941 100%); } } .teaser__wrapper { position: relative; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: end; -webkit-align-items: flex-end; -ms-flex-align: end; align-items: flex-end; } @media (min-width: 941px) { .teaser__body { margin-top: auto; max-height: 338px; position: relative; -webkit-transform: translateY(100%); transform: translateY(100%); -webkit-transition: -webkit-transform 0.3s ease; transition: -webkit-transform 0.3s ease; transition: transform 0.3s ease; transition: transform 0.3s ease, -webkit-transform 0.3s ease; } } @media (min-width: 941px) { .teaser--large .teaser__body { max-height: 365px; } } .teaser--small .teaser__body { max-height: 256px; } @media (max-width: 940px) { .teaser__header { bottom: 70px; left: 20px; position: absolute; right: 20px; } } @media (min-width: 941px) { .teaser__header { height: 100%; margin-bottom: -30px; -webkit-transform: translateY(-100%); transform: translateY(-100%); } } .teaser__date { color: var(--color-white); margin-bottom: 10px; } .teaser__title { font-size: 26px; letter-spacing: -1px; line-height: 30px; -webkit-line-clamp: 9; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; color: var(--color-white); margin-bottom: unset; max-height: 270px; } .teaser__description { color: var(--color-white); opacity: 0; } @media (min-width: 941px) { .teaser__description { margin-bottom: unset; padding-top: 20px; -webkit-transition: opacity 0.3s ease; transition: opacity 0.3s ease; } } .cards__list--quarters .teaser__description { -webkit-line-clamp: 4; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; } .teaser__cta { bottom: 0; display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; max-width: 100%; } @media (min-width: 941px) { .teaser__cta { opacity: 0; position: absolute; -webkit-transition: -webkit-transform 0.3s; transition: -webkit-transform 0.3s; transition: transform 0.3s; transition: transform 0.3s, -webkit-transform 0.3s; } } @media (max-width: 940px) { .teaser__icon { bottom: 30px; color: var(--color-white); left: 20px; position: absolute; top: auto; } } @media (min-width: 941px) { .teaser:hover img, .teaser:focus img { -webkit-filter: blur(5px); filter: blur(5px); -webkit-transition: -webkit-filter 0.5s; transition: -webkit-filter 0.5s; transition: filter 0.5s; transition: filter 0.5s, -webkit-filter 0.5s; } .teaser:hover .teaser__shade, .teaser:focus .teaser__shade { border-radius: 8px; opacity: 1; position: absolute; text-decoration: none; -webkit-transition: opacity .3s ease; transition: opacity .3s ease; } .teaser:hover .teaser__body, .teaser:focus .teaser__body { -webkit-line-clamp: 6; -webkit-box-orient: vertical; display: -webkit-box; overflow: hidden; margin-bottom: 90px; margin-top: auto; -webkit-transform: translateY(0); transform: translateY(0); -webkit-transition: -webkit-transform 0.3s; transition: -webkit-transform 0.3s; transition: transform 0.3s; transition: transform 0.3s, -webkit-transform 0.3s; } .teaser:hover.teaser--small .teaser__body, .teaser:focus.teaser--small .teaser__body { margin-bottom: 70px; -webkit-line-clamp: 8; } .teaser:hover .teaser__header, .teaser:focus .teaser__header { -webkit-transform: translateY(0%); transform: translateY(0%); margin-bottom: unset; } .teaser:hover .teaser__title, .teaser:focus .teaser__title { max-height: unset; overflow: unset; -webkit-line-clamp: 10; } .teaser:hover .cards__list--quarters .teaser__title, .teaser:focus .cards__list--quarters .teaser__title { -webkit-line-clamp: 5; } .teaser:hover .teaser__description, .teaser:focus .teaser__description { opacity: 1; -webkit-transition: -webkit-transform 0.3s ease 0.1s; transition: -webkit-transform 0.3s ease 0.1s; transition: transform 0.3s ease 0.1s; transition: transform 0.3s ease 0.1s, -webkit-transform 0.3s ease 0.1s; } .teaser:hover .teaser__cta, .teaser:focus .teaser__cta { opacity: 1; -webkit-transition: all 0.2s ease-out 0.1s; transition: all 0.2s ease-out 0.1s; } .teaser__cta:focus { opacity: 1; } .teaser__cta:focus + .teaser__body { margin-bottom: 90px; overflow: hidden; -webkit-transform: translateY(0); transform: translateY(0); } .teaser__cta:focus + .teaser__body .teaser__header { -webkit-transform: translateY(0%); transform: translateY(0%); margin-bottom: unset; } .teaser__cta:focus + .teaser__body .teaser__description { opacity: 1; } } /*# sourceMappingURL=teaser.css.map */