Preview: _post.scss
Size: 2.61 KB
/home/byroehnu/easetack.com/resources/scss/Frontend/shortcode/_post.scss
/*--------------------------------------------------------------
13. Posts
----------------------------------------------------------------*/
.cs_post.cs_style_1 {
.cs_post_thumb {
display: block;
border-radius: 0 100px 0 0;
overflow: hidden;
margin-bottom: 32px;
img {
width: 100%;
transition: all 0.7s ease;
}
&:hover {
img {
transform: scale(1.03);
}
}
}
.cs_post_info {
position: relative;
padding-left: 44px;
&::before {
content: "";
position: absolute;
height: 2px;
width: 30px;
background-color: var(--accent);
left: 0;
top: 12px;
}
}
.cs_post_meta {
display: flex;
flex-wrap: wrap;
gap: 10px 34px;
margin-bottom: 10px;
> span {
position: relative;
&:not(:last-child) {
&::before {
content: "";
position: absolute;
height: 6px;
width: 6px;
right: -20px;
top: 10px;
background-color: var(--secondary);
}
}
}
}
.cs_post_title {
a {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}
}
[data-variable-width="1"] {
.cs_post.cs_style_2 {
max-width: 420px;
width: 100%;
@media (max-width: 991px) {
max-width: 320px;
padding: 22px 22px 30px;
}
}
}
.cs_post.cs_style_2 {
border: 1px solid var(--ternary);
border-radius: 50px 0 0 0;
padding: 32px 32px 40px;
@media (max-width: 991px) {
padding: 22px 22px 30px;
}
.cs_post_thumb {
display: block;
border-radius: 20px 0 0 0;
margin-bottom: 25px;
overflow: hidden;
@media (max-width: 991px) {
border-radius: 30px 0 0 0;
}
img {
border-radius: inherit;
width: 100%;
transition: all 0.5s ease;
}
&:hover {
img {
transform: scale(1.05);
}
}
}
.cs_post_title,
.cs_post_subtitle {
margin-bottom: 18px;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
}
Directory Contents
Dirs: 0 × Files: 17