💄 style: redesign post listing and other minor changes
This commit is contained in:
79
sass/parts/_posts_list.scss
Normal file
79
sass/parts/_posts_list.scss
Normal file
@@ -0,0 +1,79 @@
|
||||
.bloglist-container {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.bloglist-row {
|
||||
background-color: var(--navbar-color);
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
padding: 2.5rem 0;
|
||||
|
||||
.date {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 300;
|
||||
color: var(--meta-color);
|
||||
width: 14.5rem;
|
||||
}
|
||||
|
||||
.bloglist-tags {
|
||||
margin-top: -0.5rem;
|
||||
|
||||
.tag {
|
||||
margin-right: 0.7rem;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 400;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
.bloglist-content {
|
||||
flex: 1;
|
||||
|
||||
|
||||
.bloglist-title {
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
|
||||
a {
|
||||
color: var(--text-color-high-contrast);
|
||||
font-weight: 550;
|
||||
|
||||
&:hover {
|
||||
color: var(--hover-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
margin: 0.5rem 0 1rem;
|
||||
color: var(--text-color);
|
||||
font-family: var(--sans-serif-font);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 250;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.all-posts {
|
||||
font-size: 1.3rem;
|
||||
font-weight: 350;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1100px) {
|
||||
.bloglist-row {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
padding: 2rem 0;
|
||||
}
|
||||
|
||||
.date {
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bloglist-content {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user