Improve post metadata styling
This commit is contained in:
parent
dea39db556
commit
9910d6dfb9
5 changed files with 76 additions and 41 deletions
|
|
@ -16,25 +16,3 @@ dl {
|
|||
margin-inline-start: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
dl.tags {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
dt {
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 0.25em 0;
|
||||
|
||||
.icon {
|
||||
font-size: 1.5em;
|
||||
padding-right: 0.3em;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: ":";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
36
src/css/Components/_posts.scss
Normal file
36
src/css/Components/_posts.scss
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
.posts-list-post {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.postMetadata {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
gap: 2em;
|
||||
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
dl.postDate, dl.tags {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
margin: 0;
|
||||
|
||||
dt {
|
||||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 0.25em 0;
|
||||
|
||||
.icon {
|
||||
font-size: 1.5em;
|
||||
padding-right: 0.3em;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: ":";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11,3 +11,4 @@
|
|||
@use 'Components/_mobile-header';
|
||||
@use 'Components/_lists';
|
||||
@use 'Components/_code';
|
||||
@use 'Components/_posts';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue