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/base/_base.scss

179 lines
2.5 KiB
SCSS
Raw Normal View History

@import "variables";
// 滚动条
html {
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-thumb {
height: 40px;
border-radius: 16px;
background-color: rgba(0, 0, 0, 0.249);
@include darkmode {
// 深色
background-color: blue;
}
}
::-webkit-scrollbar-thumb {
&:hover {
background-color: rgba(0, 0, 0, 0.249);
@include darkmode {
background-color: blue;
}
}
}
}
// body
body {
background-color: #f7f7f7;
color: #333333;
@include darkmode {
background-color: #3d3d3d;
color: #a3a3a3;
}
}
2022-01-19 17:34:41 +08:00
// container 主容器
.container {
display: flex;
flex-wrap: nowrap;
flex-direction: column;
align-items: center;
}
2022-01-19 17:34:41 +08:00
// main
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-19 17:34:41 +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-19 17:34:41 +08:00
// 320px 设备
@media (max-width: 320px) {
2022-01-19 18:53:46 +08:00
width: 90%;
2022-01-19 17:34:41 +08:00
margin-top: 3%;
padding-bottom: 7%;
}
2022-01-19 18:53:46 +08:00
// 768px 设备
@media (min-width: 320px) and (max-width: 768px) {
width: 90%;
margin-top: 5%;
padding-bottom: 5%;
}
}
2022-01-19 17:34:41 +08:00
// 页面宽度
main>.index,
main>.archives,
main>.categories,
main>.category,
main>.links,
main>.post,
main>.tag,
main>.journals {
// 320px 设备
@media (max-width: 320px) {
>ul {
margin-block-start: 0;
margin-block-end: 0;
}
width: 90%;
padding: 2.5% 5%;
}
2022-01-19 18:53:46 +08:00
// 768px 设备
@media (min-width: 320px) and (max-width: 768px) {
>ul {
margin-block-start: 0;
margin-block-end: 0;
}
width: 90%;
padding: 2.5% 5%;
}
}
2022-01-19 17:34:41 +08:00
// 菜单 临时使用
.menu {
position: fixed;
right: 0.5rem;
bottom: 10rem;
font-size: 0.5rem;
}
2022-01-19 17:34:41 +08:00
// 全局动画
@-webkit-keyframes fadeInDown {
2022-01-19 17:34:41 +08:00
0% {
opacity: 0;
-webkit-transform: translateY(-3px);
}
2022-01-19 17:34:41 +08:00
100% {
opacity: 1;
-webkit-transform: translateY(0);
}
}
@-moz-keyframes fadeInDown {
2022-01-19 17:34:41 +08:00
0% {
opacity: 0;
-moz-transform: translateY(-3px);
}
2022-01-19 17:34:41 +08:00
100% {
opacity: 1;
-moz-transform: translateY(0);
}
}
@-o-keyframes fadeInDown {
2022-01-19 17:34:41 +08:00
0% {
opacity: 0;
-o-transform: translateY(-3px);
}
2022-01-19 17:34:41 +08:00
100% {
opacity: 1;
-o-transform: translateY(0);
}
}
@keyframes fadeInDown {
2022-01-19 17:34:41 +08:00
0% {
opacity: 0;
transform: translateY(-3px);
}
2022-01-19 17:34:41 +08:00
100% {
opacity: 1;
transform: translateY(0);
}
}