2022-01-17 19:51:11 +08:00
|
|
|
@import "variables";
|
|
|
|
|
|
|
|
// 滚动条
|
|
|
|
html {
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
height: 40px;
|
|
|
|
border-radius: 16px;
|
2022-01-20 09:20:00 +08:00
|
|
|
background-color: #0000003f;
|
2022-01-17 19:51:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
&:hover {
|
2022-01-20 09:20:00 +08:00
|
|
|
background-color: #0000003f;
|
2022-01-17 19:51:11 +08:00
|
|
|
|
2022-01-20 08:48:00 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include darkmode {
|
|
|
|
::-webkit-scrollbar-thumb {
|
2022-01-20 09:20:00 +08:00
|
|
|
background-color: #3d3030;
|
2022-01-20 08:48:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
&:hover {
|
2022-01-20 09:20:00 +08:00
|
|
|
background-color: #acacac;
|
2022-01-17 19:51:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// body
|
|
|
|
body {
|
|
|
|
background-color: #f7f7f7;
|
|
|
|
color: #333333;
|
|
|
|
|
|
|
|
@include darkmode {
|
|
|
|
background-color: #3d3d3d;
|
|
|
|
color: #a3a3a3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-19 17:34:41 +08:00
|
|
|
// container 主容器
|
2022-01-17 19:51:11 +08:00
|
|
|
.container {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2022-01-20 08:48:00 +08:00
|
|
|
// main 主体
|
2022-01-17 19:51:11 +08:00
|
|
|
main {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
background: #ffffff;
|
2022-01-19 17:34:41 +08:00
|
|
|
box-shadow: 0 0.375rem 1rem -0.5rem rgb(0, 0, 0, 0.17);
|
2022-01-17 19:51:11 +08:00
|
|
|
|
2022-09-14 19:10:22 +08:00
|
|
|
// =========== 暗模式 ===========
|
2022-01-17 19:51:11 +08:00
|
|
|
@include darkmode {
|
|
|
|
background: #292929;
|
2022-01-19 17:34:41 +08:00
|
|
|
box-shadow: 0 0.375rem 1rem -0.5rem rgb(0, 0, 0, 0.34);
|
2022-01-17 19:51:11 +08:00
|
|
|
}
|
|
|
|
|
2022-01-20 08:48:00 +08:00
|
|
|
// =========== 移动端 ===========
|
|
|
|
@media (max-width: 870px) {
|
2022-01-25 22:24:53 +08:00
|
|
|
width: 99%;
|
|
|
|
margin-top: 1%;
|
2022-01-19 18:53:46 +08:00
|
|
|
padding-bottom: 5%;
|
|
|
|
}
|
2022-01-19 21:24:32 +08:00
|
|
|
|
2022-11-01 15:28:03 +08:00
|
|
|
// =========== 适配端 ===========
|
|
|
|
@media (min-width: 870px) and (max-width: 1440px) {
|
|
|
|
width: 71.8vw;
|
|
|
|
margin-top: 18.48vh;
|
|
|
|
padding-bottom: 7vh;
|
|
|
|
}
|
|
|
|
|
2022-01-20 08:48:00 +08:00
|
|
|
// =========== 桌面端 ===========
|
2022-11-01 15:28:03 +08:00
|
|
|
@media (min-width: 1440px) {
|
2022-09-14 19:10:22 +08:00
|
|
|
width: 61.8vw;
|
|
|
|
margin-top: 23.48vh;
|
|
|
|
padding-bottom: 7vh;
|
2022-01-19 21:24:32 +08:00
|
|
|
}
|
2022-01-17 19:51:11 +08:00
|
|
|
}
|
|
|
|
|
2022-01-19 17:34:41 +08:00
|
|
|
main>.index,
|
|
|
|
main>.archives,
|
|
|
|
main>.categories,
|
|
|
|
main>.category,
|
|
|
|
main>.links,
|
|
|
|
main>.post,
|
|
|
|
main>.tag,
|
|
|
|
main>.journals {
|
2022-01-20 08:48:00 +08:00
|
|
|
// =========== 移动端 ===========
|
|
|
|
@media (max-width: 870px) {
|
2022-01-19 18:53:46 +08:00
|
|
|
>ul {
|
|
|
|
margin-block-start: 0;
|
|
|
|
margin-block-end: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
width: 90%;
|
|
|
|
padding: 2.5% 5%;
|
|
|
|
}
|
2022-01-19 21:24:32 +08:00
|
|
|
|
2022-01-20 08:48:00 +08:00
|
|
|
// =========== 桌面端 ===========
|
2022-09-14 19:10:22 +08:00
|
|
|
@media (min-width: 870px) {
|
|
|
|
width: 80%;
|
|
|
|
padding: 2rem 0rem 2rem 0rem;
|
2022-01-19 21:24:32 +08:00
|
|
|
}
|
2022-01-19 17:34:41 +08:00
|
|
|
|
2022-01-17 19:51:11 +08:00
|
|
|
}
|
2022-01-21 11:25:35 +08:00
|
|
|
|
2022-01-20 09:03:52 +08:00
|
|
|
|
2022-01-19 17:34:41 +08:00
|
|
|
// 全局动画
|
2022-01-17 19:51:11 +08:00
|
|
|
|
|
|
|
@-webkit-keyframes fadeInDown {
|
2022-01-19 17:34:41 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
-webkit-transform: translateY(-3px);
|
|
|
|
}
|
2022-01-17 19:51:11 +08:00
|
|
|
|
2022-01-19 17:34:41 +08:00
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
-webkit-transform: translateY(0);
|
|
|
|
}
|
2022-01-17 19:51:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@-moz-keyframes fadeInDown {
|
2022-01-19 17:34:41 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
-moz-transform: translateY(-3px);
|
|
|
|
}
|
2022-01-17 19:51:11 +08:00
|
|
|
|
2022-01-19 17:34:41 +08:00
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
-moz-transform: translateY(0);
|
|
|
|
}
|
2022-01-17 19:51:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@-o-keyframes fadeInDown {
|
2022-01-19 17:34:41 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
-o-transform: translateY(-3px);
|
|
|
|
}
|
2022-01-17 19:51:11 +08:00
|
|
|
|
2022-01-19 17:34:41 +08:00
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
-o-transform: translateY(0);
|
|
|
|
}
|
2022-01-17 19:51:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fadeInDown {
|
2022-01-19 17:34:41 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(-3px);
|
|
|
|
}
|
2022-01-17 19:51:11 +08:00
|
|
|
|
2022-01-19 17:34:41 +08:00
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
}
|