claritas-web-framework 8.0.53 → 8.1.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/.stylelintrc.json +2 -0
- package/dist/index.css +1 -1
- package/package.json +13 -13
- package/sass/_functions.scss +15 -2
- package/sass/_helpers.scss +6 -0
- package/sass/_mixins.scss +11 -0
- package/sass/_modules.scss +30 -0
- package/sass/_reboot.scss +17 -4
- package/sass/_root.scss +7 -0
- package/sass/_utilities.scss +16 -0
- package/sass/_variables.scss +2 -18
- package/sass/helpers/_container.scss +3 -0
- package/sass/helpers/_embed.scss +1 -0
- package/sass/helpers/_grid.scss +11 -0
- package/sass/helpers/_link.scss +1 -0
- package/sass/helpers/_screenReader.scss +2 -0
- package/sass/helpers/_wrap.scss +1 -0
- package/sass/index.scss +7 -0
- package/sass/mixins/_breakpoints.scss +36 -6
- package/sass/mixins/_button.scss +1 -15
- package/sass/mixins/_caret.scss +5 -1
- package/sass/mixins/_clearfix.scss +1 -0
- package/sass/mixins/_colors.scss +1 -0
- package/sass/mixins/_container.scss +3 -0
- package/sass/mixins/_gradient.scss +2 -0
- package/sass/mixins/_grid.scss +24 -1
- package/sass/mixins/_group.scss +7 -1
- package/sass/mixins/_list.scss +6 -1
- package/sass/mixins/_screenReader.scss +1 -0
- package/sass/modules/_alert.scss +4 -1
- package/sass/modules/_breadcrumbs.scss +3 -0
- package/sass/modules/_button.scss +12 -6
- package/sass/modules/_card.scss +9 -1
- package/sass/modules/_close.scss +1 -0
- package/sass/modules/_details.scss +6 -1
- package/sass/modules/_dialog.scss +1 -0
- package/sass/modules/_dropdown.scss +2 -0
- package/sass/modules/_form.scss +11 -12
- package/sass/modules/_list.scss +13 -2
- package/sass/modules/_loader.scss +10 -0
- package/sass/modules/_modal.scss +1 -0
- package/sass/modules/_nav.scss +3 -3
- package/sass/modules/_pill.scss +6 -0
- package/sass/modules/_table.scss +17 -0
- package/sass/modules/_tabs.scss +5 -1
- package/sass/modules/_tag.scss +7 -0
- package/sass/modules/_tile.scss +7 -1
- package/sass/modules/_tooltip.scss +5 -0
- package/sass/modules/form/_checkbox.scss +5 -0
- package/sass/modules/form/_file.scss +10 -0
- package/sass/modules/form/_formFieldGroup.scss +2 -2
- package/sass/modules/form/_progress.scss +1 -0
- package/sass/modules/form/_radio.scss +5 -0
- package/sass/modules/form/_range.scss +20 -3
- package/sass/modules/form/_select.scss +1 -0
- package/sass/modules/form/_switch.scss +4 -0
- package/sass/modules/form/_text.scss +0 -3
- package/sass/modules/form/_toggle.scss +3 -0
- package/sass/utilities/_align.scss +3 -0
- package/sass/utilities/_border.scss +1 -0
- package/sass/utilities/_colors.scss +17 -0
- package/sass/utilities/_display.scss +3 -0
- package/sass/utilities/_flex.scss +2 -0
- package/sass/utilities/_float.scss +2 -0
- package/sass/utilities/_order.scss +2 -0
- package/sass/utilities/_overflow.scss +2 -0
- package/sass/utilities/_pointerEvents.scss +2 -0
- package/sass/utilities/_position.scss +2 -0
- package/sass/utilities/_size.scss +3 -0
- package/sass/utilities/_spacing.scss +2 -0
- package/sass/utilities/_typography.scss +2 -0
- package/sass/utilities/_visibility.scss +2 -0
- package/sass/utilities/_zIndex.scss +2 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
+
|
|
2
3
|
@use "sass:list";
|
|
3
4
|
|
|
4
5
|
@use "./../variables" as *;
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
// md
|
|
16
17
|
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
|
|
17
18
|
// md
|
|
19
|
+
|
|
18
20
|
@function breakpoint-next($name, $breakpoints: $breakpoints, $breakpoint-names: map.keys($breakpoints)) {
|
|
19
21
|
$n: list.index($breakpoint-names, $name);
|
|
20
22
|
|
|
@@ -24,6 +26,7 @@
|
|
|
24
26
|
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
|
25
27
|
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
26
28
|
// 576px
|
|
29
|
+
|
|
27
30
|
@function breakpoint-min($name, $breakpoints: $breakpoints) {
|
|
28
31
|
$min: map.get($breakpoints, $name);
|
|
29
32
|
|
|
@@ -38,6 +41,7 @@
|
|
|
38
41
|
// See https://bugs.webkit.org/show_bug.cgi?id=178261
|
|
39
42
|
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
40
43
|
// 767.98px
|
|
44
|
+
|
|
41
45
|
@function breakpoint-max($name, $breakpoints: $breakpoints) {
|
|
42
46
|
$next: breakpoint-next($name, $breakpoints);
|
|
43
47
|
|
|
@@ -50,53 +54,71 @@
|
|
|
50
54
|
// "" (Returns a blank string)
|
|
51
55
|
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
52
56
|
// "-sm"
|
|
57
|
+
|
|
53
58
|
@function breakpoint-infix($name, $breakpoints: $breakpoints) {
|
|
59
|
+
|
|
54
60
|
@return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
|
|
55
61
|
}
|
|
56
62
|
|
|
57
63
|
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
|
58
64
|
// Makes the @content apply to the given breakpoint and wider.
|
|
65
|
+
|
|
59
66
|
@mixin media-breakpoint-up($name, $breakpoints: $breakpoints) {
|
|
60
67
|
$min: breakpoint-min($name, $breakpoints);
|
|
61
68
|
|
|
62
69
|
@if $min {
|
|
70
|
+
|
|
63
71
|
@media (min-width: $min) {
|
|
64
72
|
@content;
|
|
65
73
|
}
|
|
66
|
-
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@else {
|
|
67
77
|
@content;
|
|
68
78
|
}
|
|
69
79
|
}
|
|
70
80
|
|
|
71
81
|
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
|
72
82
|
// Makes the @content apply to the given breakpoint and narrower.
|
|
83
|
+
|
|
73
84
|
@mixin media-breakpoint-down($name, $breakpoints: $breakpoints) {
|
|
74
85
|
$max: breakpoint-max($name, $breakpoints);
|
|
75
86
|
|
|
76
87
|
@if $max {
|
|
88
|
+
|
|
77
89
|
@media (max-width: $max) {
|
|
78
90
|
@content;
|
|
79
91
|
}
|
|
80
|
-
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@else {
|
|
81
95
|
@content;
|
|
82
96
|
}
|
|
83
97
|
}
|
|
84
98
|
|
|
85
99
|
// Media that spans multiple breakpoint widths.
|
|
86
100
|
// Makes the @content apply between the min and max breakpoints
|
|
101
|
+
|
|
87
102
|
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $breakpoints) {
|
|
88
103
|
$min: breakpoint-min($lower, $breakpoints);
|
|
89
104
|
$max: breakpoint-max($upper, $breakpoints);
|
|
90
105
|
|
|
91
106
|
@if $min != null and $max != null {
|
|
107
|
+
|
|
92
108
|
@media (min-width: $min) and (max-width: $max) {
|
|
93
109
|
@content;
|
|
94
110
|
}
|
|
95
|
-
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@else if $max == null {
|
|
114
|
+
|
|
96
115
|
@include breakpoints.media-breakpoint-up($lower, $breakpoints) {
|
|
97
116
|
@content;
|
|
98
117
|
}
|
|
99
|
-
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@else if $min == null {
|
|
121
|
+
|
|
100
122
|
@include media-breakpoint-down($upper, $breakpoints) {
|
|
101
123
|
@content;
|
|
102
124
|
}
|
|
@@ -106,19 +128,27 @@
|
|
|
106
128
|
// Media between the breakpoint's minimum and maximum widths.
|
|
107
129
|
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
|
108
130
|
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
|
131
|
+
|
|
109
132
|
@mixin media-breakpoint-only($name, $breakpoints: $breakpoints) {
|
|
110
133
|
$min: breakpoint-min($name, $breakpoints);
|
|
111
134
|
$max: breakpoint-max($name, $breakpoints);
|
|
112
135
|
|
|
113
136
|
@if $min != null and $max != null {
|
|
137
|
+
|
|
114
138
|
@media (min-width: $min) and (max-width: $max) {
|
|
115
139
|
@content;
|
|
116
140
|
}
|
|
117
|
-
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@else if $max == null {
|
|
144
|
+
|
|
118
145
|
@include breakpoints.media-breakpoint-up($name, $breakpoints) {
|
|
119
146
|
@content;
|
|
120
147
|
}
|
|
121
|
-
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@else if $min == null {
|
|
151
|
+
|
|
122
152
|
@include media-breakpoint-down($name, $breakpoints) {
|
|
123
153
|
@content;
|
|
124
154
|
}
|
package/sass/mixins/_button.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use "sass:color";
|
|
2
2
|
|
|
3
3
|
@use "./../variables" as *;
|
|
4
|
+
|
|
4
5
|
@use "./../functions" as *;
|
|
5
6
|
|
|
6
7
|
@mixin button-variant(
|
|
@@ -14,7 +15,6 @@
|
|
|
14
15
|
--button-focus-color: #{$color};
|
|
15
16
|
--button-active-color: #{$color};
|
|
16
17
|
--button-disabled-color: #{$color-disabled};
|
|
17
|
-
|
|
18
18
|
--button-border-color: hsl(
|
|
19
19
|
var(--#{$main}-h) var(--#{$main}-s) calc(calc(var(--#{$main}-l) / 100) * #{$border-shade} * 100)
|
|
20
20
|
);
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
--button-disabled-border-color: hsl(
|
|
31
31
|
var(--#{$main}-h) var(--#{$main}-s) calc(calc(var(--#{$main}-l) / 100) * #{$border-shade} * 100) / #{$button-disabled-border-alpha}
|
|
32
32
|
);
|
|
33
|
-
|
|
34
33
|
--button-background: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l));
|
|
35
34
|
--button-hover-background: hsl(
|
|
36
35
|
var(--#{$main}-h) var(--#{$main}-s) calc(calc(var(--#{$main}-l) / 100) * #{$border-shade} * 100)
|
|
@@ -44,7 +43,6 @@
|
|
|
44
43
|
--button-disabled-background: hsl(
|
|
45
44
|
var(--#{$main}-h) var(--#{$main}-s) calc(calc(var(--#{$main}-l) / 100) * #{$border-shade} * 100) / #{$button-disabled-background-alpha}
|
|
46
45
|
);
|
|
47
|
-
|
|
48
46
|
--button-box-shadow: 0 0 0 0.125em hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 0%);
|
|
49
47
|
--button-hover-box-shadow: 0 0 0 0.125em hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 0%);
|
|
50
48
|
--button-focus-box-shadow: 0 0 0 0.125em hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 20%);
|
|
@@ -65,13 +63,11 @@
|
|
|
65
63
|
--button-focus-color: #{$color};
|
|
66
64
|
--button-active-color: #{$color};
|
|
67
65
|
--button-disabled-color: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / #{$color-disabled-alpha});
|
|
68
|
-
|
|
69
66
|
--button-border-color: #{$border-color};
|
|
70
67
|
--button-hover-border-color: #{$border-color};
|
|
71
68
|
--button-focus-border-color: #{$border-color};
|
|
72
69
|
--button-active-border-color: #{$border-color};
|
|
73
70
|
--button-disabled-border-color: #{$border-color-disabled};
|
|
74
|
-
|
|
75
71
|
--button-background: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 0%);
|
|
76
72
|
--button-hover-background: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l));
|
|
77
73
|
--button-focus-background: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l));
|
|
@@ -79,7 +75,6 @@
|
|
|
79
75
|
var(--#{$main}-h) var(--#{$main}-s) calc(var(--#{$main}-l) - #{$button-hover-background-alpha})
|
|
80
76
|
);
|
|
81
77
|
--button-disabled-background: hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 0%);
|
|
82
|
-
|
|
83
78
|
--button-box-shadow: 0 0 0 0.125em hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 0%);
|
|
84
79
|
--button-hover-box-shadow: 0 0 0 0.125em hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 0%);
|
|
85
80
|
--button-focus-box-shadow: 0 0 0 0.125em hsl(var(--#{$main}-h) var(--#{$main}-s) var(--#{$main}-l) / 20%);
|
|
@@ -95,13 +90,11 @@
|
|
|
95
90
|
var(--#{$color}-h) var(--#{$color}-s) calc(var(--#{$color}-l) - #{$link-shade-percentage})
|
|
96
91
|
);
|
|
97
92
|
--button-disabled-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / #{$color-disabled-alpha});
|
|
98
|
-
|
|
99
93
|
--button-border-color: transparent;
|
|
100
94
|
--button-hover-border-color: transparent;
|
|
101
95
|
--button-focus-border-color: transparent;
|
|
102
96
|
--button-active-border-color: transparent;
|
|
103
97
|
--button-disabled-border-color: transparent;
|
|
104
|
-
|
|
105
98
|
--button-background: transparent;
|
|
106
99
|
--button-hover-background: hsl(
|
|
107
100
|
var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / #{$button-hover-background-alpha}
|
|
@@ -113,7 +106,6 @@
|
|
|
113
106
|
var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / #{$button-hover-background-alpha}
|
|
114
107
|
);
|
|
115
108
|
--button-disabled-background: transparent;
|
|
116
|
-
|
|
117
109
|
--button-box-shadow: none;
|
|
118
110
|
--button-hover-box-shadow: none;
|
|
119
111
|
--button-focus-box-shadow: none;
|
|
@@ -129,34 +121,28 @@
|
|
|
129
121
|
var(--#{$color}-h) var(--#{$color}-s) calc(var(--#{$color}-l) - #{$link-shade-percentage})
|
|
130
122
|
);
|
|
131
123
|
--button-disabled-color: hsl(var(--#{$color}-h) var(--#{$color}-s) var(--#{$color}-l) / #{$color-disabled-alpha});
|
|
132
|
-
|
|
133
124
|
--button-border-color: transparent;
|
|
134
125
|
--button-hover-border-color: transparent;
|
|
135
126
|
--button-focus-border-color: transparent;
|
|
136
127
|
--button-active-border-color: transparent;
|
|
137
128
|
--button-disabled-border-color: transparent;
|
|
138
|
-
|
|
139
129
|
--button-background: transparent;
|
|
140
130
|
--button-hover-background: transparent;
|
|
141
131
|
--button-focus-background: transparent;
|
|
142
132
|
--button-active-background: transparent;
|
|
143
133
|
--button-disabled-background: transparent;
|
|
144
|
-
|
|
145
134
|
--button-box-shadow: none;
|
|
146
135
|
--button-hover-box-shadow: none;
|
|
147
136
|
--button-focus-box-shadow: none;
|
|
148
137
|
--button-active-box-shadow: none;
|
|
149
138
|
--button-disabled-box-shadow: none;
|
|
150
|
-
|
|
151
139
|
--button-padding-x: 0;
|
|
152
140
|
--button-padding-y: 0;
|
|
153
141
|
--button-small-padding-x: 0;
|
|
154
142
|
--button-small-padding-y: 0;
|
|
155
143
|
--button-large-padding-x: 0;
|
|
156
144
|
--button-large-padding-y: 0;
|
|
157
|
-
|
|
158
145
|
--button-hover-text-decoration: underline;
|
|
159
|
-
|
|
160
146
|
--button-border-radius: 0;
|
|
161
147
|
--button-small-border-radius: 0;
|
|
162
148
|
--button-large-border-radius: 0;
|
package/sass/mixins/_caret.scss
CHANGED
|
@@ -16,13 +16,16 @@
|
|
|
16
16
|
|
|
17
17
|
@if $left {
|
|
18
18
|
left: $position;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@else {
|
|
20
22
|
right: $position;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
@mixin make-caret-down($left: false, $color: "body-color", $position: calc(var(--spacer) * 0.5)) {
|
|
28
|
+
|
|
26
29
|
@include make-caret($left);
|
|
27
30
|
|
|
28
31
|
&::after {
|
|
@@ -32,6 +35,7 @@
|
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
@mixin make-caret-up($left: false, $color: "body-color", $position: calc(var(--spacer) * 0.5)) {
|
|
38
|
+
|
|
35
39
|
@include make-caret($left);
|
|
36
40
|
|
|
37
41
|
&::after {
|
package/sass/mixins/_colors.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use "./../variables" as *;
|
|
2
|
+
|
|
2
3
|
@use "./../mixins/breakpoints" as *;
|
|
3
4
|
|
|
4
5
|
@mixin make-container() {
|
|
@@ -13,7 +14,9 @@
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $breakpoints) {
|
|
17
|
+
|
|
16
18
|
@each $breakpoint, $container-max-width in $max-widths {
|
|
19
|
+
|
|
17
20
|
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
18
21
|
max-width: $container-max-width;
|
|
19
22
|
}
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
// Horizontal gradient, from left to right
|
|
6
6
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
|
7
|
+
|
|
7
8
|
@mixin gradient-x($start-color: $gray-7, $end-color: $gray-8, $start-percent: 0%, $end-percent: 100%) {
|
|
8
9
|
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
// Vertical gradient, from top to bottom
|
|
12
13
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
|
14
|
+
|
|
13
15
|
@mixin gradient-y($start-color: $gray-7, $end-color: $gray-8, $start-percent: null, $end-percent: null) {
|
|
14
16
|
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
|
15
17
|
}
|
package/sass/mixins/_grid.scss
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
+
|
|
2
3
|
@use "sass:math";
|
|
4
|
+
|
|
3
5
|
@use "sass:meta";
|
|
4
6
|
|
|
5
7
|
@use "./../variables" as *;
|
|
8
|
+
|
|
6
9
|
@use "./../mixins/breakpoints" as *;
|
|
7
10
|
|
|
8
11
|
// Grid system
|
|
9
12
|
// Generate semantic grid columns with these mixins.
|
|
13
|
+
|
|
10
14
|
@mixin make-row($gutter: $grid-gutter) {
|
|
11
15
|
--gutter-x: #{$gutter};
|
|
12
16
|
--gutter-y: 0;
|
|
@@ -38,10 +42,13 @@
|
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
@mixin make-col($size: false, $columns: $grid-columns) {
|
|
45
|
+
|
|
41
46
|
@if $size {
|
|
42
47
|
flex: 0 0 auto;
|
|
43
48
|
width: math.percentage(math.div($size, $columns));
|
|
44
|
-
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@else {
|
|
45
52
|
flex: 1 1 0;
|
|
46
53
|
max-width: 100%;
|
|
47
54
|
}
|
|
@@ -66,7 +73,9 @@
|
|
|
66
73
|
// Specify on a parent element(e.g., .grid) to force immediate children into NN
|
|
67
74
|
// number of columns. Supports wrapping to new lines, but does not do a Masonry
|
|
68
75
|
// style grid.
|
|
76
|
+
|
|
69
77
|
@mixin row-cols($count) {
|
|
78
|
+
|
|
70
79
|
> * {
|
|
71
80
|
flex: 0 0 auto;
|
|
72
81
|
width: math.div(100%, $count);
|
|
@@ -76,34 +85,43 @@
|
|
|
76
85
|
// Framework grid generation
|
|
77
86
|
// Used only by Bootstrap to generate the correct number of grid classes given
|
|
78
87
|
// any value of `$grid-columns`.
|
|
88
|
+
|
|
79
89
|
@mixin make-grid-columns($columns: $grid-columns, $breakpoints: $breakpoints) {
|
|
90
|
+
|
|
80
91
|
@each $breakpoint in map.keys($breakpoints) {
|
|
81
92
|
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
82
93
|
|
|
83
94
|
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
84
95
|
.col-#{$infix},
|
|
85
96
|
.col {
|
|
97
|
+
|
|
86
98
|
@include make-col-fit;
|
|
87
99
|
}
|
|
88
100
|
|
|
89
101
|
.col-#{$infix}-auto {
|
|
102
|
+
|
|
90
103
|
@include make-col-auto;
|
|
91
104
|
}
|
|
92
105
|
|
|
93
106
|
.col-#{$infix}-fit {
|
|
107
|
+
|
|
94
108
|
@include make-col-fit;
|
|
95
109
|
}
|
|
96
110
|
|
|
97
111
|
@if $columns > 0 {
|
|
112
|
+
|
|
98
113
|
@for $i from 1 through $columns {
|
|
99
114
|
.col-#{$infix}-#{$i} {
|
|
115
|
+
|
|
100
116
|
@include make-col($i, $columns);
|
|
101
117
|
}
|
|
102
118
|
}
|
|
103
119
|
|
|
104
120
|
@for $i from 0 through ($columns - 1) {
|
|
121
|
+
|
|
105
122
|
@if not($infix == "" and $i == 0) {
|
|
106
123
|
.offset-#{$infix}-#{$i} {
|
|
124
|
+
|
|
107
125
|
@include make-col-offset($i, $columns);
|
|
108
126
|
}
|
|
109
127
|
}
|
|
@@ -112,6 +130,7 @@
|
|
|
112
130
|
|
|
113
131
|
// Gutters
|
|
114
132
|
// Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
|
|
133
|
+
|
|
115
134
|
@each $key, $value in $gutters {
|
|
116
135
|
.g#{$infix}-#{$key},
|
|
117
136
|
.gx#{$infix}-#{$key} {
|
|
@@ -128,11 +147,14 @@
|
|
|
128
147
|
}
|
|
129
148
|
|
|
130
149
|
@mixin make-cssgrid($columns: $grid-columns, $breakpoints: $breakpoints) {
|
|
150
|
+
|
|
131
151
|
@each $breakpoint in map.keys($breakpoints) {
|
|
132
152
|
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
133
153
|
|
|
134
154
|
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
155
|
+
|
|
135
156
|
@if $columns > 0 {
|
|
157
|
+
|
|
136
158
|
@for $i from 1 through $columns {
|
|
137
159
|
.g-col-#{$infix}-#{$i} {
|
|
138
160
|
grid-column: auto / span $i;
|
|
@@ -141,6 +163,7 @@
|
|
|
141
163
|
|
|
142
164
|
// Start with `1` because `0` is an invalid value.
|
|
143
165
|
// Ends with `$columns - 1` because offsetting by the width of an entire row isn't possible.
|
|
166
|
+
|
|
144
167
|
@for $i from 1 through ($columns - 1) {
|
|
145
168
|
.g-start-#{$infix}-#{$i} {
|
|
146
169
|
grid-column-start: $i;
|
package/sass/mixins/_group.scss
CHANGED
|
@@ -10,12 +10,15 @@
|
|
|
10
10
|
|
|
11
11
|
@if $enable-margins {
|
|
12
12
|
margin-bottom: var(--spacer);
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@else {
|
|
14
16
|
margin-bottom: 0;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
@mixin make-group-column($gap: calc(var(--spacer) * 0.5)) {
|
|
21
|
+
|
|
19
22
|
@include make-group;
|
|
20
23
|
|
|
21
24
|
align-items: stretch;
|
|
@@ -24,6 +27,7 @@
|
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
@mixin make-group-row($gap: calc(var(--spacer) * 0.5)) {
|
|
30
|
+
|
|
27
31
|
@include make-group;
|
|
28
32
|
|
|
29
33
|
gap: $gap;
|
|
@@ -33,6 +37,7 @@
|
|
|
33
37
|
gap: 0;
|
|
34
38
|
|
|
35
39
|
& > * {
|
|
40
|
+
|
|
36
41
|
&:not(:last-child) {
|
|
37
42
|
border-bottom-right-radius: 0;
|
|
38
43
|
border-bottom-left-radius: 0;
|
|
@@ -54,6 +59,7 @@
|
|
|
54
59
|
gap: 0;
|
|
55
60
|
|
|
56
61
|
& > #{$selector} {
|
|
62
|
+
|
|
57
63
|
&:not(:last-child) {
|
|
58
64
|
border-bottom-right-radius: 0;
|
|
59
65
|
border-top-right-radius: 0;
|
package/sass/mixins/_list.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use "./../variables" as *;
|
|
2
|
+
|
|
2
3
|
@use "./../mixins/group" as *;
|
|
3
4
|
|
|
4
5
|
@mixin make-list-unstyled() {
|
|
@@ -8,12 +9,16 @@
|
|
|
8
9
|
|
|
9
10
|
@if $enable-margins {
|
|
10
11
|
margin-bottom: var(--spacer);
|
|
11
|
-
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@else {
|
|
12
15
|
margin-bottom: 0;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
@mixin make-list-inline($gap: calc(var(--spacer) * 0.5)) {
|
|
20
|
+
|
|
17
21
|
@include make-group-row($gap);
|
|
22
|
+
|
|
18
23
|
@include make-list-unstyled;
|
|
19
24
|
}
|
package/sass/modules/_alert.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use "rfs/scss" as *;
|
|
2
2
|
|
|
3
3
|
@use "./../variables" as *;
|
|
4
|
+
|
|
4
5
|
@use "./../mixins" as *;
|
|
5
6
|
|
|
6
7
|
.button {
|
|
@@ -14,7 +15,6 @@
|
|
|
14
15
|
var(--body-color-h) var(--body-color-s) calc(var(--body-color-l) - #{$link-shade-percentage})
|
|
15
16
|
);
|
|
16
17
|
--button-disabled-color: hsl(var(--body-color-h) var(--body-color-s) var(--body-color-l) / #{$color-disabled-alpha});
|
|
17
|
-
|
|
18
18
|
--button-border-color: var(--border-color-main);
|
|
19
19
|
--button-hover-border-color: var(--border-color-hover-main);
|
|
20
20
|
--button-focus-border-color: var(--border-color-hover-main);
|
|
@@ -22,13 +22,11 @@
|
|
|
22
22
|
--button-disabled-border-color: hsl(
|
|
23
23
|
var(--border-color-main-h) var(--border-color-main-s) var(--border-color-main-l) / #{$color-disabled-alpha}
|
|
24
24
|
);
|
|
25
|
-
|
|
26
25
|
--button-background: hsl(var(--body-color-h) var(--body-color-s) 100%);
|
|
27
26
|
--button-hover-background: hsl(var(--body-color-h) var(--body-color-s) 100%);
|
|
28
27
|
--button-focus-background: hsl(var(--body-color-h) var(--body-color-s) 100%);
|
|
29
28
|
--button-active-background: hsl(var(--body-color-h) var(--body-color-s) 95%);
|
|
30
29
|
--button-disabled-background: hsl(var(--body-color-h) var(--body-color-s) 100% / #{$color-disabled-alpha});
|
|
31
|
-
|
|
32
30
|
--button-box-shadow: 0 0 0 0.125em hsl(var(--body-color-h) var(--body-color-s) var(--body-color-l) / 0%);
|
|
33
31
|
--button-hover-box-shadow: 0 0 0 0.125em hsl(var(--body-color-h) var(--body-color-s) var(--body-color-l) / 0%);
|
|
34
32
|
--button-focus-box-shadow: 0 0 0 0.125em hsl(var(--body-color-h) var(--body-color-s) var(--body-color-l) / 20%);
|
|
@@ -42,15 +40,12 @@
|
|
|
42
40
|
--button-small-padding-y: #{$button-small-padding-y};
|
|
43
41
|
--button-large-padding-x: #{$button-large-padding-x};
|
|
44
42
|
--button-large-padding-y: #{$button-large-padding-y};
|
|
45
|
-
|
|
46
43
|
--button-border-width: 1px;
|
|
47
44
|
--button-border-style: solid;
|
|
48
|
-
|
|
49
45
|
--button-border-radius: #{$button-border-radius};
|
|
50
46
|
--button-small-border-radius: #{$button-small-border-radius};
|
|
51
47
|
--button-large-border-radius: #{$button-large-border-radius};
|
|
52
48
|
--button-round-border-radius: #{$button-round-border-radius};
|
|
53
|
-
|
|
54
49
|
--button-font-family: #{$button-font-family};
|
|
55
50
|
--button-font-weight: #{$button-font-weight};
|
|
56
51
|
--button-line-height: #{$button-line-height};
|
|
@@ -59,6 +54,7 @@
|
|
|
59
54
|
--button-white-space: #{$button-white-space};
|
|
60
55
|
|
|
61
56
|
@include rfs($button-font-size, --button-font-size);
|
|
57
|
+
|
|
62
58
|
@include font-size(var(--button-font-size));
|
|
63
59
|
|
|
64
60
|
// Variable references
|
|
@@ -93,6 +89,7 @@
|
|
|
93
89
|
padding: var(--button-large-padding-y) var(--button-large-padding-x);
|
|
94
90
|
|
|
95
91
|
@include rfs($button-large-font-size, --button-font-size);
|
|
92
|
+
|
|
96
93
|
@include font-size(var(--button-font-size));
|
|
97
94
|
|
|
98
95
|
&:not(.button--rounded) {
|
|
@@ -104,6 +101,7 @@
|
|
|
104
101
|
padding: var(--button-small-padding-y) var(--button-small-padding-x);
|
|
105
102
|
|
|
106
103
|
@include rfs($button-small-font-size, --button-font-size);
|
|
104
|
+
|
|
107
105
|
@include font-size(var(--button-font-size));
|
|
108
106
|
|
|
109
107
|
&:not(.button--rounded) {
|
|
@@ -141,10 +139,12 @@
|
|
|
141
139
|
}
|
|
142
140
|
|
|
143
141
|
&.button--link {
|
|
142
|
+
|
|
144
143
|
@include button-variant-link("primary");
|
|
145
144
|
}
|
|
146
145
|
|
|
147
146
|
&.button--unstyled {
|
|
147
|
+
|
|
148
148
|
@include button-variant-unstyled("body-color");
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -160,26 +160,32 @@
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.buttons {
|
|
163
|
+
|
|
163
164
|
@include make-group-row;
|
|
164
165
|
|
|
165
166
|
&.buttons--grouped {
|
|
167
|
+
|
|
166
168
|
@include make-grouped-row(".button");
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
171
|
|
|
170
172
|
@each $key, $value in $all-colors {
|
|
171
173
|
.button--#{$key} {
|
|
174
|
+
|
|
172
175
|
@include button-variant($key, $value);
|
|
173
176
|
|
|
174
177
|
&.button--outline {
|
|
178
|
+
|
|
175
179
|
@include button-variant-outline($key, $value);
|
|
176
180
|
}
|
|
177
181
|
|
|
178
182
|
&.button--link {
|
|
183
|
+
|
|
179
184
|
@include button-variant-link($key);
|
|
180
185
|
}
|
|
181
186
|
|
|
182
187
|
&.button--unstyled {
|
|
188
|
+
|
|
183
189
|
@include button-variant-unstyled($key);
|
|
184
190
|
}
|
|
185
191
|
}
|