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/layout/_header.scss

122 lines
2.3 KiB
SCSS
Raw Normal View History

// Header 头部
@import "../../base/variables";
2022-01-19 17:34:41 +08:00
.header {
display: flex;
// 站点标题
>.title {
>a {
font-size: 2.2rem;
letter-spacing: 0.2rem;
line-height: 2.4rem;
>span {
2022-01-19 17:34:41 +08:00
color: #262626;
&:hover {
color: #26262680;
}
}
}
}
// 二级标题
>.description {
font-size: 0.9rem;
color: #8c8c8c;
>.socials {
display: flex;
justify-content: flex-end;
>a {
font-size: 1rem;
margin-left: 0.5rem;
cursor: pointer;
color: #8c8c8c;
&:hover {
color: #8c8c8c80;
}
2022-01-19 17:34:41 +08:00
}
}
}
// 深色
@include darkmode {
>.title {
>a {
>span {
color: #dbdbdb;
2022-01-19 17:34:41 +08:00
&:hover {
color: #dbdbdb80;
}
}
}
}
>.description {
color: #7d7d7d;
>.socials {
>a {
color: #7d7d7d;
&:hover {
color: #7d7d7d80;
}
}
}
}
2022-01-19 17:34:41 +08:00
}
// 320px 设备
@media (max-width: 320px) {
flex-direction: column;
align-items: center;
width: 90%;
padding: 17% 5% 5% 5%;
>.description {
display: flex;
flex-direction: column;
align-items: center;
}
}
2022-01-19 18:53:46 +08:00
// 768px 设备
@media (min-width: 320px) and (max-width: 768px) {
flex-direction: column;
align-items: center;
width: 90%;
padding: 17% 5% 5% 5%;
>.description {
display: flex;
flex-direction: column;
align-items: center;
}
}
2022-01-19 21:24:32 +08:00
// 2048px 设备
@media (min-width: 768px) and (max-width: 2048px) {
width: 45rem;
padding: 7rem 0 3rem 0;
justify-content: space-between;
>.title {
width: 6rem;
}
>.description {
display: flex;
flex-direction: column;
align-items: flex-end;
}
}
}