generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 177
/
Copy pathicons.css
93 lines (83 loc) · 1.72 KB
/
icons.css
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.milo-tooltip {
position: relative;
text-decoration: none;
border-bottom: none;
}
.milo-tooltip::before {
content: attr(data-tooltip);
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 100%;
margin-left: 12px;
width: 200px;
padding: 10px;
border-radius: 5px;
background: #0469E3;
color: #fff;
text-align: left;
display: none;
z-index: 10;
}
.milo-tooltip::after {
content: "";
position: absolute;
left: 100%;
margin-left: -4px;
top: 50%;
transform: translateY(-50%);
border: 8px solid #0469E3;
border-color: transparent #0469E3 transparent transparent;
display: none;
z-index: 10;
}
.milo-tooltip.left::before {
left: initial;
margin: initial;
right: 100%;
margin-right: 12px;
}
.milo-tooltip.left::after {
left: -8px;
margin-right: 4px;
top: 50%;
transform: translateY(-50%);
border: 8px solid #0469E3;
border-color: transparent transparent transparent #0469E3;
}
.milo-tooltip.top::before {
left: 50%;
transform: translateX(-50%) translateY(-100%);
top: -10px;
margin-bottom: 15px;
}
.milo-tooltip.top::after {
left: 50%;
top: -2px;
transform: translateY(-50%);
border: 8px solid #0469E3;
border-color: #0469E3 transparent transparent;
}
.milo-tooltip.bottom::before {
left: 50%;
transform: translateX(-50%);
top: 100%;
margin-top: 12px;
}
.milo-tooltip.bottom::after {
left: 50%;
top: calc(100% + 4px);
transform: translateY(-50%);
border: 8px solid #0469E3;
border-color: transparent transparent #0469E3;
}
.milo-tooltip:hover::before,
.milo-tooltip:focus::before,
.milo-tooltip:active::before {
display: block;
}
.milo-tooltip:hover::after,
.milo-tooltip:focus::after,
.milo-tooltip:active::after {
display: block;
}