hscc

Soure code of <https://hugo.soucy.cc>.
git clone git://soucy.cc/hscc.git
Log | Files | Refs

commit 1a5575381affcf93ae0e5c4a97956018325679de
parent ed5e21a8d260f7b040fc70fe8c842871b224baef
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri,  1 Oct 2021 19:04:03 -0400

Add a archives css module

Diffstat:
Msrc/css/css.sh | 1+
Asrc/css/modules/archives.css | 47+++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/src/css/css.sh b/src/css/css.sh @@ -30,6 +30,7 @@ modules/hentry.css modules/hfeed.css modules/hresume.css modules/xfn.css +modules/archives.css modules/webmentions.css EOF diff --git a/src/css/modules/archives.css b/src/css/modules/archives.css @@ -0,0 +1,47 @@ +/* @module archives */ +.archives-list { + display: flex; + flex-wrap: wrap; + gap: 2rem; + list-style: none; + padding-left: 0; +} + +@supports (display: grid) { + .archives-list { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); + grid-gap: 2rem; + } +} + +.archives-list__year { + flex:1 1 0; + min-width: 20rem; +} + +.archives-list__year h2 { + border-bottom: 1px solid var(--base-fg); + margin-bottom: 1rem; + padding-bottom: 1rem; +} + +.archives-list__month + .archives-list__month { + margin-top: 1rem; +} + +.archives-list__month > * + * { + margin-top: 0.5rem; +} + +.archives-list__month dt { + font-weight: 700; +} + +.archives-list__month dt:first-letter { + text-transform: capitalize; +} + +.archives-list__month dd { + margin-left: 0; +}