@nuvoui/core 1.2.4 → 1.2.6
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 +2 -2
- package/dist/nuvoui.css +27685 -22739
- package/dist/nuvoui.css.map +1 -1
- package/dist/nuvoui.min.css +1 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +7 -8
- package/src/styles/abstracts/_config.scss +87 -34
- package/src/styles/abstracts/_functions.scss +70 -37
- package/src/styles/base/_base.scss +79 -59
- package/src/styles/base/_reset.scss +11 -8
- package/src/styles/index.scss +32 -17
- package/src/styles/layouts/_container.scss +1 -2
- package/src/styles/layouts/_flex.scss +442 -154
- package/src/styles/layouts/_grid.scss +145 -75
- package/src/styles/mixins-map.scss +1085 -1
- package/src/styles/themes/_theme.scss +95 -106
- package/src/styles/utilities/_alignment.scss +40 -13
- package/src/styles/utilities/_animations.scss +361 -92
- package/src/styles/utilities/_backdrop-filters.scss +297 -0
- package/src/styles/utilities/_borders.scss +360 -159
- package/src/styles/utilities/_colors.scss +24 -34
- package/src/styles/utilities/_container-queries.scss +7 -7
- package/src/styles/utilities/_cursor.scss +10 -17
- package/src/styles/utilities/_display.scss +234 -85
- package/src/styles/utilities/_helpers.scss +5 -5
- package/src/styles/utilities/_media-queries.scss +24 -27
- package/src/styles/utilities/_opacity.scss +15 -31
- package/src/styles/utilities/_position.scss +129 -66
- package/src/styles/utilities/_shadows.scss +23 -29
- package/src/styles/utilities/_sizing.scss +270 -92
- package/src/styles/utilities/_spacing.scss +317 -169
- package/src/styles/utilities/_tooltips.scss +36 -29
- package/src/styles/utilities/_transforms.scss +243 -154
- package/src/styles/utilities/_transitions.scss +129 -75
- package/src/styles/utilities/_typography.scss +341 -127
- package/src/styles/utilities/_z-index.scss +144 -0
- package/src/styles/abstracts/_index.scss +0 -1
- package/src/styles/base/_index.scss +0 -2
- package/src/styles/layouts/_index.scss +0 -3
- package/src/styles/themes/_index.scss +0 -1
- package/src/styles/utilities/_index.scss +0 -20
|
@@ -1,121 +1,157 @@
|
|
|
1
1
|
// _borders.scss
|
|
2
2
|
// Border utility classes for NuvoUI
|
|
3
3
|
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
6
|
-
@use
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
@use "sass:math";
|
|
5
|
+
@use "sass:map";
|
|
6
|
+
@use "sass:meta";
|
|
7
|
+
@use "sass:string" as str;
|
|
8
|
+
@use "../abstracts/config" as VAR;
|
|
9
|
+
@use "../abstracts/functions" as FN;
|
|
9
10
|
|
|
10
11
|
// Common border styles
|
|
11
12
|
$border-styles: (solid, dashed, dotted, double, none);
|
|
12
13
|
|
|
14
|
+
@function get-rounded-value($val) {
|
|
15
|
+
@if not $val {
|
|
16
|
+
@return map.get(VAR.$border-radii, "md");
|
|
17
|
+
} @else if meta.type-of($val) == string {
|
|
18
|
+
$clean-val: $val;
|
|
19
|
+
|
|
20
|
+
// Try to find the value in the border-radii map
|
|
21
|
+
@if map.has-key(VAR.$border-radii, $clean-val) {
|
|
22
|
+
@return map.get(VAR.$border-radii, $clean-val);
|
|
23
|
+
} @else if map.has-key(VAR.$border-radii, str.unquote($clean-val)) {
|
|
24
|
+
@return map.get(VAR.$border-radii, str.unquote($clean-val));
|
|
25
|
+
} @else {
|
|
26
|
+
// Not a predefined value, process it as a custom value
|
|
27
|
+
@return FN.fix-units($val);
|
|
28
|
+
}
|
|
29
|
+
} @else {
|
|
30
|
+
// Case 3: $val is a custom value, ensure it has units
|
|
31
|
+
@return FN.fix-units($val);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
13
35
|
// -----------------------------------------------
|
|
14
36
|
// MIXINS
|
|
15
37
|
// -----------------------------------------------
|
|
16
38
|
|
|
17
39
|
// Core Border Mixins - improved to include style and color by default
|
|
18
40
|
// SKIP Documentation
|
|
19
|
-
@mixin border($val, $style: solid, $color: var(--border)) {
|
|
20
|
-
|
|
41
|
+
@mixin border($val, $style: solid, $color: var(--border)) {
|
|
42
|
+
$val: FN.fix-units($val);
|
|
43
|
+
|
|
44
|
+
border-width: $val;
|
|
21
45
|
@if $val != 0 {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
46
|
+
border-style: $style;
|
|
47
|
+
border-color: $color;
|
|
48
|
+
}
|
|
25
49
|
}
|
|
26
50
|
|
|
27
|
-
@mixin border-top($val) {
|
|
28
|
-
|
|
51
|
+
@mixin border-top($val) {
|
|
52
|
+
$val: FN.fix-units($val);
|
|
53
|
+
|
|
54
|
+
border-top-width: $val;
|
|
29
55
|
@if $val != 0 {
|
|
30
56
|
border-top-style: solid;
|
|
31
|
-
border-top-color: var(--border
|
|
57
|
+
border-top-color: var(--border);
|
|
32
58
|
}
|
|
33
59
|
}
|
|
34
60
|
|
|
35
|
-
@mixin border-right($val) {
|
|
36
|
-
|
|
61
|
+
@mixin border-right($val) {
|
|
62
|
+
$val: FN.fix-units($val);
|
|
63
|
+
|
|
64
|
+
border-right-width: $val;
|
|
37
65
|
@if $val != 0 {
|
|
38
66
|
border-right-style: solid;
|
|
39
|
-
border-right-color: var(--border
|
|
67
|
+
border-right-color: var(--border);
|
|
40
68
|
}
|
|
41
69
|
}
|
|
42
70
|
|
|
43
|
-
@mixin border-bottom($val) {
|
|
44
|
-
|
|
71
|
+
@mixin border-bottom($val) {
|
|
72
|
+
$val: FN.fix-units($val);
|
|
73
|
+
|
|
74
|
+
border-bottom-width: $val;
|
|
45
75
|
@if $val != 0 {
|
|
46
76
|
border-bottom-style: solid;
|
|
47
|
-
border-bottom-color: var(--border
|
|
77
|
+
border-bottom-color: var(--border);
|
|
48
78
|
}
|
|
49
79
|
}
|
|
50
80
|
|
|
51
|
-
@mixin border-left($val) {
|
|
52
|
-
|
|
81
|
+
@mixin border-left($val) {
|
|
82
|
+
$val: FN.fix-units($val);
|
|
83
|
+
|
|
84
|
+
border-left-width: $val;
|
|
53
85
|
@if $val != 0 {
|
|
54
86
|
border-left-style: solid;
|
|
55
|
-
border-left-color: var(--border
|
|
87
|
+
border-left-color: var(--border);
|
|
56
88
|
}
|
|
57
89
|
}
|
|
58
90
|
|
|
59
|
-
|
|
91
|
+
/**
|
|
60
92
|
* @description Applies border radius to all corners
|
|
61
93
|
* @param {String} $val - The border radius value
|
|
62
94
|
*/
|
|
63
95
|
@mixin rounded($val: null) {
|
|
64
|
-
border-radius:
|
|
96
|
+
border-radius: get-rounded-value($val);
|
|
65
97
|
}
|
|
66
98
|
|
|
67
|
-
@mixin rounded-t($val: null) {
|
|
68
|
-
$val:
|
|
99
|
+
@mixin rounded-t($val: null) {
|
|
100
|
+
$val: get-rounded-value($val);
|
|
69
101
|
|
|
70
102
|
border-top-left-radius: $val;
|
|
71
103
|
border-top-right-radius: $val;
|
|
72
104
|
}
|
|
73
105
|
|
|
74
|
-
@mixin rounded-r($val: null) {
|
|
75
|
-
$val:
|
|
106
|
+
@mixin rounded-r($val: null) {
|
|
107
|
+
$val: get-rounded-value($val);
|
|
76
108
|
|
|
77
109
|
border-top-right-radius: $val;
|
|
78
110
|
border-bottom-right-radius: $val;
|
|
79
111
|
}
|
|
80
112
|
|
|
81
|
-
@mixin rounded-b($val: null) {
|
|
82
|
-
$val:
|
|
113
|
+
@mixin rounded-b($val: null) {
|
|
114
|
+
$val: get-rounded-value($val);
|
|
83
115
|
|
|
84
116
|
border-bottom-left-radius: $val;
|
|
85
117
|
border-bottom-right-radius: $val;
|
|
86
118
|
}
|
|
87
119
|
|
|
88
|
-
@mixin rounded-l($val: null) {
|
|
89
|
-
$val:
|
|
120
|
+
@mixin rounded-l($val: null) {
|
|
121
|
+
$val: get-rounded-value($val);
|
|
90
122
|
|
|
91
123
|
border-top-left-radius: $val;
|
|
92
124
|
border-bottom-left-radius: $val;
|
|
93
125
|
}
|
|
94
126
|
|
|
95
|
-
@mixin rounded-tl($val: null) {
|
|
96
|
-
$val:
|
|
97
|
-
|
|
98
|
-
border-top-left-radius: $val;
|
|
127
|
+
@mixin rounded-tl($val: null) {
|
|
128
|
+
$val: get-rounded-value($val);
|
|
129
|
+
|
|
130
|
+
border-top-left-radius: $val;
|
|
99
131
|
}
|
|
100
|
-
@mixin rounded-tr($val: null) {
|
|
101
|
-
$val:
|
|
102
|
-
|
|
103
|
-
border-top-right-radius: $val;
|
|
132
|
+
@mixin rounded-tr($val: null) {
|
|
133
|
+
$val: get-rounded-value($val);
|
|
134
|
+
|
|
135
|
+
border-top-right-radius: $val;
|
|
104
136
|
}
|
|
105
|
-
@mixin rounded-br($val: null) {
|
|
106
|
-
$val:
|
|
107
|
-
|
|
108
|
-
border-bottom-right-radius: $val;
|
|
137
|
+
@mixin rounded-br($val: null) {
|
|
138
|
+
$val: get-rounded-value($val);
|
|
139
|
+
|
|
140
|
+
border-bottom-right-radius: $val;
|
|
109
141
|
}
|
|
110
|
-
@mixin rounded-bl($val: null) {
|
|
111
|
-
$val:
|
|
112
|
-
|
|
113
|
-
border-bottom-left-radius: $val;
|
|
142
|
+
@mixin rounded-bl($val: null) {
|
|
143
|
+
$val: get-rounded-value($val);
|
|
144
|
+
|
|
145
|
+
border-bottom-left-radius: $val;
|
|
114
146
|
}
|
|
115
147
|
|
|
116
148
|
// Border Style and Color
|
|
117
|
-
@mixin border-style($style) {
|
|
118
|
-
|
|
149
|
+
@mixin border-style($style) {
|
|
150
|
+
border-style: $style;
|
|
151
|
+
}
|
|
152
|
+
@mixin border-color($color) {
|
|
153
|
+
border-color: $color;
|
|
154
|
+
}
|
|
119
155
|
|
|
120
156
|
// Combined border properties
|
|
121
157
|
@mixin border-all($width, $style, $color) {
|
|
@@ -124,94 +160,155 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
124
160
|
border-color: $color;
|
|
125
161
|
}
|
|
126
162
|
|
|
127
|
-
@mixin pill {
|
|
128
|
-
|
|
129
|
-
//
|
|
130
|
-
// VARIABLES
|
|
131
|
-
// -----------------------------------------------
|
|
132
|
-
|
|
133
|
-
// Common border width values that are most useful
|
|
134
|
-
$border-widths: (0, 1, 2, 4, 8);
|
|
135
|
-
|
|
136
|
-
// Common border radius values that are most useful
|
|
137
|
-
$border-radii: (
|
|
138
|
-
'xs': 0.25rem,
|
|
139
|
-
'sm': 0.375rem,
|
|
140
|
-
'md': 0.5rem,
|
|
141
|
-
'lg': 0.75rem,
|
|
142
|
-
'xl': 1rem,
|
|
143
|
-
'2xl': 1.25rem,
|
|
144
|
-
'full': 9999px,
|
|
145
|
-
'none': 0
|
|
146
|
-
);
|
|
163
|
+
@mixin pill {
|
|
164
|
+
@include rounded(9999px);
|
|
165
|
+
} // todo: doc missing
|
|
147
166
|
|
|
148
167
|
// -----------------------------------------------
|
|
149
168
|
// UTILITY CLASSES
|
|
150
169
|
// -----------------------------------------------
|
|
151
|
-
@if
|
|
170
|
+
@if VAR.$generate-utility-classes {
|
|
152
171
|
// Basic border classes (all sides)
|
|
153
|
-
.border {
|
|
154
|
-
|
|
172
|
+
.border {
|
|
173
|
+
@include border(1);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.border-0 {
|
|
177
|
+
@include border(0);
|
|
178
|
+
}
|
|
155
179
|
|
|
156
180
|
// All sides border width
|
|
157
|
-
@each $width in
|
|
158
|
-
.border-#{$width} {
|
|
181
|
+
@each $width in VAR.$border-widths {
|
|
182
|
+
.border-#{$width} {
|
|
183
|
+
@include border($width);
|
|
184
|
+
}
|
|
159
185
|
}
|
|
160
186
|
|
|
161
187
|
// Directional border width
|
|
162
|
-
@each $width in
|
|
163
|
-
.border-t-#{$width} {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
.border-
|
|
188
|
+
@each $width in VAR.$border-widths {
|
|
189
|
+
.border-t-#{$width} {
|
|
190
|
+
@include border-top($width);
|
|
191
|
+
}
|
|
192
|
+
.border-r-#{$width} {
|
|
193
|
+
@include border-right($width);
|
|
194
|
+
}
|
|
195
|
+
.border-b-#{$width} {
|
|
196
|
+
@include border-bottom($width);
|
|
197
|
+
}
|
|
198
|
+
.border-l-#{$width} {
|
|
199
|
+
@include border-left($width);
|
|
200
|
+
}
|
|
167
201
|
}
|
|
168
202
|
|
|
169
203
|
// Common shortcuts for single-side borders
|
|
170
|
-
.border-t {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
.border-l { @include border-left(1); }
|
|
204
|
+
.border-t {
|
|
205
|
+
@include border-top(1);
|
|
206
|
+
}
|
|
174
207
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
208
|
+
.border-r {
|
|
209
|
+
@include border-right(1);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.border-b {
|
|
213
|
+
@include border-bottom(1);
|
|
214
|
+
}
|
|
178
215
|
|
|
179
|
-
|
|
180
|
-
|
|
216
|
+
.border-l {
|
|
217
|
+
@include border-left(1);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Border radius classes
|
|
221
|
+
.rounded {
|
|
222
|
+
@include rounded;
|
|
223
|
+
} // Default rounded
|
|
224
|
+
.square {
|
|
225
|
+
@include rounded(0);
|
|
226
|
+
} // Alias for no radius
|
|
227
|
+
|
|
228
|
+
@each $name, $value in VAR.$border-radii {
|
|
229
|
+
.rounded-#{$name} {
|
|
230
|
+
@include rounded($value);
|
|
231
|
+
}
|
|
181
232
|
}
|
|
182
233
|
|
|
183
234
|
// Directional border radius
|
|
184
|
-
@each $name, $value in
|
|
185
|
-
.rounded-t-#{$name} {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
.rounded-
|
|
189
|
-
|
|
235
|
+
@each $name, $value in VAR.$border-radii {
|
|
236
|
+
.rounded-t-#{$name} {
|
|
237
|
+
@include rounded-t($value);
|
|
238
|
+
}
|
|
239
|
+
.rounded-r-#{$name} {
|
|
240
|
+
@include rounded-r($value);
|
|
241
|
+
}
|
|
242
|
+
.rounded-b-#{$name} {
|
|
243
|
+
@include rounded-b($value);
|
|
244
|
+
}
|
|
245
|
+
.rounded-l-#{$name} {
|
|
246
|
+
@include rounded-l($value);
|
|
247
|
+
}
|
|
248
|
+
|
|
190
249
|
// Individual corners
|
|
191
|
-
.rounded-tl-#{$name} {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
.rounded-
|
|
250
|
+
.rounded-tl-#{$name} {
|
|
251
|
+
@include rounded-tl($value);
|
|
252
|
+
}
|
|
253
|
+
.rounded-tr-#{$name} {
|
|
254
|
+
@include rounded-tr($value);
|
|
255
|
+
}
|
|
256
|
+
.rounded-br-#{$name} {
|
|
257
|
+
@include rounded-br($value);
|
|
258
|
+
}
|
|
259
|
+
.rounded-bl-#{$name} {
|
|
260
|
+
@include rounded-bl($value);
|
|
261
|
+
}
|
|
195
262
|
}
|
|
196
263
|
|
|
197
264
|
// Pill shape (alias for full radius)
|
|
198
|
-
.pill {
|
|
265
|
+
.pill {
|
|
266
|
+
@include pill;
|
|
267
|
+
}
|
|
199
268
|
|
|
200
269
|
// Border styles - these override the default solid style if needed
|
|
201
270
|
@each $style in $border-styles {
|
|
202
|
-
.border-#{$style} {
|
|
271
|
+
.border-#{$style} {
|
|
272
|
+
@include border-style($style);
|
|
273
|
+
}
|
|
203
274
|
}
|
|
204
275
|
|
|
205
276
|
// Border colors - these override the default color if needed
|
|
206
|
-
.border-default {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
.border-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
.border-
|
|
277
|
+
.border-default {
|
|
278
|
+
@include border-color(var(--border));
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.border-light {
|
|
282
|
+
@include border-color(var(--border-light-color));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.border-dark {
|
|
286
|
+
@include border-color(var(--border-dark-color));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.border-primary {
|
|
290
|
+
@include border-color(var(--primary));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.border-secondary {
|
|
294
|
+
@include border-color(var(--secondary));
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.border-success {
|
|
298
|
+
@include border-color(var(--success));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.border-danger {
|
|
302
|
+
@include border-color(var(--danger));
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.border-warning {
|
|
306
|
+
@include border-color(var(--warning));
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.border-info {
|
|
310
|
+
@include border-color(var(--info));
|
|
311
|
+
}
|
|
215
312
|
|
|
216
313
|
// Common combined border utilities (style + color)
|
|
217
314
|
.border-primary-solid {
|
|
@@ -229,88 +326,192 @@ $border-radii: (
|
|
|
229
326
|
// -----------------------------------------------
|
|
230
327
|
|
|
231
328
|
// Hover state border classes
|
|
232
|
-
@each $width in
|
|
233
|
-
.hover\:border-#{$width}:hover {
|
|
329
|
+
@each $width in VAR.$border-widths {
|
|
330
|
+
.hover\:border-#{$width}:hover {
|
|
331
|
+
@include border($width);
|
|
332
|
+
}
|
|
234
333
|
}
|
|
235
334
|
|
|
236
335
|
@each $style in $border-styles {
|
|
237
|
-
.hover\:border-#{$style}:hover {
|
|
336
|
+
.hover\:border-#{$style}:hover {
|
|
337
|
+
@include border-style($style);
|
|
338
|
+
}
|
|
238
339
|
}
|
|
239
340
|
|
|
240
341
|
// Border colors on hover
|
|
241
|
-
.hover\:border-default:hover {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
.hover\:border-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
.hover\:border-
|
|
342
|
+
.hover\:border-default:hover {
|
|
343
|
+
@include border-color(var(--border));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.hover\:border-light:hover {
|
|
347
|
+
@include border-color(var(--border-light-color));
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.hover\:border-dark:hover {
|
|
351
|
+
@include border-color(var(--border-dark-color));
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.hover\:border-primary:hover {
|
|
355
|
+
@include border-color(var(--primary));
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.hover\:border-secondary:hover {
|
|
359
|
+
@include border-color(var(--secondary));
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.hover\:border-success:hover {
|
|
363
|
+
@include border-color(var(--success));
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.hover\:border-danger:hover {
|
|
367
|
+
@include border-color(var(--danger));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.hover\:border-warning:hover {
|
|
371
|
+
@include border-color(var(--warning));
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.hover\:border-info:hover {
|
|
375
|
+
@include border-color(var(--info));
|
|
376
|
+
}
|
|
250
377
|
|
|
251
378
|
// Active state border classes
|
|
252
|
-
@each $width in
|
|
253
|
-
.active\:border-#{$width}:active {
|
|
379
|
+
@each $width in VAR.$border-widths {
|
|
380
|
+
.active\:border-#{$width}:active {
|
|
381
|
+
@include border($width);
|
|
382
|
+
}
|
|
254
383
|
}
|
|
255
384
|
|
|
256
385
|
@each $style in $border-styles {
|
|
257
|
-
.active\:border-#{$style}:active {
|
|
386
|
+
.active\:border-#{$style}:active {
|
|
387
|
+
@include border-style($style);
|
|
388
|
+
}
|
|
258
389
|
}
|
|
259
390
|
|
|
260
391
|
// Border colors on active state
|
|
261
|
-
.active\:border-default:active {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
.active\:border-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
.active\:border-
|
|
392
|
+
.active\:border-default:active {
|
|
393
|
+
@include border-color(var(--border));
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.active\:border-light:active {
|
|
397
|
+
@include border-color(var(--border-light-color));
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.active\:border-dark:active {
|
|
401
|
+
@include border-color(var(--border-dark-color));
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.active\:border-primary:active {
|
|
405
|
+
@include border-color(var(--primary));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.active\:border-secondary:active {
|
|
409
|
+
@include border-color(var(--secondary));
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.active\:border-success:active {
|
|
413
|
+
@include border-color(var(--success));
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.active\:border-danger:active {
|
|
417
|
+
@include border-color(var(--danger));
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.active\:border-warning:active {
|
|
421
|
+
@include border-color(var(--warning));
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.active\:border-info:active {
|
|
425
|
+
@include border-color(var(--info));
|
|
426
|
+
}
|
|
270
427
|
|
|
271
428
|
// Focus state border classes
|
|
272
|
-
@each $width in
|
|
273
|
-
.focus\:border-#{$width}:focus {
|
|
429
|
+
@each $width in VAR.$border-widths {
|
|
430
|
+
.focus\:border-#{$width}:focus {
|
|
431
|
+
@include border($width);
|
|
432
|
+
}
|
|
274
433
|
}
|
|
275
434
|
|
|
276
435
|
@each $style in $border-styles {
|
|
277
|
-
.focus\:border-#{$style}:focus {
|
|
436
|
+
.focus\:border-#{$style}:focus {
|
|
437
|
+
@include border-style($style);
|
|
438
|
+
}
|
|
278
439
|
}
|
|
279
440
|
|
|
280
441
|
// Border colors on focus
|
|
281
|
-
.focus\:border-default:focus {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
.focus\:border-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
.focus\:border-
|
|
442
|
+
.focus\:border-default:focus {
|
|
443
|
+
@include border-color(var(--border));
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.focus\:border-light:focus {
|
|
447
|
+
@include border-color(var(--border-light-color));
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.focus\:border-dark:focus {
|
|
451
|
+
@include border-color(var(--border-dark-color));
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.focus\:border-primary:focus {
|
|
455
|
+
@include border-color(var(--primary));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.focus\:border-secondary:focus {
|
|
459
|
+
@include border-color(var(--secondary));
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.focus\:border-success:focus {
|
|
463
|
+
@include border-color(var(--success));
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.focus\:border-danger:focus {
|
|
467
|
+
@include border-color(var(--danger));
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.focus\:border-warning:focus {
|
|
471
|
+
@include border-color(var(--warning));
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.focus\:border-info:focus {
|
|
475
|
+
@include border-color(var(--info));
|
|
476
|
+
}
|
|
290
477
|
|
|
291
478
|
// -----------------------------------------------
|
|
292
479
|
// RESPONSIVE CLASSES
|
|
293
480
|
// -----------------------------------------------
|
|
294
481
|
|
|
295
|
-
@each $breakpoint, $width in
|
|
482
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
296
483
|
@media (min-width: #{$width}) {
|
|
297
484
|
// Border width responsive
|
|
298
|
-
@each $val in
|
|
299
|
-
.border-#{$val}\@#{$breakpoint} {
|
|
485
|
+
@each $val in VAR.$border-widths {
|
|
486
|
+
.border-#{$val}\@#{$breakpoint} {
|
|
487
|
+
@include border($val);
|
|
488
|
+
}
|
|
300
489
|
}
|
|
301
|
-
|
|
490
|
+
|
|
302
491
|
// Common shortcuts for responsive
|
|
303
|
-
.border\@#{$breakpoint} {
|
|
304
|
-
|
|
305
|
-
|
|
492
|
+
.border\@#{$breakpoint} {
|
|
493
|
+
@include border(1);
|
|
494
|
+
}
|
|
495
|
+
.border-0\@#{$breakpoint} {
|
|
496
|
+
@include border(0);
|
|
497
|
+
}
|
|
498
|
+
|
|
306
499
|
// Border radius responsive
|
|
307
|
-
@each $name, $value in
|
|
308
|
-
.rounded-#{$name}\@#{$breakpoint} {
|
|
500
|
+
@each $name, $value in VAR.$border-radii {
|
|
501
|
+
.rounded-#{$name}\@#{$breakpoint} {
|
|
502
|
+
@include rounded($value);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.rounded\@#{$breakpoint} {
|
|
507
|
+
@include rounded;
|
|
508
|
+
}
|
|
509
|
+
.square\@#{$breakpoint} {
|
|
510
|
+
@include rounded(0);
|
|
511
|
+
}
|
|
512
|
+
.pill\@#{$breakpoint} {
|
|
513
|
+
@include pill;
|
|
309
514
|
}
|
|
310
|
-
|
|
311
|
-
.rounded\@#{$breakpoint} { @include rounded; }
|
|
312
|
-
.square\@#{$breakpoint} { @include rounded(0); }
|
|
313
|
-
.pill\@#{$breakpoint} { @include pill; }
|
|
314
515
|
}
|
|
315
516
|
}
|
|
316
517
|
}
|