@mdsfe/mds-ui
Version:
A set of enterprise-class Vue UI components.
297 lines (296 loc) • 8.5 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.mds-tooltip {
position: absolute;
border-radius: 4px;
padding: 10px;
font-size: 12px;
line-height: 1.5;
min-width: 10px;
word-wrap: break-word;
font-size: 14px;
}
.mds-tooltip .popper__arrow,
.mds-tooltip .popper__arrow::after {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.mds-tooltip .popper__arrow::after {
content: " ";
border-width: 5px;
}
.mds-tooltip-hidden {
display: none;
}
.mds-tooltip.dark-mode {
background: #303133;
color: #ffffff;
}
.mds-tooltip.light-mode {
background: #ffffff;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.mds-tooltip-placement-top,
.mds-tooltip-placement-top-start,
.mds-tooltip-placement-top-end {
margin-bottom: 9px;
}
.mds-tooltip-placement-right,
.mds-tooltip-placement-right-start,
.mds-tooltip-placement-right-end {
margin-left: 9px;
}
.mds-tooltip-placement-bottom,
.mds-tooltip-placement-bottom-start,
.mds-tooltip-placement-bottom-end {
margin-top: 9px;
}
.mds-tooltip-placement-left,
.mds-tooltip-placement-left-start,
.mds-tooltip-placement-left-end {
margin-right: 9px;
}
.mds-tooltip-placement-top .popper__arrow,
.mds-tooltip-placement-top-start .popper__arrow,
.mds-tooltip-placement-top-end .popper__arrow {
bottom: -6px;
border-width: 6px 6px 0;
border-top-color: #354052;
}
.mds-tooltip-placement-top .popper__arrow::after,
.mds-tooltip-placement-top-start .popper__arrow::after,
.mds-tooltip-placement-top-end .popper__arrow::after {
bottom: 1px;
border-top-color: #354052;
border-width: 5px 5px 0;
margin-left: -5px;
}
.mds-tooltip-placement-top.light-mode .popper__arrow,
.mds-tooltip-placement-top-start.light-mode .popper__arrow,
.mds-tooltip-placement-top-end.light-mode .popper__arrow {
border-top-color: #ebeef5;
}
.mds-tooltip-placement-top.light-mode .popper__arrow::after,
.mds-tooltip-placement-top-start.light-mode .popper__arrow::after,
.mds-tooltip-placement-top-end.light-mode .popper__arrow::after {
border-top-color: #fff;
}
.mds-tooltip-placement-right .popper__arrow,
.mds-tooltip-placement-right-start .popper__arrow,
.mds-tooltip-placement-right-end .popper__arrow {
left: -6px;
border-width: 6px 6px 6px 0;
border-right-color: #354052;
}
.mds-tooltip-placement-right .popper__arrow::after,
.mds-tooltip-placement-right-start .popper__arrow::after,
.mds-tooltip-placement-right-end .popper__arrow::after {
left: 1px;
border-right-color: #354052;
border-width: 5px 5px 5px 0;
bottom: -5px;
}
.mds-tooltip-placement-right.light-mode .popper__arrow,
.mds-tooltip-placement-right-start.light-mode .popper__arrow,
.mds-tooltip-placement-right-end.light-mode .popper__arrow {
border-right-color: #ebeef5;
}
.mds-tooltip-placement-right.light-mode .popper__arrow::after,
.mds-tooltip-placement-right-start.light-mode .popper__arrow::after,
.mds-tooltip-placement-right-end.light-mode .popper__arrow::after {
border-right-color: #fff;
}
.mds-tooltip-placement-left .popper__arrow,
.mds-tooltip-placement-left-start .popper__arrow,
.mds-tooltip-placement-left-end .popper__arrow {
right: -6px;
border-width: 6px 0 6px 6px;
border-left-color: #354052;
}
.mds-tooltip-placement-left .popper__arrow::after,
.mds-tooltip-placement-left-start .popper__arrow::after,
.mds-tooltip-placement-left-end .popper__arrow::after {
right: 1px;
border-left-color: #354052;
border-width: 5px 0 5px 5px;
margin-left: -5px;
bottom: -5px;
}
.mds-tooltip-placement-left.light-mode .popper__arrow,
.mds-tooltip-placement-left-start.light-mode .popper__arrow,
.mds-tooltip-placement-left-end.light-mode .popper__arrow {
border-left-color: #ebeef5;
}
.mds-tooltip-placement-left.light-mode .popper__arrow::after,
.mds-tooltip-placement-left-start.light-mode .popper__arrow::after,
.mds-tooltip-placement-left-end.light-mode .popper__arrow::after {
border-left-color: #fff;
}
.mds-tooltip-placement-bottom .popper__arrow,
.mds-tooltip-placement-bottom-start .popper__arrow,
.mds-tooltip-placement-bottom-end .popper__arrow {
top: -6px;
border-width: 0 6px 6px;
border-bottom-color: #354052;
}
.mds-tooltip-placement-bottom .popper__arrow::after,
.mds-tooltip-placement-bottom-start .popper__arrow::after,
.mds-tooltip-placement-bottom-end .popper__arrow::after {
top: 1px;
border-top-color: #354052;
border-width: 0 5px 5px;
margin-left: -5px;
}
.mds-tooltip-placement-bottom.light-mode .popper__arrow,
.mds-tooltip-placement-bottom-start.light-mode .popper__arrow,
.mds-tooltip-placement-bottom-end.light-mode .popper__arrow {
border-bottom-color: #ebeef5;
}
.mds-tooltip-placement-bottom.light-mode .popper__arrow::after,
.mds-tooltip-placement-bottom-start.light-mode .popper__arrow::after,
.mds-tooltip-placement-bottom-end.light-mode .popper__arrow::after {
border-bottom-color: #fff;
}
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.mds-slot-table-block {
background-color: #fff;
position: relative;
}
.mds-slot-table {
width: 100%;
border-spacing: 0px;
border-collapse: collapse;
table-layout: fixed;
color: #354052;
}
.mds-slot-table-loading-container {
transition: all .3s;
}
.mds-slot-table-tooltip::-webkit-scrollbar {
/*滚动条整体样式*/
width: 5px;
/*高宽分别对应横竖滚动条的尺寸*/
}
.mds-slot-table-tooltip::-webkit-scrollbar-track {
/*滚动条里面轨道*/
background: #ffffff;
}
.mds-slot-table-tooltip::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 10px;
height: 24px;
background: #d8dce6;
}
.mds-slot-table-slot {
display: none;
}
th.mds-slot-table-normal {
padding: 16px 24px;
}
td.mds-slot-table-normal .cell {
padding: 16px 24px;
}
th.mds-slot-table-mini {
font-size: 12px;
padding: 10px 16px;
}
td.mds-slot-table-mini .cell {
padding: 10px 16px;
}
.mds-slot-table-header {
overflow: hidden;
}
.mds-slot-table-head-tr {
background: #fafafd;
}
.mds-slot-table-head--th {
font-weight: 500;
}
.mds-slot-table.mds-slot-table-head {
user-select: none;
}
.mds-slot-table-body {
margin-top: -1px;
overflow: auto;
}
.mds-slot-table-void {
min-height: 280px;
color: #7f8fa4;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.mds-slot-table-void .empty-img {
width: 128px;
height: 111px;
}
.mds-slot-table-void .empty-text {
margin-top: 16px;
}
.mds-slot-table.mds-slot-table__border + .mds-slot-table-void {
border: solid 1px #dddddd;
}
.mds-slot-table.mds-slot-table__stripe .mds-slot-table-row:nth-child(even) {
background-color: #fafafd;
}
.mds-slot-table .mds-slot-table-row:hover {
background-color: #eef8ff;
}
.mds-slot-table .mds-slot-table-column {
overflow: hidden;
vertical-align: middle;
border-bottom: 1px solid #f0f2f5;
}
.mds-slot-table .mds-slot-table-column.mds-slot-table-column--light {
color: #0364ff;
}
.mds-slot-table .mds-slot-table-column.mds-slot-table-column--light .cell {
cursor: pointer;
}
.mds-slot-table .mds-slot-table-column.mds-slot-table-column--hoverlight:hover {
color: #2c85ff;
}
.mds-slot-table .mds-slot-table-column.mds-slot-table-column--hoverlight:hover .cell {
cursor: pointer;
}
.mds-slot-table .mds-slot-table-column.is-center {
text-align: center;
}
.mds-slot-table .mds-slot-table-column.is-left {
text-align: left;
}
.mds-slot-table .mds-slot-table-column.is-right {
text-align: right;
}
.mds-slot-table .mds-slot-table-column.elli {
overflow: hidden;
white-space: nowrap;
word-break: break-all;
text-overflow: ellipsis;
}
.mds-slot-table .mds-slot-table-column .elli {
overflow: hidden;
white-space: nowrap;
word-break: break-all;
text-overflow: ellipsis;
}
.mds-slot-table .mds-slot-table-column .cell {
line-height: 22px;
}
.mds-slot-table.mds-slot-table__border .mds-slot-table-column {
border: 1px solid #f0f2f5;
}
.mds-slot-table.mds-slot-table__border .mds-slot-table-column.mds-slot-table-th-gutter {
border-bottom: 2px solid #f0f2f5;
}
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */