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

87 lines
1.5 KiB
Stylus
Raw Normal View History

2020-04-29 18:41:29 +08:00
@require "../common/variables.styl";
$archive-year-font-size = 1.8em;
2020-09-03 12:28:24 +08:00
$archive-year-count-font-size = 1.2em;
2020-11-17 18:21:16 +08:00
$article-title-font-size = 1.2em;
$article-date-font-size = 1em;
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 {
2020-11-19 11:58:54 +08:00
margin-bottom: $component-interspace;
2020-04-29 18:41:29 +08:00
&:last-child {
margin-bottom: 0;
}
.archive-item-header {
2020-11-17 18:21:16 +08:00
margin-bottom: 10px;
2020-04-29 18:41:29 +08:00
.archive-year {
font-size: $archive-year-font-size;
2020-06-04 22:11:27 +08:00
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2020-06-04 22:11:27 +08:00
font-size: $archive-year-font-size - 0.2em;
}
2020-04-29 18:41:29 +08:00
color: var(--second-text-color);
font-weight: 600;
margin-right: 6px;
}
.archive-year-post-count {
font-size: $archive-year-count-font-size;
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2020-09-03 12:28:24 +08:00
font-size: $archive-year-count-font-size - 0.1em;
}
color: var(--second-text-color);
font-weight: 500;
2020-04-29 18:41:29 +08:00
}
}
.article-list {
2020-11-17 18:21:16 +08:00
padding-left: 10px;
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2020-11-17 18:21:16 +08:00
padding-left: 0;
}
2020-04-29 18:41:29 +08:00
.article-item {
2020-09-03 12:28:24 +08:00
margin-top: 18px;
2020-11-20 12:02:22 +08:00
+keep-tablet() {
2020-09-03 12:28:24 +08:00
margin-top: 16px;
}
2020-11-20 12:02:22 +08:00
+keep-mobile() {
2020-09-03 12:28:24 +08:00
margin-top: 14px;
}
2020-04-29 18:41:29 +08:00
2020-11-17 18:21:16 +08:00
&:hover {
color: var(--primary-color);
}
2020-04-29 18:41:29 +08:00
a.article-title {
2020-11-18 11:56:47 +08:00
color: var(--default-text-color);
2020-04-29 18:41:29 +08:00
&:hover {
2020-11-17 18:21:16 +08:00
color: var(--primary-color);
2020-04-29 18:41:29 +08:00
}
}
.article-date {
font-size: $article-date-font-size;
float: right;
}
}
}
}
}