claritas-web-framework 8.2.0 → 8.3.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.
Files changed (76) hide show
  1. package/dist/index.css +6 -67
  2. package/dist/index.html +1 -1
  3. package/index.html +3 -1
  4. package/package.json +9 -15
  5. package/sass/_functions.scss +4 -15
  6. package/sass/_helpers.scss +1 -6
  7. package/sass/_mixins.scss +0 -11
  8. package/sass/_modules.scss +0 -30
  9. package/sass/_reboot.scss +8 -12
  10. package/sass/_root.scss +2 -1
  11. package/sass/_utilities.scss +0 -16
  12. package/sass/_variables.scss +9 -3
  13. package/sass/helpers/_container.scss +0 -3
  14. package/sass/helpers/_embed.scss +0 -1
  15. package/sass/helpers/_grid.scss +0 -10
  16. package/sass/helpers/_link.scss +0 -1
  17. package/sass/helpers/_rfs.scss +303 -0
  18. package/sass/helpers/_screenReader.scss +0 -2
  19. package/sass/helpers/_wrap.scss +0 -1
  20. package/sass/index.scss +2 -7
  21. package/sass/mixins/_breakpoints.scss +6 -29
  22. package/sass/mixins/_button.scss +0 -2
  23. package/sass/mixins/_caret.scss +1 -5
  24. package/sass/mixins/_clearfix.scss +0 -1
  25. package/sass/mixins/_colors.scss +3 -5
  26. package/sass/mixins/_container.scss +0 -3
  27. package/sass/mixins/_gradient.scss +0 -1
  28. package/sass/mixins/_grid.scss +3 -22
  29. package/sass/mixins/_group.scss +1 -7
  30. package/sass/mixins/_list.scss +1 -5
  31. package/sass/mixins/_screenReader.scss +0 -1
  32. package/sass/modules/_alert.scss +1 -5
  33. package/sass/modules/_breadcrumbs.scss +0 -3
  34. package/sass/modules/_button.scss +1 -11
  35. package/sass/modules/_card.scss +1 -10
  36. package/sass/modules/_close.scss +0 -1
  37. package/sass/modules/_details.scss +3 -5
  38. package/sass/modules/_dialog.scss +0 -2
  39. package/sass/modules/_dropdown.scss +0 -2
  40. package/sass/modules/_form.scss +1 -7
  41. package/sass/modules/_list.scss +2 -14
  42. package/sass/modules/_loader.scss +0 -10
  43. package/sass/modules/_modal.scss +0 -2
  44. package/sass/modules/_nav.scss +0 -4
  45. package/sass/modules/_pill.scss +1 -8
  46. package/sass/modules/_tabs.scss +1 -6
  47. package/sass/modules/_tag.scss +1 -9
  48. package/sass/modules/_tile.scss +1 -8
  49. package/sass/modules/_tooltip.scss +0 -6
  50. package/sass/modules/form/_checkbox.scss +0 -6
  51. package/sass/modules/form/_file.scss +0 -11
  52. package/sass/modules/form/_formFieldGroup.scss +0 -2
  53. package/sass/modules/form/_output.scss +0 -1
  54. package/sass/modules/form/_progress.scss +0 -2
  55. package/sass/modules/form/_radio.scss +0 -6
  56. package/sass/modules/form/_range.scss +0 -21
  57. package/sass/modules/form/_select.scss +0 -1
  58. package/sass/modules/form/_switch.scss +0 -5
  59. package/sass/modules/form/_text.scss +0 -1
  60. package/sass/modules/form/_toggle.scss +0 -4
  61. package/sass/utilities/_align.scss +0 -4
  62. package/sass/utilities/_border.scss +0 -2
  63. package/sass/utilities/_colors.scss +0 -9
  64. package/sass/utilities/_display.scss +0 -4
  65. package/sass/utilities/_flex.scss +0 -3
  66. package/sass/utilities/_float.scss +0 -3
  67. package/sass/utilities/_order.scss +0 -3
  68. package/sass/utilities/_overflow.scss +0 -3
  69. package/sass/utilities/_pointerEvents.scss +0 -3
  70. package/sass/utilities/_position.scss +0 -3
  71. package/sass/utilities/_size.scss +0 -3
  72. package/sass/utilities/_spacing.scss +0 -3
  73. package/sass/utilities/_typography.scss +0 -3
  74. package/sass/utilities/_visibility.scss +0 -3
  75. package/sass/utilities/_zIndex.scss +0 -3
  76. package/.stylelintrc.json +0 -40
@@ -0,0 +1,303 @@
1
+ @use "sass:math";
2
+ @use "sass:meta";
3
+ @use "sass:string";
4
+
5
+ // stylelint-disable property-blacklist, scss/dollar-variable-default
6
+
7
+ // SCSS RFS mixin
8
+ //
9
+ // Automated responsive values for font sizes, paddings, margins and much more
10
+ //
11
+ // Licensed under MIT (https://github.com/twbs/rfs/blob/main/LICENSE)
12
+
13
+ // Configuration
14
+
15
+ // Base value
16
+ $rfs-base-value: 1.25rem !default;
17
+ $rfs-unit: rem !default;
18
+
19
+ @if $rfs-unit != rem and $rfs-unit != px {
20
+ @error "`#{$rfs-unit}` is not a valid unit for $rfs-unit. Use `px` or `rem`.";
21
+ }
22
+
23
+ // Breakpoint at where values start decreasing if screen width is smaller
24
+ $rfs-breakpoint: 1200px !default;
25
+ $rfs-breakpoint-unit: px !default;
26
+
27
+ @if $rfs-breakpoint-unit != px and $rfs-breakpoint-unit != em and $rfs-breakpoint-unit != rem {
28
+ @error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
29
+ }
30
+
31
+ // Resize values based on screen height and width
32
+ $rfs-two-dimensional: false !default;
33
+
34
+ // Factor of decrease
35
+ $rfs-factor: 10 !default;
36
+
37
+ @if meta.type-of($rfs-factor) != number or $rfs-factor <= 1 {
38
+ @error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
39
+ }
40
+
41
+ // Mode. Possibilities: "min-media-query", "max-media-query"
42
+ $rfs-mode: min-media-query !default;
43
+
44
+ // Generate enable or disable classes. Possibilities: false, "enable" or "disable"
45
+ $rfs-class: false !default;
46
+
47
+ // 1 rem = $rfs-rem-value px
48
+ $rfs-rem-value: 16 !default;
49
+
50
+ // Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
51
+ $rfs-safari-iframe-resize-bug-fix: false !default;
52
+
53
+ // Disable RFS by setting $enable-rfs to false
54
+ $enable-rfs: true !default;
55
+
56
+ // Cache $rfs-base-value unit
57
+ $rfs-base-value-unit: math.unit($rfs-base-value);
58
+
59
+ // Remove px-unit from $rfs-base-value for calculations
60
+ @if $rfs-base-value-unit == px {
61
+ $rfs-base-value: math.div($rfs-base-value, $rfs-base-value * 0 + 1);
62
+ } @else if $rfs-base-value-unit == rem {
63
+ $rfs-base-value: math.div($rfs-base-value, $rfs-base-value * 0 + math.div(1, $rfs-rem-value));
64
+ }
65
+
66
+ // Cache $rfs-breakpoint unit to prevent multiple calls
67
+ $rfs-breakpoint-unit-cache: math.unit($rfs-breakpoint);
68
+
69
+ // Remove unit from $rfs-breakpoint for calculations
70
+ @if $rfs-breakpoint-unit-cache == px {
71
+ $rfs-breakpoint: math.div($rfs-breakpoint, $rfs-breakpoint * 0 + 1);
72
+ } @else if $rfs-breakpoint-unit-cache == rem or $rfs-breakpoint-unit-cache == "em" {
73
+ $rfs-breakpoint: math.div($rfs-breakpoint, $rfs-breakpoint * 0 + math.div(1, $rfs-rem-value));
74
+ }
75
+
76
+ // Calculate the media query value
77
+ $rfs-mq-value: if(
78
+ $rfs-breakpoint-unit == px,
79
+ #{$rfs-breakpoint}px,
80
+ #{math.div($rfs-breakpoint, $rfs-rem-value)}#{$rfs-breakpoint-unit}
81
+ );
82
+ $rfs-mq-property-width: if($rfs-mode == max-media-query, max-width, min-width);
83
+ $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height);
84
+
85
+ // Internal mixin used to determine which media query needs to be used
86
+ @mixin _rfs-media-query {
87
+ @if $rfs-two-dimensional {
88
+ @if $rfs-mode == max-media-query {
89
+ @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}), (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
90
+ @content;
91
+ }
92
+ } @else {
93
+ @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) and (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
94
+ @content;
95
+ }
96
+ }
97
+ } @else {
98
+ @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) {
99
+ @content;
100
+ }
101
+ }
102
+ }
103
+
104
+ // Internal mixin that adds disable classes to the selector if needed.
105
+ @mixin _rfs-rule {
106
+ @if $rfs-class == disable and $rfs-mode == max-media-query {
107
+ // Adding an extra class increases specificity, which prevents the media query to override the property
108
+ &,
109
+ .disable-rfs &,
110
+ &.disable-rfs {
111
+ @content;
112
+ }
113
+ } @else if $rfs-class == enable and $rfs-mode == min-media-query {
114
+ .enable-rfs &,
115
+ &.enable-rfs {
116
+ @content;
117
+ }
118
+ } @else {
119
+ @content;
120
+ }
121
+ }
122
+
123
+ // Internal mixin that adds enable classes to the selector if needed.
124
+ @mixin _rfs-media-query-rule {
125
+ @if $rfs-class == enable {
126
+ @if $rfs-mode == min-media-query {
127
+ @content;
128
+ }
129
+
130
+ @include _rfs-media-query {
131
+ .enable-rfs &,
132
+ &.enable-rfs {
133
+ @content;
134
+ }
135
+ }
136
+ } @else {
137
+ @if $rfs-class == disable and $rfs-mode == min-media-query {
138
+ .disable-rfs &,
139
+ &.disable-rfs {
140
+ @content;
141
+ }
142
+ }
143
+ @include _rfs-media-query {
144
+ @content;
145
+ }
146
+ }
147
+ }
148
+
149
+ // Helper function to get the formatted non-responsive value
150
+ @function rfs-value($values) {
151
+ // Convert to list
152
+ $values: if(meta.type-of($values) != list, ($values), $values);
153
+
154
+ $val: "";
155
+
156
+ // Loop over each value and calculate value
157
+ @each $value in $values {
158
+ @if $value == 0 {
159
+ $val: $val + " 0";
160
+ } @else {
161
+ // Cache $value unit
162
+ $unit: if(meta.type-of($value) == "number", math.unit($value), false);
163
+
164
+ @if $unit == px {
165
+ // Convert to rem if needed
166
+ $val: $val + " " + if($rfs-unit == rem, #{math.div($value, $value * 0 + $rfs-rem-value)}rem, $value);
167
+ } @else if $unit == rem {
168
+ // Convert to px if needed
169
+ $val: $val + " " + if($rfs-unit == px, #{math.div($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
170
+ } @else {
171
+ // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
172
+ $val: $val + " " + $value;
173
+ }
174
+ }
175
+ }
176
+
177
+ // Remove first space
178
+ @return string.unquote(string.slice($val, 2));
179
+ }
180
+
181
+ // Helper function to get the responsive value calculated by RFS
182
+ @function rfs-fluid-value($values) {
183
+ // Convert to list
184
+ $values: if(meta.type-of($values) != list, ($values), $values);
185
+
186
+ $val: "";
187
+
188
+ // Loop over each value and calculate value
189
+ @each $value in $values {
190
+ @if $value == 0 {
191
+ $val: $val + " 0";
192
+ } @else {
193
+ // Cache $value unit
194
+ $unit: if(meta.type-of($value) == "number", math.unit($value), false);
195
+
196
+ // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
197
+ @if not $unit or $unit != px and $unit != rem {
198
+ $val: $val + " " + $value;
199
+ } @else {
200
+ // Remove unit from $value for calculations
201
+ $value: math.div($value, $value * 0 + if($unit == px, 1, math.div(1, $rfs-rem-value)));
202
+
203
+ // Only add the media query if the value is greater than the minimum value
204
+ @if math.abs($value) <= $rfs-base-value or not $enable-rfs {
205
+ $val: $val + " " + if($rfs-unit == rem, #{math.div($value, $rfs-rem-value)}rem, #{$value}px);
206
+ } @else {
207
+ // Calculate the minimum value
208
+ $value-min: $rfs-base-value + math.div(math.abs($value) - $rfs-base-value, $rfs-factor);
209
+
210
+ // Calculate difference between $value and the minimum value
211
+ $value-diff: math.abs($value) - $value-min;
212
+
213
+ // Base value formatting
214
+ $min-width: if($rfs-unit == rem, #{math.div($value-min, $rfs-rem-value)}rem, #{$value-min}px);
215
+
216
+ // Use negative value if needed
217
+ $min-width: if($value < 0, -$min-width, $min-width);
218
+
219
+ // Use `vmin` if two-dimensional is enabled
220
+ $variable-unit: if($rfs-two-dimensional, vmin, vw);
221
+
222
+ // Calculate the variable width between 0 and $rfs-breakpoint
223
+ $variable-width: #{math.div($value-diff * 100, $rfs-breakpoint)}#{$variable-unit};
224
+
225
+ // Return the calculated value
226
+ $val: $val + " calc(" + $min-width + if($value < 0, " - ", " + ") + $variable-width + ")";
227
+ }
228
+ }
229
+ }
230
+ }
231
+
232
+ // Remove first space
233
+ @return string.unquote(string.slice($val, 2));
234
+ }
235
+
236
+ // RFS mixin
237
+ @mixin rfs($values, $property: font-size) {
238
+ @if $values != null {
239
+ $val: rfs-value($values);
240
+ $fluidVal: rfs-fluid-value($values);
241
+
242
+ // Do not print the media query if responsive & non-responsive values are the same
243
+ @if $val == $fluidVal {
244
+ #{$property}: $val;
245
+ } @else {
246
+ @include _rfs-rule {
247
+ #{$property}: if($rfs-mode == max-media-query, $val, $fluidVal);
248
+
249
+ // Include safari iframe resize fix if needed
250
+ min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
251
+ }
252
+
253
+ @include _rfs-media-query-rule {
254
+ #{$property}: if($rfs-mode == max-media-query, $fluidVal, $val);
255
+ }
256
+ }
257
+ }
258
+ }
259
+
260
+ // Shorthand helper mixins
261
+ @mixin font-size($value) {
262
+ @include rfs($value);
263
+ }
264
+
265
+ @mixin padding($value) {
266
+ @include rfs($value, padding);
267
+ }
268
+
269
+ @mixin padding-top($value) {
270
+ @include rfs($value, padding-top);
271
+ }
272
+
273
+ @mixin padding-right($value) {
274
+ @include rfs($value, padding-right);
275
+ }
276
+
277
+ @mixin padding-bottom($value) {
278
+ @include rfs($value, padding-bottom);
279
+ }
280
+
281
+ @mixin padding-left($value) {
282
+ @include rfs($value, padding-left);
283
+ }
284
+
285
+ @mixin margin($value) {
286
+ @include rfs($value, margin);
287
+ }
288
+
289
+ @mixin margin-top($value) {
290
+ @include rfs($value, margin-top);
291
+ }
292
+
293
+ @mixin margin-right($value) {
294
+ @include rfs($value, margin-right);
295
+ }
296
+
297
+ @mixin margin-bottom($value) {
298
+ @include rfs($value, margin-bottom);
299
+ }
300
+
301
+ @mixin margin-left($value) {
302
+ @include rfs($value, margin-left);
303
+ }
@@ -1,11 +1,9 @@
1
1
  @use "./../mixins/screenReader" as *;
2
2
 
3
3
  .screen-reader {
4
-
5
4
  @include make-screen-reader(false);
6
5
  }
7
6
 
8
7
  .screen-reader--focusable {
9
-
10
8
  @include make-screen-reader(true);
11
9
  }
@@ -1,6 +1,5 @@
1
1
  @use "./../mixins/wrap" as *;
2
2
 
3
3
  .wrap--overflow {
4
-
5
4
  @include make-wrap-overflow;
6
5
  }
package/sass/index.scss CHANGED
@@ -1,17 +1,12 @@
1
- @forward "./variables";
1
+ @use "sass:color";
2
2
 
3
+ @forward "./variables";
3
4
  @forward "./functions";
4
-
5
5
  @forward "./mixins";
6
-
7
6
  @forward "./helpers";
8
-
9
7
  @forward "./utilities";
10
-
11
8
  @forward "./modules";
12
-
13
9
  @forward "./reboot";
14
-
15
10
  @forward "./root";
16
11
 
17
12
  @import "modern-normalize/modern-normalize.css";
@@ -1,7 +1,5 @@
1
1
  @use "sass:map";
2
-
3
2
  @use "sass:list";
4
-
5
3
  @use "./../variables" as *;
6
4
 
7
5
  // Breakpoint viewport sizes and media queries.
@@ -56,7 +54,6 @@
56
54
  // "-sm"
57
55
 
58
56
  @function breakpoint-infix($name, $breakpoints: $breakpoints) {
59
-
60
57
  @return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
61
58
  }
62
59
 
@@ -67,13 +64,10 @@
67
64
  $min: breakpoint-min($name, $breakpoints);
68
65
 
69
66
  @if $min {
70
-
71
67
  @media (min-width: $min) {
72
68
  @content;
73
69
  }
74
- }
75
-
76
- @else {
70
+ } @else {
77
71
  @content;
78
72
  }
79
73
  }
@@ -85,13 +79,10 @@
85
79
  $max: breakpoint-max($name, $breakpoints);
86
80
 
87
81
  @if $max {
88
-
89
82
  @media (max-width: $max) {
90
83
  @content;
91
84
  }
92
- }
93
-
94
- @else {
85
+ } @else {
95
86
  @content;
96
87
  }
97
88
  }
@@ -104,21 +95,14 @@
104
95
  $max: breakpoint-max($upper, $breakpoints);
105
96
 
106
97
  @if $min != null and $max != null {
107
-
108
98
  @media (min-width: $min) and (max-width: $max) {
109
99
  @content;
110
100
  }
111
- }
112
-
113
- @else if $max == null {
114
-
101
+ } @else if $max == null {
115
102
  @include breakpoints.media-breakpoint-up($lower, $breakpoints) {
116
103
  @content;
117
104
  }
118
- }
119
-
120
- @else if $min == null {
121
-
105
+ } @else if $min == null {
122
106
  @include media-breakpoint-down($upper, $breakpoints) {
123
107
  @content;
124
108
  }
@@ -134,21 +118,14 @@
134
118
  $max: breakpoint-max($name, $breakpoints);
135
119
 
136
120
  @if $min != null and $max != null {
137
-
138
121
  @media (min-width: $min) and (max-width: $max) {
139
122
  @content;
140
123
  }
141
- }
142
-
143
- @else if $max == null {
144
-
124
+ } @else if $max == null {
145
125
  @include breakpoints.media-breakpoint-up($name, $breakpoints) {
146
126
  @content;
147
127
  }
148
- }
149
-
150
- @else if $min == null {
151
-
128
+ } @else if $min == null {
152
129
  @include media-breakpoint-down($name, $breakpoints) {
153
130
  @content;
154
131
  }
@@ -1,7 +1,5 @@
1
1
  @use "sass:color";
2
-
3
2
  @use "./../variables" as *;
4
-
5
3
  @use "./../functions" as *;
6
4
 
7
5
  @mixin button-variant(
@@ -16,16 +16,13 @@
16
16
 
17
17
  @if $left {
18
18
  left: $position;
19
- }
20
-
21
- @else {
19
+ } @else {
22
20
  right: $position;
23
21
  }
24
22
  }
25
23
  }
26
24
 
27
25
  @mixin make-caret-down($left: false, $color: "body-color", $position: calc(var(--spacer) * 0.5)) {
28
-
29
26
  @include make-caret($left);
30
27
 
31
28
  &::after {
@@ -35,7 +32,6 @@
35
32
  }
36
33
 
37
34
  @mixin make-caret-up($left: false, $color: "body-color", $position: calc(var(--spacer) * 0.5)) {
38
-
39
35
  @include make-caret($left);
40
36
 
41
37
  &::after {
@@ -1,5 +1,4 @@
1
1
  @mixin clearfix() {
2
-
3
2
  &::after {
4
3
  display: block;
5
4
  content: "";
@@ -1,13 +1,11 @@
1
1
  @use "sass:color";
2
-
3
2
  @use "./../variables" as *;
4
-
5
3
  @use "./../functions" as *;
6
4
 
7
5
  @mixin define-color-variables($title, $color) {
8
- --#{$title}-h: #{color.hue($color)};
9
- --#{$title}-s: #{color.saturation($color)};
10
- --#{$title}-l: #{color.lightness($color)};
6
+ --#{$title}-h: #{color.channel($color, "hue", $space: hsl)};
7
+ --#{$title}-s: #{color.channel($color, "saturation", $space: hsl)};
8
+ --#{$title}-l: #{color.channel($color, "lightness", $space: hsl)};
11
9
  }
12
10
 
13
11
  @mixin make-color($title) {
@@ -1,5 +1,4 @@
1
1
  @use "./../variables" as *;
2
-
3
2
  @use "./../mixins/breakpoints" as *;
4
3
 
5
4
  @mixin make-container() {
@@ -14,9 +13,7 @@
14
13
  }
15
14
 
16
15
  @mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $breakpoints) {
17
-
18
16
  @each $breakpoint, $container-max-width in $max-widths {
19
-
20
17
  @include media-breakpoint-up($breakpoint, $breakpoints) {
21
18
  max-width: $container-max-width;
22
19
  }
@@ -1,5 +1,4 @@
1
1
  @use "sass:color";
2
-
3
2
  @use "./../variables" as *;
4
3
 
5
4
  // Horizontal gradient, from left to right
@@ -1,11 +1,7 @@
1
1
  @use "sass:map";
2
-
3
2
  @use "sass:math";
4
-
5
3
  @use "sass:meta";
6
-
7
4
  @use "./../variables" as *;
8
-
9
5
  @use "./../mixins/breakpoints" as *;
10
6
 
11
7
  // Grid system
@@ -36,19 +32,16 @@
36
32
  flex-shrink: 0;
37
33
  width: 100%;
38
34
  max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
39
- padding-right: calc(var(--gutter-x) * 0.5); // stylelint-disable-line function-disallowed-list
40
- padding-left: calc(var(--gutter-x) * 0.5); // stylelint-disable-line function-disallowed-list
35
+ padding-right: calc(var(--gutter-x) * 0.5);
36
+ padding-left: calc(var(--gutter-x) * 0.5);
41
37
  margin-top: var(--gutter-y);
42
38
  }
43
39
 
44
40
  @mixin make-col($size: false, $columns: $grid-columns) {
45
-
46
41
  @if $size {
47
42
  flex: 0 0 auto;
48
43
  width: math.percentage(math.div($size, $columns));
49
- }
50
-
51
- @else {
44
+ } @else {
52
45
  flex: 1 1 0;
53
46
  max-width: 100%;
54
47
  }
@@ -75,7 +68,6 @@
75
68
  // style grid.
76
69
 
77
70
  @mixin row-cols($count) {
78
-
79
71
  > * {
80
72
  flex: 0 0 auto;
81
73
  width: math.div(100%, $count);
@@ -87,41 +79,33 @@
87
79
  // any value of `$grid-columns`.
88
80
 
89
81
  @mixin make-grid-columns($columns: $grid-columns, $breakpoints: $breakpoints) {
90
-
91
82
  @each $breakpoint in map.keys($breakpoints) {
92
83
  $infix: breakpoint-infix($breakpoint, $breakpoints);
93
84
 
94
85
  @include media-breakpoint-up($breakpoint, $breakpoints) {
95
86
  .col-#{$infix},
96
87
  .col {
97
-
98
88
  @include make-col-fit;
99
89
  }
100
90
 
101
91
  .col-#{$infix}-auto {
102
-
103
92
  @include make-col-auto;
104
93
  }
105
94
 
106
95
  .col-#{$infix}-fit {
107
-
108
96
  @include make-col-fit;
109
97
  }
110
98
 
111
99
  @if $columns > 0 {
112
-
113
100
  @for $i from 1 through $columns {
114
101
  .col-#{$infix}-#{$i} {
115
-
116
102
  @include make-col($i, $columns);
117
103
  }
118
104
  }
119
105
 
120
106
  @for $i from 0 through ($columns - 1) {
121
-
122
107
  @if not($infix == "" and $i == 0) {
123
108
  .offset-#{$infix}-#{$i} {
124
-
125
109
  @include make-col-offset($i, $columns);
126
110
  }
127
111
  }
@@ -147,14 +131,11 @@
147
131
  }
148
132
 
149
133
  @mixin make-cssgrid($columns: $grid-columns, $breakpoints: $breakpoints) {
150
-
151
134
  @each $breakpoint in map.keys($breakpoints) {
152
135
  $infix: breakpoint-infix($breakpoint, $breakpoints);
153
136
 
154
137
  @include media-breakpoint-up($breakpoint, $breakpoints) {
155
-
156
138
  @if $columns > 0 {
157
-
158
139
  @for $i from 1 through $columns {
159
140
  .g-col-#{$infix}-#{$i} {
160
141
  grid-column: auto / span $i;
@@ -10,15 +10,12 @@
10
10
 
11
11
  @if $enable-margins {
12
12
  margin-bottom: var(--spacer);
13
- }
14
-
15
- @else {
13
+ } @else {
16
14
  margin-bottom: 0;
17
15
  }
18
16
  }
19
17
 
20
18
  @mixin make-group-column($gap: calc(var(--spacer) * 0.5)) {
21
-
22
19
  @include make-group;
23
20
 
24
21
  align-items: stretch;
@@ -27,7 +24,6 @@
27
24
  }
28
25
 
29
26
  @mixin make-group-row($gap: calc(var(--spacer) * 0.5)) {
30
-
31
27
  @include make-group;
32
28
 
33
29
  gap: $gap;
@@ -37,7 +33,6 @@
37
33
  gap: 0;
38
34
 
39
35
  & > * {
40
-
41
36
  &:not(:last-child) {
42
37
  border-bottom-right-radius: 0;
43
38
  border-bottom-left-radius: 0;
@@ -59,7 +54,6 @@
59
54
  gap: 0;
60
55
 
61
56
  & > #{$selector} {
62
-
63
57
  &:not(:last-child) {
64
58
  border-bottom-right-radius: 0;
65
59
  border-top-right-radius: 0;
@@ -1,5 +1,4 @@
1
1
  @use "./../variables" as *;
2
-
3
2
  @use "./../mixins/group" as *;
4
3
 
5
4
  @mixin make-list-unstyled() {
@@ -9,15 +8,12 @@
9
8
 
10
9
  @if $enable-margins {
11
10
  margin-bottom: var(--spacer);
12
- }
13
-
14
- @else {
11
+ } @else {
15
12
  margin-bottom: 0;
16
13
  }
17
14
  }
18
15
 
19
16
  @mixin make-list-inline($gap: calc(var(--spacer) * 0.5)) {
20
-
21
17
  @include make-group-row($gap);
22
18
 
23
19
  @include make-list-unstyled;
@@ -10,7 +10,6 @@
10
10
 
11
11
  &:active,
12
12
  &:focus {
13
-
14
13
  @if $focusable {
15
14
  position: static;
16
15
  width: auto;