528 lines
8.7 KiB
SCSS
528 lines
8.7 KiB
SCSS
![]() |
@import './variables.scss';
|
||
|
@import './mixin.scss';
|
||
|
@import './transition.scss';
|
||
|
@import './element-ui.scss';
|
||
|
@import './sidebar.scss';
|
||
|
@import './btn.scss';
|
||
|
|
||
|
body {
|
||
|
height: 100%;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
text-rendering: optimizeLegibility;
|
||
|
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
|
||
|
}
|
||
|
|
||
|
label {
|
||
|
font-weight: 700;
|
||
|
}
|
||
|
|
||
|
html {
|
||
|
height: 100%;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
#app {
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
*,
|
||
|
*:before,
|
||
|
*:after {
|
||
|
box-sizing: inherit;
|
||
|
}
|
||
|
|
||
|
.no-padding {
|
||
|
padding: 0px !important;
|
||
|
}
|
||
|
|
||
|
.padding-content {
|
||
|
padding: 4px 0;
|
||
|
}
|
||
|
|
||
|
a:focus,
|
||
|
a:active {
|
||
|
outline: none;
|
||
|
}
|
||
|
|
||
|
a,
|
||
|
a:focus,
|
||
|
a:hover {
|
||
|
cursor: pointer;
|
||
|
color: inherit;
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
|
||
|
div:focus {
|
||
|
outline: none;
|
||
|
}
|
||
|
|
||
|
.fr {
|
||
|
float: right;
|
||
|
}
|
||
|
|
||
|
.fl {
|
||
|
float: left;
|
||
|
}
|
||
|
|
||
|
.pr-5 {
|
||
|
padding-right: 5px;
|
||
|
}
|
||
|
|
||
|
.pl-5 {
|
||
|
padding-left: 5px;
|
||
|
}
|
||
|
|
||
|
.block {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.pointer {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
|
||
|
.inlineBlock {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
.clearfix {
|
||
|
&:after {
|
||
|
visibility: hidden;
|
||
|
display: block;
|
||
|
font-size: 0;
|
||
|
content: " ";
|
||
|
clear: both;
|
||
|
height: 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
aside {
|
||
|
background: #eef1f6;
|
||
|
padding: 8px 24px;
|
||
|
margin-bottom: 20px;
|
||
|
border-radius: 2px;
|
||
|
display: block;
|
||
|
line-height: 32px;
|
||
|
font-size: 16px;
|
||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||
|
color: #2c3e50;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
|
||
|
a {
|
||
|
color: #337ab7;
|
||
|
cursor: pointer;
|
||
|
|
||
|
&:hover {
|
||
|
color: rgb(32, 160, 255);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//main-container全局样式
|
||
|
.app-container {
|
||
|
padding: 20px;
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
overflow-y: auto;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
|
||
|
.components-container {
|
||
|
margin: 30px 50px;
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
|
.pagination-container {
|
||
|
margin-top: 30px;
|
||
|
}
|
||
|
|
||
|
.text-center {
|
||
|
text-align: center
|
||
|
}
|
||
|
|
||
|
.sub-navbar {
|
||
|
height: 50px;
|
||
|
line-height: 50px;
|
||
|
position: relative;
|
||
|
width: 100%;
|
||
|
text-align: right;
|
||
|
padding-right: 20px;
|
||
|
transition: 600ms ease position;
|
||
|
background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
|
||
|
|
||
|
.subtitle {
|
||
|
font-size: 20px;
|
||
|
color: #fff;
|
||
|
}
|
||
|
|
||
|
&.draft {
|
||
|
background: #d0d0d0;
|
||
|
}
|
||
|
|
||
|
&.deleted {
|
||
|
background: #d0d0d0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.link-type,
|
||
|
.link-type:focus {
|
||
|
color: #337ab7;
|
||
|
cursor: pointer;
|
||
|
|
||
|
&:hover {
|
||
|
color: rgb(32, 160, 255);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.filter-container {
|
||
|
padding-bottom: 10px;
|
||
|
|
||
|
.filter-input {
|
||
|
width: 150px;
|
||
|
margin-right: 10px;
|
||
|
}
|
||
|
|
||
|
.filter-item {
|
||
|
display: inline-block;
|
||
|
vertical-align: middle;
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//refine vue-multiselect plugin
|
||
|
.multiselect {
|
||
|
line-height: 16px;
|
||
|
}
|
||
|
|
||
|
.multiselect--active {
|
||
|
z-index: 1000 !important;
|
||
|
}
|
||
|
|
||
|
.center-tabs {
|
||
|
.el-tabs__header {
|
||
|
margin-bottom: 0!important;
|
||
|
}
|
||
|
.el-tabs__item {
|
||
|
width: 50%;
|
||
|
text-align: center;
|
||
|
}
|
||
|
.el-tabs__nav {
|
||
|
width: 100%;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
::-webkit-scrollbar {
|
||
|
width: 8px;
|
||
|
height: 8px;
|
||
|
}
|
||
|
::-webkit-scrollbar-thumb {
|
||
|
background-color: #C0D4F0;
|
||
|
border-radius: 3px;
|
||
|
}
|
||
|
|
||
|
// formgenerator
|
||
|
$editorTabsborderColor: #121315;
|
||
|
.editor-tabs {
|
||
|
background: $editorTabsborderColor;
|
||
|
.el-tabs__header {
|
||
|
margin: 0;
|
||
|
border-bottom-color: $editorTabsborderColor;
|
||
|
.el-tabs__nav {
|
||
|
border-color: $editorTabsborderColor;
|
||
|
}
|
||
|
}
|
||
|
.el-tabs__item {
|
||
|
height: 32px;
|
||
|
line-height: 32px;
|
||
|
color: #888a8e;
|
||
|
border-left: 1px solid $editorTabsborderColor!important;
|
||
|
background: #363636;
|
||
|
margin-right: 5px;
|
||
|
user-select: none;
|
||
|
}
|
||
|
.el-tabs__item.is-active {
|
||
|
background: #1e1e1e;
|
||
|
border-bottom-color: #1e1e1e!important;
|
||
|
color: #fff;
|
||
|
}
|
||
|
.el-icon-edit {
|
||
|
color: #f1fa8c;
|
||
|
}
|
||
|
.el-icon-document {
|
||
|
color: #a95812;
|
||
|
}
|
||
|
:focus.is-active.is-focus:not(:active) {
|
||
|
box-shadow: none;
|
||
|
border-radius: 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.right-scrollbar {
|
||
|
.el-scrollbar__view {
|
||
|
padding: 12px 18px 15px 15px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.reg-item {
|
||
|
padding: 12px 6px;
|
||
|
background: #f8f8f8;
|
||
|
position: relative;
|
||
|
border-radius: 4px;
|
||
|
.close-btn {
|
||
|
position: absolute;
|
||
|
right: -6px;
|
||
|
top: -6px;
|
||
|
display: block;
|
||
|
width: 16px;
|
||
|
height: 16px;
|
||
|
line-height: 16px;
|
||
|
background: rgba(0, 0, 0, 0.2);
|
||
|
border-radius: 50%;
|
||
|
color: #fff;
|
||
|
text-align: center;
|
||
|
z-index: 1;
|
||
|
cursor: pointer;
|
||
|
font-size: 12px;
|
||
|
&:hover {
|
||
|
background: rgba(210, 23, 23, 0.5)
|
||
|
}
|
||
|
}
|
||
|
& + .reg-item {
|
||
|
margin-top: 18px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.action-bar {
|
||
|
& .el-button+.el-button {
|
||
|
margin-left: 15px;
|
||
|
}
|
||
|
& i {
|
||
|
font-size: 20px;
|
||
|
vertical-align: middle;
|
||
|
position: relative;
|
||
|
top: -1px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.custom-tree-node {
|
||
|
width: 100%;
|
||
|
font-size: 14px;
|
||
|
.node-operation {
|
||
|
float: right;
|
||
|
}
|
||
|
i[class*="el-icon"] + i[class*="el-icon"] {
|
||
|
margin-left: 6px;
|
||
|
}
|
||
|
.el-icon-plus {
|
||
|
color: #409EFF;
|
||
|
}
|
||
|
.el-icon-delete {
|
||
|
color: #157a0c;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//
|
||
|
.popoverTo {
|
||
|
.el-popover__title {
|
||
|
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 弹窗和内弹窗
|
||
|
.pop-up,
|
||
|
.inner-pop-up,
|
||
|
.pop-up-height {
|
||
|
display: flex;
|
||
|
|
||
|
// 弹窗内边据
|
||
|
.el-dialog__body {
|
||
|
padding: 0px 20px;
|
||
|
}
|
||
|
.dataForm {
|
||
|
border-top: 1px solid #ccc;
|
||
|
padding: 20px 0;
|
||
|
}
|
||
|
// 弹窗里面的表单的外边距设置 el-dialog-bottom
|
||
|
.el-dialog-bottom {
|
||
|
margin-bottom: 10px;
|
||
|
margin-top: 5px;
|
||
|
}
|
||
|
// 弹窗标题加粗 title 粘性定位固定在顶部
|
||
|
.el-dialog__header {
|
||
|
position: sticky;
|
||
|
top: 0;
|
||
|
background-color: #FFFFFF;
|
||
|
box-shadow: 0 1px 2px 1px #f0f0f0;
|
||
|
z-index: 9999;
|
||
|
.el-dialog__title {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
}
|
||
|
// 限制弹窗的高度
|
||
|
.el-dialog {
|
||
|
max-height: calc(100% - 10vh ) !important;
|
||
|
// min-height: 20vh;
|
||
|
margin: auto !important;
|
||
|
overflow: auto;
|
||
|
position: relative;
|
||
|
// 个性化-固定在容器顶部
|
||
|
.content-fixed-top {
|
||
|
position: fixed;
|
||
|
padding-top: 10px;
|
||
|
margin-top: 2px;
|
||
|
z-index: 9999;
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
// 个性化-中部
|
||
|
.content-fixed-conter {
|
||
|
padding-top: 50px;
|
||
|
}
|
||
|
// 个性化-固定底部
|
||
|
.content-fixed-bottom {
|
||
|
position: sticky;
|
||
|
bottom: 0;
|
||
|
z-index: 9999;
|
||
|
background-color: #fff;
|
||
|
.pagination-container {
|
||
|
margin-top: 0;
|
||
|
padding: 25px 0;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
.filter-container {
|
||
|
|
||
|
padding-bottom: 0px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
.pop-up-height {
|
||
|
.el-dialog {
|
||
|
height: calc(100% - 10vh ) !important;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
// 表单里面的input框 手动添加icon 图标
|
||
|
.icon_style {
|
||
|
|
||
|
.el-form-item__content{
|
||
|
position: relative;
|
||
|
}
|
||
|
.icon {
|
||
|
width: calc(100% - 47px);
|
||
|
height: calc(100% - 2px);
|
||
|
color: #C0C4CC;
|
||
|
transform: translateY(-50%);
|
||
|
display: flex;
|
||
|
align-content: center;
|
||
|
justify-content: flex-end;
|
||
|
position: absolute ;
|
||
|
top: 50%;
|
||
|
left: 0;
|
||
|
.el-icon-circle-close{
|
||
|
line-height: inherit;
|
||
|
background-color: #fff;
|
||
|
padding: 0 8px;
|
||
|
&:hover {
|
||
|
color: #1890FF;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.el-input__suffix {
|
||
|
display: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.app-sticky {
|
||
|
width: 100%;
|
||
|
height: calc(100vh - 84px);
|
||
|
overflow-y: auto;
|
||
|
box-sizing: border-box;
|
||
|
padding: 0 20px;
|
||
|
// 表格的导航栏 粘性定位国定
|
||
|
.positionStl {
|
||
|
position: sticky;
|
||
|
top: 0;
|
||
|
z-index: 20;
|
||
|
background-color: #fff;
|
||
|
padding-top: 10px;
|
||
|
box-sizing: border-box;
|
||
|
|
||
|
.filter-container {
|
||
|
padding-bottom: 0;
|
||
|
}
|
||
|
}
|
||
|
.pagination-container {
|
||
|
margin-top: 0;
|
||
|
padding: 10px 16px !important;
|
||
|
position: sticky;
|
||
|
bottom: 0;
|
||
|
z-index: 20;
|
||
|
}
|
||
|
|
||
|
#screenfull-container {
|
||
|
height: calc( 100% - 94px - 52px );
|
||
|
.mainHeight {
|
||
|
height: calc( 100% - 23px )
|
||
|
}
|
||
|
#tableData {
|
||
|
tr td .cell {
|
||
|
line-height: initial !important;
|
||
|
// 超出两行 以省略号显示
|
||
|
overflow : hidden;
|
||
|
text-overflow: ellipsis;
|
||
|
display: -webkit-box;
|
||
|
-webkit-line-clamp: 2; // 控制几行
|
||
|
-webkit-box-orient: vertical;
|
||
|
}
|
||
|
|
||
|
|
||
|
.el-button--small {
|
||
|
padding: 0px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
// 黑色字体
|
||
|
.el-input.is-disabled .el-input__inner {
|
||
|
color: #000;
|
||
|
|
||
|
}
|
||
|
|
||
|
// 让input number类型的标签不产生上下加减的按钮
|
||
|
input::-webkit-outer-spin-button,
|
||
|
input::-webkit-inner-spin-button {
|
||
|
-webkit-appearance: none !important;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
// 自定义加载
|
||
|
.daoru .el-loading-mask .el-loading-spinner {
|
||
|
font-size: 50px;
|
||
|
.el-loading-text {
|
||
|
font-size: 20px;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// el-divider 组件的修改样式
|
||
|
.divider {
|
||
|
margin: 30px 0 !important;
|
||
|
.el-divider__text {
|
||
|
font-weight: bold;
|
||
|
font-size: 17px;
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 加载中 .el-loading-spinner .circular
|
||
|
.el-loading-spinner .circular {
|
||
|
width: 70px;
|
||
|
height: 70px;
|
||
|
}
|