@nuvoui/core 1.3.5 → 1.4.1
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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/nuvoui.css +878 -646
- package/dist/nuvoui.css.map +1 -1
- package/dist/nuvoui.min.css +23 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +1 -1
- package/src/styles/base/_base.scss +148 -147
- package/src/styles/base/_reset.scss +41 -49
- package/src/styles/build.scss +25 -1
- package/src/styles/components/_tooltips.scss +271 -0
- package/src/styles/config/_borders.scss +15 -0
- package/src/styles/config/_breakpoints.scss +11 -0
- package/src/styles/config/_colors.scss +192 -0
- package/src/styles/config/_constants.scss +1 -0
- package/src/styles/config/_container-queries.scss +1 -0
- package/src/styles/config/_feature-flags.scss +33 -0
- package/src/styles/config/_layouts.scss +13 -0
- package/src/styles/config/_shadows.scss +9 -0
- package/src/styles/config/_spacing.scss +41 -0
- package/src/styles/config/_theme-validation.scss +59 -0
- package/src/styles/config/_typography.scss +45 -0
- package/src/styles/functions/_breakpoints.scss +15 -0
- package/src/styles/functions/_colors.scss +280 -0
- package/src/styles/functions/_css-vars.scss +33 -0
- package/src/styles/functions/_feature-flags.scss +20 -0
- package/src/styles/functions/_math.scss +72 -0
- package/src/styles/functions/_strings.scss +68 -0
- package/src/styles/functions/_types.scss +104 -0
- package/src/styles/functions/_units.scss +83 -0
- package/src/styles/index.scss +26 -5
- package/src/styles/layouts/_container.scss +28 -27
- package/src/styles/layouts/_flex.scss +343 -337
- package/src/styles/layouts/_grid.scss +131 -128
- package/src/styles/mixins-map.json +486 -479
- package/src/styles/mixins-map.scss +1 -1
- package/src/styles/themes/_theme.scss +230 -211
- package/src/styles/tools/_accessibility.scss +50 -0
- package/src/styles/tools/_container-queries.scss +98 -0
- package/src/styles/tools/_feature-support.scss +46 -0
- package/src/styles/tools/_media-queries.scss +70 -0
- package/src/styles/tools/_modern-layout.scss +49 -0
- package/src/styles/utilities/_alignment.scss +35 -34
- package/src/styles/utilities/_animations.scss +312 -311
- package/src/styles/utilities/_backdrop-filters.scss +194 -193
- package/src/styles/utilities/_borders.scss +243 -237
- package/src/styles/utilities/_colors.scss +16 -136
- package/src/styles/utilities/_cursor.scss +10 -10
- package/src/styles/utilities/_display.scss +192 -191
- package/src/styles/utilities/_helpers.scss +106 -106
- package/src/styles/utilities/_opacity.scss +27 -25
- package/src/styles/utilities/_position.scss +124 -121
- package/src/styles/utilities/_shadows.scss +171 -169
- package/src/styles/utilities/_sizing.scss +197 -194
- package/src/styles/utilities/_spacing.scss +230 -227
- package/src/styles/utilities/_transforms.scss +235 -234
- package/src/styles/utilities/_transitions.scss +136 -135
- package/src/styles/utilities/_typography.scss +254 -239
- package/src/styles/utilities/_z-index.scss +69 -68
- package/src/styles/abstracts/_config.scss +0 -254
- package/src/styles/abstracts/_functions.scss +0 -626
- package/src/styles/themes/refactored_borders.ipynb +0 -37
- package/src/styles/utilities/_container-queries.scss +0 -95
- package/src/styles/utilities/_media-queries.scss +0 -189
- package/src/styles/utilities/_tooltips.scss +0 -258
|
@@ -7,31 +7,35 @@
|
|
|
7
7
|
@use "sass:string" as str;
|
|
8
8
|
@use "sass:list";
|
|
9
9
|
|
|
10
|
-
@use "../
|
|
11
|
-
@use "../
|
|
10
|
+
@use "../config/feature-flags" as config-flags;
|
|
11
|
+
@use "../config/breakpoints" as config-breakpoint;
|
|
12
|
+
@use "../config/borders" as config-border;
|
|
13
|
+
@use "../config/colors" as config-color;
|
|
14
|
+
@use "../functions/feature-flags" as fn-flags;
|
|
15
|
+
@use "../functions/units" as fn-units;
|
|
12
16
|
|
|
13
17
|
// Common border styles
|
|
14
18
|
$border-styles: (solid, dashed, dotted, double, none);
|
|
15
19
|
|
|
16
20
|
@function get-rounded-value($val) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
@if not $val {
|
|
22
|
+
@return map.get(config-border.$border-radii, "md");
|
|
23
|
+
} @else if meta.type-of($val) == "string" {
|
|
24
|
+
$clean-val: $val;
|
|
25
|
+
|
|
26
|
+
// Try to find the value in the border-radii map
|
|
27
|
+
@if map.has-key(config-border.$border-radii, $clean-val) {
|
|
28
|
+
@return map.get(config-border.$border-radii, $clean-val);
|
|
29
|
+
} @else if map.has-key(config-border.$border-radii, str.unquote($clean-val)) {
|
|
30
|
+
@return map.get(config-border.$border-radii, str.unquote($clean-val));
|
|
31
|
+
} @else {
|
|
32
|
+
// Not a predefined value, process it as a custom value
|
|
33
|
+
@return fn-units.fix-units($val);
|
|
34
|
+
}
|
|
27
35
|
} @else {
|
|
28
|
-
|
|
29
|
-
|
|
36
|
+
// Case 3: $val is a custom value, ensure it has units
|
|
37
|
+
@return fn-units.fix-units($val);
|
|
30
38
|
}
|
|
31
|
-
} @else {
|
|
32
|
-
// Case 3: $val is a custom value, ensure it has units
|
|
33
|
-
@return FN.fix-units($val);
|
|
34
|
-
}
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
// -----------------------------------------------
|
|
@@ -41,307 +45,309 @@ $border-styles: (solid, dashed, dotted, double, none);
|
|
|
41
45
|
// Core Border Mixins - improved to include style and color by default
|
|
42
46
|
// SKIP Documentation
|
|
43
47
|
@mixin border($val, $style: solid, $color: var(--border-base)) {
|
|
44
|
-
|
|
48
|
+
$val: fn-units.fix-units($val);
|
|
45
49
|
|
|
46
|
-
|
|
50
|
+
--border-size: #{$val};
|
|
47
51
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
border-width: $val;
|
|
53
|
+
@if $val != 0 {
|
|
54
|
+
border-style: $style;
|
|
55
|
+
border-color: $color;
|
|
52
56
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
--border-style: #{$style};
|
|
58
|
+
--border-color: #{$color};
|
|
59
|
+
}
|
|
56
60
|
}
|
|
57
61
|
|
|
58
|
-
@mixin border-top($val) {
|
|
59
|
-
|
|
62
|
+
@mixin border-top($val, $style: var(--border-style, solid)) {
|
|
63
|
+
$val: fn-units.fix-units($val);
|
|
60
64
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
border-top-width: $val;
|
|
66
|
+
@if $val != 0 {
|
|
67
|
+
border-top-style: $style;
|
|
68
|
+
border-top-color: var(--border-base);
|
|
69
|
+
}
|
|
66
70
|
}
|
|
67
71
|
|
|
68
|
-
@mixin border-right($val) {
|
|
69
|
-
|
|
72
|
+
@mixin border-right($val, $style: var(--border-style, solid)) {
|
|
73
|
+
$val: fn-units.fix-units($val);
|
|
70
74
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
border-right-width: $val;
|
|
76
|
+
@if $val != 0 {
|
|
77
|
+
border-right-style: $style;
|
|
78
|
+
border-right-color: var(--border-base);
|
|
79
|
+
}
|
|
76
80
|
}
|
|
77
81
|
|
|
78
|
-
@mixin border-bottom($val) {
|
|
79
|
-
|
|
82
|
+
@mixin border-bottom($val, $style: var(--border-style, solid)) {
|
|
83
|
+
$val: fn-units.fix-units($val);
|
|
80
84
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
border-bottom-width: $val;
|
|
86
|
+
@if $val != 0 {
|
|
87
|
+
border-bottom-style: $style;
|
|
88
|
+
border-bottom-color: var(--border-base);
|
|
89
|
+
}
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
@mixin border-left($val) {
|
|
89
|
-
|
|
92
|
+
@mixin border-left($val, $style: var(--border-style, solid)) {
|
|
93
|
+
$val: fn-units.fix-units($val);
|
|
90
94
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
border-left-width: $val;
|
|
96
|
+
@if $val != 0 {
|
|
97
|
+
border-left-style: $style;
|
|
98
|
+
border-left-color: var(--border-base);
|
|
99
|
+
}
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
// @description Applies border radius to all corners
|
|
99
103
|
// @param {String} $val - The border radius value
|
|
100
104
|
@mixin rounded($val: null) {
|
|
101
|
-
|
|
105
|
+
border-radius: get-rounded-value($val);
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
@mixin rounded-t($val: null) {
|
|
105
|
-
|
|
109
|
+
$val: get-rounded-value($val);
|
|
106
110
|
|
|
107
|
-
|
|
108
|
-
|
|
111
|
+
border-top-left-radius: $val;
|
|
112
|
+
border-top-right-radius: $val;
|
|
109
113
|
}
|
|
110
114
|
|
|
111
115
|
@mixin rounded-r($val: null) {
|
|
112
|
-
|
|
116
|
+
$val: get-rounded-value($val);
|
|
113
117
|
|
|
114
|
-
|
|
115
|
-
|
|
118
|
+
border-top-right-radius: $val;
|
|
119
|
+
border-bottom-right-radius: $val;
|
|
116
120
|
}
|
|
117
121
|
|
|
118
122
|
@mixin rounded-b($val: null) {
|
|
119
|
-
|
|
123
|
+
$val: get-rounded-value($val);
|
|
120
124
|
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
border-bottom-left-radius: $val;
|
|
126
|
+
border-bottom-right-radius: $val;
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
@mixin rounded-l($val: null) {
|
|
126
|
-
|
|
130
|
+
$val: get-rounded-value($val);
|
|
127
131
|
|
|
128
|
-
|
|
129
|
-
|
|
132
|
+
border-top-left-radius: $val;
|
|
133
|
+
border-bottom-left-radius: $val;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
@mixin rounded-tl($val: null) {
|
|
133
|
-
|
|
137
|
+
$val: get-rounded-value($val);
|
|
134
138
|
|
|
135
|
-
|
|
139
|
+
border-top-left-radius: $val;
|
|
136
140
|
}
|
|
137
141
|
@mixin rounded-tr($val: null) {
|
|
138
|
-
|
|
142
|
+
$val: get-rounded-value($val);
|
|
139
143
|
|
|
140
|
-
|
|
144
|
+
border-top-right-radius: $val;
|
|
141
145
|
}
|
|
142
146
|
@mixin rounded-br($val: null) {
|
|
143
|
-
|
|
147
|
+
$val: get-rounded-value($val);
|
|
144
148
|
|
|
145
|
-
|
|
149
|
+
border-bottom-right-radius: $val;
|
|
146
150
|
}
|
|
147
151
|
@mixin rounded-bl($val: null) {
|
|
148
|
-
|
|
152
|
+
$val: get-rounded-value($val);
|
|
149
153
|
|
|
150
|
-
|
|
154
|
+
border-bottom-left-radius: $val;
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
// Border Style and Color
|
|
154
158
|
@mixin border-style($style) {
|
|
155
|
-
|
|
159
|
+
--border-style: #{$style};
|
|
156
160
|
}
|
|
157
161
|
@mixin border-color($color) {
|
|
158
|
-
|
|
162
|
+
border-color: $color;
|
|
163
|
+
|
|
164
|
+
--border-color: #{$color};
|
|
159
165
|
}
|
|
160
166
|
|
|
161
167
|
// Combined border properties
|
|
162
168
|
@mixin border-all($width, $style, $color) {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
169
|
+
border-width: $width;
|
|
170
|
+
border-style: $style;
|
|
171
|
+
border-color: $color;
|
|
166
172
|
}
|
|
167
173
|
|
|
168
174
|
@mixin pill {
|
|
169
|
-
|
|
175
|
+
@include rounded(9999px);
|
|
170
176
|
}
|
|
171
177
|
|
|
172
|
-
@if
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// Common shortcuts for single-side borders
|
|
179
|
-
#{VAR.$parent-selector} .border-0 {
|
|
180
|
-
@include border(0);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
#{VAR.$parent-selector} .border-t {
|
|
184
|
-
@include border-top(1);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
#{VAR.$parent-selector} .border-r {
|
|
188
|
-
@include border-right(1);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
#{VAR.$parent-selector} .border-b {
|
|
192
|
-
@include border-bottom(1);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
#{VAR.$parent-selector} .border-l {
|
|
196
|
-
@include border-left(1);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
#{VAR.$parent-selector} .border-x {
|
|
200
|
-
@include border-left(1);
|
|
201
|
-
@include border-right(1);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
#{VAR.$parent-selector} .border-y {
|
|
205
|
-
@include border-top(1);
|
|
206
|
-
@include border-bottom(1);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
// Directional border width
|
|
210
|
-
@each $width in VAR.$border-widths {
|
|
211
|
-
#{VAR.$parent-selector} .border-#{$width},
|
|
212
|
-
#{VAR.$parent-selector} .hover\:border-#{$width}:hover,
|
|
213
|
-
#{VAR.$parent-selector} .active\:border-#{$width}:active,
|
|
214
|
-
#{VAR.$parent-selector} .focus\:border-#{$width}:focus,
|
|
215
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:border-#{$width} {
|
|
216
|
-
@include border($width);
|
|
217
|
-
}
|
|
218
|
-
#{VAR.$parent-selector} .border-t-#{$width} {
|
|
219
|
-
@include border-top($width);
|
|
220
|
-
}
|
|
221
|
-
#{VAR.$parent-selector} .border-r-#{$width} {
|
|
222
|
-
@include border-right($width);
|
|
223
|
-
}
|
|
224
|
-
#{VAR.$parent-selector} .border-b-#{$width} {
|
|
225
|
-
@include border-bottom($width);
|
|
226
|
-
}
|
|
227
|
-
#{VAR.$parent-selector} .border-l-#{$width} {
|
|
228
|
-
@include border-left($width);
|
|
178
|
+
@if fn-flags.feature-enabled("borders") {
|
|
179
|
+
// Basic border classes (all sides)
|
|
180
|
+
#{config-flags.$parent-selector} .border {
|
|
181
|
+
@include border(1);
|
|
229
182
|
}
|
|
230
183
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
184
|
+
// Common shortcuts for single-side borders
|
|
185
|
+
#{config-flags.$parent-selector} .border-0 {
|
|
186
|
+
@include border(0);
|
|
234
187
|
}
|
|
235
188
|
|
|
236
|
-
#{
|
|
237
|
-
|
|
238
|
-
@include border-bottom($width);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
// Border radius classes
|
|
243
|
-
#{VAR.$parent-selector} .rounded {
|
|
244
|
-
@include rounded;
|
|
245
|
-
}
|
|
246
|
-
#{VAR.$parent-selector} .square {
|
|
247
|
-
@include rounded(0);
|
|
248
|
-
} // Alias for no radius
|
|
249
|
-
|
|
250
|
-
@each $name, $value in VAR.$border-radii {
|
|
251
|
-
#{VAR.$parent-selector} .rounded-#{$name} {
|
|
252
|
-
@include rounded($value);
|
|
253
|
-
}
|
|
254
|
-
#{VAR.$parent-selector} .rounded-t-#{$name} {
|
|
255
|
-
@include rounded-t($value);
|
|
256
|
-
}
|
|
257
|
-
#{VAR.$parent-selector} .rounded-r-#{$name} {
|
|
258
|
-
@include rounded-r($value);
|
|
259
|
-
}
|
|
260
|
-
#{VAR.$parent-selector} .rounded-b-#{$name} {
|
|
261
|
-
@include rounded-b($value);
|
|
262
|
-
}
|
|
263
|
-
#{VAR.$parent-selector} .rounded-l-#{$name} {
|
|
264
|
-
@include rounded-l($value);
|
|
189
|
+
#{config-flags.$parent-selector} .border-t {
|
|
190
|
+
@include border-top(1);
|
|
265
191
|
}
|
|
266
192
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
@include rounded-tl($value);
|
|
270
|
-
}
|
|
271
|
-
#{VAR.$parent-selector} .rounded-tr-#{$name} {
|
|
272
|
-
@include rounded-tr($value);
|
|
193
|
+
#{config-flags.$parent-selector} .border-r {
|
|
194
|
+
@include border-right(1);
|
|
273
195
|
}
|
|
274
|
-
|
|
275
|
-
|
|
196
|
+
|
|
197
|
+
#{config-flags.$parent-selector} .border-b {
|
|
198
|
+
@include border-bottom(1);
|
|
276
199
|
}
|
|
277
|
-
|
|
278
|
-
|
|
200
|
+
|
|
201
|
+
#{config-flags.$parent-selector} .border-l {
|
|
202
|
+
@include border-left(1);
|
|
279
203
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
@include pill;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// Border styles - these override the default solid style if needed
|
|
288
|
-
@each $style in $border-styles {
|
|
289
|
-
#{VAR.$parent-selector} .border-#{$style},
|
|
290
|
-
#{VAR.$parent-selector} .hover\:border-#{$style}:hover,
|
|
291
|
-
#{VAR.$parent-selector} .active\:border-#{$style}:active,
|
|
292
|
-
#{VAR.$parent-selector} .focus\:border-#{$style}:focus,
|
|
293
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:border-#{$style} {
|
|
294
|
-
@include border-style($style);
|
|
204
|
+
|
|
205
|
+
#{config-flags.$parent-selector} .border-x {
|
|
206
|
+
@include border-left(1);
|
|
207
|
+
@include border-right(1);
|
|
295
208
|
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
#{VAR.$parent-selector} .hover\:border-#{$color-name}:hover,
|
|
301
|
-
#{VAR.$parent-selector} .active\:border-#{$color-name}:active,
|
|
302
|
-
#{VAR.$parent-selector} .focus\:border-#{$color-name}:focus,
|
|
303
|
-
#{VAR.$parent-selector} .group:hover .group-hover\:border-#{$color-name} {
|
|
304
|
-
@include border-color(var(--#{$color-name}));
|
|
209
|
+
|
|
210
|
+
#{config-flags.$parent-selector} .border-y {
|
|
211
|
+
@include border-top(1);
|
|
212
|
+
@include border-bottom(1);
|
|
305
213
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
#{
|
|
317
|
-
|
|
214
|
+
|
|
215
|
+
// Directional border width
|
|
216
|
+
@each $width in config-border.$border-widths {
|
|
217
|
+
#{config-flags.$parent-selector} .border-#{$width},
|
|
218
|
+
#{config-flags.$parent-selector} .hover\:border-#{$width}:hover,
|
|
219
|
+
#{config-flags.$parent-selector} .active\:border-#{$width}:active,
|
|
220
|
+
#{config-flags.$parent-selector} .focus\:border-#{$width}:focus,
|
|
221
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:border-#{$width} {
|
|
222
|
+
@include border($width);
|
|
223
|
+
}
|
|
224
|
+
#{config-flags.$parent-selector} .border-t-#{$width} {
|
|
225
|
+
@include border-top($width);
|
|
226
|
+
}
|
|
227
|
+
#{config-flags.$parent-selector} .border-r-#{$width} {
|
|
228
|
+
@include border-right($width);
|
|
229
|
+
}
|
|
230
|
+
#{config-flags.$parent-selector} .border-b-#{$width} {
|
|
231
|
+
@include border-bottom($width);
|
|
232
|
+
}
|
|
233
|
+
#{config-flags.$parent-selector} .border-l-#{$width} {
|
|
234
|
+
@include border-left($width);
|
|
318
235
|
}
|
|
319
|
-
}
|
|
320
236
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
#{VAR.$parent-selector} .border-0\@#{$breakpoint} {
|
|
326
|
-
@include border(0);
|
|
327
|
-
}
|
|
237
|
+
#{config-flags.$parent-selector} .border-x-#{$width} {
|
|
238
|
+
@include border-left(1);
|
|
239
|
+
@include border-right(1);
|
|
240
|
+
}
|
|
328
241
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
@include rounded($value);
|
|
242
|
+
#{config-flags.$parent-selector} .border-y-#{$width} {
|
|
243
|
+
@include border-top($width);
|
|
244
|
+
@include border-bottom($width);
|
|
333
245
|
}
|
|
334
|
-
|
|
246
|
+
}
|
|
335
247
|
|
|
336
|
-
|
|
248
|
+
// Border radius classes
|
|
249
|
+
#{config-flags.$parent-selector} .rounded {
|
|
337
250
|
@include rounded;
|
|
338
|
-
|
|
339
|
-
|
|
251
|
+
}
|
|
252
|
+
#{config-flags.$parent-selector} .square {
|
|
340
253
|
@include rounded(0);
|
|
341
|
-
|
|
342
|
-
|
|
254
|
+
} // Alias for no radius
|
|
255
|
+
|
|
256
|
+
@each $name, $value in config-border.$border-radii {
|
|
257
|
+
#{config-flags.$parent-selector} .rounded-#{$name} {
|
|
258
|
+
@include rounded($value);
|
|
259
|
+
}
|
|
260
|
+
#{config-flags.$parent-selector} .rounded-t-#{$name} {
|
|
261
|
+
@include rounded-t($value);
|
|
262
|
+
}
|
|
263
|
+
#{config-flags.$parent-selector} .rounded-r-#{$name} {
|
|
264
|
+
@include rounded-r($value);
|
|
265
|
+
}
|
|
266
|
+
#{config-flags.$parent-selector} .rounded-b-#{$name} {
|
|
267
|
+
@include rounded-b($value);
|
|
268
|
+
}
|
|
269
|
+
#{config-flags.$parent-selector} .rounded-l-#{$name} {
|
|
270
|
+
@include rounded-l($value);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// Individual corners
|
|
274
|
+
#{config-flags.$parent-selector} .rounded-tl-#{$name} {
|
|
275
|
+
@include rounded-tl($value);
|
|
276
|
+
}
|
|
277
|
+
#{config-flags.$parent-selector} .rounded-tr-#{$name} {
|
|
278
|
+
@include rounded-tr($value);
|
|
279
|
+
}
|
|
280
|
+
#{config-flags.$parent-selector} .rounded-br-#{$name} {
|
|
281
|
+
@include rounded-br($value);
|
|
282
|
+
}
|
|
283
|
+
#{config-flags.$parent-selector} .rounded-bl-#{$name} {
|
|
284
|
+
@include rounded-bl($value);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// Pill shape (alias for full radius)
|
|
289
|
+
#{config-flags.$parent-selector} .pill {
|
|
343
290
|
@include pill;
|
|
344
|
-
}
|
|
345
291
|
}
|
|
346
|
-
|
|
292
|
+
|
|
293
|
+
// Border styles - these override the default solid style if needed
|
|
294
|
+
@each $style in $border-styles {
|
|
295
|
+
#{config-flags.$parent-selector} .border-#{$style},
|
|
296
|
+
#{config-flags.$parent-selector} .hover\:border-#{$style}:hover,
|
|
297
|
+
#{config-flags.$parent-selector} .active\:border-#{$style}:active,
|
|
298
|
+
#{config-flags.$parent-selector} .focus\:border-#{$style}:focus,
|
|
299
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:border-#{$style} {
|
|
300
|
+
@include border-style($style);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
@each $color-name in config-color.$color-names-with-basic {
|
|
305
|
+
#{config-flags.$parent-selector} .border-#{$color-name},
|
|
306
|
+
#{config-flags.$parent-selector} .hover\:border-#{$color-name}:hover,
|
|
307
|
+
#{config-flags.$parent-selector} .active\:border-#{$color-name}:active,
|
|
308
|
+
#{config-flags.$parent-selector} .focus\:border-#{$color-name}:focus,
|
|
309
|
+
#{config-flags.$parent-selector} .group:hover .group-hover\:border-#{$color-name} {
|
|
310
|
+
@include border-color(var(--#{$color-name}));
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// -----------------------------------------------
|
|
315
|
+
// RESPONSIVE CLASSES
|
|
316
|
+
// -----------------------------------------------
|
|
317
|
+
|
|
318
|
+
@each $breakpoint, $width in config-breakpoint.$breakpoints {
|
|
319
|
+
@media (min-width: #{$width}) {
|
|
320
|
+
// Border width responsive
|
|
321
|
+
@each $val in config-border.$border-widths {
|
|
322
|
+
#{config-flags.$parent-selector} .border-#{$val}\@#{$breakpoint} {
|
|
323
|
+
@include border($val);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// Common shortcuts for responsive
|
|
328
|
+
#{config-flags.$parent-selector} .border\@#{$breakpoint} {
|
|
329
|
+
@include border(1);
|
|
330
|
+
}
|
|
331
|
+
#{config-flags.$parent-selector} .border-0\@#{$breakpoint} {
|
|
332
|
+
@include border(0);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// Border radius responsive
|
|
336
|
+
@each $name, $value in config-border.$border-radii {
|
|
337
|
+
#{config-flags.$parent-selector} .rounded-#{$name}\@#{$breakpoint} {
|
|
338
|
+
@include rounded($value);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
#{config-flags.$parent-selector} .rounded\@#{$breakpoint} {
|
|
343
|
+
@include rounded;
|
|
344
|
+
}
|
|
345
|
+
#{config-flags.$parent-selector} .square\@#{$breakpoint} {
|
|
346
|
+
@include rounded(0);
|
|
347
|
+
}
|
|
348
|
+
#{config-flags.$parent-selector} .pill\@#{$breakpoint} {
|
|
349
|
+
@include pill;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
347
353
|
}
|