135 lines
2.8 KiB
SCSS
135 lines
2.8 KiB
SCSS
![]() |
/**Variable**/
|
||
|
|
||
|
/*tppltip*/
|
||
|
.vxe-table--tooltip-wrapper {
|
||
|
display: none;
|
||
|
position: absolute;
|
||
|
top: -100%;
|
||
|
left: -100%;
|
||
|
font-size: 12px;
|
||
|
max-width: 400px;
|
||
|
border-radius: $vxe-border-radius;
|
||
|
padding: 8px 12px;
|
||
|
white-space: normal;
|
||
|
word-break: break-word;
|
||
|
box-shadow: 2px 2px 4px -2px rgba(0,0,0,.2);
|
||
|
color: $vxe-font-color;
|
||
|
font-family: $vxe-font-family;
|
||
|
&:not(.is--enterable) {
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
&.is--visible {
|
||
|
display: block;
|
||
|
}
|
||
|
&.is--arrow {
|
||
|
.vxe-table--tooltip-arrow {
|
||
|
display: block;
|
||
|
}
|
||
|
}
|
||
|
&.is--enterable {
|
||
|
&:after {
|
||
|
content: "";
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
width: 100%;
|
||
|
height: 6px;
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
}
|
||
|
.vxe-table--tooltip-content {
|
||
|
white-space: pre-line;
|
||
|
}
|
||
|
.vxe-table--tooltip-arrow {
|
||
|
display: none;
|
||
|
position: absolute;
|
||
|
border-color: transparent;
|
||
|
border-width: 6px;
|
||
|
border-style: solid;
|
||
|
left: 50%;
|
||
|
transform: translateX(-6px);
|
||
|
&:before {
|
||
|
content: "";
|
||
|
position: absolute;
|
||
|
border-color: transparent;
|
||
|
border-width: 5px;
|
||
|
border-style: solid;
|
||
|
left: -5px;
|
||
|
}
|
||
|
}
|
||
|
&.placement--top {
|
||
|
&.is--enterable {
|
||
|
&:after {
|
||
|
bottom: -6px;
|
||
|
}
|
||
|
}
|
||
|
.vxe-table--tooltip-arrow {
|
||
|
bottom: -12px;
|
||
|
&:before {
|
||
|
top: -7px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
&.placement--bottom {
|
||
|
&.is--enterable {
|
||
|
&:after {
|
||
|
top: -6px;
|
||
|
}
|
||
|
}
|
||
|
.vxe-table--tooltip-arrow {
|
||
|
top: -12px;
|
||
|
&:before {
|
||
|
top: -4px;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
.vxe-table--tooltip-wrapper {
|
||
|
&.theme--light {
|
||
|
background-color: $vxe-tooltip-light-background-color;
|
||
|
border: 1px solid $vxe-input-border-color;
|
||
|
&.placement--top {
|
||
|
.vxe-table--tooltip-arrow {
|
||
|
border-top-color: $vxe-input-border-color;
|
||
|
&:before {
|
||
|
border-top-color: $vxe-tooltip-light-background-color;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
&.placement--bottom {
|
||
|
.vxe-table--tooltip-arrow {
|
||
|
border-bottom-color: $vxe-input-border-color;
|
||
|
&:before {
|
||
|
border-bottom-color: $vxe-tooltip-light-background-color;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
&.theme--dark {
|
||
|
background: $vxe-tooltip-dark-background-color;
|
||
|
color: #FFF;
|
||
|
&.placement--top {
|
||
|
.vxe-table--tooltip-arrow {
|
||
|
border-top-color: $vxe-tooltip-dark-background-color;
|
||
|
&:before {
|
||
|
border-top-color: $vxe-tooltip-dark-background-color;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
&.placement--bottom {
|
||
|
.vxe-table--tooltip-arrow {
|
||
|
border-bottom-color: $vxe-tooltip-dark-background-color;
|
||
|
&:before {
|
||
|
border-bottom-color: $vxe-tooltip-dark-background-color;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/*valid error*/
|
||
|
.vxe-table--tooltip-wrapper {
|
||
|
&.vxe-table--valid-error {
|
||
|
background-color: $vxe-table-validate-error-color;
|
||
|
color: #fff;
|
||
|
}
|
||
|
}
|