/* teaser globals */ .card { border: none; border-radius: 0; // just because there are teasers with border (e.g. embed) and they should not have a border-radius .card-body { padding: 17px 0 5px; position: relative; } .card-title { font-size: 28px; line-height: 35px; font-weight: bold; margin-bottom: 10px; color: $text-color; @media (min-width: 992px) and (max-width: 1199px) { font-size: 24px; line-height: 30px; margin-bottom: 10px; } @media (max-width: 768px) { font-size: 20px; line-height: 26px; } } .card-kicker { font-size: 14px; line-height: 18px; text-transform: uppercase; display: inline-block; margin-bottom: 8px; color: $primary-color; @media (max-width: 992px) { font-size: 12px; line-height: 15px; } } .card-text { color: $text-color; &.intro { font-size: 16px; line-height: 25px; margin-bottom: 15px; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto; hyphens: auto; } } .card-footer { color: $text-color; border: none; padding-left: 0; padding-right: 0; font-size: 14px; line-height: 18px; @media (max-width: 992px){ font-size: 12px; line-height: 15px; } } .readmore { color: $link-color; } .sponsored-content { position: absolute; left: 0; right: 0; top: -26px; line-height: 16px; background-color: rgba(46, 48, 47, 0.7); color: #fff; padding: 5px 10px; text-align: center; font-style: italic; font-weight: bold; font-size: 12px; } .card-img, .card-img-top { border-radius: 0; background-size: cover; background-position: center; &:before { content: ""; position: absolute; display: none; top: 0; left: 0; bottom: 0; right: 0; background-color: #fff; opacity: .3; } &:after { border-radius: 0; transition: filter 0.15s ease-in 0s; padding-bottom: 66.67%; position: relative; display: block; content: ''; } } &.embed { margin: 0 -15px; padding: 25px 0; border-top: 1px solid $teaser-border; border-bottom: 1px solid $teaser-border; .card { margin-left: 0; margin-right: 0; } .card-body { padding: 0; } .card-img { &:after { padding-bottom: 150%; } } figure { margin: 0 0 0; } } /* landscape */ &.landscape { .published { &:before, &:after { content: "\2013"; line-height: 5px; margin: 0 7px; } } } /* portrait */ &.portrait { .card-kicker { text-align: left; } .card-text { text-align: left; } .published:before { content: "\2013"; margin-bottom: 7px; line-height: 5px; display: block; } .card-img, .card-img-top { &:after { padding-bottom: 150%; } } } } a > .card:hover { .card-img-top:before { display: block; } .card-kicker{ color: $link-color-hover; } .card-title { color: $text-color-hover; } .card-text { color: $text-color-hover; } .readmore { color: $link-color-hover; } } /* portal teaser */ /* highlight */ .top-highlight { .card { .published:before, .published:after { content: "\2013"; line-height: 5px; margin: 0 7px; } .card-title { font-size: 36px; line-height: 46px; } } } .teasers { h2 { padding: 55px 0; font-weight: bold; font-size: 28px; line-height: 40px; margin: 0; text-transform: uppercase; } }