maxkb/ui/src/styles/app.scss
2023-10-18 19:06:22 +08:00

135 lines
1.8 KiB
SCSS

* {
margin: 0;
padding: 0;
}
html {
height: 100%;
box-sizing: border-box;
}
body {
font-size: 14px;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
'微软雅黑', Arial, sans-serif;
height: 100%;
margin: 0;
padding: 0;
}
#app {
height: 100%;
}
:focus {
outline: none;
}
a:active {
outline: none;
}
a,
a:focus,
a:hover {
cursor: pointer;
color: inherit;
text-decoration: none;
}
div:focus {
outline: none;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
// 滚动条整体部分
::-webkit-scrollbar {
width: 6px; // 纵向滚动条宽度
height: 6px; // 横向滚动条高度
}
// 滑块
::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: var(--ce-webkit-scrollbar-background-color, rgba(31, 35, 41, 0.3));
}
// 轨道
::-webkit-scrollbar-track {
border-radius: 5px;
background-color: transparent;
}
.w-full {
width: 100%;
}
.h-full {
height: 100%;
}
.mt-10 {
margin-top: 10px;
}
.ml-10 {
margin-left: 10px;
}
.mr-10 {
margin-right: 10px;
}
.mb-10 {
margin-bottom: 10px;
}
.mb-20 {
margin-bottom: 20px;
}
.p-15 {
padding: 15px;
}
.flex {
display: flex;
}
.flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.flex-between {
display: flex;
justify-content: space-between;
align-items: center;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right;
}
.border-b {
border-bottom: 1px solid var(--el-border-color);
}
.border-r {
border-right: 1px solid var(--el-border-color);
}
.border-b-light {
border-bottom: 1px solid var(--el-border-color-lighter);
}
.main-calc-height {
height: calc(100vh - 125px);
}