mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.5 KiB
SCSS
68 lines
1.5 KiB
SCSS
3 months ago
|
.PostsSlider {
|
||
|
// scss
|
||
|
padding: 3rem 0;
|
||
|
background: var(--post-slider-color);
|
||
|
color: var(--xshop-diff);
|
||
|
|
||
|
h1{
|
||
|
font-size: 30px;
|
||
|
font-weight: 300;
|
||
|
margin-bottom: 2rem;
|
||
|
}
|
||
|
|
||
|
#posts-slider-container{
|
||
|
position: relative;
|
||
|
&:before,&:after{
|
||
|
content: ' ';
|
||
|
top: 0;
|
||
|
bottom: 0;
|
||
|
width: 20%;
|
||
|
position: absolute;
|
||
|
z-index: 9;
|
||
|
}
|
||
|
|
||
|
&:before{
|
||
|
left: 0;
|
||
|
background: linear-gradient(90deg, var(--post-slider-color) 20%, rgba(0,0,0,0) 100%);
|
||
|
|
||
|
}
|
||
|
&:after{
|
||
|
right: 0;
|
||
|
background: linear-gradient(-90deg, var(--post-slider-color) 20%, rgba(0,0,0,0) 100%);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
.post-slider{
|
||
|
border-radius: var(--xshop-border-radius);
|
||
|
position: relative;
|
||
|
img{
|
||
|
width: 100%;
|
||
|
height: 35vh;
|
||
|
border-radius: var(--xshop-border-radius);
|
||
|
object-fit: cover;
|
||
|
}
|
||
|
|
||
|
h3{
|
||
|
position: absolute;
|
||
|
bottom: 0;
|
||
|
right: 0;
|
||
|
left: 0;
|
||
|
font-size: 17px;
|
||
|
text-align: center;
|
||
|
color: transparent;
|
||
|
padding: 1rem 0;
|
||
|
transition: 400ms;
|
||
|
margin-bottom: 0;
|
||
|
font-weight: 400;
|
||
|
}
|
||
|
|
||
|
&:hover{
|
||
|
h3{
|
||
|
color: white;
|
||
|
background: #00000077;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|