146 lines
2.5 KiB
SCSS
146 lines
2.5 KiB
SCSS
/*
|
|
*
|
|
* 分类页面
|
|
*
|
|
* 按照顺序
|
|
* 1.默认
|
|
* 2.深色
|
|
* 3.媒体查询
|
|
* - 320px
|
|
*/
|
|
@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 {
|
|
>ul {
|
|
>.name {
|
|
color: #dbdbdb;
|
|
}
|
|
|
|
>li {
|
|
>a {
|
|
color: #dbdbdb;
|
|
|
|
&:hover {
|
|
color: #dbdbdb80;
|
|
}
|
|
}
|
|
|
|
>span {
|
|
color: #7d7d7d;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// =========== 320px 设备 ===========
|
|
@media (max-width: 320px) {
|
|
>ul {
|
|
padding: 2.5% 1%;
|
|
|
|
>.name {
|
|
padding: 2.5% 0;
|
|
text-align: center;
|
|
}
|
|
|
|
>li {
|
|
justify-content: center;
|
|
|
|
>span {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 分类目录
|
|
.categories {
|
|
>ul {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
|
|
>li {
|
|
font-size: 1rem;
|
|
|
|
>a {
|
|
color: #262626;
|
|
|
|
&:hover {
|
|
color: #26262680;
|
|
}
|
|
|
|
>span {
|
|
color: #8c8c8c;
|
|
}
|
|
}
|
|
}
|
|
|
|
.count {
|
|
display: inline-block;
|
|
position: relative;
|
|
top: -0.5rem;
|
|
right: -0.125rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
}
|
|
|
|
// =========== 深色 ===========
|
|
@include darkmode {
|
|
>ul {
|
|
>li {
|
|
>a {
|
|
color: #dbdbdb;
|
|
|
|
&:hover {
|
|
color: #dbdbdb80;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
// =========== 320px 设备 ===========
|
|
@media (max-width: 320px) {
|
|
margin: 7% 0;
|
|
|
|
>ul {
|
|
>li {
|
|
margin: 2.5% 2.5%;
|
|
}
|
|
}
|
|
}
|
|
} |