mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
Tweak year and month styles in archive and year pages
This commit is contained in:
parent
f7379854e5
commit
9c8591d2e1
3 changed files with 13 additions and 3 deletions
|
|
@ -295,6 +295,11 @@ footer a, footer a:visited {
|
|||
* Archive
|
||||
*/
|
||||
|
||||
h2.year a, h2.year a:visited,
|
||||
h2.month a, h2.month a:visited {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
ul.archive {
|
||||
padding-left: 0;
|
||||
margin-left: 5%;
|
||||
|
|
@ -323,6 +328,11 @@ ul.archive li time {
|
|||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
h2.year a, h2.year a:visited,
|
||||
h2.month a, h2.month a:visited {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
ul.archive li time {
|
||||
color: #919191;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@
|
|||
|
||||
{% for year in years %}
|
||||
<div class="container">
|
||||
<h2><a href="{{ year.path }}">{{ year.title }}</a></h2>
|
||||
<h2 class="year"><a href="{{ year.path }}">{{ year.title }}</a></h2>
|
||||
|
||||
{% for month in year.months %}
|
||||
<h3>
|
||||
<h3 class="month">
|
||||
<a href="{{ month.path }}">{{ month.name }}</a>
|
||||
</h3>
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<h1>{{ title }}</h1>
|
||||
|
||||
{% for month in months %}
|
||||
<h2>
|
||||
<h2 class="month">
|
||||
<a href="{{ month.path }}">{{ month.name }}</a>
|
||||
</h2>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue