@nuvoui/core 1.2.5 → 1.2.7
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 +22277 -22831
- 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 +2 -2
- package/src/styles/abstracts/_config.scss +124 -56
- package/src/styles/abstracts/_functions.scss +21 -61
- package/src/styles/base/_base.scss +67 -59
- package/src/styles/base/_reset.scss +11 -8
- package/src/styles/index.scss +28 -10
- 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.json +482 -0
- package/src/styles/mixins-map.scss +1 -1
- package/src/styles/themes/_theme.scss +114 -94
- package/src/styles/utilities/_alignment.scss +40 -13
- package/src/styles/utilities/_animations.scss +165 -105
- package/src/styles/utilities/_backdrop-filters.scss +156 -107
- package/src/styles/utilities/_borders.scss +329 -143
- package/src/styles/utilities/_colors.scss +24 -25
- 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 +25 -31
- package/src/styles/utilities/_sizing.scss +269 -108
- package/src/styles/utilities/_spacing.scss +254 -156
- package/src/styles/utilities/_tooltips.scss +35 -31
- package/src/styles/utilities/_transforms.scss +179 -156
- package/src/styles/utilities/_transitions.scss +134 -68
- package/src/styles/utilities/_typography.scss +341 -127
- package/src/styles/utilities/_z-index.scss +79 -49
- 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 -23
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
// _borders.scss
|
|
2
2
|
// Border utility classes for NuvoUI
|
|
3
3
|
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
6
|
-
@use
|
|
7
|
-
@use
|
|
8
|
-
@use
|
|
9
|
-
@use
|
|
10
|
-
|
|
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;
|
|
11
10
|
|
|
12
11
|
// Common border styles
|
|
13
12
|
$border-styles: (solid, dashed, dotted, double, none);
|
|
14
|
-
|
|
15
13
|
|
|
16
14
|
@function get-rounded-value($val) {
|
|
17
|
-
@if not $val {
|
|
18
|
-
@return map.get(
|
|
15
|
+
@if not $val {
|
|
16
|
+
@return map.get(VAR.$border-radii, "md");
|
|
19
17
|
} @else if meta.type-of($val) == string {
|
|
20
18
|
$clean-val: $val;
|
|
21
|
-
|
|
19
|
+
|
|
22
20
|
// Try to find the value in the border-radii map
|
|
23
|
-
@if map.has-key(
|
|
24
|
-
@return map.get(
|
|
25
|
-
} @else if map.has-key(
|
|
26
|
-
@return map.get(
|
|
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));
|
|
27
25
|
} @else {
|
|
28
26
|
// Not a predefined value, process it as a custom value
|
|
29
27
|
@return FN.fix-units($val);
|
|
@@ -40,57 +38,57 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
40
38
|
|
|
41
39
|
// Core Border Mixins - improved to include style and color by default
|
|
42
40
|
// SKIP Documentation
|
|
43
|
-
@mixin border($val, $style: solid, $color: var(--border)) {
|
|
41
|
+
@mixin border($val, $style: solid, $color: var(--border-base)) {
|
|
44
42
|
$val: FN.fix-units($val);
|
|
45
|
-
|
|
46
|
-
border-width: $val;
|
|
43
|
+
|
|
44
|
+
border-width: $val;
|
|
47
45
|
@if $val != 0 {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
46
|
+
border-style: $style;
|
|
47
|
+
border-color: $color;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
52
50
|
|
|
53
|
-
@mixin border-top($val) {
|
|
51
|
+
@mixin border-top($val) {
|
|
54
52
|
$val: FN.fix-units($val);
|
|
55
53
|
|
|
56
|
-
border-top-width: $val;
|
|
54
|
+
border-top-width: $val;
|
|
57
55
|
@if $val != 0 {
|
|
58
56
|
border-top-style: solid;
|
|
59
|
-
border-top-color: var(--border
|
|
57
|
+
border-top-color: var(--border);
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
60
|
|
|
63
|
-
@mixin border-right($val) {
|
|
61
|
+
@mixin border-right($val) {
|
|
64
62
|
$val: FN.fix-units($val);
|
|
65
63
|
|
|
66
|
-
border-right-width: $val;
|
|
64
|
+
border-right-width: $val;
|
|
67
65
|
@if $val != 0 {
|
|
68
66
|
border-right-style: solid;
|
|
69
|
-
border-right-color: var(--border
|
|
67
|
+
border-right-color: var(--border);
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
70
|
|
|
73
|
-
@mixin border-bottom($val) {
|
|
71
|
+
@mixin border-bottom($val) {
|
|
74
72
|
$val: FN.fix-units($val);
|
|
75
73
|
|
|
76
|
-
border-bottom-width: $val;
|
|
74
|
+
border-bottom-width: $val;
|
|
77
75
|
@if $val != 0 {
|
|
78
76
|
border-bottom-style: solid;
|
|
79
|
-
border-bottom-color: var(--border
|
|
77
|
+
border-bottom-color: var(--border);
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
80
|
|
|
83
|
-
@mixin border-left($val) {
|
|
81
|
+
@mixin border-left($val) {
|
|
84
82
|
$val: FN.fix-units($val);
|
|
85
83
|
|
|
86
|
-
border-left-width: $val;
|
|
84
|
+
border-left-width: $val;
|
|
87
85
|
@if $val != 0 {
|
|
88
86
|
border-left-style: solid;
|
|
89
|
-
border-left-color: var(--border
|
|
87
|
+
border-left-color: var(--border);
|
|
90
88
|
}
|
|
91
89
|
}
|
|
92
90
|
|
|
93
|
-
|
|
91
|
+
/**
|
|
94
92
|
* @description Applies border radius to all corners
|
|
95
93
|
* @param {String} $val - The border radius value
|
|
96
94
|
*/
|
|
@@ -98,58 +96,62 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
98
96
|
border-radius: get-rounded-value($val);
|
|
99
97
|
}
|
|
100
98
|
|
|
101
|
-
@mixin rounded-t($val: null) {
|
|
99
|
+
@mixin rounded-t($val: null) {
|
|
102
100
|
$val: get-rounded-value($val);
|
|
103
101
|
|
|
104
102
|
border-top-left-radius: $val;
|
|
105
103
|
border-top-right-radius: $val;
|
|
106
104
|
}
|
|
107
105
|
|
|
108
|
-
@mixin rounded-r($val: null) {
|
|
106
|
+
@mixin rounded-r($val: null) {
|
|
109
107
|
$val: get-rounded-value($val);
|
|
110
108
|
|
|
111
109
|
border-top-right-radius: $val;
|
|
112
110
|
border-bottom-right-radius: $val;
|
|
113
111
|
}
|
|
114
112
|
|
|
115
|
-
@mixin rounded-b($val: null) {
|
|
113
|
+
@mixin rounded-b($val: null) {
|
|
116
114
|
$val: get-rounded-value($val);
|
|
117
115
|
|
|
118
116
|
border-bottom-left-radius: $val;
|
|
119
117
|
border-bottom-right-radius: $val;
|
|
120
118
|
}
|
|
121
119
|
|
|
122
|
-
@mixin rounded-l($val: null) {
|
|
120
|
+
@mixin rounded-l($val: null) {
|
|
123
121
|
$val: get-rounded-value($val);
|
|
124
122
|
|
|
125
123
|
border-top-left-radius: $val;
|
|
126
124
|
border-bottom-left-radius: $val;
|
|
127
125
|
}
|
|
128
126
|
|
|
129
|
-
@mixin rounded-tl($val: null) {
|
|
127
|
+
@mixin rounded-tl($val: null) {
|
|
130
128
|
$val: get-rounded-value($val);
|
|
131
|
-
|
|
132
|
-
border-top-left-radius: $val;
|
|
129
|
+
|
|
130
|
+
border-top-left-radius: $val;
|
|
133
131
|
}
|
|
134
|
-
@mixin rounded-tr($val: null) {
|
|
132
|
+
@mixin rounded-tr($val: null) {
|
|
135
133
|
$val: get-rounded-value($val);
|
|
136
|
-
|
|
137
|
-
border-top-right-radius: $val;
|
|
134
|
+
|
|
135
|
+
border-top-right-radius: $val;
|
|
138
136
|
}
|
|
139
|
-
@mixin rounded-br($val: null) {
|
|
137
|
+
@mixin rounded-br($val: null) {
|
|
140
138
|
$val: get-rounded-value($val);
|
|
141
|
-
|
|
142
|
-
border-bottom-right-radius: $val;
|
|
139
|
+
|
|
140
|
+
border-bottom-right-radius: $val;
|
|
143
141
|
}
|
|
144
|
-
@mixin rounded-bl($val: null) {
|
|
142
|
+
@mixin rounded-bl($val: null) {
|
|
145
143
|
$val: get-rounded-value($val);
|
|
146
|
-
|
|
147
|
-
border-bottom-left-radius: $val;
|
|
144
|
+
|
|
145
|
+
border-bottom-left-radius: $val;
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
// Border Style and Color
|
|
151
|
-
@mixin border-style($style) {
|
|
152
|
-
|
|
149
|
+
@mixin border-style($style) {
|
|
150
|
+
border-style: $style;
|
|
151
|
+
}
|
|
152
|
+
@mixin border-color($color) {
|
|
153
|
+
border-color: $color;
|
|
154
|
+
}
|
|
153
155
|
|
|
154
156
|
// Combined border properties
|
|
155
157
|
@mixin border-all($width, $style, $color) {
|
|
@@ -158,75 +160,155 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
158
160
|
border-color: $color;
|
|
159
161
|
}
|
|
160
162
|
|
|
161
|
-
@mixin pill {
|
|
163
|
+
@mixin pill {
|
|
164
|
+
@include rounded(9999px);
|
|
165
|
+
} // todo: doc missing
|
|
162
166
|
|
|
163
167
|
// -----------------------------------------------
|
|
164
168
|
// UTILITY CLASSES
|
|
165
169
|
// -----------------------------------------------
|
|
166
|
-
@if
|
|
170
|
+
@if VAR.$generate-utility-classes {
|
|
167
171
|
// Basic border classes (all sides)
|
|
168
|
-
.border {
|
|
169
|
-
|
|
172
|
+
.border {
|
|
173
|
+
@include border(1);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.border-0 {
|
|
177
|
+
@include border(0);
|
|
178
|
+
}
|
|
170
179
|
|
|
171
180
|
// All sides border width
|
|
172
|
-
@each $width in
|
|
173
|
-
.border-#{$width} {
|
|
181
|
+
@each $width in VAR.$border-widths {
|
|
182
|
+
.border-#{$width} {
|
|
183
|
+
@include border($width);
|
|
184
|
+
}
|
|
174
185
|
}
|
|
175
186
|
|
|
176
187
|
// Directional border width
|
|
177
|
-
@each $width in
|
|
178
|
-
.border-t-#{$width} {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
.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
|
+
}
|
|
182
201
|
}
|
|
183
202
|
|
|
184
203
|
// Common shortcuts for single-side borders
|
|
185
|
-
.border-t {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
.border-l { @include border-left(1); }
|
|
204
|
+
.border-t {
|
|
205
|
+
@include border-top(1);
|
|
206
|
+
}
|
|
189
207
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
208
|
+
.border-r {
|
|
209
|
+
@include border-right(1);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.border-b {
|
|
213
|
+
@include border-bottom(1);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.border-l {
|
|
217
|
+
@include border-left(1);
|
|
218
|
+
}
|
|
193
219
|
|
|
194
|
-
|
|
195
|
-
|
|
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
|
+
}
|
|
196
232
|
}
|
|
197
233
|
|
|
198
234
|
// Directional border radius
|
|
199
|
-
@each $name, $value in
|
|
200
|
-
.rounded-t-#{$name} {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
.rounded-
|
|
204
|
-
|
|
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
|
+
|
|
205
249
|
// Individual corners
|
|
206
|
-
.rounded-tl-#{$name} {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
.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
|
+
}
|
|
210
262
|
}
|
|
211
263
|
|
|
212
264
|
// Pill shape (alias for full radius)
|
|
213
|
-
.pill {
|
|
265
|
+
.pill {
|
|
266
|
+
@include pill;
|
|
267
|
+
}
|
|
214
268
|
|
|
215
269
|
// Border styles - these override the default solid style if needed
|
|
216
270
|
@each $style in $border-styles {
|
|
217
|
-
.border-#{$style} {
|
|
271
|
+
.border-#{$style} {
|
|
272
|
+
@include border-style($style);
|
|
273
|
+
}
|
|
218
274
|
}
|
|
219
275
|
|
|
220
276
|
// Border colors - these override the default color if needed
|
|
221
|
-
.border-default {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
.border-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
.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
|
+
}
|
|
230
312
|
|
|
231
313
|
// Common combined border utilities (style + color)
|
|
232
314
|
.border-primary-solid {
|
|
@@ -244,88 +326,192 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
244
326
|
// -----------------------------------------------
|
|
245
327
|
|
|
246
328
|
// Hover state border classes
|
|
247
|
-
@each $width in
|
|
248
|
-
.hover\:border-#{$width}:hover {
|
|
329
|
+
@each $width in VAR.$border-widths {
|
|
330
|
+
.hover\:border-#{$width}:hover {
|
|
331
|
+
@include border($width);
|
|
332
|
+
}
|
|
249
333
|
}
|
|
250
334
|
|
|
251
335
|
@each $style in $border-styles {
|
|
252
|
-
.hover\:border-#{$style}:hover {
|
|
336
|
+
.hover\:border-#{$style}:hover {
|
|
337
|
+
@include border-style($style);
|
|
338
|
+
}
|
|
253
339
|
}
|
|
254
340
|
|
|
255
341
|
// Border colors on hover
|
|
256
|
-
.hover\:border-default:hover {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
.hover\:border-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
.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
|
+
}
|
|
265
377
|
|
|
266
378
|
// Active state border classes
|
|
267
|
-
@each $width in
|
|
268
|
-
.active\:border-#{$width}:active {
|
|
379
|
+
@each $width in VAR.$border-widths {
|
|
380
|
+
.active\:border-#{$width}:active {
|
|
381
|
+
@include border($width);
|
|
382
|
+
}
|
|
269
383
|
}
|
|
270
384
|
|
|
271
385
|
@each $style in $border-styles {
|
|
272
|
-
.active\:border-#{$style}:active {
|
|
386
|
+
.active\:border-#{$style}:active {
|
|
387
|
+
@include border-style($style);
|
|
388
|
+
}
|
|
273
389
|
}
|
|
274
390
|
|
|
275
391
|
// Border colors on active state
|
|
276
|
-
.active\:border-default:active {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
.active\:border-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
.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
|
+
}
|
|
285
427
|
|
|
286
428
|
// Focus state border classes
|
|
287
|
-
@each $width in
|
|
288
|
-
.focus\:border-#{$width}:focus {
|
|
429
|
+
@each $width in VAR.$border-widths {
|
|
430
|
+
.focus\:border-#{$width}:focus {
|
|
431
|
+
@include border($width);
|
|
432
|
+
}
|
|
289
433
|
}
|
|
290
434
|
|
|
291
435
|
@each $style in $border-styles {
|
|
292
|
-
.focus\:border-#{$style}:focus {
|
|
436
|
+
.focus\:border-#{$style}:focus {
|
|
437
|
+
@include border-style($style);
|
|
438
|
+
}
|
|
293
439
|
}
|
|
294
440
|
|
|
295
441
|
// Border colors on focus
|
|
296
|
-
.focus\:border-default:focus {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
.focus\:border-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
.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
|
+
}
|
|
305
477
|
|
|
306
478
|
// -----------------------------------------------
|
|
307
479
|
// RESPONSIVE CLASSES
|
|
308
480
|
// -----------------------------------------------
|
|
309
481
|
|
|
310
|
-
@each $breakpoint, $width in
|
|
482
|
+
@each $breakpoint, $width in VAR.$breakpoints {
|
|
311
483
|
@media (min-width: #{$width}) {
|
|
312
484
|
// Border width responsive
|
|
313
|
-
@each $val in
|
|
314
|
-
.border-#{$val}\@#{$breakpoint} {
|
|
485
|
+
@each $val in VAR.$border-widths {
|
|
486
|
+
.border-#{$val}\@#{$breakpoint} {
|
|
487
|
+
@include border($val);
|
|
488
|
+
}
|
|
315
489
|
}
|
|
316
|
-
|
|
490
|
+
|
|
317
491
|
// Common shortcuts for responsive
|
|
318
|
-
.border\@#{$breakpoint} {
|
|
319
|
-
|
|
320
|
-
|
|
492
|
+
.border\@#{$breakpoint} {
|
|
493
|
+
@include border(1);
|
|
494
|
+
}
|
|
495
|
+
.border-0\@#{$breakpoint} {
|
|
496
|
+
@include border(0);
|
|
497
|
+
}
|
|
498
|
+
|
|
321
499
|
// Border radius responsive
|
|
322
|
-
@each $name, $value in
|
|
323
|
-
.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;
|
|
324
514
|
}
|
|
325
|
-
|
|
326
|
-
.rounded\@#{$breakpoint} { @include rounded; }
|
|
327
|
-
.square\@#{$breakpoint} { @include rounded(0); }
|
|
328
|
-
.pill\@#{$breakpoint} { @include pill; }
|
|
329
515
|
}
|
|
330
516
|
}
|
|
331
517
|
}
|