nuvio 0.0.2 → 1.2.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.
Files changed (81) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +337 -6
  3. package/dist/nuvio-base-dark.css +1497 -0
  4. package/dist/nuvio-base-dark.min.css +1 -0
  5. package/dist/nuvio-base-light.css +1497 -0
  6. package/dist/nuvio-base-light.min.css +1 -0
  7. package/dist/nuvio-base-prefer.css +1549 -0
  8. package/dist/nuvio-base-prefer.min.css +1 -0
  9. package/dist/nuvio-base.css +1655 -0
  10. package/dist/nuvio-base.min.css +1 -0
  11. package/dist/nuvio-dark.css +9755 -0
  12. package/dist/nuvio-dark.min.css +1 -0
  13. package/dist/nuvio-light.css +9755 -0
  14. package/dist/nuvio-light.min.css +1 -0
  15. package/dist/nuvio-prefer.css +9876 -0
  16. package/dist/nuvio-prefer.min.css +1 -0
  17. package/dist/nuvio.css +10103 -18
  18. package/dist/nuvio.min.css +1 -2
  19. package/package.json +37 -22
  20. package/src/_config-base.scss +6 -0
  21. package/src/_includes-base.scss +10 -0
  22. package/src/_includes-full.scss +44 -0
  23. package/src/base/_index.scss +295 -0
  24. package/src/config/_index.scss +322 -0
  25. package/src/config/_layers.scss +27 -0
  26. package/src/config/themes.scss +308 -0
  27. package/src/config/utilities.scss +106 -0
  28. package/src/elements/accordion.scss +65 -0
  29. package/src/elements/block.scss +14 -0
  30. package/src/elements/box.scss +66 -0
  31. package/src/elements/dropdown.scss +149 -0
  32. package/src/elements/footer.scss +9 -0
  33. package/src/elements/icon.scss +63 -0
  34. package/src/elements/image.scss +36 -0
  35. package/src/elements/modal.scss +123 -0
  36. package/src/elements/navbar.scss +463 -0
  37. package/src/elements/notification.scss +53 -0
  38. package/src/elements/placeholder.scss +55 -0
  39. package/src/elements/progress.scss +85 -0
  40. package/src/elements/table.scss +149 -0
  41. package/src/elements/tag.scss +88 -0
  42. package/src/forms/button.scss +415 -0
  43. package/src/forms/checkbox-radio.scss +38 -0
  44. package/src/forms/controls.scss +181 -0
  45. package/src/forms/file.scss +237 -0
  46. package/src/forms/form-utilities.scss +109 -0
  47. package/src/forms/input.scss +27 -0
  48. package/src/forms/range.scss +96 -0
  49. package/src/forms/segmented.scss +130 -0
  50. package/src/forms/select.scss +100 -0
  51. package/src/forms/textarea.scss +26 -0
  52. package/src/forms/toggle.scss +106 -0
  53. package/src/layout/border.scss +34 -0
  54. package/src/layout/container.scss +36 -0
  55. package/src/layout/flexbox-base.scss +204 -0
  56. package/src/layout/flexbox-shorthands.scss +48 -0
  57. package/src/layout/grid.scss +72 -0
  58. package/src/layout/overflow.scss +23 -0
  59. package/src/layout/position.scss +16 -0
  60. package/src/layout/spacing.scss +70 -0
  61. package/src/layout/visibility.scss +50 -0
  62. package/src/main-base-auto.scss +4 -0
  63. package/src/main-base-dark.scss +4 -0
  64. package/src/main-base-light.scss +4 -0
  65. package/src/main-base-prefer.scss +4 -0
  66. package/src/main-full-auto.scss +4 -0
  67. package/src/main-full-dark.scss +6 -0
  68. package/src/main-full-light.scss +6 -0
  69. package/src/main-full-prefer.scss +6 -0
  70. package/src/typography/color.scss +25 -0
  71. package/src/typography/content.scss +185 -0
  72. package/src/typography/interaction.scss +20 -0
  73. package/src/typography/text.scss +71 -0
  74. package/src/typography/title.scss +76 -0
  75. package/dist/nuvio.css.map +0 -1
  76. package/dist/nuvio.min.css.map +0 -1
  77. package/src/_buttons.scss +0 -19
  78. package/src/_reset.scss +0 -5
  79. package/src/_typography.scss +0 -13
  80. package/src/_variables.scss +0 -5
  81. package/src/main.scss +0 -3
@@ -0,0 +1,130 @@
1
+ @use "../config" as c;
2
+ @use "../config/themes" as t;
3
+ @use "../config/utilities" as u;
4
+ @use "../config/layers" as l;
5
+
6
+ // ── Helper ───────────────────────────────────────────────────────────────────
7
+ @mixin _segmented-fullwidth {
8
+ display: flex;
9
+ width: 100%;
10
+
11
+ > label {
12
+ flex: 1 1 auto;
13
+ justify-content: center;
14
+ }
15
+ }
16
+
17
+ @include l.layer("components") {
18
+ .segmented {
19
+ display: inline-flex;
20
+ border-radius: c.$radius;
21
+ border-style: solid;
22
+ border-width: c.$input-border-width;
23
+ padding: c.$toggle-thumb-gap;
24
+
25
+ @include t.theme("background-color", "control-bg");
26
+ @include t.theme("border-color", "control-border");
27
+
28
+ > label {
29
+ cursor: pointer;
30
+ display: inline-flex;
31
+ align-items: center;
32
+ border-radius: c.$radius-sm;
33
+ // Separates an optional leading/trailing icon from the label text; the radio
34
+ // is absolutely positioned, so it is not a flex item and adds no gap.
35
+ gap: 0.4em;
36
+ padding-block: calc(0.25em - #{c.$control-label-y-compensation}) calc(0.25em + #{c.$control-label-y-compensation});
37
+ padding-inline: 0.875em;
38
+ font-size: c.$font-size-base;
39
+ font-weight: c.$font-weight-medium;
40
+ line-height: c.$line-height-base;
41
+ white-space: nowrap;
42
+ @include t.theme("color", "text-muted");
43
+ transition: background-color c.$duration c.$easing,
44
+ color c.$duration c.$easing;
45
+
46
+ // ── Hidden Radio Input – In DOM for A11y, Zero-Sized ───────────────────
47
+ input[type="radio"] {
48
+ appearance: none;
49
+ position: absolute;
50
+ width: 0;
51
+ height: 0;
52
+ margin: 0;
53
+ opacity: 0;
54
+ }
55
+
56
+ // ── Thumb: The Checked Segment Fills with the Active Color ─────────────
57
+ &:has(input:checked) {
58
+ @include t.theme("background-color", "fill-link");
59
+ @include t.theme("color", "fill-text-link");
60
+ }
61
+
62
+ // ── Hover (Unchecked) ──────────────────────────────────────────────────
63
+ @media (hover: hover) and (pointer: fine) {
64
+ &:not(:has(input:checked)):hover {
65
+ @include t.theme("background-color", "control-hover");
66
+ @include t.theme("color", "text-highlight");
67
+ }
68
+ }
69
+
70
+ // ── Hover (Checked) ────────────────────────────────────────────────────
71
+ @media (hover: hover) and (pointer: fine) {
72
+ &:has(input:checked):hover {
73
+ @include t.theme("background-color", "fill-link-hover");
74
+ }
75
+ }
76
+
77
+ // ── Focus ──────────────────────────────────────────────────────────────
78
+ &:has(input:focus-visible) {
79
+ outline: 2px solid;
80
+ outline-offset: 2px;
81
+ @include t.theme("outline-color", "focus-ring");
82
+ }
83
+ }
84
+
85
+ // ── Size Modifiers ───────────────────────────────────────────────────────
86
+ &.is-small > label { font-size: c.$font-size-sm; }
87
+ &.is-medium > label { font-size: c.$font-size-lg; }
88
+ &.is-large > label { font-size: c.$font-size-xl; }
89
+
90
+ // ── Fullwidth Modifier ───────────────────────────────────────────────────
91
+ &.is-fullwidth { @include _segmented-fullwidth; }
92
+
93
+ // ── Pill Modifier ────────────────────────────────────────────────────────
94
+ &.is-pill {
95
+ border-radius: c.$radius-pill;
96
+ > label { border-radius: c.$radius-pill; }
97
+ }
98
+
99
+ // ── Semantic Variants ────────────────────────────────────────────────────
100
+ @each $name, $_ in c.$semantic-colors {
101
+ &.is-#{$name} > label {
102
+ &:has(input:checked) {
103
+ @include t.theme("background-color", "fill-#{$name}");
104
+ @include t.theme("color", "fill-text-#{$name}");
105
+ }
106
+
107
+ @media (hover: hover) and (pointer: fine) {
108
+ &:has(input:checked):hover {
109
+ @include t.theme("background-color", "fill-#{$name}-hover");
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ // ── Disabled ─────────────────────────────────────────────────────────────
116
+ &[disabled],
117
+ fieldset[disabled] & {
118
+ opacity: 0.7;
119
+ > label {
120
+ cursor: not-allowed;
121
+ pointer-events: none;
122
+ }
123
+ }
124
+ }
125
+
126
+ // ── Fullwidth (Mobile-Only) ────────────────────────────────────────────────
127
+ @include u.bp-below("sm") {
128
+ .segmented.is-fullwidth-mobile { @include _segmented-fullwidth; }
129
+ }
130
+ }
@@ -0,0 +1,100 @@
1
+ @use "../config" as c;
2
+ @use "../config/themes" as t;
3
+ @use "../config/utilities" as u;
4
+ @use "form-utilities";
5
+ @use "../config/layers" as l;
6
+
7
+ @include l.layer("components") {
8
+ .select {
9
+ display: inline-block;
10
+ max-width: 100%;
11
+ position: relative;
12
+ vertical-align: top;
13
+
14
+ &:not(.is-multiple) { height: c.$input-height; }
15
+
16
+ &:not(.is-multiple):not(.is-loading)::after {
17
+ @include u.arrow;
18
+ @include t.theme("border-color", "text-highlight");
19
+ inset-inline-end: 1.125em;
20
+ z-index: 4;
21
+ }
22
+
23
+ &.is-pill select {
24
+ border-radius: c.$radius-pill;
25
+ padding-inline-start: 1em;
26
+ }
27
+
28
+ select {
29
+ @include form-utilities.control;
30
+ cursor: pointer;
31
+ display: block;
32
+ font-size: 1em;
33
+ max-width: 100%;
34
+ outline: none;
35
+
36
+ &::-ms-expand { display: none; }
37
+ &:not([multiple]) { padding-inline-end: 2.5em; }
38
+ &[multiple] {
39
+ height: auto;
40
+ padding: 0;
41
+ option {
42
+ padding: 0.5em 1em;
43
+ &:checked {
44
+ @include t.theme("background-color", "fill-link");
45
+ @include t.theme("color", "fill-text-link");
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ @each $name, $_ in c.$semantic-colors {
52
+ &.is-#{$name} {
53
+ &:not(.is-multiple):not(.is-loading)::after {
54
+ @include t.theme("border-color", "tint-text-#{$name}");
55
+ }
56
+
57
+ select {
58
+ @include t.theme("background-color", "tint-#{$name}");
59
+ @include t.theme("border-color", "fill-#{$name}");
60
+ @include t.theme("color", "tint-text-#{$name}");
61
+
62
+ @include u.on-hover {
63
+ @include t.theme("border-color", "fill-#{$name}-hover");
64
+ }
65
+ &.is-hover {
66
+ @include t.theme("border-color", "fill-#{$name}-hover");
67
+ }
68
+ &:active, &.is-active {
69
+ @include t.theme("border-color", "fill-#{$name}-active");
70
+ }
71
+ &:focus, &.is-focused {
72
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--nv-fill-#{$name}) #{c.$focus-ring-opacity}, transparent);
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ &.is-small { font-size: c.$font-size-sm; }
79
+ &.is-medium { font-size: c.$font-size-lg; }
80
+ &.is-large { font-size: c.$font-size-xl; }
81
+
82
+ &.is-disabled::after { opacity: 0.5; }
83
+
84
+ &.is-fullwidth { width: 100%; select { width: 100%; } }
85
+
86
+ &.is-loading {
87
+ &::after {
88
+ @include u.loader;
89
+ @include t.theme("border-color", "control-text");
90
+ border-right-color: transparent;
91
+ border-top-color: transparent;
92
+ inset-inline-end: 0.625em;
93
+ margin-top: 0;
94
+ position: absolute;
95
+ top: calc(50% - 0.5em);
96
+ transform: none;
97
+ }
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,26 @@
1
+ @use "../config" as c;
2
+ @use "form-utilities";
3
+ @use "../config/layers" as l;
4
+
5
+ @include l.layer("components") {
6
+ .textarea {
7
+ @include form-utilities.control;
8
+ display: block;
9
+ max-width: 100%;
10
+ min-width: 100%;
11
+ padding: c.$input-padding-x;
12
+ resize: vertical;
13
+ height: auto;
14
+
15
+ &:not([rows]) {
16
+ max-height: 40em;
17
+ min-height: 8em;
18
+ }
19
+ &[rows] { height: initial; }
20
+
21
+ &.is-small { font-size: c.$font-size-sm; }
22
+ &.is-medium { font-size: c.$font-size-lg; }
23
+ &.is-large { font-size: c.$font-size-xl; }
24
+ &.has-fixed-size { resize: none; }
25
+ }
26
+ }
@@ -0,0 +1,106 @@
1
+ @use "../config" as c;
2
+ @use "../config/themes" as t;
3
+ @use "../config/utilities" as u;
4
+ @use "../config/layers" as l;
5
+
6
+ @include l.layer("components") {
7
+ .toggle {
8
+ cursor: pointer;
9
+ display: inline-flex;
10
+ align-items: center;
11
+ gap: c.$checkbox-gap;
12
+ line-height: c.$line-height-base;
13
+
14
+ input[type="checkbox"] {
15
+ appearance: none;
16
+ box-sizing: border-box;
17
+ cursor: pointer;
18
+ flex-shrink: 0;
19
+ position: relative;
20
+
21
+ width: c.$toggle-width;
22
+ height: c.$toggle-height;
23
+ border-radius: c.$radius-pill;
24
+ border-style: solid;
25
+ border-width: c.$input-border-width;
26
+
27
+ @include t.theme("background-color", "control-bg");
28
+ @include t.theme("border-color", "control-border");
29
+
30
+ transition: background-color c.$duration c.$easing,
31
+ border-color c.$duration c.$easing;
32
+
33
+ // ── Thumb ──────────────────────────────────────────────────────────────
34
+ // The thumb travels along `inset-inline-start` rather than translateX so it
35
+ // mirrors under `dir="rtl"`; at this size the layout cost is irrelevant.
36
+ &::after {
37
+ content: "";
38
+ position: absolute;
39
+ top: 50%;
40
+ inset-inline-start: c.$toggle-thumb-gap;
41
+ transform: translateY(-50%);
42
+ width: calc(#{c.$toggle-height} - #{2 * c.$input-border-width} - #{2 * c.$toggle-thumb-gap});
43
+ aspect-ratio: 1;
44
+ border-radius: c.$radius-pill;
45
+ @include t.theme("background-color", "text-muted");
46
+ transition: inset-inline-start c.$duration c.$easing,
47
+ background-color c.$duration c.$easing;
48
+ }
49
+
50
+ // ── Hover (Unchecked) ──────────────────────────────────────────────────
51
+ @include u.on-hover {
52
+ @include t.theme("background-color", "control-hover");
53
+ }
54
+
55
+ // ── Focus ──────────────────────────────────────────────────────────────
56
+ &:focus-visible {
57
+ outline: 2px solid;
58
+ outline-offset: 2px;
59
+ @include t.theme("outline-color", "focus-ring");
60
+ }
61
+
62
+ // ── Checked (Default: Link Color) ──────────────────────────────────────
63
+ &:checked {
64
+ @include t.theme("background-color", "fill-link");
65
+ @include t.theme("border-color", "fill-link");
66
+
67
+ &::after {
68
+ inset-inline-start: calc(#{c.$toggle-thumb-gap} + #{c.$toggle-width} - #{c.$toggle-height});
69
+ @include t.theme("background-color", "fill-text-link");
70
+ }
71
+
72
+ @include u.on-hover {
73
+ @include t.theme("background-color", "fill-link-hover");
74
+ @include t.theme("border-color", "fill-link-hover");
75
+ }
76
+ }
77
+ }
78
+
79
+ // ── Disabled ─────────────────────────────────────────────────────────────
80
+ &[disabled],
81
+ fieldset[disabled] &,
82
+ input[disabled] {
83
+ @include t.theme("color", "text-muted");
84
+ cursor: not-allowed;
85
+ opacity: 0.7;
86
+ input[type="checkbox"] { pointer-events: none; }
87
+ }
88
+
89
+ // ── Semantic Variants ────────────────────────────────────────────────────
90
+ @each $name, $_ in c.$semantic-colors {
91
+ &.is-#{$name} input[type="checkbox"]:checked {
92
+ @include t.theme("background-color", "fill-#{$name}");
93
+ @include t.theme("border-color", "fill-#{$name}");
94
+
95
+ &::after {
96
+ @include t.theme("background-color", "fill-text-#{$name}");
97
+ }
98
+
99
+ @include u.on-hover {
100
+ @include t.theme("background-color", "fill-#{$name}-hover");
101
+ @include t.theme("border-color", "fill-#{$name}-hover");
102
+ }
103
+ }
104
+ }
105
+ }
106
+ }
@@ -0,0 +1,34 @@
1
+ @use "../config" as c;
2
+ @use "../config/themes" as t;
3
+ @use "../config/layers" as l;
4
+
5
+ $_radii: (
6
+ "none": 0,
7
+ "small": c.$radius-sm,
8
+ "normal": c.$radius,
9
+ "large": c.$radius-lg,
10
+ "rounded": c.$radius-pill,
11
+ );
12
+
13
+ @include l.layer("utilities") {
14
+ @each $name, $value in $_radii {
15
+ .has-radius-#{$name} {
16
+ border-radius: $value !important;
17
+ }
18
+ }
19
+
20
+ $_borders: (
21
+ "none": 0,
22
+ "small": c.$border-sm,
23
+ "normal": c.$border,
24
+ "large": c.$border-lg,
25
+ );
26
+
27
+ @each $name, $value in $_borders {
28
+ .has-border-#{$name} {
29
+ @include t.theme("border-color", "border");
30
+ border-style: solid !important;
31
+ border-width: $value !important;
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,36 @@
1
+ @use "sass:map";
2
+ @use "sass:math";
3
+ @use "../config" as c;
4
+ @use "../config/utilities" as u;
5
+ @use "../config/layers" as l;
6
+
7
+ @include l.layer("components") {
8
+ .container {
9
+ flex-grow: 1;
10
+ margin: 0 auto;
11
+ position: relative;
12
+ width: 100%;
13
+
14
+ @include u.bp-below("sm") {
15
+ padding-inline: math.div(c.$viewport-gap, 2);
16
+ }
17
+
18
+ &.is-fluid {
19
+ max-width: none !important;
20
+ padding-inline: c.$viewport-gap;
21
+ width: 100%;
22
+ }
23
+
24
+ @each $bp, $entry in c.$breakpoints {
25
+ @include u.bp-from($bp) {
26
+ max-width: map.get($entry, "container");
27
+ }
28
+ }
29
+
30
+ @each $bp, $entry in c.$breakpoints {
31
+ &.is-max-#{$bp} {
32
+ max-width: map.get($entry, "container") !important;
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,204 @@
1
+ @use "../config" as c;
2
+ @use "../config/utilities" as u;
3
+ @use "../config/layers" as l;
4
+
5
+ $flex-direction-values: (
6
+ "row",
7
+ "row-reverse",
8
+ "column",
9
+ "column-reverse",
10
+ );
11
+
12
+ // Each family emits all its base classes before its -mobile ones: both are
13
+ // !important at equal specificity, so a -mobile class must come later to win.
14
+ @include l.layer("utilities") {
15
+ @each $value in $flex-direction-values {
16
+ .has-direction-#{$value} {
17
+ flex-direction: #{$value} !important;
18
+ }
19
+ }
20
+
21
+ @include u.bp-below("sm") {
22
+ @each $value in $flex-direction-values {
23
+ .has-direction-#{$value}-mobile {
24
+ flex-direction: #{$value} !important;
25
+ }
26
+ }
27
+ }
28
+
29
+ $flex-wrap-values: (
30
+ "not-wrapped": "nowrap",
31
+ "wrapped": "wrap",
32
+ "wrapped-reverse": "wrap-reverse",
33
+ );
34
+
35
+ @each $class, $value in $flex-wrap-values {
36
+ .is-#{$class} {
37
+ flex-wrap: #{$value} !important;
38
+ }
39
+ }
40
+
41
+ @include u.bp-below("sm") {
42
+ @each $class, $value in $flex-wrap-values {
43
+ .is-#{$class}-mobile {
44
+ flex-wrap: #{$value} !important;
45
+ }
46
+ }
47
+ }
48
+
49
+ $justify-content-values: (
50
+ "flex-start",
51
+ "flex-end",
52
+ "center",
53
+ "space-between",
54
+ "space-around",
55
+ "space-evenly",
56
+ "start",
57
+ "end",
58
+ "left",
59
+ "right",
60
+ );
61
+
62
+ @each $value in $justify-content-values {
63
+ .has-justify-content-#{$value} {
64
+ justify-content: #{$value} !important;
65
+ }
66
+ }
67
+
68
+ @include u.bp-below("sm") {
69
+ @each $value in $justify-content-values {
70
+ .has-justify-content-#{$value}-mobile {
71
+ justify-content: #{$value} !important;
72
+ }
73
+ }
74
+ }
75
+
76
+ $align-content-values: (
77
+ "flex-start",
78
+ "flex-end",
79
+ "center",
80
+ "space-between",
81
+ "space-around",
82
+ "space-evenly",
83
+ "stretch",
84
+ "start",
85
+ "end",
86
+ "baseline",
87
+ );
88
+
89
+ @each $value in $align-content-values {
90
+ .has-align-content-#{$value} {
91
+ align-content: #{$value} !important;
92
+ }
93
+ }
94
+
95
+ @include u.bp-below("sm") {
96
+ @each $value in $align-content-values {
97
+ .has-align-content-#{$value}-mobile {
98
+ align-content: #{$value} !important;
99
+ }
100
+ }
101
+ }
102
+
103
+ $align-items-values: (
104
+ "stretch",
105
+ "flex-start",
106
+ "flex-end",
107
+ "center",
108
+ "baseline",
109
+ "start",
110
+ "end",
111
+ "self-start",
112
+ "self-end",
113
+ );
114
+
115
+ @each $value in $align-items-values {
116
+ .has-align-items-#{$value} {
117
+ align-items: #{$value} !important;
118
+ }
119
+ }
120
+
121
+ @include u.bp-below("sm") {
122
+ @each $value in $align-items-values {
123
+ .has-align-items-#{$value}-mobile {
124
+ align-items: #{$value} !important;
125
+ }
126
+ }
127
+ }
128
+
129
+ $align-self-values: (
130
+ "auto",
131
+ "flex-start",
132
+ "flex-end",
133
+ "center",
134
+ "baseline",
135
+ "stretch",
136
+ );
137
+
138
+ @each $value in $align-self-values {
139
+ .has-align-self-#{$value} {
140
+ align-self: #{$value} !important;
141
+ }
142
+ }
143
+
144
+ @include u.bp-below("sm") {
145
+ @each $value in $align-self-values {
146
+ .has-align-self-#{$value}-mobile {
147
+ align-self: #{$value} !important;
148
+ }
149
+ }
150
+ }
151
+
152
+ $flex-operators: (
153
+ "grow",
154
+ "shrink",
155
+ );
156
+
157
+ @each $value in $flex-operators {
158
+ @for $i from 0 through 5 {
159
+ .has-#{$value}-#{$i} {
160
+ flex-#{$value}: $i !important;
161
+ }
162
+ }
163
+
164
+ @include u.bp-below("sm") {
165
+ @for $i from 0 through 5 {
166
+ .has-#{$value}-#{$i}-mobile {
167
+ flex-#{$value}: $i !important;
168
+ }
169
+ }
170
+ }
171
+ }
172
+
173
+ $gap-types: (
174
+ "gap",
175
+ "column-gap",
176
+ "row-gap",
177
+ );
178
+
179
+ @each $gap-type in $gap-types {
180
+ @each $name, $value in c.$spacing-gaps {
181
+ .has-#{$gap-type}-#{$name} {
182
+ #{$gap-type}: #{$value} !important;
183
+ }
184
+ }
185
+
186
+ @include u.bp-below("sm") {
187
+ @each $name, $value in c.$spacing-gaps {
188
+ .has-#{$gap-type}-#{$name}-mobile {
189
+ #{$gap-type}: #{$value} !important;
190
+ }
191
+ }
192
+ }
193
+ }
194
+
195
+ .is-fullheight {
196
+ height: 100% !important;
197
+ }
198
+
199
+ @include u.bp-below("sm") {
200
+ .is-fullheight-mobile {
201
+ height: 100% !important;
202
+ }
203
+ }
204
+ }
@@ -0,0 +1,48 @@
1
+ @use "sass:math";
2
+ @use "../config" as c;
3
+ @use "../config/layers" as l;
4
+
5
+ @mixin flex-short-base($direction, $wrap) {
6
+ display: flex;
7
+ gap: math.div(c.$block-spacing, 2);
8
+ flex-direction: #{$direction};
9
+ flex-wrap: #{$wrap};
10
+ }
11
+
12
+ @mixin flex-short-spaced($direction, $wrap) {
13
+ @include flex-short-base($direction, $wrap);
14
+ justify-content: space-between;
15
+ }
16
+
17
+ @mixin flex-short-leading($direction, $wrap) {
18
+ @include flex-short-base($direction, $wrap);
19
+ justify-content: flex-start;
20
+ }
21
+
22
+ @mixin flex-short-trailing($direction, $wrap) {
23
+ @include flex-short-base($direction, $wrap);
24
+ justify-content: flex-end;
25
+ }
26
+
27
+ @include l.layer("utilities") {
28
+ .row-stretched { @include flex-short-base("row", "nowrap"); }
29
+ .col-stretched { @include flex-short-base("column", "nowrap"); }
30
+ .rows-stretched { @include flex-short-base("row", "wrap"); }
31
+ .cols-stretched { @include flex-short-base("column", "wrap"); }
32
+ .row-stretched > *, .col-stretched > *, .rows-stretched > *, .cols-stretched > * { flex-grow: 1; flex-shrink: 1; }
33
+
34
+ .row-spaced { @include flex-short-spaced("row", "nowrap"); align-items: center; }
35
+ .col-spaced { @include flex-short-spaced("column", "nowrap"); }
36
+ .rows-spaced { @include flex-short-spaced("row", "wrap"); align-items: center; } // vertically align items in a horizontal row
37
+ .cols-spaced { @include flex-short-spaced("column", "wrap"); } // but do not horizontally align items in a vertical column
38
+
39
+ .row-leading { @include flex-short-leading("row", "nowrap"); }
40
+ .col-leading { @include flex-short-leading("column", "nowrap"); }
41
+ .rows-leading { @include flex-short-leading("row", "wrap"); }
42
+ .cols-leading { @include flex-short-leading("column", "wrap"); }
43
+
44
+ .row-trailing { @include flex-short-trailing("row", "nowrap"); }
45
+ .col-trailing { @include flex-short-trailing("column", "nowrap"); }
46
+ .rows-trailing { @include flex-short-trailing("row", "wrap"); }
47
+ .cols-trailing { @include flex-short-trailing("column", "wrap"); }
48
+ }