You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

147 lines
3.1 KiB

@import "../../style/themes/default";
@import "../../style/mixins/index";
@tooltip-prefix-cls: ~"@{ant-prefix}-tooltip";
// Base class
.@{tooltip-prefix-cls} {
.reset-component;
position: absolute;
9 years ago
z-index: @zindex-tooltip;
display: block;
visibility: visible;
10 years ago
&-hidden {
display: none;
}
&-placement-top,
&-placement-topLeft,
&-placement-topRight {
padding-bottom: @tooltip-distance;
9 years ago
}
&-placement-right,
&-placement-rightTop,
&-placement-rightBottom {
padding-left: @tooltip-distance;
9 years ago
}
&-placement-bottom,
&-placement-bottomLeft,
&-placement-bottomRight {
padding-top: @tooltip-distance;
9 years ago
}
&-placement-left,
&-placement-leftTop,
&-placement-leftBottom {
padding-right: @tooltip-distance;
9 years ago
}
}
// Wrapper for the tooltip content
.@{tooltip-prefix-cls}-inner {
max-width: @tooltip-max-width;
padding: 6px 8px;
color: @tooltip-color;
text-align: left;
text-decoration: none;
background-color: @tooltip-bg;
border-radius: @border-radius-base;
box-shadow: @box-shadow-base;
min-height: 32px;
}
// Arrows
.@{tooltip-prefix-cls}-arrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.@{tooltip-prefix-cls} {
9 years ago
&-placement-top &-arrow,
&-placement-topLeft &-arrow,
&-placement-topRight &-arrow {
bottom: @tooltip-distance - @tooltip-arrow-width;
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
border-top-color: @tooltip-arrow-color;
}
9 years ago
&-placement-top &-arrow {
left: 50%;
margin-left: -@tooltip-arrow-width;
9 years ago
}
&-placement-topLeft &-arrow {
left: 16px;
9 years ago
}
&-placement-topRight &-arrow {
right: 16px;
9 years ago
}
&-placement-right &-arrow,
&-placement-rightTop &-arrow,
&-placement-rightBottom &-arrow {
left: @tooltip-distance - @tooltip-arrow-width;
border-width: @tooltip-arrow-width @tooltip-arrow-width @tooltip-arrow-width 0;
border-right-color: @tooltip-arrow-color;
}
9 years ago
&-placement-right &-arrow {
top: 50%;
margin-top: -@tooltip-arrow-width;
9 years ago
}
&-placement-rightTop &-arrow {
top: 8px;
9 years ago
}
&-placement-rightBottom &-arrow {
bottom: 8px;
9 years ago
}
&-placement-left &-arrow,
&-placement-leftTop &-arrow,
&-placement-leftBottom &-arrow {
right: @tooltip-distance - @tooltip-arrow-width;
border-width: @tooltip-arrow-width 0 @tooltip-arrow-width @tooltip-arrow-width;
border-left-color: @tooltip-arrow-color;
}
9 years ago
&-placement-left &-arrow {
top: 50%;
margin-top: -@tooltip-arrow-width;
9 years ago
}
&-placement-leftTop &-arrow {
top: 8px;
9 years ago
}
&-placement-leftBottom &-arrow {
bottom: 8px;
9 years ago
}
&-placement-bottom &-arrow,
&-placement-bottomLeft &-arrow,
&-placement-bottomRight &-arrow {
top: @tooltip-distance - @tooltip-arrow-width;
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
border-bottom-color: @tooltip-arrow-color;
}
9 years ago
&-placement-bottom &-arrow {
left: 50%;
margin-left: -@tooltip-arrow-width;
9 years ago
}
&-placement-bottomLeft &-arrow {
left: 16px;
9 years ago
}
&-placement-bottomRight &-arrow {
right: 16px;
9 years ago
}
}