hexo-theme-keep/source/css/layout/category-list.styl

58 lines
919 B
Stylus
Raw Normal View History

2020-09-02 17:49:53 +08:00
.category-list-container {
2022-09-30 11:36:38 +08:00
keep-container(false, 0, 0, 2rem, 0)
2020-09-02 17:49:53 +08:00
.category-list-content {
.all-category-list {
2022-09-30 11:36:38 +08:00
& > .all-category-list-item > .all-category-list-link {
font-size 1.1rem
}
2020-09-02 17:49:53 +08:00
li.all-category-list-item {
2022-09-30 11:36:38 +08:00
margin-bottom 1rem
font-size 1rem
2020-09-02 17:49:53 +08:00
&:last-child {
margin-bottom 0
2020-09-02 17:49:53 +08:00
}
span.all-category-list-count {
float right
color var(--default-text-color)
2021-01-28 14:50:41 +08:00
&::before {
content '['
2021-01-28 14:50:41 +08:00
}
&::after {
content ']'
2021-01-28 14:50:41 +08:00
}
2020-09-02 17:49:53 +08:00
}
ul.all-category-list-child {
2022-09-30 11:36:38 +08:00
margin-top 1rem
2020-09-02 17:49:53 +08:00
2022-09-30 11:36:38 +08:00
margin-left 0.9rem
2020-09-02 17:49:53 +08:00
li {
&::before {
content '- '
2020-09-02 17:49:53 +08:00
}
2022-09-30 11:36:38 +08:00
margin-bottom 0.9rem
2020-09-02 17:49:53 +08:00
&:last-child {
margin-bottom 0
2020-09-02 17:49:53 +08:00
}
}
}
}
}
}
}