hexo-theme-keep/source/css/layout/_partial/archive-list.styl

85 lines
1.5 KiB
Stylus
Raw Permalink Normal View History

$archive-year-font-size = 1.8rem
$archive-year-count-font-size = 1.2rem
$article-title-font-size = 1.2rem
$article-date-font-size = 1rem
2020-04-29 18:41:29 +08:00
.archive-list-container {
2020-11-17 18:21:16 +08:00
2020-04-29 18:41:29 +08:00
.archive-item {
margin-bottom $component-spacing-value
2020-04-29 18:41:29 +08:00
&:last-child {
margin-bottom 0
2020-04-29 18:41:29 +08:00
}
.archive-item-header {
margin-bottom 0.8rem
2020-11-17 18:21:16 +08:00
2020-04-29 18:41:29 +08:00
.archive-year {
margin-right 6px
2022-10-14 17:56:32 +08:00
color var(--text-color-2)
font-weight 600
font-size $archive-year-font-size
2020-06-04 22:11:27 +08:00
2020-11-20 12:02:22 +08:00
+keep-tablet() {
font-size $archive-year-font-size - 0.2rem
2020-06-04 22:11:27 +08:00
}
}
2020-12-01 16:51:38 +08:00
.archive-year-post-count {
2022-10-14 17:56:32 +08:00
color var(--text-color-2)
font-weight 500
font-size $archive-year-count-font-size
2020-11-20 12:02:22 +08:00
+keep-tablet() {
font-size $archive-year-count-font-size * 0.9
}
2020-04-29 18:41:29 +08:00
}
}
.article-list {
padding-left 0.8rem
2020-11-17 18:21:16 +08:00
2020-11-20 12:02:22 +08:00
+keep-tablet() {
padding-left 0
2020-11-17 18:21:16 +08:00
}
2020-04-29 18:41:29 +08:00
.article-item {
margin-top 1.2rem
font-size 1rem
2020-09-03 12:28:24 +08:00
2020-11-20 12:02:22 +08:00
+keep-tablet() {
margin-top 1.1rem
2020-09-03 12:28:24 +08:00
}
2020-11-20 12:02:22 +08:00
+keep-mobile() {
margin-top 1rem
2020-09-03 12:28:24 +08:00
}
2020-04-29 18:41:29 +08:00
2020-11-17 18:21:16 +08:00
&:hover {
a.article-title
.article-date {
color var(--primary-color)
2021-01-22 19:13:47 +08:00
}
2020-11-17 18:21:16 +08:00
}
2021-01-22 19:13:47 +08:00
2020-04-29 18:41:29 +08:00
a.article-title {
2022-10-14 17:56:32 +08:00
color var(--text-color-3)
2020-04-29 18:41:29 +08:00
}
.article-date {
float right
2022-10-14 17:56:32 +08:00
color var(--text-color-3)
2022-09-30 11:36:38 +08:00
font-size $article-date-font-size
2020-04-29 18:41:29 +08:00
}
}
}
}
}