* {
|
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;
|
}
|
}
|
|
/* 设置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 {
|
width: 100%;
|
font-size: 14px;
|
// .ant-table, .ant-dropdown {
|
// color: rgba(0, 0, 0, 0.85);
|
// }
|
}
|
#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:hover::-webkit-scrollbar {
|
width: 7px;
|
}
|
.ant-calendar-time-picker-select:hover::-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-calendar-time-picker-select:hover::-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%;
|
}
|
}
|
.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-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-modal.popview-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-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);
|
}
|
}
|
// 设置模态框样式,规定最大最小高度,重置滚动条
|
.action-modal {
|
.ant-modal {
|
max-width: 95vw;
|
top: 70px;
|
}
|
.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-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 {
|
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-table.ant-table-mini .ant-table-thead > tr > th {
|
// padding: 8px 4px;
|
// }
|
// .ant-table.ant-table-mini .ant-table-tbody > tr > td {
|
// padding: 4px 4px;
|
// }
|