Move footer tags list to a partial so photos and blogs can use the same template
Simplify the blog post layout by removing the <article> tag
This commit is contained in:
parent
c5427866c6
commit
ecb39a9298
5 changed files with 100 additions and 94 deletions
|
@ -1,24 +1,13 @@
|
|||
:root {
|
||||
--post-item-highlight-color: #efefef;
|
||||
|
||||
--tag-foreground-color: rgb(var(--super-dk-gray));
|
||||
--tag-background-color: rgb(var(--super-lt-gray));
|
||||
--tag-spacer-foreground-color: rgb(var(--super-dk-gray));
|
||||
--tag-hover-background-color: rgb(var(--sub-lt-gray));
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--post-item-highlight-color: #121212;
|
||||
|
||||
--tag-foreground-color: rgb(var(--sub-lt-gray));
|
||||
--tag-background-color: rgb(var(--dk-gray));
|
||||
--tag-spacer-foreground-color: rgb(var(--super-dk-gray));
|
||||
--tag-hover-background-color: rgb(var(--super-dk-gray));
|
||||
--tag-hover-foreground-color: rgb(var(--mid-gray));
|
||||
}
|
||||
}
|
||||
|
||||
.post-content > .highlight { margin-block-end: var(--body-item-spacing); }
|
||||
.blog > .highlight { margin-block-end: var(--body-item-spacing); }
|
||||
|
||||
.post-nav {
|
||||
align-items: baseline;
|
||||
|
@ -91,55 +80,3 @@
|
|||
.blog.list > ul > li > :first-child {
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
.blog .tags {
|
||||
display: flex;
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
|
||||
.blog .tags li {
|
||||
background-color: var(--tag-background-color);
|
||||
color: var(--tag-foreground-color);
|
||||
border-radius: 4px;
|
||||
display: inline-block;
|
||||
font-size: 75%;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.blog .tags li:hover {
|
||||
background-color: var(--tag-hover-background-color);
|
||||
}
|
||||
|
||||
.blog .tags li a {
|
||||
color: inherit;
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0.6rem 1rem;
|
||||
}
|
||||
|
||||
.blog .tags li a:hover {
|
||||
color: var(--tag-hover-foreground-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.blog .tags li + li { margin-inline-start: 1rem; }
|
||||
.blog .tags li.chevron + li { margin-inline-start: 0 }
|
||||
|
||||
.blog .tags .chevron {
|
||||
align-items: center;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
color: var(--tag-spacer-foreground-color);
|
||||
background-color: inherit;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-inline-start: 0;
|
||||
padding-inline-start: 1px;
|
||||
width: 2rem;
|
||||
}
|
||||
|
||||
.blog .tags .chevron:hover {
|
||||
color: var(--tag-background-color);
|
||||
background-color: inherit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue