forked from microsoft/pxt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtooltips.less
More file actions
74 lines (63 loc) · 1.45 KB
/
tooltips.less
File metadata and controls
74 lines (63 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@tooltipBackground: @primaryColor;
@tooltipBorder: darken(@tooltipBackground, 10%);
.pxt-tooltip {
color: @white;
background-color: @tooltipBackground !important;
border: 1px solid @tooltipBorder !important;
padding: .75rem 1rem !important;
font-size: 1rem !important;
line-height: 1.25rem !important;
}
.pxt-tooltip {
&.place-top {
&:after {
border-top-color: @tooltipBorder !important;
}
}
&.place-bottom {
&:after {
border-bottom-color: @tooltipBorder !important;
}
}
&.place-left {
&:after {
border-left-color: @tooltipBorder !important;
}
}
&.place-right {
&:after {
border-right-color: @tooltipBorder !important;
}
}
}
/*******************************
Clickable DOM Tooltip
*******************************/
.tooltip, .tooltip:before {
display: none;
position: absolute;
line-height: 1.4285em;
background: @white;
color: @black;
text-align: center;
z-index: 44;
transition: all .1s ease;
cursor: pointer;
}
.tooltip.show, .tooltip.show:before {
display: block;
}
.tooltip {
transform: translateX(-50%);
padding: .833em 1em;
margin-top: .5em;
border-radius: .28571429rem;
}
.tooltip:before {
content: "";
top: -.35rem;
left: 50%;
width: .71428571em;
height: .71428571em;
transform: rotate(45deg) scale(1)!important;
}