This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
redemption/source/css/pages/_post.scss

90 lines
1.8 KiB
SCSS
Raw Normal View History

@import "../base/variables";
// 文章
.post {
>.title {
>h1 {
>a {
letter-spacing: 0.0625rem;
font-size: 2rem;
line-height: 2rem;
color: #262626;
&:hover {
color: #26262680;
}
}
}
>.info {
2022-01-19 17:34:41 +08:00
display: flex;
border-bottom: 1px solid #d9d9d9;
>span {
font-weight: 400;
font-size: 0.75rem;
color: #8c8c8c;
2022-01-19 17:34:41 +08:00
i {
position: relative;
top: 0.125rem;
color: #8c8c8c;
2022-01-19 17:34:41 +08:00
}
}
}
}
// =========== 深色 ===========
@include darkmode {
>.title {
>h1 {
>a {
color: #dbdbdb;
:hover {
color: #dbdbdb80;
}
}
}
>.info {
border-bottom: 1px solid #434343;
2022-01-19 18:53:46 +08:00
flex-direction: column;
2022-01-19 17:34:41 +08:00
span {
color: #7d7d7d;
i {
color: #7d7d7d;
}
}
}
}
}
2022-01-19 17:34:41 +08:00
// =========== 320px 设备 ===========
@media (max-width: 320px) {
>.title {
margin-top: 10%;
>.info{
>span{
padding: 1% 1%;
}
}
}
2022-01-19 18:53:46 +08:00
}
// =========== 768px 设备 ===========
@media (min-width: 320px) and (max-width: 768px) {
>.title {
margin-top: 10%;
>.info{
>span{
padding: 1% 1%;
}
}
}
2022-01-19 17:34:41 +08:00
}
}