ORIENT/themes/modern2/assets/css/components/2-layout/newsSlider.scss

78 lines
1.6 KiB
SCSS
Executable File

.newsSlider {
&__outer {
position: relative;
margin: 0 -5px;
overflow: hidden;
.p2 {
cursor: pointer;
position: absolute;
top: 50%;
left: 5px;
@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: 5px;
@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;
padding: 5px 5px;
img {
@include fullImage;
}
&-content {
position: absolute;
left: 20px;
bottom: 20px;
width: calc(100% - 40px);
&-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: 30px;
height: 60px;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 700;
display: block;
}
}
}
}