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

68 lines
1.2 KiB
Stylus

@require "../common/variables.styl";
$archive-year-font-size = 1.8em;
$archive-year-count-font-size = 1.4em;
$article-title-font-size = 1.12em;
$article-date-font-size = 0.8em;
.archive-list-container {
.archive-item {
margin-bottom: $component-interspace + 10px;
&:last-child {
margin-bottom: 0;
}
.archive-item-header {
.archive-year {
font-size: $archive-year-font-size;
+ils-tablet() {
font-size: $archive-year-font-size - 0.2em;
}
color: var(--second-text-color);
font-weight: 600;
margin-right: 6px;
}
.archive-year-post-count {
font-size: $archive-year-count-font-size;
+ils-tablet() {
font-size: $archive-year-count-font-size - 0.2em;
}
color: var(--second-text-color);
font-weight: 500;
}
}
.article-list {
.article-item {
margin-top: 20px;
font-size: $article-title-font-size;
a.article-title {
color: var(--normal-text-color);
&:hover {
color: $primary-color;
}
}
.article-date {
font-size: $article-date-font-size;
float: right;
}
}
}
}
}