ORIENT/themes/modern2/template/css (old)/components/2-layout/newsSlider.scss

100 lines
2.6 KiB
SCSS

.newsSlider {
&__outer {
position: relative;
overflow: hidden;
.p2 {
cursor: pointer;
position: absolute;
top: 50%;
left: 0;
@include transformY;
width: 30px;
height: 40px;
background: rgba($color: #000000, $alpha: 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
}
.n2 {
cursor: pointer;
position: absolute;
z-index: 1;
top: 50%;
right: 0;
@include transformY;
width: 30px;
height: 40px;
background: rgba($color: #000000, $alpha: 0.5);
display: flex;
align-items: center;
justify-content: center;
}
}
.newsSlider__item {
position: relative;
height: 320px;
img {
@include fullImage;
}
&::before {
position: absolute;
content: "";
top: 5px;
left: 5px;
width: calc(100% - 10px);
height: calc(100% - 10px);
background: rgb(0, 0, 0);
background: linear-gradient(
0deg,
rgba(0, 0, 0, 1) 0%,
rgba(0, 0, 0, 0) 100%
);
z-index: 1;
}
&-content {
flex-direction: column;
justify-content: space-between;
position: absolute;
left: 30px;
top: 30px;
width: calc(100% - 60px);
z-index: 2;
height: calc(100% - 60px);
display: flex;
&-date {
display: flex;
align-items: center;
justify-content: center;
padding: 8px 12px;
background: $main-color;
font-size: 14px;
line-height: 18px;
font-weight: 400;
max-width: 145px;
color: $text-color-white;
margin-bottom: 10px;
svg {
margin: 0 4px;
width: 4px;
height: 4px;
fill: $text-color-white;
}
}
&-link {
color: $text-color-white;
font-size: 16px;
line-height: 25px;
font-weight: 700;
display: block;
}
}
}
}
.slick-slider {
margin: 0 -10px;
}
.slick-slide {
padding: 5px;
}