ygd
Version:
An enterprise-class UI design language and React-based implementation
129 lines (128 loc) • 3.24 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 */
.yg-tooltip {
box-sizing: content-box;
margin: 0;
padding: 0;
color: #333;
font-size: 12px;
list-style: none;
position: absolute;
z-index: 1060;
display: block;
max-width: 250px;
visibility: visible;
}
.yg-tooltip-hidden {
display: none;
}
.yg-tooltip-placement-top,
.yg-tooltip-placement-topLeft,
.yg-tooltip-placement-topRight {
padding-bottom: 8px;
}
.yg-tooltip-placement-right,
.yg-tooltip-placement-rightTop,
.yg-tooltip-placement-rightBottom {
padding-left: 8px;
}
.yg-tooltip-placement-bottom,
.yg-tooltip-placement-bottomLeft,
.yg-tooltip-placement-bottomRight {
padding-top: 8px;
}
.yg-tooltip-placement-left,
.yg-tooltip-placement-leftTop,
.yg-tooltip-placement-leftBottom {
padding-right: 8px;
}
.yg-tooltip-inner {
min-width: 30px;
min-height: 30px;
padding: 2px 10px;
line-height: 28px;
color: #fff;
text-align: left;
text-decoration: none;
word-wrap: break-word;
background-color: rgba(0, 0, 0, 0.75);
border-radius: 2px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.yg-tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-color: transparent;
}
.yg-tooltip-placement-top .yg-tooltip-arrow,
.yg-tooltip-placement-topLeft .yg-tooltip-arrow,
.yg-tooltip-placement-topRight .yg-tooltip-arrow {
bottom: 3px;
border-width: 5px 5px 0;
border-top-color: rgba(0, 0, 0, 0.75);
}
.yg-tooltip-placement-top .yg-tooltip-arrow {
left: 50%;
margin-left: -5px;
}
.yg-tooltip-placement-topLeft .yg-tooltip-arrow {
left: 16px;
}
.yg-tooltip-placement-topRight .yg-tooltip-arrow {
right: 16px;
}
.yg-tooltip-placement-right .yg-tooltip-arrow,
.yg-tooltip-placement-rightTop .yg-tooltip-arrow,
.yg-tooltip-placement-rightBottom .yg-tooltip-arrow {
left: 3px;
border-width: 5px 5px 5px 0;
border-right-color: rgba(0, 0, 0, 0.75);
}
.yg-tooltip-placement-right .yg-tooltip-arrow {
top: 50%;
margin-top: -5px;
}
.yg-tooltip-placement-rightTop .yg-tooltip-arrow {
top: 8px;
}
.yg-tooltip-placement-rightBottom .yg-tooltip-arrow {
bottom: 8px;
}
.yg-tooltip-placement-left .yg-tooltip-arrow,
.yg-tooltip-placement-leftTop .yg-tooltip-arrow,
.yg-tooltip-placement-leftBottom .yg-tooltip-arrow {
right: 3px;
border-width: 5px 0 5px 5px;
border-left-color: rgba(0, 0, 0, 0.75);
}
.yg-tooltip-placement-left .yg-tooltip-arrow {
top: 50%;
margin-top: -5px;
}
.yg-tooltip-placement-leftTop .yg-tooltip-arrow {
top: 8px;
}
.yg-tooltip-placement-leftBottom .yg-tooltip-arrow {
bottom: 8px;
}
.yg-tooltip-placement-bottom .yg-tooltip-arrow,
.yg-tooltip-placement-bottomLeft .yg-tooltip-arrow,
.yg-tooltip-placement-bottomRight .yg-tooltip-arrow {
top: 3px;
border-width: 0 5px 5px;
border-bottom-color: rgba(0, 0, 0, 0.75);
}
.yg-tooltip-placement-bottom .yg-tooltip-arrow {
left: 50%;
margin-left: -5px;
}
.yg-tooltip-placement-bottomLeft .yg-tooltip-arrow {
left: 16px;
}
.yg-tooltip-placement-bottomRight .yg-tooltip-arrow {
right: 16px;
}