163 lines
3 KiB
CSS
163 lines
3 KiB
CSS
:root {
|
|
--post-item-highlight-color: #efefef;
|
|
|
|
--tag-text-color: #666;
|
|
--tag-background-color: #eee;
|
|
--tag-hover-background-color: #bbb;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--post-item-highlight-color: #121212;
|
|
|
|
--tag-text-color: #888;
|
|
--tag-background-color: rgb(40, 40, 40);
|
|
--tag-hover-background-color: rgb(73, 73, 73);
|
|
--tag-hover-foreground-color: #666;
|
|
}
|
|
}
|
|
|
|
.post-content > .highlight { margin-block-end: var(--body-item-spacing); }
|
|
|
|
.post-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
@supports (display: subgrid) {
|
|
.post-list {
|
|
align-items: baseline;
|
|
display: grid;
|
|
gap: 1em;
|
|
grid-template-columns:
|
|
minmax(150px, max-content) minmax(20px, max-content) 3px auto;
|
|
grid-template-areas: "month day line title";
|
|
}
|
|
}
|
|
|
|
.post-list li {
|
|
align-items: baseline;
|
|
border-radius: 6px;
|
|
display: grid;
|
|
gap: 1em;
|
|
padding: 0.1em;
|
|
transition: background-color 0.25s;
|
|
}
|
|
@supports not (display: subgrid) {
|
|
.post-list li {
|
|
grid-template-columns: 100px 20px 3px auto;
|
|
grid-template-areas: "month day thing title";
|
|
}
|
|
}
|
|
@supports (display: subgrid) {
|
|
.post-list li {
|
|
display: subgrid;
|
|
}
|
|
}
|
|
|
|
.post-list li time:nth-of-type(1) {
|
|
grid-area: month;
|
|
text-align: end;
|
|
}
|
|
|
|
.post-list li time:nth-of-type(2) {
|
|
grid-area: day;
|
|
text-align: end;
|
|
}
|
|
|
|
.post-list li h1 {
|
|
font-family: var(--font-family-body);
|
|
grid-area: title;
|
|
text-align: start;
|
|
}
|
|
|
|
.post-list li:hover {
|
|
background-color: var(--post-item-highlight-color);
|
|
}
|
|
|
|
.post-list h1 {
|
|
font-size: inherit;
|
|
font-weight: normal;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.post-list a {
|
|
color: inherit;
|
|
}
|
|
|
|
.post-list a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.post-nav {
|
|
align-items: baseline;
|
|
display: flex;
|
|
margin-top: 3.5rem;
|
|
}
|
|
|
|
.post-nav .next {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.post-single footer {
|
|
margin-block-start: 3.5rem;
|
|
}
|
|
|
|
.post-title {
|
|
align-items: baseline;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0 4rem;
|
|
margin-bottom: var(--body-item-spacing);
|
|
}
|
|
|
|
.post-title h1 {
|
|
flex-grow: 1;
|
|
margin-block: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.post-title > .post-date {
|
|
color: var(--light-dim);
|
|
display: inline-block;
|
|
font-size: 1.75rem;
|
|
inline-size: min-content;
|
|
letter-spacing: 1px;
|
|
margin-block-start: 0.5rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.blog footer .tags {
|
|
display: flex;
|
|
padding-inline-start: 0;
|
|
}
|
|
|
|
|
|
.blog footer .tags li {
|
|
background-color: var(--tag-background-color);
|
|
border-radius: 4px;
|
|
display: inline-block;
|
|
font-size: 75%;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.blog footer .tags li:hover {
|
|
background-color: var(--tag-hover-background-color);
|
|
}
|
|
|
|
.blog footer .tags li a {
|
|
color: var(--tag-text-color);
|
|
display: block;
|
|
height: 100%;
|
|
width: 100%;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.blog footer .tags li a:hover {
|
|
color: var(--tag-hover-foreground-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.blog footer .tags li + li {
|
|
margin-inline-start: 1rem;
|
|
}
|