claritas-web-framework 8.5.8 → 8.5.9
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/.prettierrc +10 -10
- package/README.md +1 -1
- package/dist/index.css +1 -1
- package/index.html +20 -20
- package/index.js +2 -2
- package/package.json +33 -33
- package/sass/_functions.scss +55 -55
- package/sass/_helpers.scss +8 -8
- package/sass/_mixins.scss +12 -12
- package/sass/_modules.scss +30 -30
- package/sass/_reboot.scss +264 -264
- package/sass/_root.scss +56 -56
- package/sass/_utilities.scss +17 -17
- package/sass/_variables.scss +445 -445
- package/sass/helpers/_container.scss +11 -11
- package/sass/helpers/_embed.scss +36 -36
- package/sass/helpers/_grid.scss +53 -53
- package/sass/helpers/_image.scss +5 -5
- package/sass/helpers/_link.scss +15 -15
- package/sass/helpers/_rfs.scss +303 -303
- package/sass/helpers/_screenReader.scss +13 -13
- package/sass/helpers/_wrap.scss +5 -5
- package/sass/index.scss +12 -12
- package/sass/mixins/_breakpoints.scss +133 -133
- package/sass/mixins/_button.scss +116 -116
- package/sass/mixins/_caret.scss +41 -41
- package/sass/mixins/_clearfix.scss +7 -7
- package/sass/mixins/_colors.scss +23 -23
- package/sass/mixins/_container.scss +21 -21
- package/sass/mixins/_gradient.scss +55 -55
- package/sass/mixins/_grid.scss +156 -156
- package/sass/mixins/_group.scss +70 -70
- package/sass/mixins/_list.scss +18 -18
- package/sass/mixins/_screenReader.scss +22 -22
- package/sass/mixins/_wrap.scss +7 -7
- package/sass/modules/_alert.scss +60 -60
- package/sass/modules/_breadcrumbs.scss +43 -43
- package/sass/modules/_button.scss +170 -170
- package/sass/modules/_card.scss +107 -107
- package/sass/modules/_close.scss +59 -59
- package/sass/modules/_details.scss +48 -48
- package/sass/modules/_dialog.scss +47 -47
- package/sass/modules/_dropdown.scss +44 -43
- package/sass/modules/_form.scss +261 -261
- package/sass/modules/_list.scss +78 -78
- package/sass/modules/_loader.scss +183 -183
- package/sass/modules/_modal.scss +45 -45
- package/sass/modules/_nav.scss +136 -135
- package/sass/modules/_pill.scss +61 -61
- package/sass/modules/_table.scss +96 -96
- package/sass/modules/_tabs.scss +88 -93
- package/sass/modules/_tag.scss +72 -72
- package/sass/modules/_tile.scss +101 -101
- package/sass/modules/_tooltip.scss +108 -108
- package/sass/modules/form/_checkbox.scss +78 -78
- package/sass/modules/form/_file.scss +149 -149
- package/sass/modules/form/_formFieldGroup.scss +60 -60
- package/sass/modules/form/_output.scss +6 -6
- package/sass/modules/form/_progress.scss +55 -55
- package/sass/modules/form/_radio.scss +57 -57
- package/sass/modules/form/_range.scss +144 -144
- package/sass/modules/form/_select.scss +22 -22
- package/sass/modules/form/_text.scss +28 -28
- package/sass/modules/form/_textarea.scss +3 -3
- package/sass/modules/form/_toggle.scss +68 -68
- package/sass/utilities/_align.scss +25 -25
- package/sass/utilities/_border.scss +59 -59
- package/sass/utilities/_colors.scss +76 -76
- package/sass/utilities/_display.scss +25 -25
- package/sass/utilities/_flex.scss +65 -65
- package/sass/utilities/_float.scss +17 -17
- package/sass/utilities/_order.scss +23 -23
- package/sass/utilities/_overflow.scss +25 -25
- package/sass/utilities/_pointerEvents.scss +17 -17
- package/sass/utilities/_position.scss +59 -59
- package/sass/utilities/_shadow.scss +7 -7
- package/sass/utilities/_size.scss +118 -118
- package/sass/utilities/_spacing.scss +107 -107
- package/sass/utilities/_translate.scss +15 -15
- package/sass/utilities/_typography.scss +62 -62
- package/sass/utilities/_visibility.scss +17 -17
- package/sass/utilities/_zIndex.scss +15 -15
- package/tests.js +5 -5
- package/webpack.config.js +27 -27
- package/webpack.plugins.js +15 -15
- package/webpack.rules.js +8 -8
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
@use "./../variables" as *;
|
|
2
|
-
@use "./../mixins/breakpoints" as *;
|
|
3
|
-
|
|
4
|
-
@mixin make-container() {
|
|
5
|
-
--gutter-x: #{$grid-gutter};
|
|
6
|
-
|
|
7
|
-
width: 100%;
|
|
8
|
-
max-width: 100vw;
|
|
9
|
-
margin-left: auto;
|
|
10
|
-
margin-right: auto;
|
|
11
|
-
padding-left: calc(var(--gutter-x) * 0.5);
|
|
12
|
-
padding-right: calc(var(--gutter-x) * 0.5);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $breakpoints) {
|
|
16
|
-
@each $breakpoint, $container-max-width in $max-widths {
|
|
17
|
-
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
18
|
-
max-width: $container-max-width;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
@use "./../variables" as *;
|
|
2
|
+
@use "./../mixins/breakpoints" as *;
|
|
3
|
+
|
|
4
|
+
@mixin make-container() {
|
|
5
|
+
--gutter-x: #{$grid-gutter};
|
|
6
|
+
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-width: 100vw;
|
|
9
|
+
margin-left: auto;
|
|
10
|
+
margin-right: auto;
|
|
11
|
+
padding-left: calc(var(--gutter-x) * 0.5);
|
|
12
|
+
padding-right: calc(var(--gutter-x) * 0.5);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $breakpoints) {
|
|
16
|
+
@each $breakpoint, $container-max-width in $max-widths {
|
|
17
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
18
|
+
max-width: $container-max-width;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
@use "sass:color";
|
|
2
|
-
@use "./../variables" as *;
|
|
3
|
-
|
|
4
|
-
// Horizontal gradient, from left to right
|
|
5
|
-
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
|
6
|
-
|
|
7
|
-
@mixin gradient-x($start-color: var(--gray-7), $end-color: var(--gray-8), $start-percent: 0%, $end-percent: 100%) {
|
|
8
|
-
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// Vertical gradient, from top to bottom
|
|
12
|
-
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
|
13
|
-
|
|
14
|
-
@mixin gradient-y($start-color: var(--gray-7), $end-color: var(--gray-8), $start-percent: null, $end-percent: null) {
|
|
15
|
-
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@mixin gradient-directional($start-color: var(--gray-7), $end-color: var(--gray-8), $deg: 45deg) {
|
|
19
|
-
background-image: linear-gradient($deg, $start-color, $end-color);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@mixin gradient-x-three-colors(
|
|
23
|
-
$start-color: var(--blue),
|
|
24
|
-
$mid-color: var(--purple),
|
|
25
|
-
$color-stop: 50%,
|
|
26
|
-
$end-color: var(--red)
|
|
27
|
-
) {
|
|
28
|
-
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@mixin gradient-y-three-colors(
|
|
32
|
-
$start-color: var(--blue),
|
|
33
|
-
$mid-color: var(--purple),
|
|
34
|
-
$color-stop: 50%,
|
|
35
|
-
$end-color: var(--red)
|
|
36
|
-
) {
|
|
37
|
-
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@mixin gradient-radial($inner-color: var(--gray-7), $outer-color: var(--gray-8)) {
|
|
41
|
-
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@mixin gradient-striped($color: hsl(var(--white) h s l / 15%), $angle: 45deg) {
|
|
45
|
-
background-image: linear-gradient(
|
|
46
|
-
$angle,
|
|
47
|
-
$color 25%,
|
|
48
|
-
transparent 25%,
|
|
49
|
-
transparent 50%,
|
|
50
|
-
$color 50%,
|
|
51
|
-
$color 75%,
|
|
52
|
-
transparent 75%,
|
|
53
|
-
transparent
|
|
54
|
-
);
|
|
55
|
-
}
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "./../variables" as *;
|
|
3
|
+
|
|
4
|
+
// Horizontal gradient, from left to right
|
|
5
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
|
6
|
+
|
|
7
|
+
@mixin gradient-x($start-color: var(--gray-7), $end-color: var(--gray-8), $start-percent: 0%, $end-percent: 100%) {
|
|
8
|
+
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Vertical gradient, from top to bottom
|
|
12
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
|
13
|
+
|
|
14
|
+
@mixin gradient-y($start-color: var(--gray-7), $end-color: var(--gray-8), $start-percent: null, $end-percent: null) {
|
|
15
|
+
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin gradient-directional($start-color: var(--gray-7), $end-color: var(--gray-8), $deg: 45deg) {
|
|
19
|
+
background-image: linear-gradient($deg, $start-color, $end-color);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin gradient-x-three-colors(
|
|
23
|
+
$start-color: var(--blue),
|
|
24
|
+
$mid-color: var(--purple),
|
|
25
|
+
$color-stop: 50%,
|
|
26
|
+
$end-color: var(--red)
|
|
27
|
+
) {
|
|
28
|
+
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@mixin gradient-y-three-colors(
|
|
32
|
+
$start-color: var(--blue),
|
|
33
|
+
$mid-color: var(--purple),
|
|
34
|
+
$color-stop: 50%,
|
|
35
|
+
$end-color: var(--red)
|
|
36
|
+
) {
|
|
37
|
+
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin gradient-radial($inner-color: var(--gray-7), $outer-color: var(--gray-8)) {
|
|
41
|
+
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin gradient-striped($color: hsl(var(--white) h s l / 15%), $angle: 45deg) {
|
|
45
|
+
background-image: linear-gradient(
|
|
46
|
+
$angle,
|
|
47
|
+
$color 25%,
|
|
48
|
+
transparent 25%,
|
|
49
|
+
transparent 50%,
|
|
50
|
+
$color 50%,
|
|
51
|
+
$color 75%,
|
|
52
|
+
transparent 75%,
|
|
53
|
+
transparent
|
|
54
|
+
);
|
|
55
|
+
}
|
package/sass/mixins/_grid.scss
CHANGED
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "sass:math";
|
|
3
|
-
@use "sass:meta";
|
|
4
|
-
@use "./../variables" as *;
|
|
5
|
-
@use "./../mixins/breakpoints" as *;
|
|
6
|
-
|
|
7
|
-
// Grid system
|
|
8
|
-
// Generate semantic grid columns with these mixins.
|
|
9
|
-
|
|
10
|
-
@mixin make-row($gutter: $grid-gutter) {
|
|
11
|
-
--gutter-x: #{$gutter};
|
|
12
|
-
--gutter-y: 0;
|
|
13
|
-
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-wrap: wrap;
|
|
16
|
-
margin-top: calc(-1 * var(--gutter-y));
|
|
17
|
-
margin-right: calc(-0.5 * var(--gutter-x));
|
|
18
|
-
margin-left: calc(-0.5 * var(--gutter-x));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin make-col-ready() {
|
|
22
|
-
// Add box sizing if only the grid is loaded
|
|
23
|
-
box-sizing: if(
|
|
24
|
-
meta.global-variable-exists(include-column-box-sizing) and $include-column-box-sizing,
|
|
25
|
-
border-box,
|
|
26
|
-
null
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
|
30
|
-
// always setting `width: 100%;`. This works because we set the width
|
|
31
|
-
// later on to override this initial width.
|
|
32
|
-
flex-shrink: 0;
|
|
33
|
-
width: 100%;
|
|
34
|
-
max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
|
|
35
|
-
padding-right: calc(var(--gutter-x) * 0.5);
|
|
36
|
-
padding-left: calc(var(--gutter-x) * 0.5);
|
|
37
|
-
margin-top: var(--gutter-y);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@mixin make-col($size: false, $columns: $grid-columns) {
|
|
41
|
-
@if $size {
|
|
42
|
-
flex: 0 0 auto;
|
|
43
|
-
width: math.percentage(math.div($size, $columns));
|
|
44
|
-
} @else {
|
|
45
|
-
flex: 1 1 0;
|
|
46
|
-
max-width: 100%;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@mixin make-col-auto() {
|
|
51
|
-
flex: 0 0 auto;
|
|
52
|
-
width: auto;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@mixin make-col-fit() {
|
|
56
|
-
flex: 1 0 0%;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@mixin make-col-offset($size, $columns: $grid-columns) {
|
|
60
|
-
$num: math.div($size, $columns);
|
|
61
|
-
|
|
62
|
-
margin-left: if($num == 0, 0, math.percentage($num));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// Row columns
|
|
66
|
-
// Specify on a parent element(e.g., .grid) to force immediate children into NN
|
|
67
|
-
// number of columns. Supports wrapping to new lines, but does not do a Masonry
|
|
68
|
-
// style grid.
|
|
69
|
-
|
|
70
|
-
@mixin row-cols($count) {
|
|
71
|
-
> * {
|
|
72
|
-
flex: 0 0 auto;
|
|
73
|
-
width: math.div(100%, $count);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// Framework grid generation
|
|
78
|
-
// Used only by Bootstrap to generate the correct number of grid classes given
|
|
79
|
-
// any value of `$grid-columns`.
|
|
80
|
-
|
|
81
|
-
@mixin make-grid-columns($columns: $grid-columns, $breakpoints: $breakpoints) {
|
|
82
|
-
@each $breakpoint in map.keys($breakpoints) {
|
|
83
|
-
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
84
|
-
|
|
85
|
-
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
86
|
-
.col-#{$infix},
|
|
87
|
-
.col {
|
|
88
|
-
@include make-col-fit;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.col-#{$infix}-auto {
|
|
92
|
-
@include make-col-auto;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.col-#{$infix}-fit {
|
|
96
|
-
@include make-col-fit;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@if $columns > 0 {
|
|
100
|
-
@for $i from 1 through $columns {
|
|
101
|
-
.col-#{$infix}-#{$i} {
|
|
102
|
-
@include make-col($i, $columns);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
@for $i from 0 through ($columns - 1) {
|
|
107
|
-
@if not($infix == "" and $i == 0) {
|
|
108
|
-
.offset-#{$infix}-#{$i} {
|
|
109
|
-
@include make-col-offset($i, $columns);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// Gutters
|
|
116
|
-
// Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
|
|
117
|
-
|
|
118
|
-
@each $key, $value in $gutters {
|
|
119
|
-
.g#{$infix}-#{$key},
|
|
120
|
-
.gx#{$infix}-#{$key} {
|
|
121
|
-
--gutter-x: #{$value};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.g#{$infix}-#{$key},
|
|
125
|
-
.gy#{$infix}-#{$key} {
|
|
126
|
-
--gutter-y: #{$value};
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@mixin make-cssgrid($columns: $grid-columns, $breakpoints: $breakpoints) {
|
|
134
|
-
@each $breakpoint in map.keys($breakpoints) {
|
|
135
|
-
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
136
|
-
|
|
137
|
-
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
138
|
-
@if $columns > 0 {
|
|
139
|
-
@for $i from 1 through $columns {
|
|
140
|
-
.g-col-#{$infix}-#{$i} {
|
|
141
|
-
grid-column: auto / span $i;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// Start with `1` because `0` is an invalid value.
|
|
146
|
-
// Ends with `$columns - 1` because offsetting by the width of an entire row isn't possible.
|
|
147
|
-
|
|
148
|
-
@for $i from 1 through ($columns - 1) {
|
|
149
|
-
.g-start-#{$infix}-#{$i} {
|
|
150
|
-
grid-column-start: $i;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:math";
|
|
3
|
+
@use "sass:meta";
|
|
4
|
+
@use "./../variables" as *;
|
|
5
|
+
@use "./../mixins/breakpoints" as *;
|
|
6
|
+
|
|
7
|
+
// Grid system
|
|
8
|
+
// Generate semantic grid columns with these mixins.
|
|
9
|
+
|
|
10
|
+
@mixin make-row($gutter: $grid-gutter) {
|
|
11
|
+
--gutter-x: #{$gutter};
|
|
12
|
+
--gutter-y: 0;
|
|
13
|
+
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
margin-top: calc(-1 * var(--gutter-y));
|
|
17
|
+
margin-right: calc(-0.5 * var(--gutter-x));
|
|
18
|
+
margin-left: calc(-0.5 * var(--gutter-x));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin make-col-ready() {
|
|
22
|
+
// Add box sizing if only the grid is loaded
|
|
23
|
+
box-sizing: if(
|
|
24
|
+
meta.global-variable-exists(include-column-box-sizing) and $include-column-box-sizing,
|
|
25
|
+
border-box,
|
|
26
|
+
null
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
|
30
|
+
// always setting `width: 100%;`. This works because we set the width
|
|
31
|
+
// later on to override this initial width.
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
width: 100%;
|
|
34
|
+
max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
|
|
35
|
+
padding-right: calc(var(--gutter-x) * 0.5);
|
|
36
|
+
padding-left: calc(var(--gutter-x) * 0.5);
|
|
37
|
+
margin-top: var(--gutter-y);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin make-col($size: false, $columns: $grid-columns) {
|
|
41
|
+
@if $size {
|
|
42
|
+
flex: 0 0 auto;
|
|
43
|
+
width: math.percentage(math.div($size, $columns));
|
|
44
|
+
} @else {
|
|
45
|
+
flex: 1 1 0;
|
|
46
|
+
max-width: 100%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@mixin make-col-auto() {
|
|
51
|
+
flex: 0 0 auto;
|
|
52
|
+
width: auto;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin make-col-fit() {
|
|
56
|
+
flex: 1 0 0%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@mixin make-col-offset($size, $columns: $grid-columns) {
|
|
60
|
+
$num: math.div($size, $columns);
|
|
61
|
+
|
|
62
|
+
margin-left: if($num == 0, 0, math.percentage($num));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Row columns
|
|
66
|
+
// Specify on a parent element(e.g., .grid) to force immediate children into NN
|
|
67
|
+
// number of columns. Supports wrapping to new lines, but does not do a Masonry
|
|
68
|
+
// style grid.
|
|
69
|
+
|
|
70
|
+
@mixin row-cols($count) {
|
|
71
|
+
> * {
|
|
72
|
+
flex: 0 0 auto;
|
|
73
|
+
width: math.div(100%, $count);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Framework grid generation
|
|
78
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
|
79
|
+
// any value of `$grid-columns`.
|
|
80
|
+
|
|
81
|
+
@mixin make-grid-columns($columns: $grid-columns, $breakpoints: $breakpoints) {
|
|
82
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
83
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
84
|
+
|
|
85
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
86
|
+
.col-#{$infix},
|
|
87
|
+
.col {
|
|
88
|
+
@include make-col-fit;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.col-#{$infix}-auto {
|
|
92
|
+
@include make-col-auto;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.col-#{$infix}-fit {
|
|
96
|
+
@include make-col-fit;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@if $columns > 0 {
|
|
100
|
+
@for $i from 1 through $columns {
|
|
101
|
+
.col-#{$infix}-#{$i} {
|
|
102
|
+
@include make-col($i, $columns);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@for $i from 0 through ($columns - 1) {
|
|
107
|
+
@if not($infix == "" and $i == 0) {
|
|
108
|
+
.offset-#{$infix}-#{$i} {
|
|
109
|
+
@include make-col-offset($i, $columns);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Gutters
|
|
116
|
+
// Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
|
|
117
|
+
|
|
118
|
+
@each $key, $value in $gutters {
|
|
119
|
+
.g#{$infix}-#{$key},
|
|
120
|
+
.gx#{$infix}-#{$key} {
|
|
121
|
+
--gutter-x: #{$value};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.g#{$infix}-#{$key},
|
|
125
|
+
.gy#{$infix}-#{$key} {
|
|
126
|
+
--gutter-y: #{$value};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@mixin make-cssgrid($columns: $grid-columns, $breakpoints: $breakpoints) {
|
|
134
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
135
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
136
|
+
|
|
137
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
138
|
+
@if $columns > 0 {
|
|
139
|
+
@for $i from 1 through $columns {
|
|
140
|
+
.g-col-#{$infix}-#{$i} {
|
|
141
|
+
grid-column: auto / span $i;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Start with `1` because `0` is an invalid value.
|
|
146
|
+
// Ends with `$columns - 1` because offsetting by the width of an entire row isn't possible.
|
|
147
|
+
|
|
148
|
+
@for $i from 1 through ($columns - 1) {
|
|
149
|
+
.g-start-#{$infix}-#{$i} {
|
|
150
|
+
grid-column-start: $i;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
package/sass/mixins/_group.scss
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
@use "./../variables" as *;
|
|
2
|
-
|
|
3
|
-
@mixin make-group() {
|
|
4
|
-
margin: 0;
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-flow: wrap row;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: flex-start;
|
|
9
|
-
position: relative;
|
|
10
|
-
|
|
11
|
-
$group-margin-fallback: if($enable-margins, var(--spacer), 0);
|
|
12
|
-
|
|
13
|
-
margin-bottom: var(--group-margin-bottom, #{$group-margin-fallback});
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin make-group-column($gap: calc(var(--spacer) * 0.5)) {
|
|
17
|
-
@include make-group;
|
|
18
|
-
|
|
19
|
-
align-items: stretch;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
gap: $gap;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@mixin make-group-row($gap: calc(var(--spacer) * 0.5)) {
|
|
25
|
-
@include make-group;
|
|
26
|
-
|
|
27
|
-
gap: $gap;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@mixin make-grouped-column() {
|
|
31
|
-
gap: 0;
|
|
32
|
-
|
|
33
|
-
& > * {
|
|
34
|
-
&:not(:last-child) {
|
|
35
|
-
border-bottom-right-radius: 0;
|
|
36
|
-
border-bottom-left-radius: 0;
|
|
37
|
-
margin-bottom: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&:not(:first-child) {
|
|
41
|
-
border-top-left-radius: 0;
|
|
42
|
-
border-top-right-radius: 0;
|
|
43
|
-
margin-top: -1px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@mixin make-grouped-row($element: false) {
|
|
49
|
-
$selector: if($element, $element, "*");
|
|
50
|
-
|
|
51
|
-
flex-wrap: nowrap;
|
|
52
|
-
gap: 0;
|
|
53
|
-
|
|
54
|
-
& > #{$selector} {
|
|
55
|
-
&:not(:last-child) {
|
|
56
|
-
border-bottom-right-radius: 0;
|
|
57
|
-
border-top-right-radius: 0;
|
|
58
|
-
margin-right: -1px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:not(:first-child) {
|
|
62
|
-
border-bottom-left-radius: 0;
|
|
63
|
-
border-top-left-radius: 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:last-child {
|
|
67
|
-
margin-right: 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
1
|
+
@use "./../variables" as *;
|
|
2
|
+
|
|
3
|
+
@mixin make-group() {
|
|
4
|
+
margin: 0;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-flow: wrap row;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: flex-start;
|
|
9
|
+
position: relative;
|
|
10
|
+
|
|
11
|
+
$group-margin-fallback: if($enable-margins, var(--spacer), 0);
|
|
12
|
+
|
|
13
|
+
margin-bottom: var(--group-margin-bottom, #{$group-margin-fallback});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin make-group-column($gap: calc(var(--spacer) * 0.5)) {
|
|
17
|
+
@include make-group;
|
|
18
|
+
|
|
19
|
+
align-items: stretch;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: $gap;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin make-group-row($gap: calc(var(--spacer) * 0.5)) {
|
|
25
|
+
@include make-group;
|
|
26
|
+
|
|
27
|
+
gap: $gap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin make-grouped-column() {
|
|
31
|
+
gap: 0;
|
|
32
|
+
|
|
33
|
+
& > * {
|
|
34
|
+
&:not(:last-child) {
|
|
35
|
+
border-bottom-right-radius: 0;
|
|
36
|
+
border-bottom-left-radius: 0;
|
|
37
|
+
margin-bottom: 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:not(:first-child) {
|
|
41
|
+
border-top-left-radius: 0;
|
|
42
|
+
border-top-right-radius: 0;
|
|
43
|
+
margin-top: -1px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@mixin make-grouped-row($element: false) {
|
|
49
|
+
$selector: if($element, $element, "*");
|
|
50
|
+
|
|
51
|
+
flex-wrap: nowrap;
|
|
52
|
+
gap: 0;
|
|
53
|
+
|
|
54
|
+
& > #{$selector} {
|
|
55
|
+
&:not(:last-child) {
|
|
56
|
+
border-bottom-right-radius: 0;
|
|
57
|
+
border-top-right-radius: 0;
|
|
58
|
+
margin-right: -1px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:not(:first-child) {
|
|
62
|
+
border-bottom-left-radius: 0;
|
|
63
|
+
border-top-left-radius: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:last-child {
|
|
67
|
+
margin-right: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
package/sass/mixins/_list.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
@use "./../variables" as *;
|
|
2
|
-
@use "./../mixins/group" as *;
|
|
3
|
-
|
|
4
|
-
@mixin make-list-unstyled() {
|
|
5
|
-
list-style: none;
|
|
6
|
-
margin: 0;
|
|
7
|
-
padding: 0;
|
|
8
|
-
|
|
9
|
-
$list-margin-fallback: if($enable-margins, var(--spacer), 0);
|
|
10
|
-
|
|
11
|
-
margin-bottom: var(--list-margin-bottom, #{$list-margin-fallback});
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@mixin make-list-inline($gap: calc(var(--spacer) * 0.5)) {
|
|
15
|
-
@include make-group-row($gap);
|
|
16
|
-
|
|
17
|
-
@include make-list-unstyled;
|
|
18
|
-
}
|
|
1
|
+
@use "./../variables" as *;
|
|
2
|
+
@use "./../mixins/group" as *;
|
|
3
|
+
|
|
4
|
+
@mixin make-list-unstyled() {
|
|
5
|
+
list-style: none;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
|
|
9
|
+
$list-margin-fallback: if($enable-margins, var(--spacer), 0);
|
|
10
|
+
|
|
11
|
+
margin-bottom: var(--list-margin-bottom, #{$list-margin-fallback});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin make-list-inline($gap: calc(var(--spacer) * 0.5)) {
|
|
15
|
+
@include make-group-row($gap);
|
|
16
|
+
|
|
17
|
+
@include make-list-unstyled;
|
|
18
|
+
}
|