File: /var/www/quadcode-site/src/style/components/slide-media.scss
.slide-media {
width: 100%;
height: 100%;
border-radius: 6px;
background-repeat: no-repeat;
position: relative;
overflow: hidden;
will-change: transform;
&:after {
content: '';
background: linear-gradient(270deg, rgba(0, 0, 0, 0.46) 2.08%, rgba(0, 0, 0, 0.3) 45.83%, rgba(0, 0, 0, 0) 100%);
z-index: 1;
position: absolute;
width: 100%;
height: 100%;
left: 0;
right: 0;
bottom: 0;
top: 0;
@include breakpoint-down('tabM') {
display: none;
}
}
&__background {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition: .8s ease;
@include breakpoint-down('tabM') {
height: 220px;
}
}
&__content {
position: absolute;
left: 51%;
top: 0;
bottom: 0;
overflow: hidden;
z-index: 2;
@include breakpoint-down('tabM') {
position: relative;
left: auto;
}
}
&__items {
height: 100%;
padding: 32px;
padding-left: 0;
opacity: 0;
transition: .6s ease, opacity .4s;
display: flex;
flex-direction: column;
@include breakpoint-down('tabM') {
padding: 16px 24px 32px 24px;
position: relative;
}
}
&__nameplate {
width: max-content;
color: $white;
padding: 1px 10px;
background: $graphite;
border-radius: 20px;
margin-bottom: 49px;
line-height: 21px;
@include breakpoint-down('deskS') {
line-height: 16px;
font-size: 12px;
}
@include breakpoint-down('tabM') {
position: absolute;
right: 19px;
top: 16px;
}
}
&__date {
margin-bottom: 4px;
display: flex;
align-items: center;
@include breakpoint-down('deskS') {
margin-bottom: 4px;
}
@include breakpoint-down('tabM') {
margin-bottom: 8px;
}
&-icon {
display: flex;
align-items: center;
svg {
width: 24px;
height: 24px;
path {
@include breakpoint-down('tabM') {
&:nth-child(1) {
stroke: #141414 !important;
}
&:nth-child(2) {
stroke: #141414 !important;
}
&:nth-child(3) {
stroke: #141414 !important;
}
&:nth-child(4) {
stroke: #141414 !important;
}
&:nth-child(5) {
fill: #141414 !important;
}
&:nth-child(6) {
fill: #141414 !important;
}
&:nth-child(7) {
fill: #141414 !important;
}
&:nth-child(8) {
fill: #141414 !important;
}
&:nth-child(9) {
fill: #141414 !important;
}
&:nth-child(10) {
fill: #141414 !important;
}
}
}
}
}
&-text {
color: $white50;
@include breakpoint-down('deskS') {
font-size: 12px;
}
@include breakpoint-down('tabM') {
color: #141414 !important;
}
}
}
&__title {
color: $white;
margin-bottom: 17px;
line-height: 110%;
@include breakpoint-down('tabM') {
margin-bottom: 8px;
color: $primary;
}
}
&__description {
color: $white;
margin-bottom: 24px;
flex: 1;
@include breakpoint-down('tabM') {
color: $primary;
margin-bottom: 16px;
}
}
&__share {
display: flex;
align-items: center;
width: max-content;
position: absolute;
right: 31px;
bottom: 47px;
@include breakpoint-down('tabM') {
position: relative;
right: auto;
bottom: auto;
}
a {
display: flex;
height: 100%;
width: 100%;
position: absolute;
}
&-text {
color: $white;
margin-right: 10px;
@include breakpoint-down('tabM') {
color: $primary;
}
}
&-icon {
display: flex;
align-items: center;
justify-content: center;
background: $red;
border-radius: 10.5px;
width: 39px;
height: 19px;
}
}
&.after-new {
&:after {
background: linear-gradient(270deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
}
}
&.after-none {
&:after {
display: none;
}
}
}