Compare commits
1 commit
main
...
blog-post-
Author | SHA1 | Date | |
---|---|---|---|
a9437ea190 |
3 changed files with 13 additions and 28 deletions
|
@ -1,7 +1,7 @@
|
||||||
:root {
|
:root {
|
||||||
--post-item-highlight-color: #efefef;
|
--post-item-highlight-color: #efefef;
|
||||||
|
|
||||||
--blog-list-grid-template-columns: minmax(min-content, 10vh) minmax(min-content, 3vh) auto max-content max-content;
|
--blog-list-grid-template-columns: minmax(min-content, 10vh) auto;
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
|
@ -27,23 +27,22 @@
|
||||||
|
|
||||||
.blog.list > ul {
|
.blog.list > ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
margin-inline: 0;
|
||||||
}
|
}
|
||||||
.blog.list > ul > li {
|
.blog.list > ul > li {
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1rem;
|
gap: 2rem;
|
||||||
grid-template-columns: var(--blog-list-grid-template-columns);
|
grid-template-columns: var(--blog-list-grid-template-columns);
|
||||||
margin-block-end: 0.25rem;
|
margin-block-end: 0.25rem;
|
||||||
transition: background-color 0.25s;
|
transition: background-color 0.25s;
|
||||||
}
|
}
|
||||||
.blog.list > ul > li:hover {
|
.blog.list > ul > li:hover { background-color: var(--post-item-highlight-color); }
|
||||||
background-color: var(--post-item-highlight-color);
|
.blog.list > ul > li > .title > a { color: inherit; }
|
||||||
}
|
.blog.list > ul > li > .title > a:hover { text-decoration: none; }
|
||||||
.blog.list > ul > li > a { color: inherit; }
|
|
||||||
.blog.list > ul > li > a:hover { text-decoration: none; }
|
|
||||||
.blog.list > ul > li > time:nth-child(2) { text-align: end; }
|
.blog.list > ul > li > time:nth-child(2) { text-align: end; }
|
||||||
.blog.list > ul > li > .draft { align-self: center; }
|
.blog.list > ul > li > :first-child { text-align: end; }
|
||||||
|
|
||||||
@supports (grid-template-columns: subgrid) {
|
@supports (grid-template-columns: subgrid) {
|
||||||
.blog.list {
|
.blog.list {
|
||||||
|
@ -73,7 +72,3 @@
|
||||||
margin-block-start: 0;
|
margin-block-start: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog.list > ul > li > :first-child {
|
|
||||||
text-align: end;
|
|
||||||
}
|
|
||||||
|
|
|
@ -16,14 +16,8 @@ details:has(.photo-params.debug) {
|
||||||
letter-spacing: 3px;
|
letter-spacing: 3px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
.draft:before { content: "["; }
|
||||||
.draft:before {
|
.draft:after { content: "]"; }
|
||||||
content: "[";
|
|
||||||
}
|
|
||||||
|
|
||||||
.draft:after {
|
|
||||||
content: "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
#debug-page-info {
|
#debug-page-info {
|
||||||
background-color: var(--background-color);
|
background-color: var(--background-color);
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
<li>
|
<li>
|
||||||
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "January" }}</time>
|
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "January 2" }}</time>
|
||||||
<time class="nobreak" datetime="{{ .Date | time.Format "2006-01-02" }}">{{ .Date | time.Format "2" }}</time>
|
<div class="title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
<div class="category">
|
{{ partial "development/draft_tag.html" . }}
|
||||||
{{ with index (.GetTerms "categories") 0 }}
|
|
||||||
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
{{ partial "development/draft_tag.html" . }}
|
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue