UnisKB/ui/src/styles/app.scss

280 lines
4.5 KiB
SCSS
Raw Normal View History

2023-10-12 08:36:16 +00:00
* {
margin: 0;
padding: 0;
}
2023-09-15 09:40:35 +00:00
html {
height: 100%;
box-sizing: border-box;
}
body {
font-size: 14px;
-moz-osx-font-smoothing: grayscale;
2023-10-13 08:11:54 +00:00
-webkit-font-smoothing: antialiased;
font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
'微软雅黑', Arial, sans-serif;
2023-09-15 09:40:35 +00:00
height: 100%;
margin: 0;
padding: 0;
}
#app {
2023-10-12 08:36:16 +00:00
height: 100%;
2023-09-15 09:40:35 +00:00
}
:focus {
outline: none;
}
a:active {
outline: none;
}
a,
a:focus,
a:hover {
cursor: pointer;
color: inherit;
text-decoration: none;
}
2023-10-12 08:36:16 +00:00
div:focus {
outline: none;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
2023-09-15 09:40:35 +00:00
// 滚动条整体部分
::-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;
}
2023-10-12 08:36:16 +00:00
.w-full {
width: 100%;
}
.h-full {
height: 100%;
}
.mt-1 {
margin-top: 10px;
}
.ml-1 {
margin-left: 10px;
}
.mr-1 {
margin-right: 10px;
}
.mb-1 {
margin-bottom: 10px;
}
.mb-2 {
margin-bottom: 20px;
}
2023-10-13 08:11:54 +00:00
.flex {
display: flex;
}
2023-10-12 08:36:16 +00:00
.flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.flex-between {
display: flex;
justify-content: space-between;
align-items: center;
}
2023-09-15 09:40:35 +00:00
// 创建表单
.create-catalog-container {
height: 100%;
margin-top: -20px;
2023-10-12 08:36:16 +00:00
.padding-top-30 {
padding-top: 30px;
2023-09-15 09:40:35 +00:00
}
2023-10-12 08:36:16 +00:00
.padding-top-40 {
padding-top: 40px;
2023-09-15 09:40:35 +00:00
}
// 表单外套
2023-10-12 08:36:16 +00:00
.form-div {
2023-09-15 09:40:35 +00:00
text-align: center;
margin: 0 auto;
width: 80%;
min-width: 300px;
2023-10-12 08:36:16 +00:00
form {
.el-form-item {
margin-bottom: 28px;
}
label {
2023-09-15 09:40:35 +00:00
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 22px;
2023-10-12 08:36:16 +00:00
color: #1f2329;
2023-09-15 09:40:35 +00:00
flex: none;
order: 0;
flex-grow: 0;
}
}
}
// 删除按钮样式
2023-10-12 08:36:16 +00:00
.delete-button-class {
2023-09-15 09:40:35 +00:00
cursor: pointer;
2023-10-12 08:36:16 +00:00
color: #646a73;
2023-09-15 09:40:35 +00:00
}
// 添加按钮样式
2023-10-12 08:36:16 +00:00
.add-button-class {
2023-09-15 09:40:35 +00:00
cursor: pointer;
border: 0 solid;
//width: 105px;
height: 22px;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 22px;
display: flex;
align-items: center;
letter-spacing: -0.1px;
2023-10-12 08:36:16 +00:00
color: #3370ff;
.span-class {
vertical-align: 2px;
color: #3370ff;
padding-left: 5px;
2023-09-15 09:40:35 +00:00
}
}
2023-10-12 08:36:16 +00:00
button {
2023-09-15 09:40:35 +00:00
height: 32px;
2023-10-12 08:36:16 +00:00
min-width: 80px;
2023-09-15 09:40:35 +00:00
}
2023-10-12 08:36:16 +00:00
.save-btn {
background-color: #3370ff;
2023-09-15 09:40:35 +00:00
}
2023-10-12 08:36:16 +00:00
.cancel-btn {
2023-09-15 09:40:35 +00:00
}
// 下方操作按钮区域
.footer {
border-top: 1px solid var(--el-border-color);
padding: 24px 0px 0px 0px;
display: flex;
justify-content: space-between;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
margin: 0px -50px 0px;
.footer-form {
min-width: 400px;
}
.footer-center {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
.footer-btn {
margin: 0px 80px 0px;
text-align: right;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-end;
}
}
.description {
padding-left: 15px;
font-size: smaller;
color: #606266;
}
}
// 自定义弹出框样式
2023-10-12 08:36:16 +00:00
.custom-dialog {
2023-09-15 09:40:35 +00:00
//标题样式
2023-10-12 08:36:16 +00:00
.el-dialog__header {
2023-09-15 09:40:35 +00:00
padding: 24px !important;
}
//关闭按钮样式
2023-10-12 08:36:16 +00:00
.el-dialog__headerbtn .el-dialog__close {
2023-09-15 09:40:35 +00:00
height: auto !important;
2023-10-12 08:36:16 +00:00
color: #646a73 !important;
2023-09-15 09:40:35 +00:00
font-size: x-large !important;
}
2023-10-12 08:36:16 +00:00
.el-dialog__headerbtn .el-dialog__close:hover {
2023-09-15 09:40:35 +00:00
background: rgba(31, 35, 41, 0.1) !important;
border-radius: 4px !important;
}
//内容间距
2023-10-12 08:36:16 +00:00
.el-dialog__body {
2023-09-15 09:40:35 +00:00
padding: 0px 24px 0px 24px;
}
2023-10-12 08:36:16 +00:00
.el-dialog__footer {
2023-09-15 09:40:35 +00:00
padding-bottom: 29px !important;
}
//下方按钮
2023-10-12 08:36:16 +00:00
.footer-btn {
button {
2023-09-15 09:40:35 +00:00
height: 32px;
2023-10-12 08:36:16 +00:00
min-width: 80px;
2023-09-15 09:40:35 +00:00
}
2023-10-12 08:36:16 +00:00
.save-btn {
background-color: #3370ff;
2023-09-15 09:40:35 +00:00
}
2023-10-12 08:36:16 +00:00
.cancel-btn {
2023-09-15 09:40:35 +00:00
}
}
}
2023-10-12 08:36:16 +00:00
.custom-radio-group.el-radio-group {
border: 1px solid #bbbfc4;
2023-09-15 09:40:35 +00:00
border-radius: 5px;
height: 30px;
2023-10-12 08:36:16 +00:00
label {
2023-09-15 09:40:35 +00:00
border: 0px solid;
padding: 2px 10px 2px 4px;
}
2023-10-12 08:36:16 +00:00
.el-radio-button__inner {
2023-09-15 09:40:35 +00:00
padding: 4px;
border: 0px;
border-radius: 5px;
}
2023-10-12 08:36:16 +00:00
.el-radio-button {
2023-09-15 09:40:35 +00:00
height: auto;
}
2023-10-12 08:36:16 +00:00
.el-radio-button is-active {
2023-09-15 09:40:35 +00:00
height: auto;
}
2023-10-12 08:36:16 +00:00
.el-radio-button__original-radio:checked + .el-radio-button__inner {
color: #3370ff;
2023-09-15 09:40:35 +00:00
border: 0;
box-shadow: 0 0 0 0;
background: rgba(51, 112, 255, 0.1);
}
}