mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-03 09:58:30 +02:00
59 lines
1001 B
SCSS
59 lines
1001 B
SCSS
@use '../helpers/functions' as *;
|
|
|
|
.post {
|
|
&-preview {
|
|
width: 100%;
|
|
height: 0;
|
|
padding-bottom: 50%;
|
|
margin-bottom: $spacer * 1.5;
|
|
overflow: hidden;
|
|
|
|
img {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
&-title {
|
|
font-size: $spacer * 1.5;
|
|
line-height: pxToRem(34);
|
|
color: $neutral-20;
|
|
margin-bottom: pxToRem(12);
|
|
}
|
|
|
|
&-description {
|
|
display: -webkit-box;
|
|
max-height: $spacer * 4.5;
|
|
-webkit-line-clamp: 3;
|
|
line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: $neutral-30;
|
|
margin-bottom: pxToRem(12);
|
|
}
|
|
|
|
&-about {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
gap: $spacer * 0.5;
|
|
font-size: pxToRem(14);
|
|
line-height: pxToRem(21);
|
|
color: $neutral-50;
|
|
|
|
p {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
&-link:hover {
|
|
.post-title {
|
|
color: $primary-50;
|
|
}
|
|
|
|
.post-preview > img {
|
|
transform: scale(1.1);
|
|
transition: all 0.25s ease-in-out;
|
|
}
|
|
}
|
|
}
|