Files
LifeFaq/static/sass/components/_mini-posts.scss
Henrik Jess Nielsen ca86177e90
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 50s
[main] More styling, and some content in job
2024-12-31 00:54:44 +01:00

40 lines
852 B
SCSS

///
/// Editorial by HTML5 UP
/// html5up.net | @ajlkn
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
///
/* Mini Posts */
.mini-posts {
article {
border-top: solid 1px _palette(border);
margin-top: _size(element-margin);
padding-top: _size(element-margin);
.image {
display: block;
margin: 0 0 (_size(element-margin) * 0.75) 0;
width: unset;
img {
display: block;
width: unset;
}
}
a {
.fav-image {
max-width: 100%; /* Scale down if the container is smaller than the image */
height: auto; /* Maintain aspect ratio */
display: flex;
justify-content: center; /* Horisontal centrering */
align-items: center; /* Vertikal centrering */
}
}
&:first-child {
border-top: 0;
margin-top: 0;
padding-top: 0;
}
}
}