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