react-toolbox/components/tooltip/style.scss

45 lines
1.0 KiB
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 {
position: fixed;
z-index: $z-index-higher;
2015-11-04 18:28:11 +03:00
display: inline-block;
max-width: $tooltip-max-width;
padding: $tooltip-padding;
2015-11-15 08:13:05 +03:00
margin: $tooltip-margin 0;
2015-11-04 18:28:11 +03:00
font-size: $font-size-tiny;
font-size: $tooltip-font-size;
font-weight: $font-weight-bold;
line-height: $font-size-small;
color: $tooltip-color;
text-align: center;
background: $tooltip-background;
border-radius: $tooltip-border-radius;
transform: scale(0);
transform-origin: top center;
animation-duration: $tooltip-animation-duration;
animation-timing-function: $animation-curve-default;
animation-iteration-count: 1;
animation-direction: forwards;
2015-11-04 18:28:11 +03:00
&.active {
animation-name: tooltip-animation;
2015-11-04 18:28:11 +03:00
}
&.large {
padding: 2 * $tooltip-padding;
2015-11-15 08:13:05 +03:00
font-size: $font-size-small;
2015-11-04 18:28:11 +03:00
}
@keyframes tooltip-animation {
0% {
transform: scale(0);
}
10%, 99% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
2015-11-04 18:28:11 +03:00
}