21
21
}
22
22
23
23
// ANIMATING -- with slight delay
24
- transition :
24
+ transition :
25
25
opacity $euiAnimSpeedNormal ease-out $euiAnimSpeedSlow ,
26
26
visibility $euiAnimSpeedNormal ease-out $euiAnimSpeedSlow ,
27
27
transform $euiAnimSpeedNormal ease-out $euiAnimSpeedSlow ;
28
- opacity : 0 ;
29
- visibility : hidden ;
28
+ opacity : 0 ;
29
+ visibility : hidden ;
30
30
transform : translateX (0 ) translateY ($euiSize * -1 ) translateY (0 ); // default starting position of top
31
31
32
32
// Don't delay the animation if the tooltip is on click
33
33
.euiTooltip--click & {
34
- transition :
34
+ transition :
35
35
opacity $euiAnimSpeedNormal ease-out ,
36
36
visibility $euiAnimSpeedNormal ease-out ,
37
37
transform $euiAnimSpeedNormal ease-out ;
40
40
& .euiTooltip-isVisible {
41
41
opacity : 1 ;
42
42
visibility : visible ;
43
- transform : translateX (0 ) translateY (0 ) translateZ (0 ) !important ;
44
- // Using important here so we're always at (0,0,0) when visible, no matter the position.
43
+ transform : translateX (0 ) translateY (0 ) translateZ (0 ) !important ;
44
+ // Using important here so we're always at (0,0,0) when visible, no matter the position.
45
45
// May need to revisit if we find override issues.
46
46
}
47
47
59
59
}
60
60
}
61
61
62
- // The tooltip content (for styling)
63
-
62
+ // The tooltip content (for styling)
63
+
64
64
.euiTooltip__content {
65
65
66
66
// Scoped variables for component-only re-use
70
70
71
71
// STYLING
72
72
@include euiBottomShadow ;
73
- @include euiFontSizeS ();
73
+ @include euiFontSizeS ();
74
74
background-color : $background-color ;
75
75
border-radius : $euiBorderRadius ;
76
76
padding : $euiSizeM ;
77
77
color : $text-color ;
78
78
white-space : nowrap ;
79
-
79
+
80
80
// ARROW
81
81
position : relative ;
82
82
& ::before {
89
89
background-color : $background-color ;
90
90
width : $arrow-size ;
91
91
height : $arrow-size ;
92
-
92
+
93
93
// Positions
94
94
.euiTooltip--right & {
95
95
bottom : 50% ;
96
96
left : - $arrow-size / 2 ;
97
97
transform : translateY (50% ) rotateZ (45deg );
98
98
}
99
-
99
+
100
100
.euiTooltip--bottom & {
101
101
bottom : auto ;
102
102
top : - $arrow-size / 2 ;
103
103
}
104
-
104
+
105
105
.euiTooltip--left & {
106
106
bottom : 50% ;
107
107
left : auto ;
113
113
114
114
// The tooltip title if it exists
115
115
.euiTooltip__title {
116
- @include euiFontSizeM ;
117
- font-weight : $euiFontWeightMedium ;
116
+ @include euiFontSize ;
117
+ font-weight : $euiFontWeightMedium ;
118
118
margin-bottom : $euiSizeS ;
119
119
border-bottom : $euiBorderWidthThin solid $euiColorDarkShade ;
120
- }
120
+ }
0 commit comments