haikal/static/web_assets/scss/sections/_recent-blog-postst.scss
Marwan Alwali d9ef0a35c3 update
2025-03-20 01:46:42 +03:00

85 lines
1.6 KiB
SCSS

// main: ../main.scss
/*--------------------------------------------------------------
# Recent Blog Postst Section
--------------------------------------------------------------*/
.recent-blog-postst {
.post-item {
background: var(--surface-color);
box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
transition: 0.3s;
.post-img {
img {
transition: 0.5s;
}
}
.post-date {
position: absolute;
right: 0;
bottom: 0;
background-color: var(--accent-color);
color: var(--contrast-color);
text-transform: uppercase;
font-size: 13px;
padding: 6px 12px;
font-weight: 500;
}
.post-content {
padding: 30px;
}
.post-title {
color: var(--heading-color);
font-size: 20px;
font-weight: 700;
transition: 0.3s;
margin-bottom: 15px;
}
.meta {
i {
font-size: 16px;
color: var(--accent-color);
}
span {
font-size: 15px;
color: color-mix(in srgb, var(--default-color), transparent 50%);
}
}
hr {
color: color-mix(in srgb, var(--default-color), transparent 80%);
margin: 20px 0;
}
.readmore {
display: flex;
align-items: center;
font-weight: 600;
line-height: 1;
transition: 0.3s;
color: color-mix(in srgb, var(--default-color), transparent 40%);
i {
line-height: 0;
margin-left: 6px;
font-size: 16px;
}
}
&:hover {
.post-title,
.readmore {
color: var(--accent-color);
}
.post-img img {
transform: scale(1.1)
}
}
}
}