Files
RuoYi-Vue3/src/assets/styles/ruoyi.scss

291 lines
4.6 KiB
SCSS
Raw Normal View History

2024-12-04 20:32:06 +08:00
/**
2021-11-30 09:55:37 +08:00
* 通用css样式布局处理
* Copyright (c) 2019 ruoyi
*/
2025-03-04 20:31:30 +08:00
/** 基础通用 **/
2021-11-30 09:55:37 +08:00
.pt5 {
2025-03-04 20:31:30 +08:00
padding-top: 5px;
2021-11-30 09:55:37 +08:00
}
.pr5 {
2025-03-04 20:31:30 +08:00
padding-right: 5px;
2021-11-30 09:55:37 +08:00
}
.pb5 {
2025-03-04 20:31:30 +08:00
padding-bottom: 5px;
2021-11-30 09:55:37 +08:00
}
.mt5 {
2025-03-04 20:31:30 +08:00
margin-top: 5px;
2021-11-30 09:55:37 +08:00
}
.mr5 {
2025-03-04 20:31:30 +08:00
margin-right: 5px;
2021-11-30 09:55:37 +08:00
}
.mb5 {
2025-03-04 20:31:30 +08:00
margin-bottom: 5px;
2021-11-30 09:55:37 +08:00
}
.mb8 {
2025-03-04 20:31:30 +08:00
margin-bottom: 8px;
2021-11-30 09:55:37 +08:00
}
.ml5 {
2025-03-04 20:31:30 +08:00
margin-left: 5px;
2021-11-30 09:55:37 +08:00
}
.mt10 {
2025-03-04 20:31:30 +08:00
margin-top: 10px;
2021-11-30 09:55:37 +08:00
}
.mr10 {
2025-03-04 20:31:30 +08:00
margin-right: 10px;
2021-11-30 09:55:37 +08:00
}
.mb10 {
2025-03-04 20:31:30 +08:00
margin-bottom: 10px;
2021-11-30 09:55:37 +08:00
}
2022-01-23 10:48:59 +08:00
.ml10 {
2025-03-04 20:31:30 +08:00
margin-left: 10px;
2021-11-30 09:55:37 +08:00
}
.mt20 {
2025-03-04 20:31:30 +08:00
margin-top: 20px;
2021-11-30 09:55:37 +08:00
}
.mr20 {
2025-03-04 20:31:30 +08:00
margin-right: 20px;
2021-11-30 09:55:37 +08:00
}
.mb20 {
2025-03-04 20:31:30 +08:00
margin-bottom: 20px;
2021-11-30 09:55:37 +08:00
}
2022-01-23 10:48:59 +08:00
.ml20 {
2025-03-04 20:31:30 +08:00
margin-left: 20px;
2021-11-30 09:55:37 +08:00
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
2025-03-04 20:31:30 +08:00
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit;
2021-11-30 09:55:37 +08:00
}
2022-11-17 13:50:35 +08:00
.el-form .el-form-item__label {
2025-03-04 20:31:30 +08:00
font-weight: 700;
2022-11-17 13:50:35 +08:00
}
2021-11-30 09:55:37 +08:00
.el-dialog:not(.is-fullscreen) {
2025-03-04 20:31:30 +08:00
margin-top: 6vh !important;
2021-11-30 09:55:37 +08:00
}
.el-dialog.scrollbar .el-dialog__body {
2025-03-04 20:31:30 +08:00
overflow: auto;
overflow-x: hidden;
max-height: 70vh;
padding: 10px 20px 0;
2021-11-30 09:55:37 +08:00
}
.el-table {
2025-03-04 20:31:30 +08:00
.el-table__header-wrapper, .el-table__fixed-header-wrapper {
th {
word-break: break-word;
background-color: #f8f8f9 !important;
color: #515a6e;
height: 40px !important;
font-size: 13px;
}
}
.el-table__body-wrapper {
.el-button [class*="el-icon-"] + span {
margin-left: 1px;
}
}
2021-11-30 09:55:37 +08:00
}
/** 表单布局 **/
.form-header {
2025-03-04 20:31:30 +08:00
font-size:15px;
color:#6379bb;
border-bottom:1px solid #ddd;
margin:8px 10px 25px 10px;
padding-bottom:5px
2021-11-30 09:55:37 +08:00
}
/** 表格布局 **/
.pagination-container {
2025-03-01 14:38:00 +08:00
display: flex;
justify-content: flex-end;
margin-top: 20px;
2024-12-04 20:32:06 +08:00
background-color: transparent !important;
2021-11-30 09:55:37 +08:00
}
2024-12-04 20:32:06 +08:00
/* 弹窗中的分页器 */
2023-11-10 14:48:44 +08:00
.el-dialog .pagination-container {
2024-12-04 20:32:06 +08:00
position: static !important;
margin: 10px 0 0 0;
padding: 0 !important;
.el-pagination {
position: static;
}
}
/* 移动端适配 */
@media (max-width: 768px) {
.pagination-container {
.el-pagination {
> .el-pagination__jump {
display: none !important;
}
> .el-pagination__sizes {
display: none !important;
}
}
}
2023-11-10 14:48:44 +08:00
}
2021-11-30 09:55:37 +08:00
/* tree border */
.tree-border {
2025-03-04 20:31:30 +08:00
margin-top: 5px;
border: 1px solid var(--el-border-color-light, #e5e6e7);
background: var(--el-bg-color, #FFFFFF) none;
border-radius:4px;
width: 100%;
2021-11-30 09:55:37 +08:00
}
2022-01-11 17:24:45 +08:00
.el-table .fixed-width .el-button--small {
2025-03-04 20:31:30 +08:00
padding-left: 0;
padding-right: 0;
width: inherit;
2021-11-30 09:55:37 +08:00
}
/** 表格更多操作下拉样式 */
.el-table .el-dropdown-link {
2025-03-04 20:31:30 +08:00
cursor: pointer;
color: #409EFF;
margin-left: 10px;
2021-11-30 09:55:37 +08:00
}
.el-table .el-dropdown, .el-icon-arrow-down {
2025-03-04 20:31:30 +08:00
font-size: 12px;
2021-11-30 09:55:37 +08:00
}
.el-tree-node__content > .el-checkbox {
2025-03-04 20:31:30 +08:00
margin-right: 8px;
2021-11-30 09:55:37 +08:00
}
.list-group-striped > .list-group-item {
2025-03-04 20:31:30 +08:00
border-left: 0;
border-right: 0;
border-radius: 0;
padding-left: 0;
padding-right: 0;
2021-11-30 09:55:37 +08:00
}
.list-group {
2025-03-04 20:31:30 +08:00
padding-left: 0px;
list-style: none;
2021-11-30 09:55:37 +08:00
}
.list-group-item {
2025-03-04 20:31:30 +08:00
border-bottom: 1px solid #e7eaec;
border-top: 1px solid #e7eaec;
margin-bottom: -1px;
padding: 11px 0px;
font-size: 13px;
2021-11-30 09:55:37 +08:00
}
.pull-right {
2025-03-04 20:31:30 +08:00
float: right !important;
2021-11-30 09:55:37 +08:00
}
.el-card__header {
2025-03-04 20:31:30 +08:00
padding: 14px 15px 7px !important;
min-height: 40px;
2021-11-30 09:55:37 +08:00
}
.el-card__body {
2025-03-04 20:31:30 +08:00
padding: 15px 20px 20px 20px !important;
2021-11-30 09:55:37 +08:00
}
.card-box {
2025-03-04 20:31:30 +08:00
margin-bottom: 10px;
2021-11-30 09:55:37 +08:00
}
/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
background: #20B2AA;
border-color: #20B2AA;
color: #FFFFFF;
}
.el-button--cyan:focus,
.el-button--cyan:hover {
background: #48D1CC;
border-color: #48D1CC;
color: #FFFFFF;
}
.el-button--cyan {
background-color: #20B2AA;
border-color: #20B2AA;
color: #FFFFFF;
}
/* text color */
.text-navy {
2025-03-04 20:31:30 +08:00
color: #1ab394;
2021-11-30 09:55:37 +08:00
}
.text-primary {
2025-03-04 20:31:30 +08:00
color: inherit;
2021-11-30 09:55:37 +08:00
}
.text-success {
2025-03-04 20:31:30 +08:00
color: #1c84c6;
2021-11-30 09:55:37 +08:00
}
.text-info {
2025-03-04 20:31:30 +08:00
color: #23c6c8;
2021-11-30 09:55:37 +08:00
}
.text-warning {
2025-03-04 20:31:30 +08:00
color: #f8ac59;
2021-11-30 09:55:37 +08:00
}
.text-danger {
2025-03-04 20:31:30 +08:00
color: #ed5565;
2021-11-30 09:55:37 +08:00
}
.text-muted {
2025-03-04 20:31:30 +08:00
color: #888888;
2021-11-30 09:55:37 +08:00
}
/* image */
.img-circle {
2025-03-04 20:31:30 +08:00
border-radius: 50%;
2021-11-30 09:55:37 +08:00
}
.img-lg {
2025-03-04 20:31:30 +08:00
width: 120px;
height: 120px;
2021-11-30 09:55:37 +08:00
}
.avatar-upload-preview {
2025-03-04 20:31:30 +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;
2021-11-30 09:55:37 +08:00
}
/* 拖拽列样式 */
.sortable-ghost{
2025-03-04 20:31:30 +08:00
opacity: .8;
color: #fff!important;
background: #42b983!important;
2021-11-30 09:55:37 +08:00
}
/* 表格右侧工具栏样式 */
2021-11-30 09:55:37 +08:00
.top-right-btn {
2025-03-04 20:31:30 +08:00
margin-left: auto;
2021-11-30 09:55:37 +08:00
}
2024-11-22 12:58:50 +08:00
/* 分割面板样式 */
.splitpanes.default-theme .splitpanes__pane {
2024-12-04 20:32:06 +08:00
background-color: var(--splitpanes-default-bg) !important;
2024-11-22 12:58:50 +08:00
}