alexdaniels.me/assets/styles/scss/front/_posts.scss
2026-06-08 14:12:08 -07:00

97 lines
No EOL
1.7 KiB
SCSS

@use '../shared/colors' as colors;
.posts {
display: block;
h2, h3 {
position: relative;
margin: 0;
width: fit-content;
&:after {
content: '';
display: block;
width: 75px;
height: 5px;
background-color: colors.$computerBorder;
}
}
.intro {
padding: 1rem 0;
}
.list {
padding: 2rem 0;
border-top: 5px solid colors.$primaryYellow;
.post {
a {
.title {
padding: 0.5rem 0;
}
&:hover {
text-decoration: underline;
text-decoration-color: colors.$computerBorder;
}
}
}
}
}
.post {
display: block;
.title {
margin: 0.5rem 0;
}
.meta {
padding-bottom: 1rem;
border-bottom: 5px solid colors.$computerBorder;
.admin-actions {
padding-bottom: 1rem;
}
.published {
font-size: 1.125rem;
}
.category {
font-size: 1.125rem;
}
}
.text p {
font-size: 1.25rem;
line-height: 1.5;
}
.tags {
margin-top: 2rem;
background-color: colors.$primaryGrey;
.list {
display: flex;
align-items: center;
gap: 1rem;
margin: 0;
list-style: none;
padding: 0.5rem 0.5rem;
p {
font-size: 0.85rem;
}
.tag {
a {
font-size: 0.85rem;
}
}
}
}
}