summaryrefslogtreecommitdiff
path: root/themes/theme/source/css/partials/post_list.styl
diff options
context:
space:
mode:
authorsomhairle <[email protected]>2026-04-21 20:40:27 +0800
committerSomhairle H. Marisol <[email protected]>2026-05-24 17:24:57 +0800
commitad8f9f55ea79a4d587aecc69698808da82de3d62 (patch)
treed25c0db712e6f015d850627ff957edea44c64f94 /themes/theme/source/css/partials/post_list.styl
downloadblog-ad8f9f55ea79a4d587aecc69698808da82de3d62.tar.gz
二〇二六年四月二十一日
Diffstat (limited to 'themes/theme/source/css/partials/post_list.styl')
-rw-r--r--themes/theme/source/css/partials/post_list.styl39
1 files changed, 39 insertions, 0 deletions
diff --git a/themes/theme/source/css/partials/post_list.styl b/themes/theme/source/css/partials/post_list.styl
new file mode 100644
index 00000000..c5ea22cc
--- /dev/null
+++ b/themes/theme/source/css/partials/post_list.styl
@@ -0,0 +1,39 @@
+.post-list
+
+ a
+ underline-motion(link)
+
+.year-title
+ margin-top $margin-l-1
+ margin-bottom $margin-m-1
+ text-style(year-title)
+
+.post-list-item
+ display flex
+ flex-wrap nowrap
+ margin-top $margin-m-0
+ align-items top
+
+ .post-title
+ flex-grow 1
+ text-style(body-default)
+
+ .post-date
+ margin-left $margin-l-0
+ min-width 8rem
+ text-align right
+ text-style(post-date)
+ line-height $line-height-body
+ color $color-text-secondary
+
+@media (max-width: 480px)
+ .post-list-item
+ flex-wrap wrap
+ .post-title
+ width 100%
+
+ .post-date
+ margin-left 0
+ width 100%
+ text-align left
+