* {
|
padding: 0;
|
margin: 0;
|
list-style: none;
|
font-style: normal;
|
-webkit-tap-highlight-color: transparent; /*防止点击闪烁*/
|
-webkit-text-size-adjust: none; /*缩放网页,文字大小不变*/
|
font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
|
-webkit-font-smoothing: antialiased;
|
box-sizing: border-box;
|
font-weight: normal;
|
border-style: solid;
|
border-width: 0;
|
border-color: transparent;
|
&:hover {
|
outline: none;
|
}
|
}
|
::selection {
|
color: #ffffff;
|
background: var(--mk-sys-color);
|
}
|
::-moz-selection {
|
color: #ffffff;
|
background: var(--mk-sys-color);
|
}
|
::-webkit-selection {
|
color: #ffffff;
|
background: var(--mk-sys-color);
|
}
|
|
.table-col-1, .table-col-2, .table-col-3, .table-col-4 {
|
.ant-table colgroup > col.ant-table-selection-col {
|
width: 40px!important;
|
}
|
}
|
.table-col-5, .table-col-6, .table-col-7 {
|
.ant-table colgroup > col.ant-table-selection-col {
|
width: 50px!important;
|
}
|
}
|
|
/* 设置iconfont标签font-family */
|
[class^="icon-"],[class*=" icon-"] {
|
font-family: "iconfont";
|
font-size: 16px;
|
font-style: normal;
|
-webkit-font-smoothing: antialiased;
|
-moz-osx-font-smoothing: grayscale;
|
}
|
|
/*去除虚线*/
|
input:focus, select:focus, textarea:focus, button:focus {
|
outline: none;
|
}
|
input {
|
border: none
|
}
|
|
/*背景色*/
|
html, body {
|
--mk-sys-color: #1890ff;
|
width: 100%;
|
font-size: 14px;
|
}
|
#root {
|
height: 100%;
|
}
|
|
html::-webkit-scrollbar {
|
width: 8px;
|
}
|
html::-webkit-scrollbar-thumb {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
|
background: rgba(0, 0, 0, 0.13);
|
border-radius: 5px;
|
}
|
html::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
border-radius: 3px;
|
}
|
|
input[type="button"], input[type="submit"], input[type="search"], input[type="reset"] {
|
-webkit-appearance: none;
|
}
|
|
a {
|
text-decoration: none;
|
/*ios禁止页面在新窗口打开*/
|
-webkit-touch-callout: none;
|
}
|
.ant-menu-submenu-popup.ant-menu-dark .ant-menu-item.ant-menu-item-selected {
|
background-color: unset;
|
color: unset;
|
}
|
.mk-side-menu.ant-menu-dark .ant-menu-item.ant-menu-item-selected {
|
background-color: unset;
|
color: unset;
|
}
|
|
// 重置按钮中文字与图标距离
|
.ant-btn > .anticon + span, .ant-btn > span + .anticon {
|
margin-left: 5px;
|
}
|
|
// 设置下拉搜索滚动条样式
|
.ant-select-dropdown-menu::-webkit-scrollbar {
|
width: 10px;
|
height: 10px;
|
}
|
.ant-select-dropdown-menu::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
|
background: rgba(0, 0, 0, 0.13);
|
}
|
.ant-select-dropdown-menu::-webkit-scrollbar-track {/*滚动条里面轨道*/
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
|
.ant-message {
|
top: 50px;
|
z-index: 1080;
|
}
|
|
// 重置穿梭框滚动条
|
.ant-transfer-list-content::-webkit-scrollbar {
|
width: 7px;
|
}
|
.ant-transfer-list-content::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
|
background: rgba(0, 0, 0, 0.13);
|
}
|
.ant-transfer-list-content::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
|
// 重置时间插件时间滚动条
|
.ant-calendar-time-picker-select {
|
overflow-y: auto!important;
|
}
|
.ant-calendar-time-picker-select::-webkit-scrollbar {
|
width: 6px;
|
}
|
.ant-calendar-time-picker-select::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
|
background: rgba(0, 0, 0, 0.08);
|
}
|
.ant-calendar-time-picker-select::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
// 重置模态框滚动条
|
.ant-modal-wrap::-webkit-scrollbar, .ant-drawer-wrapper-body::-webkit-scrollbar {
|
width: 7px;
|
}
|
.ant-modal-wrap::-webkit-scrollbar-thumb, .ant-drawer-wrapper-body::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
background: rgba(0, 0, 0, 0.1);
|
}
|
.ant-modal-wrap::-webkit-scrollbar-track, .ant-drawer-wrapper-body::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
|
.ant-modal-mask {
|
z-index: 1080!important;
|
}
|
.ant-modal-wrap {
|
z-index: 1080!important;
|
}
|
.ant-form-item-children {
|
width: 100%;
|
display: inline-block;
|
.ant-calendar-picker {
|
width: 100%!important;
|
}
|
}
|
.ant-calendar-picker-container {
|
z-index: 1090!important;
|
}
|
.ant-notification {
|
z-index: 1100!important;
|
}
|
|
.ant-select-dropdown {
|
z-index: 1090!important;
|
}
|
|
// .ant-dropdown {
|
// z-index: 1090!important;
|
// }
|
|
.mk-normal-dropdown {
|
.ant-dropdown-menu {
|
max-height: 250px;
|
overflow-y: auto;
|
}
|
.ant-dropdown-menu::-webkit-scrollbar {
|
width: 7px;
|
}
|
.ant-dropdown-menu::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
|
background: rgba(0, 0, 0, 0.13);
|
}
|
.ant-dropdown-menu::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
}
|
|
// 确认提示框高度
|
.ant-modal.ant-modal-confirm {
|
top: 38vh;
|
}
|
|
.ant-popover {
|
z-index: 1070!important;
|
}
|
// 气泡确认框
|
.ant-popover.popover-confirm {
|
z-index: 1080!important;
|
}
|
.ant-message {
|
z-index: 1110!important;
|
}
|
|
.ant-notification-notice.notification-custom-error {
|
background: #f5222d;
|
.anticon.ant-notification-notice-icon-error {
|
color: #ffffff;
|
}
|
.ant-notification-notice-message {
|
color: #ffffff;
|
}
|
.ant-notification-close-icon {
|
color: #ffffff;
|
}
|
}
|
.ant-notification .ant-notification-notice-message {
|
word-break: break-all;
|
}
|
|
// 重置提示框
|
.ant-tooltip {
|
z-index: 1090!important;
|
.ant-tooltip-inner {
|
letter-spacing: 1px;
|
}
|
}
|
.ant-tooltip.middle {
|
max-width: 320px!important;
|
}
|
|
// 关联选择
|
.ant-cascader-menus {
|
z-index: 1090!important;
|
.ant-cascader-menu::-webkit-scrollbar {
|
width: 7px;
|
}
|
.ant-cascader-menu::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
|
background: rgba(0, 0, 0, 0.13);
|
}
|
.ant-cascader-menu::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
}
|
|
// 消息提示
|
.ant-notification-notice.notification-custom-error {
|
background: #f5222d;
|
.anticon.ant-notification-notice-icon-error {
|
color: #ffffff;
|
}
|
.ant-notification-notice-message {
|
color: #ffffff;
|
}
|
.ant-notification-close-icon {
|
color: #ffffff;
|
}
|
}
|
.ant-notification .ant-notification-notice-message {
|
word-break: break-all;
|
}
|
|
.ant-modal-wrap.popview-modal {
|
.ant-modal {
|
top: 70px;
|
}
|
.ant-modal-body {
|
min-height: 200px;
|
max-height: calc(100vh - 210px);
|
overflow-y: auto;
|
}
|
.ant-modal-body::-webkit-scrollbar {
|
width: 7px;
|
}
|
.ant-modal-body::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
|
background: rgba(0, 0, 0, 0.13);
|
}
|
.ant-modal-body::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
.ant-modal-footer {
|
.ant-btn:not(.ant-btn-primary):active, .ant-btn:not(.ant-btn-primary).active, .ant-btn:not(.ant-btn-primary):hover, .ant-btn:not(.ant-btn-primary):focus {
|
color: var(--mk-sys-color);
|
border-color: var(--mk-sys-color);
|
}
|
}
|
}
|
|
// 设置模态框样式,规定最大最小高度,重置滚动条
|
.action-modal {
|
.ant-modal {
|
max-width: 95vw;
|
top: 70px;
|
|
.ant-modal-title {
|
height: 22px;
|
.mk-modal-icon-def {
|
margin-right: 10px;
|
background: transparent!important;
|
}
|
.mk-modal-icon-circle {
|
display: inline-block;
|
border-radius: 30px;
|
margin-right: 10px;
|
margin-top: -5px;
|
color: #ffffff!important;
|
width: 30px;
|
height: 30px;
|
text-align: center;
|
line-height: 30px;
|
}
|
}
|
}
|
.ant-modal-body {
|
max-height: calc(100vh - 205px);
|
min-height: 150px;
|
overflow-y: auto;
|
padding-bottom: 35px;
|
}
|
.ant-modal-body::-webkit-scrollbar {
|
width: 7px;
|
height: 7px;
|
}
|
.ant-modal-body::-webkit-scrollbar-thumb {
|
border-radius: 5px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
|
background: rgba(0, 0, 0, 0.13);
|
}
|
.ant-modal-body::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
|
border-radius: 3px;
|
border: 1px solid rgba(0, 0, 0, 0.07);
|
background: rgba(0, 0, 0, 0);
|
}
|
|
.ant-modal-footer {
|
.ant-btn:not(.ant-btn-primary):active, .ant-btn:not(.ant-btn-primary).active, .ant-btn:not(.ant-btn-primary):hover, .ant-btn:not(.ant-btn-primary):focus {
|
color: var(--mk-sys-color);
|
border-color: var(--mk-sys-color);
|
}
|
.ant-btn-primary {
|
background-color: var(--mk-sys-color);
|
border-color: var(--mk-sys-color);
|
}
|
}
|
}
|
.moveable-modal {
|
overflow-x: hidden!important;
|
.ant-modal-header {
|
cursor: move;
|
}
|
}
|
|
.ant-drawer {
|
z-index: 1080!important;
|
}
|
|
.mk-popover-control-wrap {
|
.ant-popover-content {
|
position: relative;
|
top: 5px;
|
.ant-popover-arrow {
|
bottom: -3.8px!important;
|
}
|
.mk-popover-control {
|
white-space: nowrap;
|
i, span.anticon {
|
padding: 5px 8px;
|
cursor: pointer;
|
font-size: 16px;
|
}
|
.edit {
|
color: #1890ff;
|
}
|
.plus {
|
color: #26C281;
|
}
|
.copy {
|
color: #26C281;
|
}
|
.close {
|
color: #ff4d4f;
|
}
|
.profile {
|
color: purple;
|
}
|
.style {
|
color: orange;
|
}
|
.model-datasource {
|
display: inline-block;
|
position: unset;
|
}
|
}
|
.mk-popover-control::after {
|
position: absolute;
|
content: ' ';
|
width: 100%;
|
height: 12px;
|
bottom: -12px;
|
left: 0px;
|
}
|
.ant-popover-inner-content {
|
padding: 5px 20px;
|
}
|
}
|
}
|
|
.ant-input[disabled] {
|
background-color: #fafafa!important;
|
}
|
.ant-btn[disabled] {
|
background-color: transparent!important;
|
border-color: rgba(0, 0, 0, 0.35)!important;
|
color: rgba(0, 0, 0, 0.35)!important;
|
}
|
.ant-btn.ant-btn-link {
|
border-width: 0;
|
}
|
.button-list {
|
.ant-btn.ant-btn-link {
|
border-width: 1px;
|
}
|
}
|
|
.ant-tabs .ant-tabs-top-content.ant-tabs-content-animated { // 去除切换时的动画效果
|
transition: margin-left 0s cubic-bezier(0.645, 0.045, 0.355, 1)!important;
|
}
|
|
.ant-progress-line.square {
|
.ant-progress-inner {
|
border-radius: 0;
|
.ant-progress-bg {
|
border-radius: 0;
|
}
|
}
|
}
|
|
.mk-form-tip {
|
color: #c49f47;
|
margin-right: 3px;
|
}
|
|
div.ant-input-number {
|
width: 100%;
|
}
|
|
.ant-progress {
|
.ant-progress-circle-trail {
|
stroke: inherit!important;
|
}
|
.ant-progress-text {
|
color: inherit!important;
|
}
|
}
|
.ant-table.ant-table-mini .ant-table-thead > tr > th {
|
padding: 8px 8px!important;
|
}
|
.ant-table.ant-table-mini .ant-table-tbody > tr > td {
|
padding: 2px 8px!important;
|
line-height: 1.5;
|
}
|
.ant-calendar-picker-container {
|
.ant-calendar-range {
|
.ant-calendar-selected-start-date .ant-calendar-date,
|
.ant-calendar-selected-end-date .ant-calendar-date {
|
background: var(--mk-sys-color);
|
}
|
|
.ant-calendar-in-range-cell::before {
|
background: var(--mk-sys-color1);
|
}
|
|
.ant-calendar-selected-start-date .ant-calendar-date:hover,
|
.ant-calendar-selected-end-date .ant-calendar-date:hover {
|
background: var(--mk-sys-color);
|
}
|
}
|
|
.ant-calendar-date:hover {
|
background: var(--mk-sys-color1);
|
}
|
|
.ant-calendar-date:active {
|
background: var(--mk-sys-color5);
|
}
|
|
.ant-calendar-today:not(.ant-calendar-disabled-cell) {
|
.ant-calendar-date {
|
color: var(--mk-sys-color);
|
border-color: var(--mk-sys-color4);
|
}
|
}
|
.ant-calendar-today.ant-calendar-disabled-cell {
|
.ant-calendar-date {
|
color: var(--mk-sys-color);
|
}
|
.ant-calendar-date::before {
|
border-color: var(--mk-sys-color4);
|
}
|
}
|
|
.ant-calendar-header a:hover {
|
color: var(--mk-sys-color5);
|
}
|
.ant-calendar-year-panel-header a:hover {
|
color: var(--mk-sys-color5);
|
}
|
.ant-calendar-month-panel-cell-disabled .ant-calendar-month-panel-month,
|
.ant-calendar-month-panel-cell-disabled .ant-calendar-month-panel-month:hover {
|
color: rgba(0, 0, 0, 0.25);
|
}
|
.ant-calendar-decade-panel-decade:hover {
|
background: var(--mk-sys-color1);
|
}
|
|
.ant-calendar-decade-panel-selected-cell .ant-calendar-decade-panel-decade:hover,
|
.ant-calendar-decade-panel-selected-cell .ant-calendar-decade-panel-decade {
|
color: #ffffff;
|
background: var(--mk-sys-color);
|
}
|
|
.ant-calendar-year-panel-selected-cell .ant-calendar-year-panel-year {
|
background: var(--mk-sys-color);
|
}
|
.ant-calendar-year-panel-selected-cell .ant-calendar-year-panel-year:hover {
|
color: #fff;
|
background: var(--mk-sys-color);
|
}
|
.ant-calendar-year-panel-year:hover {
|
background: var(--mk-sys-color1);
|
}
|
|
.ant-calendar-month-panel-selected-cell:not(.ant-calendar-month-panel-cell-disabled) .ant-calendar-month-panel-month {
|
background: var(--mk-sys-color);
|
}
|
.ant-calendar-month-panel-selected-cell:not(.ant-calendar-month-panel-cell-disabled) .ant-calendar-month-panel-month:hover {
|
color: #fff;
|
background: var(--mk-sys-color);
|
}
|
.ant-calendar-month-panel-month:hover {
|
background: var(--mk-sys-color1);
|
}
|
|
.ant-calendar-time-picker-select li:hover {
|
background: var(--mk-sys-color1);
|
}
|
.ant-calendar-time-picker-select li:focus {
|
color: var(--mk-sys-color);
|
}
|
|
.ant-calendar {
|
tr td {
|
.ant-calendar-year-panel-year.ant-year-selected {
|
color: #fff;
|
background: var(--mk-sys-color);
|
}
|
.ant-calendar-year-panel-year:hover {
|
color: var(--mk-sys-color5);
|
background: var(--mk-sys-color1);
|
}
|
}
|
}
|
|
.ant-calendar-time-picker-btn {
|
color: var(--mk-sys-color);
|
}
|
.ant-calendar {
|
.ant-calendar-ok-btn {
|
background-color: var(--mk-sys-color);
|
border-color: var(--mk-sys-color);
|
}
|
|
.ant-calendar-ok-btn:hover,
|
.ant-calendar-ok-btn:focus,
|
.ant-calendar-ok-btn:active,
|
.ant-calendar-ok-btn.active {
|
background-color: var(--mk-sys-color);
|
border-color: var(--mk-sys-color);
|
}
|
}
|
.ant-calendar-footer-extra {
|
.ant-tag-blue {
|
color: var(--mk-sys-color);
|
background: var(--mk-sys-color1);
|
border-color: var(--mk-sys-color3);
|
}
|
}
|
|
.ant-calendar-selected-day .ant-calendar-date {
|
background: var(--mk-sys-color2);
|
}
|
.ant-calendar-today-btn {
|
color: var(--mk-sys-color);
|
}
|
|
.ant-calendar-week-number {
|
.ant-calendar-body tr.ant-calendar-active-week {
|
background: var(--mk-sys-color2);
|
}
|
.ant-calendar-body tr:hover {
|
background: var(--mk-sys-color1);
|
}
|
}
|
}
|
.ant-calendar-quarter-picker .ant-calendar {
|
tr:not(.ant-quarter-selected):hover {
|
background: var(--mk-sys-color1);
|
}
|
tr.ant-quarter-selected {
|
background: var(--mk-sys-color2);
|
}
|
}
|
.ant-calendar-picker:focus .ant-calendar-picker-input:not(.ant-input-disabled) {
|
border-color: var(--mk-sys-color5)!important;
|
box-shadow: 0 0 0 2px var(--mk-sys-color2)!important;
|
}
|
.mk-date-picker.minute {
|
.ant-calendar-time-picker-combobox {
|
.ant-calendar-time-picker-select {
|
width: 50%;
|
}
|
|
>.ant-calendar-time-picker-select:last-child {
|
display: none;
|
}
|
}
|
}
|
.mk-date-picker.hour {
|
.ant-calendar-time-picker-combobox {
|
.ant-calendar-time-picker-select {
|
width: 100%;
|
}
|
|
>.ant-calendar-time-picker-select:not(:first-child) {
|
display: none;
|
}
|
}
|
}
|
.mk-button-progress {
|
position: fixed!important;
|
top: 0px;
|
left: 0px;
|
z-index: 1100;
|
width: 100vw!important;
|
.ant-progress-outer {
|
.ant-progress-inner {
|
vertical-align: top;
|
background-color: transparent;
|
.ant-progress-bg {
|
height: 4px!important;
|
background-color: var(--mk-sys-color);
|
}
|
}
|
}
|
}
|
|
.video-wrap {
|
overflow: hidden;
|
.video-react .video-react-poster {
|
background-size: cover;
|
}
|
}
|
|
.table-vertical-top {
|
table td {
|
vertical-align: top;
|
}
|
}
|
.table-vertical-bottom {
|
table td {
|
vertical-align: bottom;
|
}
|
}
|
|
// 系统色设置
|
.mk-main-view {
|
display: flex;
|
flex: auto;
|
min-height: 100%;
|
}
|
|
.component-wrap >.ant-col {
|
min-height: 0;
|
}
|
|
.ant-col.ant-col-0 {
|
display: inline-block;
|
}
|
.mk-cell-btn.ant-col-0 {
|
width: auto;
|
float: left;
|
}
|
|
.ant-dropdown {
|
.ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu-title:hover {
|
background-color: var(--mk-sys-color1);
|
}
|
}
|
|
.ant-radio-group {
|
.ant-radio-button-wrapper.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
|
color: var(--mk-sys-color);
|
border-color: var(--mk-sys-color);
|
box-shadow: -1px 0 0 0 var(--mk-sys-color);
|
}
|
.ant-radio-button-wrapper.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover {
|
color: var(--mk-sys-color);
|
border-color: var(--mk-sys-color);
|
box-shadow: -1px 0 0 0 var(--mk-sys-color);
|
}
|
.ant-radio-button-wrapper:not(.ant-radio-button-wrapper-checked):not(.ant-radio-button-wrapper-disabled):hover {
|
color: var(--mk-sys-color);
|
}
|
}
|