This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Commit 8c60d9c Marcy Sutton
committed
1 parent 161763e commit 8c60d9c Copy full SHA for 8c60d9c
File tree 1 file changed +27
-4
lines changed
1 file changed +27
-4
lines changed Original file line number Diff line number Diff line change
1
+ $tooltip-fontsize-lg : rem (1 );
2
+ $tooltip-fontsize-sm : rem (1.4 );
3
+ $tooltip-height-lg : rem (2.2 );
4
+ $tooltip-height-sm : rem (3.2 );
5
+ $tooltip-top-margin-lg : rem (1.4 );
6
+ $tooltip-top-margin-sm : rem (2.4 );
7
+ $tooltip-lr-padding-lg : rem (0.8 );
8
+ $tooltip-lr-padding-sm : rem (1.6 );
9
+ $tooltip-max-width : rem (3.20 );
10
+
1
11
md-tooltip {
2
12
position : absolute ;
3
- font-size : 14px ;
4
13
z-index : $z-index-tooltip ;
5
14
overflow : hidden ;
6
15
pointer-events : none ;
7
16
border-radius : 4px ;
8
17
18
+ font-weight : 500 ;
19
+ font-size : $tooltip-fontsize-sm ;
20
+ @media screen and (min-width : $layout-breakpoint-sm ) {
21
+ font-size : $tooltip-fontsize-lg ;
22
+ }
23
+
9
24
.md-background {
10
25
position : absolute ;
11
26
border-radius : 50% ;
@@ -28,17 +43,25 @@ md-tooltip {
28
43
}
29
44
}
30
45
}
31
-
32
46
.md-content {
33
47
position : relative ;
34
- max-width : 240px ;
35
48
white-space : nowrap ;
36
49
overflow : hidden ;
37
50
text-overflow : ellipsis ;
38
51
39
- padding : 8px ;
40
52
background : transparent ;
41
53
opacity : 0 ;
54
+
55
+ height : $tooltip-height-sm ;
56
+ line-height : $tooltip-height-sm ;
57
+ padding-left : $tooltip-lr-padding-sm ;
58
+ padding-right : $tooltip-lr-padding-sm ;
59
+ @media screen and (min-width : $layout-breakpoint-sm ) {
60
+ height : $tooltip-height-lg ;
61
+ line-height : $tooltip-height-lg ;
62
+ padding-left : $tooltip-lr-padding-lg ;
63
+ padding-right : $tooltip-lr-padding-lg ;
64
+ }
42
65
& .md-show-add {
43
66
transition : $swift-ease-out ;
44
67
opacity : 0 ;
You can’t perform that action at this time.
0 commit comments