* {
margin: 0;
padding: 0;
}
html {
height: 100%;
box-sizing: border-box;
}
body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', 'Microsoft YaHei',
'微软雅黑', Arial, sans-serif;
font-size: 14px;
font-style: normal;
font-weight: 500;
height: 100%;
margin: 0;
padding: 0;
color: var(--app-text-color-primary);
}
#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;
}
h1 {
font-size: 24px;
}
h2 {
font-size: 20px;
font-weight: 500;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
.w-full {
width: 100%;
}
.h-full {
height: 100%;
}
.mt-8 {
margin-top: 8px;
}
.mt-16 {
margin-top: 16px;
}
.mb-8 {
margin-bottom: 8px;
}
.mb-16 {
margin-bottom: 16px;
}
.ml-8 {
margin-left: 8px;
}
.ml-16 {
margin-left: 16px;
}
.mr-8 {
margin-right: 8px;
}
.p-8 {
padding: 8px;
}
.p-16 {
padding: 16px;
}
.p-24 {
padding: 24px;
}
.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 {
align-items: center;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.vertical-middle {
vertical-align: middle;
}
.border-b {
border-bottom: 1px solid var(--el-border-color);
}
.border-r {
border-right: 1px solid var(--el-border-color);
}
.border-t {
border-top: 1px solid var(--el-border-color);
}
.border-b-light {
border-bottom: 1px solid var(--el-border-color-lighter);
}
.cursor {
cursor: pointer;
}
.ellipsis {
display: inline-block;
max-width: 100px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
// 内容部分 自适应高度
.main-calc-height {
height: calc(100vh - var(--app-header-height) - var(--app-view-padding) * 2 - 40px);
}
// 标题前带竖线样式
.title-decoration-1 {
position: relative;
padding-left: 15px;
&:before {
position: absolute;
left: 2px;
top: 50%;
transform: translate(-50%, -50%);
width: 4px;
height: 90%;
content: '';
background: var(--el-color-primary);
border-radius: 10px;
}
}
.app-logo-font {
background: var(--app-logo-color);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-family: Arial Black;
font-style: normal;
font-weight: 900;
}
// tag
.default-tag {
background: var(--tag-deflaut-bg);
color: var(--tag-deflaut-color);
}