@oruga-ui/theme-oruga 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -14
- package/dist/oruga.css +1722 -203
- package/dist/oruga.min.css +1 -1
- package/dist/scss/components/_autocomplete.scss +1 -54
- package/dist/scss/components/_button.scss +56 -88
- package/dist/scss/components/_carousel.scss +70 -97
- package/dist/scss/components/_checkbox.scss +57 -83
- package/dist/scss/components/_datepicker.scss +141 -242
- package/dist/scss/components/_dropdown.scss +71 -157
- package/dist/scss/components/_field.scss +16 -38
- package/dist/scss/components/_icon.scss +6 -8
- package/dist/scss/components/_input.scss +41 -52
- package/dist/scss/components/_loading.scss +5 -13
- package/dist/scss/components/_menu.scss +28 -64
- package/dist/scss/components/_modal.scss +25 -34
- package/dist/scss/components/_notification.scss +35 -72
- package/dist/scss/components/_pagination.scss +43 -86
- package/dist/scss/components/_radio.scss +45 -60
- package/dist/scss/components/_select.scss +45 -73
- package/dist/scss/components/_sidebar.scss +31 -107
- package/dist/scss/components/_skeleton.scss +10 -23
- package/dist/scss/components/_slider.scss +56 -110
- package/dist/scss/components/_steps.scss +133 -310
- package/dist/scss/components/_switch.scss +52 -87
- package/dist/scss/components/_table.scss +77 -139
- package/dist/scss/components/_tabs.scss +93 -151
- package/dist/scss/components/_taginput.scss +37 -101
- package/dist/scss/components/_timepicker.scss +26 -50
- package/dist/scss/components/_tooltip.scss +120 -216
- package/dist/scss/components/_upload.scss +17 -22
- package/dist/scss/oruga-build.scss +9 -0
- package/dist/scss/oruga.scss +39 -190
- package/dist/scss/utils/_animations.scss +11 -9
- package/dist/scss/utils/_base.scss +4 -4
- package/dist/scss/utils/_helpers.scss +4 -104
- package/dist/scss/utils/_root.scss +36 -24
- package/dist/scss/utils/_variables.scss +5 -7
- package/dist/theme.js +1 -2
- package/package.json +25 -25
- package/src/assets/scss/components/_autocomplete.scss +1 -54
- package/src/assets/scss/components/_button.scss +56 -88
- package/src/assets/scss/components/_carousel.scss +70 -97
- package/src/assets/scss/components/_checkbox.scss +57 -83
- package/src/assets/scss/components/_datepicker.scss +141 -242
- package/src/assets/scss/components/_dropdown.scss +71 -157
- package/src/assets/scss/components/_field.scss +16 -38
- package/src/assets/scss/components/_icon.scss +6 -8
- package/src/assets/scss/components/_input.scss +41 -52
- package/src/assets/scss/components/_loading.scss +5 -13
- package/src/assets/scss/components/_menu.scss +28 -64
- package/src/assets/scss/components/_modal.scss +25 -34
- package/src/assets/scss/components/_notification.scss +35 -72
- package/src/assets/scss/components/_pagination.scss +43 -86
- package/src/assets/scss/components/_radio.scss +45 -60
- package/src/assets/scss/components/_select.scss +45 -73
- package/src/assets/scss/components/_sidebar.scss +31 -107
- package/src/assets/scss/components/_skeleton.scss +10 -23
- package/src/assets/scss/components/_slider.scss +56 -110
- package/src/assets/scss/components/_steps.scss +133 -310
- package/src/assets/scss/components/_switch.scss +52 -87
- package/src/assets/scss/components/_table.scss +77 -139
- package/src/assets/scss/components/_tabs.scss +93 -151
- package/src/assets/scss/components/_taginput.scss +37 -101
- package/src/assets/scss/components/_timepicker.scss +26 -50
- package/src/assets/scss/components/_tooltip.scss +120 -216
- package/src/assets/scss/components/_upload.scss +17 -22
- package/src/assets/scss/oruga-build.scss +9 -0
- package/src/assets/scss/oruga.scss +39 -190
- package/src/assets/scss/utils/_animations.scss +11 -9
- package/src/assets/scss/utils/_base.scss +4 -4
- package/src/assets/scss/utils/_helpers.scss +4 -104
- package/src/assets/scss/utils/_root.scss +36 -24
- package/src/assets/scss/utils/_variables.scss +5 -7
- package/dist/oruga-full.css +0 -3922
- package/dist/oruga-full.min.css +0 -1
- package/dist/scss/oruga-common.scss +0 -37
- package/dist/scss/oruga-full.scss +0 -9
- package/src/assets/scss/oruga-common.scss +0 -37
- package/src/assets/scss/oruga-full.scss +0 -9
|
@@ -1,32 +1,26 @@
|
|
|
1
1
|
/* @docs */
|
|
2
|
-
$timepicker-font-size: $base-font-size !default;
|
|
3
|
-
$timepicker-box-line-height: $base-line-height !default;
|
|
2
|
+
$timepicker-font-size: var(--#{$prefix}base-font-size) !default;
|
|
3
|
+
$timepicker-box-line-height: var(--#{$prefix}base-line-height) !default;
|
|
4
4
|
$timepicker-box-padding: 0.375rem 1rem !default;
|
|
5
5
|
$timepicker-footer-padding: 0 0.5rem !default;
|
|
6
6
|
$timepicker-footer-margin: 0.875rem 0 0 0 !default;
|
|
7
|
-
$timepicker-select-line-height: $base-line-height !default;
|
|
7
|
+
$timepicker-select-line-height: var(--#{$prefix}base-line-height) !default;
|
|
8
8
|
$timepicker-select-padding: $control-padding-vertical
|
|
9
9
|
$control-padding-horizontal !default;
|
|
10
10
|
$timepicker-select-color: #363636 !default;
|
|
11
11
|
$timepicker-select-font-weight: 600 !default;
|
|
12
|
-
$timepicker-select-placeholder-opacity:
|
|
12
|
+
$timepicker-select-placeholder-opacity: var(
|
|
13
|
+
--#{$prefix}base-disabled-opacity
|
|
14
|
+
) !default;
|
|
13
15
|
$timepicker-separator-font-weight: 600 !default;
|
|
14
16
|
/* @docs */
|
|
15
17
|
|
|
16
18
|
.o-tpck {
|
|
17
|
-
|
|
18
|
-
"font-size",
|
|
19
|
-
"timepicker-font-size",
|
|
20
|
-
$timepicker-font-size
|
|
21
|
-
);
|
|
19
|
+
font-size: var(--#{$prefix}timepicker-font-size, $timepicker-font-size);
|
|
22
20
|
|
|
23
21
|
@each $name, $value in $sizes {
|
|
24
22
|
&--#{$name} {
|
|
25
|
-
|
|
26
|
-
"font-size",
|
|
27
|
-
("timepicker-font-size-" + #{$name}),
|
|
28
|
-
$value
|
|
29
|
-
);
|
|
23
|
+
font-size: var(--#{$prefix}timepicker-font-size-#{$name}, $value);
|
|
30
24
|
}
|
|
31
25
|
}
|
|
32
26
|
|
|
@@ -38,17 +32,11 @@ $timepicker-separator-font-weight: 600 !default;
|
|
|
38
32
|
display: flex;
|
|
39
33
|
justify-content: center;
|
|
40
34
|
align-items: center;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"line-height",
|
|
44
|
-
"timepicker-box-line-height",
|
|
35
|
+
line-height: var(
|
|
36
|
+
--#{$prefix}timepicker-box-line-height,
|
|
45
37
|
$timepicker-box-line-height
|
|
46
38
|
);
|
|
47
|
-
|
|
48
|
-
"padding",
|
|
49
|
-
"timepicker-box-padding",
|
|
50
|
-
$timepicker-box-padding
|
|
51
|
-
);
|
|
39
|
+
padding: var(--#{$prefix}timepicker-box-padding, $timepicker-box-padding);
|
|
52
40
|
}
|
|
53
41
|
|
|
54
42
|
&__select {
|
|
@@ -62,54 +50,42 @@ $timepicker-separator-font-weight: 600 !default;
|
|
|
62
50
|
align-items: center;
|
|
63
51
|
border: 0;
|
|
64
52
|
font-size: inherit;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"font-weight",
|
|
68
|
-
"timepicker-select-font-weight",
|
|
53
|
+
font-weight: var(
|
|
54
|
+
--#{$prefix}timepicker-select-font-weight,
|
|
69
55
|
$timepicker-select-font-weight
|
|
70
56
|
);
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"timepicker-select-line-height",
|
|
57
|
+
line-height: var(
|
|
58
|
+
--#{$prefix}timepicker-select-line-height,
|
|
74
59
|
$timepicker-select-line-height
|
|
75
60
|
);
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
61
|
+
color: var(--#{$prefix}timepicker-select-color, $timepicker-select-color);
|
|
62
|
+
padding: var(
|
|
63
|
+
--#{$prefix}timepicker-select-padding,
|
|
79
64
|
$timepicker-select-padding
|
|
80
65
|
);
|
|
81
|
-
@include avariable(
|
|
82
|
-
"color",
|
|
83
|
-
"timepicker-select-color",
|
|
84
|
-
$timepicker-select-color
|
|
85
|
-
);
|
|
86
66
|
}
|
|
87
67
|
|
|
88
68
|
&__select-placeholder {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"timepicker-select-placeholder-opacity",
|
|
69
|
+
opacity: var(
|
|
70
|
+
--#{$prefix}timepicker-select-placeholder-opacity,
|
|
92
71
|
$timepicker-select-placeholder-opacity
|
|
93
72
|
);
|
|
94
73
|
}
|
|
95
74
|
|
|
96
75
|
&__separator {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"timepicker-separator-font-weight",
|
|
76
|
+
font-weight: var(
|
|
77
|
+
--#{$prefix}timepicker-separator-font-weight,
|
|
100
78
|
$timepicker-separator-font-weight
|
|
101
79
|
);
|
|
102
80
|
}
|
|
103
81
|
|
|
104
82
|
&__footer {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"timepicker-header-padding",
|
|
83
|
+
padding: var(
|
|
84
|
+
--#{$prefix}timepicker-header-padding,
|
|
108
85
|
$timepicker-footer-padding
|
|
109
86
|
);
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"timepicker-header-margin",
|
|
87
|
+
margin: var(
|
|
88
|
+
--#{$prefix}timepicker-header-margin,
|
|
113
89
|
$timepicker-footer-margin
|
|
114
90
|
);
|
|
115
91
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
/* @docs */
|
|
4
4
|
$tooltip-arrow-margin: 2px !default;
|
|
5
5
|
$tooltip-arrow-size: 5px !default;
|
|
6
|
-
$tooltip-background-color: $primary !default;
|
|
7
|
-
$tooltip-color: $primary-invert !default;
|
|
6
|
+
$tooltip-background-color: var(--#{$prefix}primary) !default;
|
|
7
|
+
$tooltip-color: var(--#{$prefix}primary-invert) !default;
|
|
8
8
|
$tooltip-content-box-shadow: 0px 1px 2px 1px rgba(0, 1, 0, 0.2) !default;
|
|
9
9
|
$tooltip-content-font-size: 0.85rem !default;
|
|
10
10
|
$tooltip-content-max-width: 300px !default;
|
|
@@ -25,23 +25,16 @@ $tooltip-content-zindex: 38 !default;
|
|
|
25
25
|
content: "";
|
|
26
26
|
pointer-events: none;
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"tooltip-content-zindex",
|
|
31
|
-
$tooltip-content-zindex
|
|
32
|
-
);
|
|
33
|
-
@include avariable(
|
|
34
|
-
"color",
|
|
35
|
-
"tooltip-background-color",
|
|
36
|
-
$tooltip-background-color
|
|
37
|
-
);
|
|
28
|
+
z-index: var(--#{$prefix}tooltip-content-zindex, $tooltip-content-zindex);
|
|
29
|
+
color: var(--#{$prefix}tooltip-background-color, $tooltip-background-color);
|
|
38
30
|
|
|
39
31
|
// variants
|
|
40
32
|
@each $name, $pair in $colors {
|
|
41
33
|
$color: list.nth($pair, 1);
|
|
42
34
|
$color-invert: list.nth($pair, 2);
|
|
35
|
+
|
|
43
36
|
&--#{$name} {
|
|
44
|
-
|
|
37
|
+
color: var(--#{$prefix}variant-#{$name}, $color);
|
|
45
38
|
}
|
|
46
39
|
}
|
|
47
40
|
|
|
@@ -60,19 +53,16 @@ $tooltip-content-zindex: 38 !default;
|
|
|
60
53
|
border-left-style: solid;
|
|
61
54
|
border-left-color: transparent;
|
|
62
55
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"tooltip-arrow-size",
|
|
56
|
+
border-bottom-width: var(
|
|
57
|
+
--#{$prefix}tooltip-arrow-size,
|
|
66
58
|
$tooltip-arrow-size
|
|
67
59
|
);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"tooltip-arrow-size",
|
|
60
|
+
border-right-width: var(
|
|
61
|
+
--#{$prefix}tooltip-arrow-size,
|
|
71
62
|
$tooltip-arrow-size
|
|
72
63
|
);
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"tooltip-arrow-size",
|
|
64
|
+
border-left-width: var(
|
|
65
|
+
--#{$prefix}tooltip-arrow-size,
|
|
76
66
|
$tooltip-arrow-size
|
|
77
67
|
);
|
|
78
68
|
}
|
|
@@ -91,19 +81,16 @@ $tooltip-content-zindex: 38 !default;
|
|
|
91
81
|
border-left-style: solid;
|
|
92
82
|
border-left-color: transparent;
|
|
93
83
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"tooltip-arrow-size",
|
|
84
|
+
border-top-width: var(
|
|
85
|
+
--#{$prefix}tooltip-arrow-size,
|
|
97
86
|
$tooltip-arrow-size
|
|
98
87
|
);
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"tooltip-arrow-size",
|
|
88
|
+
border-right-width: var(
|
|
89
|
+
--#{$prefix}tooltip-arrow-size,
|
|
102
90
|
$tooltip-arrow-size
|
|
103
91
|
);
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"tooltip-arrow-size",
|
|
92
|
+
border-left-width: var(
|
|
93
|
+
--#{$prefix}tooltip-arrow-size,
|
|
107
94
|
$tooltip-arrow-size
|
|
108
95
|
);
|
|
109
96
|
}
|
|
@@ -121,19 +108,16 @@ $tooltip-content-zindex: 38 !default;
|
|
|
121
108
|
border-bottom-style: solid;
|
|
122
109
|
border-bottom-color: transparent;
|
|
123
110
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"tooltip-arrow-size",
|
|
111
|
+
border-left-width: var(
|
|
112
|
+
--#{$prefix}tooltip-arrow-size,
|
|
127
113
|
$tooltip-arrow-size
|
|
128
114
|
);
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"tooltip-arrow-size",
|
|
115
|
+
border-top-width: var(
|
|
116
|
+
--#{$prefix}tooltip-arrow-size,
|
|
132
117
|
$tooltip-arrow-size
|
|
133
118
|
);
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"tooltip-arrow-size",
|
|
119
|
+
border-bottom-width: var(
|
|
120
|
+
--#{$prefix}tooltip-arrow-size,
|
|
137
121
|
$tooltip-arrow-size
|
|
138
122
|
);
|
|
139
123
|
}
|
|
@@ -151,19 +135,16 @@ $tooltip-content-zindex: 38 !default;
|
|
|
151
135
|
border-bottom-style: solid;
|
|
152
136
|
border-bottom-color: transparent;
|
|
153
137
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"tooltip-arrow-size",
|
|
138
|
+
border-right-width: var(
|
|
139
|
+
--#{$prefix}tooltip-arrow-size,
|
|
157
140
|
$tooltip-arrow-size
|
|
158
141
|
);
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"tooltip-arrow-size",
|
|
142
|
+
border-top-width: var(
|
|
143
|
+
--#{$prefix}tooltip-arrow-size,
|
|
162
144
|
$tooltip-arrow-size
|
|
163
145
|
);
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
"tooltip-arrow-size",
|
|
146
|
+
border-bottom-width: var(
|
|
147
|
+
--#{$prefix}tooltip-arrow-size,
|
|
167
148
|
$tooltip-arrow-size
|
|
168
149
|
);
|
|
169
150
|
}
|
|
@@ -182,15 +163,12 @@ $tooltip-content-zindex: 38 !default;
|
|
|
182
163
|
border-left-style: solid;
|
|
183
164
|
border-left-color: transparent;
|
|
184
165
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
"tooltip-arrow-size",
|
|
166
|
+
border-top-width: var(
|
|
167
|
+
--#{$prefix}tooltip-arrow-size,
|
|
188
168
|
$tooltip-arrow-size
|
|
189
169
|
);
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
"calc($size *2)",
|
|
193
|
-
eparam("$size", variable("tooltip-arrow-size", $tooltip-arrow-size))
|
|
170
|
+
border-right-width: calc(
|
|
171
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) * 2
|
|
194
172
|
);
|
|
195
173
|
border-left-width: 0;
|
|
196
174
|
}
|
|
@@ -209,15 +187,12 @@ $tooltip-content-zindex: 38 !default;
|
|
|
209
187
|
border-left-style: solid;
|
|
210
188
|
border-left-color: transparent;
|
|
211
189
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"tooltip-arrow-size",
|
|
190
|
+
border-top-width: var(
|
|
191
|
+
--#{$prefix}tooltip-arrow-size,
|
|
215
192
|
$tooltip-arrow-size
|
|
216
193
|
);
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
"calc($size *2)",
|
|
220
|
-
eparam("$size", variable("tooltip-arrow-size", $tooltip-arrow-size))
|
|
194
|
+
border-left-width: calc(
|
|
195
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) * 2
|
|
221
196
|
);
|
|
222
197
|
border-right-width: 0;
|
|
223
198
|
}
|
|
@@ -236,15 +211,12 @@ $tooltip-content-zindex: 38 !default;
|
|
|
236
211
|
border-left-style: solid;
|
|
237
212
|
border-left-color: transparent;
|
|
238
213
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
"tooltip-arrow-size",
|
|
214
|
+
border-bottom-width: var(
|
|
215
|
+
--#{$prefix}tooltip-arrow-size,
|
|
242
216
|
$tooltip-arrow-size
|
|
243
217
|
);
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
"calc($size *2)",
|
|
247
|
-
eparam("$size", variable("tooltip-arrow-size", $tooltip-arrow-size))
|
|
218
|
+
border-left-width: calc(
|
|
219
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) * 2
|
|
248
220
|
);
|
|
249
221
|
border-right-width: 0;
|
|
250
222
|
}
|
|
@@ -263,15 +235,12 @@ $tooltip-content-zindex: 38 !default;
|
|
|
263
235
|
border-left-style: solid;
|
|
264
236
|
border-left-color: transparent;
|
|
265
237
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
"tooltip-arrow-size",
|
|
238
|
+
border-bottom-width: var(
|
|
239
|
+
--#{$prefix}tooltip-arrow-size,
|
|
269
240
|
$tooltip-arrow-size
|
|
270
241
|
);
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
"calc($size *2)",
|
|
274
|
-
eparam("$size", variable("tooltip-arrow-size", $tooltip-arrow-size))
|
|
242
|
+
border-right-width: calc(
|
|
243
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) * 2
|
|
275
244
|
);
|
|
276
245
|
border-left-width: 0;
|
|
277
246
|
}
|
|
@@ -281,59 +250,42 @@ $tooltip-content-zindex: 38 !default;
|
|
|
281
250
|
position: absolute;
|
|
282
251
|
white-space: nowrap;
|
|
283
252
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
"tooltip-content-max-width",
|
|
253
|
+
max-width: var(
|
|
254
|
+
--#{$prefix}tooltip-content-max-width,
|
|
287
255
|
$tooltip-content-max-width
|
|
288
256
|
);
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
$tooltip-content-padding
|
|
293
|
-
);
|
|
294
|
-
@include avariable(
|
|
295
|
-
"border-radius",
|
|
296
|
-
"tooltip-content-radius-large",
|
|
257
|
+
padding: var(--#{$prefix}tooltip-content-padding, $tooltip-content-padding);
|
|
258
|
+
border-radius: var(
|
|
259
|
+
--#{$prefix}tooltip-content-radius-large,
|
|
297
260
|
$tooltip-content-radius-large
|
|
298
261
|
);
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
"tooltip-content-font-size",
|
|
262
|
+
font-size: var(
|
|
263
|
+
--#{$prefix}tooltip-content-font-size,
|
|
302
264
|
$tooltip-content-font-size
|
|
303
265
|
);
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
"tooltip-content-weight-normal",
|
|
266
|
+
font-weight: var(
|
|
267
|
+
--#{$prefix}tooltip-content-weight-normal,
|
|
307
268
|
$tooltip-content-weight-normal
|
|
308
269
|
);
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
"tooltip-content-box-shadow",
|
|
270
|
+
box-shadow: var(
|
|
271
|
+
--#{$prefix}tooltip-content-box-shadow,
|
|
312
272
|
$tooltip-content-box-shadow
|
|
313
273
|
);
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
$tooltip-content-zindex
|
|
318
|
-
);
|
|
319
|
-
@include avariable(
|
|
320
|
-
"background-color",
|
|
321
|
-
"tooltip-background-color",
|
|
274
|
+
z-index: var(--#{$prefix}tooltip-content-zindex, $tooltip-content-zindex);
|
|
275
|
+
background-color: var(
|
|
276
|
+
--#{$prefix}tooltip-background-color,
|
|
322
277
|
$tooltip-background-color
|
|
323
278
|
);
|
|
324
|
-
|
|
279
|
+
color: var(--#{$prefix}tooltip-color, $tooltip-color);
|
|
325
280
|
|
|
326
281
|
// variants
|
|
327
282
|
@each $name, $pair in $colors {
|
|
328
283
|
$color: list.nth($pair, 1);
|
|
329
284
|
$color-invert: list.nth($pair, 2);
|
|
285
|
+
|
|
330
286
|
&--#{$name} {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
"color",
|
|
334
|
-
("variant-invert-" + #{$name}),
|
|
335
|
-
$color-invert
|
|
336
|
-
);
|
|
287
|
+
background: var(--#{$prefix}variant-#{$name}, $color);
|
|
288
|
+
color: var(--#{$prefix}variant-invert-#{$name}, $color-invert);
|
|
337
289
|
}
|
|
338
290
|
}
|
|
339
291
|
|
|
@@ -342,28 +294,22 @@ $tooltip-content-zindex: 38 !default;
|
|
|
342
294
|
top: auto;
|
|
343
295
|
right: auto;
|
|
344
296
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
"$margin",
|
|
351
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
352
|
-
)
|
|
297
|
+
bottom: calc(
|
|
298
|
+
(
|
|
299
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
300
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
301
|
+
) + 100%
|
|
353
302
|
);
|
|
354
303
|
left: 50%;
|
|
355
304
|
transform: translateX(-50%);
|
|
356
305
|
}
|
|
357
306
|
|
|
358
307
|
&--bottom {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
"$margin",
|
|
365
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
366
|
-
)
|
|
308
|
+
top: calc(
|
|
309
|
+
(
|
|
310
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
311
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
312
|
+
) + 100%
|
|
367
313
|
);
|
|
368
314
|
right: auto;
|
|
369
315
|
bottom: auto;
|
|
@@ -375,30 +321,22 @@ $tooltip-content-zindex: 38 !default;
|
|
|
375
321
|
top: 50%;
|
|
376
322
|
right: auto;
|
|
377
323
|
bottom: auto;
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
eparam(
|
|
384
|
-
"$margin",
|
|
385
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
386
|
-
)
|
|
324
|
+
left: calc(
|
|
325
|
+
(
|
|
326
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
327
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
328
|
+
) + 100%
|
|
387
329
|
);
|
|
388
330
|
transform: translateY(-50%);
|
|
389
331
|
}
|
|
390
332
|
|
|
391
333
|
&--left {
|
|
392
334
|
top: 50%;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
eparam(
|
|
399
|
-
"$margin",
|
|
400
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
401
|
-
)
|
|
335
|
+
right: calc(
|
|
336
|
+
(
|
|
337
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
338
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
339
|
+
) + 100%
|
|
402
340
|
);
|
|
403
341
|
bottom: auto;
|
|
404
342
|
left: auto;
|
|
@@ -408,15 +346,11 @@ $tooltip-content-zindex: 38 !default;
|
|
|
408
346
|
&--top-right {
|
|
409
347
|
left: auto;
|
|
410
348
|
top: auto;
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
eparam(
|
|
417
|
-
"$margin",
|
|
418
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
419
|
-
)
|
|
349
|
+
bottom: calc(
|
|
350
|
+
(
|
|
351
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
352
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
353
|
+
) + 100%
|
|
420
354
|
);
|
|
421
355
|
transform: translateX(50%);
|
|
422
356
|
}
|
|
@@ -424,15 +358,11 @@ $tooltip-content-zindex: 38 !default;
|
|
|
424
358
|
&--top-left {
|
|
425
359
|
right: auto;
|
|
426
360
|
top: auto;
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
eparam(
|
|
433
|
-
"$margin",
|
|
434
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
435
|
-
)
|
|
361
|
+
bottom: calc(
|
|
362
|
+
(
|
|
363
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
364
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
365
|
+
) + 100%
|
|
436
366
|
);
|
|
437
367
|
transform: translateX(-50%);
|
|
438
368
|
}
|
|
@@ -440,15 +370,11 @@ $tooltip-content-zindex: 38 !default;
|
|
|
440
370
|
&--bottom-right {
|
|
441
371
|
left: auto;
|
|
442
372
|
bottom: auto;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
eparam(
|
|
449
|
-
"$margin",
|
|
450
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
451
|
-
)
|
|
373
|
+
top: calc(
|
|
374
|
+
(
|
|
375
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
376
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
377
|
+
) + 100%
|
|
452
378
|
);
|
|
453
379
|
transform: translateX(50%);
|
|
454
380
|
}
|
|
@@ -456,15 +382,11 @@ $tooltip-content-zindex: 38 !default;
|
|
|
456
382
|
&--bottom-left {
|
|
457
383
|
left: auto;
|
|
458
384
|
bottom: auto;
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
eparam(
|
|
465
|
-
"$margin",
|
|
466
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
467
|
-
)
|
|
385
|
+
top: calc(
|
|
386
|
+
(
|
|
387
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
388
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
389
|
+
) + 100%
|
|
468
390
|
);
|
|
469
391
|
transform: translateX(-50%);
|
|
470
392
|
}
|
|
@@ -477,10 +399,8 @@ $tooltip-content-zindex: 38 !default;
|
|
|
477
399
|
&--multiline {
|
|
478
400
|
text-align: center;
|
|
479
401
|
white-space: normal;
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
"width",
|
|
483
|
-
"tooltip-content-multiline-width",
|
|
402
|
+
width: var(
|
|
403
|
+
--#{$prefix}tooltip-content-multiline-width,
|
|
484
404
|
$tooltip-content-multiline-width
|
|
485
405
|
);
|
|
486
406
|
}
|
|
@@ -492,52 +412,36 @@ $tooltip-content-zindex: 38 !default;
|
|
|
492
412
|
&--top,
|
|
493
413
|
&--top-left,
|
|
494
414
|
&--top-right {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
eparam("$size", variable("tooltip-arrow-size", $tooltip-arrow-size)),
|
|
499
|
-
eparam(
|
|
500
|
-
"$margin",
|
|
501
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
502
|
-
)
|
|
415
|
+
margin-top: calc(
|
|
416
|
+
-1 * (var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
417
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin))
|
|
503
418
|
);
|
|
504
419
|
}
|
|
505
420
|
|
|
506
421
|
&--bottom,
|
|
507
422
|
&--bottom-left,
|
|
508
423
|
&--bottom-right {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
eparam(
|
|
514
|
-
"$margin",
|
|
515
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
424
|
+
margin-top: calc(
|
|
425
|
+
(
|
|
426
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
427
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
516
428
|
)
|
|
517
429
|
);
|
|
518
430
|
}
|
|
519
431
|
|
|
520
432
|
&--right {
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
eparam(
|
|
526
|
-
"$margin",
|
|
527
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
433
|
+
margin-left: calc(
|
|
434
|
+
(
|
|
435
|
+
var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
436
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin)
|
|
528
437
|
)
|
|
529
438
|
);
|
|
530
439
|
}
|
|
531
440
|
|
|
532
441
|
&--left {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
eparam("$size", variable("tooltip-arrow-size", $tooltip-arrow-size)),
|
|
537
|
-
eparam(
|
|
538
|
-
"$margin",
|
|
539
|
-
variable("tooltip-arrow-margin", $tooltip-arrow-margin)
|
|
540
|
-
)
|
|
442
|
+
margin-left: calc(
|
|
443
|
+
-1 * (var(--#{$prefix}tooltip-arrow-size, $tooltip-arrow-size) +
|
|
444
|
+
var(--#{$prefix}tooltip-arrow-margin, $tooltip-arrow-margin))
|
|
541
445
|
);
|
|
542
446
|
}
|
|
543
447
|
}
|