/*
*
* 分类页面
* 按照顺序
* 1.默认
* 2.深色
* 3.媒体查询
*/
@import "../base/variables";
.category {
>ul {
>.name {
font-size: 1.5rem;
font-weight: bold;
line-height: 2.2rem;
color: #262626;
}
>li {
display: flex;
font-size: 0.875rem;
line-height: 2rem;
>a {
color: #595959;
&:hover {
color: #59595980;
>span {
color: #8c8c8c;
// =========== 深色 ===========
@include darkmode {
color: #dbdbdb;
color: #dbdbdb80;
color: #7d7d7d;
// =========== 移动端 ===========
@media (max-width: 870px) {
padding: 2.5% 1%;
padding: 2.5% 0;
justify-content: space-between;
// =========== 桌面端 ===========
@media (min-width: 870px) {
padding: 0.625rem 0.1rem;
padding: 0.5rem 0;
padding-bottom: 0.3rem;
// 分类目录
.categories {
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
font-size: 1rem;
color: #26262680;
.count {
display: inline-block;
position: relative;
top: -0.5rem;
right: -0.125rem;
font-size: 0.75rem;
margin: 7% 0;
margin: 2.5% 2.5%;
@media (min-width: 870px){
margin: 5rem 0;
margin: 0.5rem 1rem;