react-toolbox/components/tooltip/style.scss

34 lines
781 B
SCSS
Raw Normal View History

2015-11-04 18:28:11 +03:00
@import "../base";
@import "../mixins";
2015-11-04 18:28:11 +03:00
@import "./config";
.root {
2015-11-29 14:39:55 +03:00
position: relative;
}
.tooltip {
position: absolute;
2015-11-29 14:39:55 +03:00
top: 100%;
left: 50%;
z-index: $z-index-higher;
display: block;
2015-11-04 18:28:11 +03:00
max-width: $tooltip-max-width;
padding: $tooltip-padding;
2015-11-15 08:13:05 +03:00
margin: $tooltip-margin 0;
2015-12-19 22:59:49 +03:00
font-family: Roboto, sans-serif;
2015-11-04 18:28:11 +03:00
font-size: $tooltip-font-size;
font-weight: $font-weight-bold;
line-height: $font-size-small;
color: $tooltip-color;
text-align: center;
2015-11-21 14:23:24 +03:00
text-transform: none;
2015-11-04 18:28:11 +03:00
background: $tooltip-background;
border-radius: $tooltip-border-radius;
2015-11-29 14:39:55 +03:00
transition: $animation-curve-default $tooltip-animation-duration transform;
transform: scale(0) translateX(-50%);
transform-origin: top left;
2015-11-04 18:28:11 +03:00
&.active {
2015-11-29 14:39:55 +03:00
transform: scale(1) translateX(-50%);
}
2015-11-04 18:28:11 +03:00
}