You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
583 lines
11 KiB
583 lines
11 KiB
/* stylelint-disable */
|
|
@import url(../src/assets/less/common.less);
|
|
|
|
/********************************* 自定义变量 ************************************/
|
|
@font-family: @fant-family;
|
|
@modal-form-background-color: #fcfcfc;
|
|
@form-control-fontsize: 12px;
|
|
@form-label-fontsize: 12px;
|
|
@form-lineheight: 12px;
|
|
// @form-element-height: 22px;
|
|
@form-element-height: 28px;
|
|
@form-element-lineheight: 22px;
|
|
@btn-height: 26px;
|
|
@btn-lineheight: 24px;
|
|
@table-fontsize: 12px;
|
|
@tab-border-topcolor: @theme-color;
|
|
@border-color: #d9d9d9;
|
|
@arrow-color: @theme-color;
|
|
@table-selected-row-bg: #9ce7fd; //
|
|
@table-selected-row-hover-bg: #9ce7fd; //
|
|
// @primary-color: #0077ff;
|
|
@primary-color: #0077ff;
|
|
|
|
html,
|
|
body {
|
|
font-family: @font-family;
|
|
overflow: hidden hidden;
|
|
}
|
|
|
|
///自定义设置
|
|
.thor-fit {
|
|
width: auto;
|
|
overflow: auto;
|
|
position: relative;
|
|
}
|
|
|
|
// // 按钮
|
|
// .md-button--primary {
|
|
// background-color: @primary-color;
|
|
// }
|
|
// checkbox
|
|
.md-checkbox.is-checked .md-checkbox__inner {
|
|
background-color: @primary-color;
|
|
border-color: @primary-color;
|
|
}
|
|
|
|
.md-checkbox.is-checked .md-checkbox__label {
|
|
color: @primary-color;
|
|
}
|
|
// tabs
|
|
.md-tabs__item.is-active {
|
|
color: @primary-color;
|
|
}
|
|
|
|
.md-tabs__active-bar {
|
|
background-color: @primary-color;
|
|
}
|
|
|
|
.md-tabs__nav-next,
|
|
.md-tabs__nav-prev {
|
|
line-height: 28px !important;
|
|
}
|
|
|
|
.table-operator {
|
|
div:has(.md-upload) {
|
|
display: inline-block;
|
|
}
|
|
|
|
.md-button {
|
|
margin: 0 8px 4px 0;
|
|
line-height: 1.499;
|
|
height: @btn-height;
|
|
font-size: @form-control-fontsize;
|
|
border-radius: 2px;
|
|
padding: 0 10px;
|
|
}
|
|
}
|
|
|
|
/**************** serch *******************/
|
|
.md-row > span {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.table-page-search-wrapper {
|
|
padding: 6px;
|
|
border: 0 solid #e8e8e8;
|
|
|
|
.md-form .md-form-item {
|
|
height: 34px;
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 0;
|
|
margin-right: 0;
|
|
padding-right: 2px;
|
|
|
|
.md-form-item__label {
|
|
width: 100px;
|
|
}
|
|
|
|
.md-form-item__content {
|
|
flex: 1 1;
|
|
flex: 1 1;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
.md-form.md-form--label-left {
|
|
border: 1px solid #e8e8e8;
|
|
}
|
|
|
|
.table-page-search-submitButtons {
|
|
display: flex;
|
|
align-items: center;
|
|
float: left;
|
|
overflow: hidden;
|
|
|
|
.md-button {
|
|
padding: 0 4px;
|
|
|
|
i {
|
|
margin-right: 2px !important;
|
|
font-size: 14px !important;
|
|
}
|
|
}
|
|
|
|
.unfold-fold-status {
|
|
margin-left: 8px;
|
|
}
|
|
}
|
|
|
|
.leftArea {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 20px;
|
|
}
|
|
|
|
.filterBox {
|
|
cursor: pointer;
|
|
border: 1px solid #999999;
|
|
width: 26px;
|
|
height: 26px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 2px;
|
|
|
|
.iconfont {
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
}
|
|
|
|
/****************** form ************************************/
|
|
|
|
.ant-modal-body {
|
|
.md-form {
|
|
.md-row {
|
|
.md-col {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.md-form {
|
|
background-color: #ffffff;
|
|
font-size: @form-control-fontsize;
|
|
|
|
.md-row {
|
|
.md-col {
|
|
// margin-bottom: 6px;
|
|
.md-form-item {
|
|
// height: 27px;
|
|
display: flex;
|
|
// align-items: center;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
color: rgba(0, 0, 0, 65%);
|
|
font-size: @form-control-fontsize;
|
|
font-variant: tabular-nums;
|
|
line-height: 1;
|
|
font-feature-settings: 'tnum';
|
|
margin-bottom: 0;
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.md-textarea {
|
|
font-size: 12px;
|
|
textarea {
|
|
padding: 2px;
|
|
}
|
|
}
|
|
.md-input {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.md-input-number.md-input-number.is-controls-right {
|
|
width: 100%;
|
|
|
|
.md-input__inner {
|
|
box-sizing: border-box;
|
|
font-variant: tabular-nums;
|
|
list-style: none;
|
|
font-feature-settings: 'tnum';
|
|
position: relative;
|
|
width: 100%;
|
|
// height: @form-element-height;
|
|
// color: rgba(0, 0, 0, 65%);
|
|
font-size: @form-control-fontsize;
|
|
line-height: @form-lineheight;
|
|
// background-color: #ffffff;
|
|
background-image: none;
|
|
transition: all 0.3s;
|
|
display: inline-block;
|
|
// margin: 1.5px 0;
|
|
border: 1px solid #d9d9d9;
|
|
border-radius: 0;
|
|
padding: 2px;
|
|
}
|
|
}
|
|
|
|
.mdDatePicker,
|
|
.md-select .md-input {
|
|
// box-sizing: border-box;
|
|
// margin: 1.5px 0;
|
|
// padding: 0;
|
|
// color: rgba(0, 0, 0, 65%);
|
|
// font-size: @form-label-fontsize;
|
|
// font-variant: tabular-nums;
|
|
// line-height: @btn-lineheight;
|
|
// list-style: none;
|
|
// font-feature-settings: 'tnum';
|
|
// position: relative;
|
|
// display: inline-block;
|
|
// outline: 0;
|
|
line-height: 26px;
|
|
|
|
.md-input__inner {
|
|
font-size: @form-label-fontsize;
|
|
padding-left: 2px;
|
|
}
|
|
}
|
|
|
|
/**************************************** button ***********************************************/
|
|
.table-operator {
|
|
padding-left: 6px;
|
|
background: #ffffff;
|
|
border-bottom: solid 1px @border-color;
|
|
border: solid 1px @border-color;
|
|
padding-top: 4px;
|
|
margin-bottom: 0;
|
|
|
|
.md-button {
|
|
margin: 0 8px 4px 0;
|
|
}
|
|
}
|
|
|
|
/** Button按钮间距 */
|
|
.table-operator .table-operator .md-button-group .md-button {
|
|
margin: 0;
|
|
}
|
|
|
|
.table-operator .md-button-group .md-button:last-child {
|
|
margin: 8px 8px 4px;
|
|
}
|
|
|
|
.md-button {
|
|
line-height: 1.499;
|
|
height: @btn-height;
|
|
font-size: @form-control-fontsize;
|
|
border-radius: 2px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.table-operator > .ant-dropdown-menu {
|
|
background-color: @theme-color;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.ant-modal-footer .md-button:last-child {
|
|
// background-color: @theme-color;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.md-input__inner {
|
|
box-sizing: border-box;
|
|
margin: 1.5px 0;
|
|
font-variant: tabular-nums;
|
|
list-style: none;
|
|
font-feature-settings: 'tnum';
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 100%;
|
|
height: 26px;
|
|
line-height: 26px;
|
|
// height: @form-element-height;
|
|
padding: 2px;
|
|
color: rgba(0, 0, 0, 65%);
|
|
font-size: @form-control-fontsize;
|
|
// line-height: @form-lineheight;
|
|
background-color: #ffffff;
|
|
background-image: none;
|
|
border: 1px solid #d9d9d9;
|
|
border-radius: 0;
|
|
transition: all 0.3s;
|
|
// &::-webkit-input-placeholder {
|
|
// color: transparent;
|
|
// }
|
|
}
|
|
// .md-row .md-col {
|
|
// height: 34px;
|
|
// }
|
|
// .md-input__inner::-webkit-input-placeholder {
|
|
// opacity: 0;
|
|
// }
|
|
|
|
/* 解决下拉框样式问题 错误情况下样式 20220829 reeve st */
|
|
.has-error .ant-select-selection {
|
|
border-color: #f5222d !important;
|
|
}
|
|
|
|
/* 解决下拉框样式问题 20220829 reeve ed */
|
|
.md-select-dropdown ul li:nth-child(odd) {
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
.md-select-dropdown ul li:nth-child(even) {
|
|
background-color: #fafafa;
|
|
}
|
|
|
|
.md-select-dropdown ul li.md-select-dropdown__item {
|
|
height: @form-element-height;
|
|
font-size: @form-control-fontsize;
|
|
line-height: @form-element-lineheight;
|
|
padding: 0 0 0 8px;
|
|
}
|
|
|
|
.ant-select-dropdown-menu-item {
|
|
height: @form-element-height;
|
|
font-size: @form-control-fontsize;
|
|
line-height: @form-element-lineheight;
|
|
padding: 0 0 0 8px;
|
|
}
|
|
|
|
.ant-select-selection--single {
|
|
position: relative;
|
|
// height: @form-element-height;
|
|
height: 24px;
|
|
// line-height: @form-element-lineheight;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ant-select-selection--multiple {
|
|
min-height: @form-element-height;
|
|
padding-bottom: 0;
|
|
cursor: text;
|
|
zoom: 1;
|
|
}
|
|
|
|
.ant-select-selection__rendered {
|
|
line-height: 20px;
|
|
margin-left: 0;
|
|
}
|
|
|
|
.ant-select-selection--multiple > ul > li,
|
|
.ant-select-selection--multiple .ant-select-selection__rendered > ul > li {
|
|
height: 19px;
|
|
margin-top: 0;
|
|
line-height: 19px;
|
|
}
|
|
|
|
.md-input__suffix {
|
|
right: 0;
|
|
}
|
|
|
|
.md-input--suffix .md-input__suffix .md-tooltip {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.mdDatePicker .md-input__icon {
|
|
line-height: 27px !important;
|
|
}
|
|
|
|
.ant-select-selection__clear {
|
|
right: calc(@form-element-height - 4px);
|
|
}
|
|
|
|
.ant-select-sm .ant-select-selection__clear,
|
|
.ant-select-sm .ant-select-arrow {
|
|
right: 0;
|
|
}
|
|
|
|
.md-form {
|
|
background-color: #ffffff;
|
|
font-size: @form-control-fontsize;
|
|
}
|
|
|
|
.md-form label {
|
|
font-size: @form-label-fontsize;
|
|
}
|
|
|
|
.md-form-item {
|
|
display: flex;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
color: rgba(0, 0, 0, 65%);
|
|
font-size: @form-control-fontsize;
|
|
font-variant: tabular-nums;
|
|
line-height: 1;
|
|
font-feature-settings: 'tnum';
|
|
margin-bottom: 0;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.md-form-item__label {
|
|
// width: 140px;
|
|
width: 150px;
|
|
line-height: 35px;
|
|
text-align: right;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.md-form-item__content {
|
|
display: flex;
|
|
align-items: center;
|
|
flex: 1;
|
|
height: 35px !important;
|
|
align-content: center;
|
|
}
|
|
|
|
/* 当内容中包含 textarea、上传组件 时,高度自动 */
|
|
.md-form-item__content:has(textarea),
|
|
.md-form-item__content:has(input[type='file']) {
|
|
height: auto !important;
|
|
}
|
|
|
|
.md-form-item__error {
|
|
display: none;
|
|
top: 80%;
|
|
}
|
|
|
|
.ant-modal-tab.md-tabs {
|
|
.md-tabs__header.is-top {
|
|
background-color: #f2f9ff !important;
|
|
// height: 30px !important;
|
|
// line-height: 30px !important;
|
|
margin-bottom: 0;
|
|
|
|
.md-tabs__nav.is-top {
|
|
border: none;
|
|
|
|
.md-tabs__item.is-top {
|
|
font-size: 12px;
|
|
// width: 100px;
|
|
min-width: 100px;
|
|
height: 28px;
|
|
line-height: 28px;
|
|
text-align: center;
|
|
background-image: linear-gradient(-77deg, #ffffff 0%, #edf3fb 100%);
|
|
box-shadow: 0 2px 6px 0 rgba(33, 91, 188, 40%);
|
|
border-radius: 10px 10px 0 0;
|
|
|
|
&.is-active {
|
|
// color: @primary-color;
|
|
color: #ffffff;
|
|
background: #0f69ff;
|
|
box-shadow: 0 2px 6px 0 rgba(33, 91, 188, 40%);
|
|
border-radius: 10px 10px 0 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 抽屉
|
|
.md-drawer__header {
|
|
position: relative;
|
|
height: 31px;
|
|
padding: 6px 12px;
|
|
color: rgba(0, 0, 0, 65%);
|
|
background-color: #ffffff;
|
|
border-bottom: 1px solid #e8e8e8;
|
|
border-radius: 4px 4px 0 0;
|
|
|
|
.md-drawer__title {
|
|
font-size: 12px;
|
|
font-weight: bolder;
|
|
}
|
|
}
|
|
|
|
.md-radio-group {
|
|
.md-radio__label {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.md-radio {
|
|
display: inline;
|
|
}
|
|
|
|
.md-radio__inner {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.md-radio__input.is-checked .md-radio__inner {
|
|
border-color: @primary-color;
|
|
}
|
|
|
|
.md-radio__input.is-checked .md-radio__inner::after {
|
|
background-color: @primary-color;
|
|
}
|
|
|
|
.md-radio__input.is-checked + .md-radio__label {
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
|
|
.md-input-number.md-input-number.is-controls-right .md-input__inner {
|
|
height: 26px;
|
|
line-height: 26px;
|
|
}
|
|
|
|
.md-input-number__decrease {
|
|
line-height: 0px !important;
|
|
height: 12px !important;
|
|
bottom: 4px !important;
|
|
}
|
|
|
|
.md-input-number__increase {
|
|
line-height: 0px !important;
|
|
height: 12px !important;
|
|
top: 4px !important;
|
|
}
|
|
|
|
.ant-collapse {
|
|
border: none;
|
|
background-color: #ffffff;
|
|
|
|
.ant-collapse-item {
|
|
// border: none;
|
|
.ant-collapse-header {
|
|
padding: 6px 16px;
|
|
color: grey;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
width: fit-content;
|
|
user-select: none;
|
|
|
|
.anticon.ant-collapse-arrow {
|
|
left: auto;
|
|
right: -10px;
|
|
padding: 7px;
|
|
}
|
|
}
|
|
|
|
.ant-collapse-content {
|
|
border: none;
|
|
|
|
.ant-collapse-content-box {
|
|
// padding: 0 16px;
|
|
padding: 0;
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 自定义collapse样式 */
|
|
.collapse-header-custom-show > .ant-collapse-item-disabled > .ant-collapse-header {
|
|
cursor: initial !important;
|
|
padding: 6px 16px !important;
|
|
}
|
|
|