@ttk/component
Version:
ttk组件库
308 lines (307 loc) • 8.54 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
#components-table-demo-drag-sorting tr.drop-over-downward td {
border-bottom: 2px dashed #1890ff ;
}
#components-table-demo-drag-sorting tr.drop-over-upward td {
border-top: 2px dashed #1890ff ;
}
.emptyShowScroll .ant-table-body {
z-index: 9;
width: 100%;
position: relative;
background-color: transparent ;
overflow: auto;
}
.emptyShowScroll .ant-table-fixed-right,
.emptyShowScroll .ant-table-fixed-left {
z-index: 99;
}
.emptyShowScroll .ant-table-placeholder {
padding: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
border: none ;
}
.emptyShowScroll .ant-table-placeholder .mk-nodata {
margin: 0 ;
padding: 0 ;
}
.ant-table {
font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.mk-table {
height: 100%;
overflow-x: hidden;
overflow-y: hidden;
border-left: 1px solid #d9d9d9;
border-bottom: 1px solid #d9d9d9;
border-top: 0;
font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.mk-table .ant-table-thead > tr > th:last-child {
border-radius: 0;
}
.mk-table .ant-table-thead > tr > th:first-child {
border-radius: 0;
}
.mk-table table {
table-layout: fixed;
border-radius: 0px;
}
.mk-table table th {
position: relative;
}
.mk-table table th > span:first-child {
line-height: 36px;
}
.mk-table table td > div {
display: inline;
}
.mk-table table .react-resizable-handle {
position: absolute;
right: 0;
top: 0;
width: 10px;
height: 100%;
cursor: col-resize;
}
.mk-table table .table-center-item {
text-align: center;
}
.mk-table .ant-table {
border-radius: 0;
}
.mk-table .ant-table::after {
content: '';
height: 100%;
background: #d9d9d9;
width: 1px;
position: absolute;
right: 0;
top: 0;
}
.mk-table .ant-table-bordered .ant-table-fixed-right table {
border-left-color: #d9d9d9;
border-bottom-color: #d9d9d9;
}
.mk-table .ant-table .ant-table-fixed tr {
background: rgba(0, 0, 0, 0);
}
.mk-table .ant-table .ant-table-fixed tr td {
height: 37px ;
text-overflow: ellipsis;
border-right: 1px solid #d9d9d9;
}
.mk-table .ant-table .ant-table-fixed tr:hover td {
background: rgba(65, 106, 170, 0.07);
}
.mk-table .ant-table .mk-active {
background: #fff ;
}
.mk-table .ant-table .mk-active td {
background: rgba(65, 106, 170, 0.07) ;
}
.mk-table .ant-table .ant-table-fixed .mk-active {
background: #fff ;
}
.mk-table .ant-table .ant-table-fixed .mk-active td {
background: rgba(65, 106, 170, 0.07) ;
}
.mk-table .ant-table .ant-table-fixed tr.mk-active:hover td {
background: rgba(65, 106, 170, 0.1) ;
}
.mk-table .ant-table-fixed-right .ant-table-tbody tr:hover > td {
background: rgba(65, 106, 170, 0.07);
}
.mk-table .ant-table-fixed-right .ant-table-tbody .mk-active td {
background: rgba(65, 106, 170, 0.07) ;
}
.mk-table .ant-table-tbody tr:nth-child(odd) {
background: #ffffff;
}
.mk-table .ant-table-tbody tr:nth-child(even) td {
background: #f8f8f8;
}
.mk-table .ant-table-tbody tr:hover td {
background: rgba(65, 106, 170, 0.07);
}
.mk-table .ant-table-scroll .ant-table-header .ant-table-fixed {
border-left: none;
}
.mk-table .ant-table-header {
scrollbar-base-color: #eaeaea;
scrollbar-3dlight-color: #eaeaea;
scrollbar-highlight-color: #eaeaea;
scrollbar-track-color: #eaeaea;
scrollbar-arrow-color: #eaeaea;
scrollbar-shadow-color: #eaeaea;
}
.mk-table .ant-table-header .ant-table-fixed {
border-top: 1px solid #d9d9d9;
}
.mk-table .ant-table-header .ant-table-fixed .ant-table-thead {
border-left: 1px solid #d9d9d9;
}
.mk-table .ant-table-body > table {
border-top: 1px solid #d9d9d9;
border-left: 0px;
border-right: 0px;
border-bottom: 0px;
}
.mk-table .ant-table-header::-webkit-scrollbar {
width: 10px;
height: 6px;
background: #eaeaea;
}
.mk-table .ant-table-fixed-header .ant-table-fixed-right,
.mk-table .ant-table-fixed-right table {
border-radius: 0;
}
.mk-table .ant-table-fixed-header .ant-table-fixed-right .ant-table-body-outer,
.mk-table .ant-table-fixed-right table .ant-table-body-outer {
margin-bottom: -10px ;
}
.mk-table .ant-table-fixed-header .ant-table-fixed-left,
.mk-table .ant-table-fixed-left table {
border-radius: 0;
}
.mk-table .ant-table-fixed-header .ant-table-fixed-left .ant-table-body-outer,
.mk-table .ant-table-fixed-left table .ant-table-body-outer {
margin-bottom: -10px ;
}
.mk-table .ant-table-body,
.mk-table .ant-table-fixed-right .ant-table-body-inner,
.mk-table .ant-table-fixed-left .ant-table-body-inner {
-webkit-overflow-scrolling: auto;
}
.mk-table .ant-table-body::-webkit-scrollbar,
.mk-table .ant-table-fixed-right .ant-table-body-inner::-webkit-scrollbar,
.mk-table .ant-table-fixed-left .ant-table-body-inner::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.mk-table .ant-table-body::-webkit-scrollbar-track,
.mk-table .ant-table-fixed-right .ant-table-body-inner::-webkit-scrollbar-track,
.mk-table .ant-table-fixed-left .ant-table-body-inner::-webkit-scrollbar-track {
-webkit-box-shadow: none;
border-radius: 0;
background: #eaeaea;
padding: 0px 5px;
width: 10px;
border-left: none;
border-right: none;
}
.mk-table .ant-table-body::-webkit-scrollbar-thumb,
.mk-table .ant-table-fixed-right .ant-table-body-inner::-webkit-scrollbar-thumb,
.mk-table .ant-table-fixed-left .ant-table-body-inner::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #eaeaea;
padding-top: 4px;
width: 10px;
-webkit-box-shadow: none;
background: #c2c2c2;
border-left: none;
border-right: none;
}
.mk-table .ant-table-body::-webkit-scrollbar-thumb:hover,
.mk-table .ant-table-fixed-right .ant-table-body-inner::-webkit-scrollbar-thumb:hover,
.mk-table .ant-table-fixed-left .ant-table-body-inner::-webkit-scrollbar-thumb:hover {
border-radius: 10px;
-webkit-box-shadow: none;
border-left: none;
border-right: none;
background: rgba(114, 114, 114, 0.8);
}
.mk-table .ant-table-thead > tr th {
background-color: #eaeaea;
color: #333333;
font-size: 13px;
font-weight: bold;
text-align: center;
padding: 0 4px;
white-space: nowrap;
overflow: hidden;
border-color: #d9d9d9 ;
text-overflow: ellipsis;
height: 100%;
}
.mk-table .ant-table-tbody {
background: #fff;
}
.mk-table .ant-table-tbody .table_center {
text-align: center;
}
.mk-table .ant-table-tbody tr:not(.lazy_table_tr) {
height: 37px ;
box-sizing: border-box;
}
.mk-table .ant-table-tbody tr:not(.lazy_table_tr) td {
height: 37px ;
font-size: 10px;
padding: 0 4px;
border-top: 0;
border-bottom: 1px solid #d9d9d9;
border-left: 0;
border-color: #d9d9d9;
box-sizing: border-box;
color: #333333;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.mk-table .ant-table-tbody tr:last-child td {
border-bottom: 1px solid #d9d9d9;
}
.mk-table .ant-table-tbody .lazy_table_last td {
display: none;
}
.mk-table .mk-table-checkbox {
text-align: center;
vertical-align: middle;
width: 34px ;
}
.mk-table .ant-table-bordered.ant-table-empty .ant-table-body::after {
border-right: 1px solid #d9d9d9;
content: '';
}
.mk-table .ant-table-bordered.ant-table-empty .ant-table-placeholder {
position: absolute;
top: calc(50% + 45px);
left: 50%;
transform: translate3d(-50%, -50%, 0);
border: none;
padding: 0;
background: none;
}
.mk-table.mk-table-loading {
position: relative;
}
.mk-table.mk-table-loading .ant-spin-nested-loading {
position: relative;
width: 100%;
height: 100%;
}
.mk-table.mk-table-loading .ant-spin-nested-loading > div > .ant-spin {
max-height: 100%;
}
.ant-table-fixed-header .ant-table-body table {
border-top: none;
}
.ant-table .ant-table-fixed-right {
box-shadow: -6px 0 6px -4px rgba(0, 0, 0, 0.15) ;
}
.ant-table .ant-table-fixed-right .ant-table-fixed .ant-table-thead .table_fixed_width.react-resizable {
height: auto ;
}
.ant-table .ant-table-fixed-left .ant-table-header {
width: -moz-min-content;
}
.ant-table .ant-table-fixed-left .ant-table-body-outer .ant-table-fixed {
width: -moz-min-content;
}