perf: 优化样式

This commit is contained in:
xiaozzzi 2024-01-06 20:49:47 +08:00
parent 35110c413a
commit 4448bc0a96
3 changed files with 24 additions and 10 deletions

View File

@ -45,7 +45,6 @@ img {
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
border-radius: 2px; border-radius: 2px;
background-color: var(--bl-scrollbar-color); background-color: var(--bl-scrollbar-color);
transition: 0.3s;
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {

View File

@ -5,6 +5,16 @@
--el-dialog-box-shadow: var(--bl-dialog-box-shadow) !important; --el-dialog-box-shadow: var(--bl-dialog-box-shadow) !important;
} }
// 更大的 header close 按钮
.bl-dialog-bigger-headerbtn {
.el-dialog__headerbtn {
height: 30px;
width: 30px;
font-size: 20px;
}
}
// header
.bl-dialog-hidden-header { .bl-dialog-hidden-header {
.el-dialog__header { .el-dialog__header {
display: none !important; display: none !important;
@ -14,16 +24,22 @@
} }
} }
.bl-dialog-bigger-headerbtn { // 固定 body 长度
.el-dialog__headerbtn {
height: 30px;
width: 30px;
font-size: 20px;
}
}
.bl-dialog-fixed-body { .bl-dialog-fixed-body {
.el-dialog__body { .el-dialog__body {
height: calc(100% - 10px); height: calc(100% - 10px);
} }
} }
// header 且固定 body 长度
.bl-dialog-hidden-header-fixed-body {
.el-dialog__header {
display: none !important;
}
.el-dialog__headerbtn {
display: none;
}
.el-dialog__body {
height: 100%;
}
}

View File

@ -1,6 +1,5 @@
.el-notification { .el-notification {
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
border-radius: 2px !important;
border: 2px solid var(--el-color-primary-light-5) !important; border: 2px solid var(--el-color-primary-light-5) !important;
} }