diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-03-03 23:29:38 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-03-03 23:29:38 +0800 |
commit | 6b32914ba4e7cf99366c3280f55564bd10b5542d (patch) | |
tree | b749194d66302117af4fbe6a4682ad6bea1f0d47 /www/assets/res/css/article.css | |
parent | 15394615d468b256f2348a35faacb37468290137 (diff) | |
download | crupest-6b32914ba4e7cf99366c3280f55564bd10b5542d.tar.gz crupest-6b32914ba4e7cf99366c3280f55564bd10b5542d.tar.bz2 crupest-6b32914ba4e7cf99366c3280f55564bd10b5542d.zip |
feat(www): hurd and todos.
Diffstat (limited to 'www/assets/res/css/article.css')
-rw-r--r-- | www/assets/res/css/article.css | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/www/assets/res/css/article.css b/www/assets/res/css/article.css new file mode 100644 index 0000000..9629597 --- /dev/null +++ b/www/assets/res/css/article.css @@ -0,0 +1,42 @@ +.article-preview { + font-size: 0.95em; + padding-inline: 0.5em; + padding-block: 0.5em; + margin-block-end: 0.5em; + border-radius: 3px; + background-color: hsl(33, 100%, 98%); + + & > p { + font-size: 0.9em; + line-height: 1.4; + margin-inline-start: 0.3em; + margin-block: 0; + } + + & > .title { + margin-block-start: 0; + margin-block-end: 0.3em; + } + + & > .date { + font-size: small; + float: right; + margin-inline-end: 1.5em; + color: hsl(0, 0%, 25%); + } + + & > .content { + overflow: hidden; + height: 3lh; + } +} + +html[data-theme="dark"] { + & .article-preview { + background-color: hsl(0, 0%, 3%); + + & > .date { + color: hsl(0, 0%, 75%); + } + } +} |