285 lines
4.0 KiB
SCSS
Raw Normal View History

@use './variables.module.scss' as *;
2023-04-02 01:01:56 +08:00
/**
2023-03-15 15:59:21 +08:00
* 通用css样式布局处理
* Copyright (c) 2019 ruoyi
*/
2023-04-02 01:01:56 +08:00
/** 基础通用 **/
2023-03-15 15:59:21 +08:00
.pt5 {
2023-04-03 00:05:09 +08:00
padding-top: 5px;
2023-03-15 15:59:21 +08:00
}
.pr5 {
2023-04-03 00:05:09 +08:00
padding-right: 5px;
2023-03-15 15:59:21 +08:00
}
.pb5 {
2023-04-03 00:05:09 +08:00
padding-bottom: 5px;
2023-03-15 15:59:21 +08:00
}
.mt5 {
2023-04-03 00:05:09 +08:00
margin-top: 5px;
2023-03-15 15:59:21 +08:00
}
.mr5 {
2023-04-03 00:05:09 +08:00
margin-right: 5px;
2023-03-15 15:59:21 +08:00
}
.mb5 {
2023-04-03 00:05:09 +08:00
margin-bottom: 5px;
2023-03-15 15:59:21 +08:00
}
.mb8 {
2023-04-03 00:05:09 +08:00
margin-bottom: 8px;
2023-03-15 15:59:21 +08:00
}
.ml5 {
2023-04-03 00:05:09 +08:00
margin-left: 5px;
2023-03-15 15:59:21 +08:00
}
.mt10 {
2023-04-03 00:05:09 +08:00
margin-top: 10px;
2023-03-15 15:59:21 +08:00
}
.mr10 {
2023-04-03 00:05:09 +08:00
margin-right: 10px;
2023-03-15 15:59:21 +08:00
}
.mb10 {
2023-04-03 00:05:09 +08:00
margin-bottom: 10px;
2023-03-15 15:59:21 +08:00
}
.ml10 {
2023-04-03 00:05:09 +08:00
margin-left: 10px;
2023-03-15 15:59:21 +08:00
}
.mt20 {
2023-04-03 00:05:09 +08:00
margin-top: 20px;
2023-03-15 15:59:21 +08:00
}
.mr20 {
2023-04-03 00:05:09 +08:00
margin-right: 20px;
2023-03-15 15:59:21 +08:00
}
.mb20 {
2023-04-03 00:05:09 +08:00
margin-bottom: 20px;
2023-03-15 15:59:21 +08:00
}
.ml20 {
2023-04-03 00:05:09 +08:00
margin-left: 20px;
2023-03-15 15:59:21 +08:00
}
2023-04-02 01:01:56 +08:00
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
2023-04-03 00:05:09 +08:00
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit;
2023-03-15 15:59:21 +08:00
}
.el-form .el-form-item__label {
2023-04-03 00:05:09 +08:00
font-weight: 700;
2023-03-15 15:59:21 +08:00
}
.el-dialog:not(.is-fullscreen) {
2023-04-03 00:05:09 +08:00
margin-top: 6vh !important;
2023-03-15 15:59:21 +08:00
}
.el-dialog.scrollbar .el-dialog__body {
2023-04-03 00:05:09 +08:00
overflow: auto;
overflow-x: hidden;
max-height: 70vh;
padding: 10px 20px 0;
2023-03-15 15:59:21 +08:00
}
.el-table {
2023-04-03 00:05:09 +08:00
.el-table__header-wrapper,
.el-table__fixed-header-wrapper {
th {
word-break: break-word;
2023-04-22 01:05:11 +08:00
background-color: $table-header-bg !important;
color: $table-header-text-color;
2023-04-03 00:05:09 +08:00
height: 40px !important;
font-size: 13px;
}
}
.el-table__body-wrapper {
.el-button [class*='el-icon-'] + span {
margin-left: 1px;
}
}
2023-03-15 15:59:21 +08:00
}
/** 表单布局 **/
.form-header {
2023-04-03 00:05:09 +08:00
font-size: 15px;
color: #6379bb;
border-bottom: 1px solid #ddd;
margin: 8px 10px 25px 10px;
padding-bottom: 5px;
2023-03-15 15:59:21 +08:00
}
/** 表格布局 **/
.pagination-container {
display: flex;
justify-content: flex-end;
margin-top: 20px;
2023-04-03 00:05:09 +08:00
padding: 10px 20px !important;
2023-03-15 15:59:21 +08:00
}
/* tree border */
.tree-border {
2023-04-03 00:05:09 +08:00
margin-top: 5px;
border: 1px solid #e5e6e7;
background: #ffffff none;
border-radius: 4px;
width: 100%;
2023-03-15 15:59:21 +08:00
}
2023-04-02 01:01:56 +08:00
@media (max-width: 768px) {
2023-04-03 00:05:09 +08:00
.pagination-container .el-pagination > .el-pagination__jump {
display: none !important;
}
.pagination-container .el-pagination > .el-pagination__sizes {
display: none !important;
}
2023-03-15 15:59:21 +08:00
}
.el-table .fixed-width .el-button--small {
2023-04-03 00:05:09 +08:00
padding-left: 0;
padding-right: 0;
width: inherit;
2023-03-15 15:59:21 +08:00
}
/** 表格更多操作下拉样式 */
.el-table .el-dropdown-link {
2023-04-03 00:05:09 +08:00
cursor: pointer;
color: #409eff;
margin-left: 10px;
2023-03-15 15:59:21 +08:00
}
2023-04-02 01:01:56 +08:00
.el-table .el-dropdown,
.el-icon-arrow-down {
2023-04-03 00:05:09 +08:00
font-size: 12px;
2023-03-15 15:59:21 +08:00
}
.el-tree-node__content > .el-checkbox {
2023-04-03 00:05:09 +08:00
margin-right: 8px;
2023-03-15 15:59:21 +08:00
}
.list-group-striped > .list-group-item {
2023-04-03 00:05:09 +08:00
border-left: 0;
border-right: 0;
border-radius: 0;
padding-left: 0;
padding-right: 0;
2023-03-15 15:59:21 +08:00
}
.list-group {
2023-04-03 00:05:09 +08:00
padding-left: 0px;
list-style: none;
2023-03-15 15:59:21 +08:00
}
.list-group-item {
2023-04-03 00:05:09 +08:00
border-bottom: 1px solid #e7eaec;
border-top: 1px solid #e7eaec;
margin-bottom: -1px;
padding: 11px 0px;
font-size: 13px;
2023-03-15 15:59:21 +08:00
}
.pull-right {
2023-04-03 00:05:09 +08:00
float: right !important;
2023-03-15 15:59:21 +08:00
}
.el-card__header {
2023-04-03 00:05:09 +08:00
padding: 14px 15px 7px !important;
min-height: 40px;
2023-03-15 15:59:21 +08:00
}
.el-card__body {
2023-04-03 00:05:09 +08:00
padding: 15px 20px 20px 20px !important;
2023-03-15 15:59:21 +08:00
}
.card-box {
2023-04-03 00:05:09 +08:00
margin-bottom: 10px;
2023-03-15 15:59:21 +08:00
}
/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
2023-04-03 00:05:09 +08:00
background: #20b2aa;
border-color: #20b2aa;
color: #ffffff;
2023-03-15 15:59:21 +08:00
}
.el-button--cyan:focus,
.el-button--cyan:hover {
2023-04-03 00:05:09 +08:00
background: #48d1cc;
border-color: #48d1cc;
color: #ffffff;
2023-03-15 15:59:21 +08:00
}
.el-button--cyan {
2023-04-03 00:05:09 +08:00
background-color: #20b2aa;
border-color: #20b2aa;
color: #ffffff;
2023-03-15 15:59:21 +08:00
}
/* text color */
.text-navy {
2023-04-03 00:05:09 +08:00
color: #1ab394;
2023-03-15 15:59:21 +08:00
}
.text-primary {
2023-04-03 00:05:09 +08:00
color: inherit;
2023-03-15 15:59:21 +08:00
}
.text-success {
2023-04-03 00:05:09 +08:00
color: #1c84c6;
2023-03-15 15:59:21 +08:00
}
.text-info {
2023-04-03 00:05:09 +08:00
color: #23c6c8;
2023-03-15 15:59:21 +08:00
}
.text-warning {
2023-04-03 00:05:09 +08:00
color: #f8ac59;
2023-03-15 15:59:21 +08:00
}
.text-danger {
2023-04-03 00:05:09 +08:00
color: #ed5565;
2023-03-15 15:59:21 +08:00
}
.text-muted {
2023-04-03 00:05:09 +08:00
color: #888888;
2023-03-15 15:59:21 +08:00
}
/* image */
.img-circle {
2023-04-03 00:05:09 +08:00
border-radius: 50%;
2023-03-15 15:59:21 +08:00
}
.img-lg {
2023-04-03 00:05:09 +08:00
width: 120px;
height: 120px;
2023-03-15 15:59:21 +08:00
}
.avatar-upload-preview {
2023-04-03 00:05:09 +08:00
position: absolute;
top: 50%;
transform: translate(50%, -50%);
width: 200px;
height: 200px;
border-radius: 50%;
box-shadow: 0 0 4px #ccc;
overflow: hidden;
2023-03-15 15:59:21 +08:00
}
/* 拖拽列样式 */
2023-04-02 01:01:56 +08:00
.sortable-ghost {
2023-04-03 00:05:09 +08:00
opacity: 0.8;
color: #fff !important;
background: #42b983 !important;
2023-03-15 15:59:21 +08:00
}
/* 表格右侧工具栏样式 */
.top-right-btn {
2023-04-03 00:05:09 +08:00
margin-left: auto;
2023-03-15 15:59:21 +08:00
}