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.
xshop/resources/views/segments/posts/PostIndexImage/PostIndexImage.scss

52 lines
1.1 KiB
SCSS

.PostIndexImage {
padding: 3rem 0;
// scss
h1{
font-size: 30px;
text-align: center;
position: relative;
padding: 1rem;
&:before{
content: ' ';
position: absolute;
inset-inline-start: 47%;
inset-inline-end: 47%;
top: 0;
height: 4px;
background: var(--xshop-primary);
}
}
.post-img-index{
background: #ffffff33;
box-shadow: var(--xshop-shadow);
border-radius: var(--xshop-border-radius);
padding: 1rem;
margin-bottom: 1rem;
h3{
font-size: 22px;
padding: 1rem 0;
5 months ago
height: 3.2em;
position: relative;
overflow: hidden;
&:before{
content: ' ';
position: absolute;
inset-inline-end: 5%;
width: 15%;
bottom: 0;
height: 2px;
background: var(--xshop-primary);
}
}
img{
width: 100%;
height: 15vh;
object-fit: cover;
}
}
}