-
Notifications
You must be signed in to change notification settings - Fork 4
/
styles.css
124 lines (97 loc) · 1.92 KB
/
styles.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@import "fyndiq-styles-colors/colors.css";
.tooltip {
border-radius: 2px;
width: 160px;
font-size: 12px;
text-align: justify;
&:before {
position: absolute;
content: ' ';
width: 0;
height: 0;
border-style: solid;
border-width: 0 4px 4px;
}
&:empty {
display: none;
}
}
.position-b:before {
top: -4px;
border-width: 0 4px 4px;
border-color: transparent transparent var(--color-black) transparent;
}
.position-t:before {
bottom: -4px;
border-width: 4px 4px 0;
border-color: var(--color-black) transparent transparent;
}
.position-bl {
composes: position-b;
&:before {
left: 10px;
}
}
.position-bc {
composes: position-b;
&:before {
left: 50%;
transform: translateX(-50%);
}
}
.position-br {
composes: position-b;
&:before {
right: 10px;
}
}
.position-tl {
composes: position-t;
&:before {
left: 10px;
}
}
.position-tc {
composes: position-t;
&:before {
left: 50%;
transform: translateX(-50%);
}
}
.position-tr {
composes: position-t;
&:before {
right: 10px;
}
}
.helperWrapper {
display: inline-block;
padding: 8px 10px;
}
/* Color schemes */
.type-black {
background-color: color(black a(70%));
color: var(--color-white);
&:before {
border-color: transparent transparent var(--color-black) transparent;
}
&.position-b:before {
border-color: transparent transparent var(--color-black) transparent;
}
&.position-t:before {
border-color: var(--color-black) transparent transparent;
}
}
.type-white {
background-color: var(--color-white);
box-shadow: 0 0 10px color(var(--color-black) a(30%));
&:before {
border-color: transparent transparent var(--color-white) transparent;
}
&.position-b:before {
border-color: transparent transparent var(--color-white) transparent;
}
&.position-t:before {
border-color: var(--color-white) transparent transparent;
}
}