132 lines
2.2 KiB
SCSS
132 lines
2.2 KiB
SCSS
@use "base";
|
|
|
|
ul, li {
|
|
list-style: none; /* 移除项目符号(如圆点、数字等) */
|
|
margin: 0; /* 清除默认外边距 */
|
|
padding: 0; /* 清除默认内边距 */
|
|
}
|
|
|
|
// 重置样式
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
outline: none!important;
|
|
}
|
|
|
|
body {
|
|
height: 100%;
|
|
font-family: PingFangSC, PingFang SC, sans-serif;
|
|
|
|
color: base.$text-primary;
|
|
background-color: base.$background-color-base;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
html{
|
|
font-size: 16px;
|
|
}
|
|
@media screen and (max-width: 1920px) {
|
|
html {
|
|
font-size: 16px; // 适配 1920px 宽度的标准稿
|
|
}
|
|
}
|
|
@media screen and (max-width: 1600px) {
|
|
html {
|
|
font-size: 12px; // 更小的字体以适配较小屏幕
|
|
}
|
|
}
|
|
@media screen and (max-width: 1440px) {
|
|
html {
|
|
font-size: 10px; // 更小的字体以适配较小屏幕
|
|
}
|
|
}
|
|
#app {
|
|
height: 100vh;
|
|
width: 100vw;
|
|
overflow: hidden;
|
|
}
|
|
|
|
html {
|
|
|
|
}
|
|
|
|
body {
|
|
background-color: base.$background-color-base;
|
|
}
|
|
|
|
.center-wrapper {
|
|
@include base.center-wrapper;
|
|
}
|
|
|
|
.container-wrapper {
|
|
height: 100%;
|
|
background-color: #fff;
|
|
@include base.center-wrapper;
|
|
//@include base.padding;
|
|
}
|
|
|
|
.space {
|
|
@include base.space;
|
|
}
|
|
|
|
.container-wrapper_flex {
|
|
@include base.center-wrapper;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.content-wrapper {
|
|
flex: 1;
|
|
overflow: auto;
|
|
width: 100%;
|
|
@include base.padding;
|
|
@include base.border-radius;
|
|
@include base.box-shadow;
|
|
margin-top: 10px;
|
|
min-height: 0;
|
|
}
|
|
|
|
// 清除圆角
|
|
.clear-border-radius {
|
|
border-radius: 0;
|
|
}
|
|
|
|
// 清除背景色
|
|
.clear-background-color {
|
|
background-color: transparent;
|
|
}
|
|
|
|
// 清除内边距
|
|
.clear-padding {
|
|
padding: 0;
|
|
}
|
|
|
|
// 清除外边距
|
|
.clear-margin {
|
|
margin: 0;
|
|
}
|
|
.el-popper.is-light.type-popper, .el-popper.is-light>.el-popper__arrow:before{
|
|
background:#F5FAFF !important;
|
|
padding: 0 !important;
|
|
//border: 1px solid #4D6DE4 !important;
|
|
}
|
|
$btn-color: #4D6DE4;
|
|
$lighter-color: #7c91e3;
|
|
.default-btn{
|
|
cursor: pointer;
|
|
width: 120px;
|
|
height: 42px;
|
|
line-height: 42px;
|
|
background: $btn-color;
|
|
border-radius: 6px;
|
|
color: #FFF;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
&:hover{
|
|
background: $lighter-color;
|
|
}
|
|
|
|
} |