@ulu/frontend 0.1.0-beta.10 → 0.1.0-beta.12

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 (33) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/ulu-frontend.min.css +1 -1
  3. package/dist/ulu-frontend.min.js +7 -7
  4. package/docs-dev/demos/callout/index.html +25 -12
  5. package/docs-dev/demos/data-table/index.html +25 -25
  6. package/docs-dev/demos/form-theme/index.html +18 -31
  7. package/docs-dev/demos/menu-stack/index.html +16 -16
  8. package/docs-dev/sass/components/callout/index.html +27 -67
  9. package/docs-dev/sass/components/captioned-figure/index.html +123 -8
  10. package/docs-dev/sass/components/card/index.html +32 -17
  11. package/docs-dev/sass/components/data-table/index.html +193 -10
  12. package/docs-dev/sass/components/form-theme/index.html +126 -25
  13. package/docs-dev/sass/components/hero/index.html +56 -8
  14. package/docs-dev/sass/components/menu-stack/index.html +4 -4
  15. package/docs-dev/sass/components/popover/index.html +30 -0
  16. package/docs-dev/sass/components/pull-quote/index.html +12 -12
  17. package/docs-dev/sass/components/vignette/index.html +14 -8
  18. package/docs-dev/sass/core/color/index.html +37 -31
  19. package/package.json +1 -1
  20. package/scss/_color.scss +8 -2
  21. package/scss/components/README.todos +14 -0
  22. package/scss/components/_callout.scss +38 -50
  23. package/scss/components/_captioned-figure.scss +17 -0
  24. package/scss/components/_card-grid.scss +1 -1
  25. package/scss/components/_card.scss +12 -8
  26. package/scss/components/_data-table.scss +36 -3
  27. package/scss/components/_form-theme.scss +18 -18
  28. package/scss/components/_hero.scss +9 -0
  29. package/scss/components/_menu-stack.scss +19 -16
  30. package/scss/components/_popover.scss +29 -29
  31. package/scss/components/_pull-quote.scss +12 -12
  32. package/scss/components/_vignette.scss +1 -0
  33. package/types/ui/tabs.d.ts.map +1 -1
package/scss/_color.scss CHANGED
@@ -25,9 +25,15 @@ $palette: (
25
25
  "background" : white,
26
26
  "background-gray" : #F7F8F7,
27
27
  "focus" : blue,
28
- "error" : red,
29
- "warning" : orange,
30
28
  "accent" : orange,
29
+ "info" : #00bde3,
30
+ "success" : #00a91c,
31
+ "warning" : #ffbe2e,
32
+ "danger" : #d54309,
33
+ "info-background" : #e7f6f8,
34
+ "success-background" : #ecf3ec,
35
+ "warning-background" : #faf3d1,
36
+ "danger-background" : #f4e3db,
31
37
  "selected" : green,
32
38
  "box-shadow" : rgba(0, 0, 0, 0.349),
33
39
  "box-shadow-hover" : rgba(0, 0, 0, 0.5),
@@ -13,3 +13,17 @@ Todos:
13
13
  * May override base styles
14
14
  * May contain layouts
15
15
  * May wrap or contain base (button vs button-group)
16
+
17
+ Daniel Todos:
18
+ ☐ Remove uswds stylings for informative and emergency callouts and move it into soar's site
19
+ ☐ get rid of extra styles in frontend to clean up the left cap
20
+ ✔ add a dash to left-cap mixin (to make private) and remove documentation for that mixin @done
21
+ ✔ setup cap colors (define colors) @done
22
+ remove the width of the individual callout styles
23
+ remove background-dark, light, emergency styles
24
+ ☐ Reach out to Rachel about the bug with the theme toggle not working
25
+ ☐ ask her to recreate it
26
+ ☐ Setup search results page
27
+ ☐ General Node/Page Setup
28
+ ☐ Setup View
29
+
@@ -14,10 +14,6 @@
14
14
 
15
15
  // Used for function fallback
16
16
  $-fallbacks: (
17
- "border" : (
18
- "function" : meta.get-function("get-rule-style", false, "element"),
19
- "property" : "light"
20
- ),
21
17
  "border-radius" : (
22
18
  "function" : meta.get-function("get", false, "element"),
23
19
  "property" : "border-radius"
@@ -27,8 +23,9 @@ $-fallbacks: (
27
23
  /// Module Settings
28
24
  /// @type Map
29
25
  /// @prop {Color} background-color [rgb(240, 240, 240)] The background color of the Callout.
30
- /// @prop {Boolean} border [true] The border of the Callout.
26
+ /// @prop {Color} border-color ["rule-light"] The border color of the Callout.
31
27
  /// @prop {Boolean} border-radius [true] The border radius of the Callout.
28
+ /// @prop {Dimension} border-width [1px] The border width of the Callout.
32
29
  /// @prop {CssValue} box-shadow [none] The box-shadow of the Callout.
33
30
  /// @prop {Boolean} left-cap [false] Toggles the use of left caps in styled callouts.
34
31
  /// @prop {Color} left-cap-color [green] Color of the left cap.
@@ -38,58 +35,41 @@ $-fallbacks: (
38
35
 
39
36
  $config: (
40
37
  "background-color" : rgb(240, 240, 240),
41
- "border" : true,
38
+ "border-color" : "rule-light",
42
39
  "border-radius" : true,
40
+ "border-width" : 1px,
43
41
  "box-shadow" : none,
44
- "left-cap" : false,
45
- "left-cap-color" : green,
42
+ "left-cap" : true,
43
+ "left-cap-color" : rgb(160, 160, 160),
46
44
  "left-cap-width" : 0.5rem,
47
45
  "margin" : 2rem,
48
46
  "padding" : 1.5rem,
49
47
  ) !default;
50
48
 
51
49
  $styles: (
52
- "background-dark" : (
53
- "background-color" : rgb(240, 240, 240)
54
- ),
55
50
  "outline" : (
56
51
  "background-color": transparent
57
52
  ),
58
- "light" : (
59
- "background-color" : white,
60
- "border-color" : gray
61
- ),
62
- "informative" : (
63
- "background-color" : #e7f6f8,
64
- "left-cap-color" : #00bde3,
53
+ "info" : (
54
+ "background-color" : "info-background",
55
+ "left-cap-color" : "info",
65
56
  "left-cap" : true,
66
- "left-cap-width": 0.5rem
67
57
  ),
68
58
  "warning" : (
69
- "background-color" : #faf3d1,
70
- "left-cap-color" : #ffbe2e,
59
+ "background-color" : "info-background",
60
+ "left-cap-color" : "info",
71
61
  "left-cap" : true,
72
- "left-cap-width": 0.5rem
73
62
  ),
74
63
  "success" : (
75
- "background-color" : #ecf3ec,
76
- "left-cap-color" : #00a91c,
64
+ "background-color" : "success-background",
65
+ "left-cap-color" : "success",
77
66
  "left-cap" : true,
78
- "left-cap-width": 0.5rem
79
67
  ),
80
68
  "danger" : (
81
- "background-color" : #f4e3db,
82
- "left-cap-color" : #d54309,
69
+ "background-color" : "danger-background",
70
+ "left-cap-color" : "danger",
83
71
  "left-cap" : true,
84
- "left-cap-width": 0.5rem
85
72
  ),
86
- "emergency" : (
87
- "background-color" : #9c3d10,
88
- "left-cap-color" : #9c3d10,
89
- "left-cap" : true,
90
- "color" : white,
91
- "left-cap-width": 0.5rem
92
- )
93
73
  ) !default;
94
74
 
95
75
  /// Change modules $config
@@ -119,22 +99,14 @@ $styles: (
119
99
  $styles: utils.map-merge($styles, $changes, $merge-mode) !global;
120
100
  }
121
101
 
122
- /// Output styling for a callout that adds a left cap
123
- /// @param {Dimension} $width The width of the left cap
124
- /// @param {Color} $color The left cap color
125
-
126
- @mixin left-cap($width: get("left-cap-width"), $color: get("left-cap-color")) {
102
+ @mixin -left-cap($color: get("left-cap-color")) {
103
+ $left-padding: get-spacing-left(get("padding"));
127
104
  position: relative;
128
105
  border-top-left-radius: 0;
129
106
  border-bottom-left-radius: 0;
107
+ padding-left: get("left-cap-width") + $left-padding;
130
108
  &::before {
131
- position: absolute;
132
109
  content: "";
133
- left: 0;
134
- top: 0;
135
- bottom: 0;
136
- width: $width;
137
- background-color: color.get($color);
138
110
  }
139
111
  }
140
112
 
@@ -144,19 +116,30 @@ $styles: (
144
116
 
145
117
  @mixin styles {
146
118
  $prefix: selector.class("callout");
147
-
119
+
148
120
  #{ $prefix } {
149
121
  background-color: color.get(get("background-color"));
150
122
  padding: get("padding");
151
- border: get("border");
123
+ border: get("border-width") solid color.get(get("border-color"));
152
124
  margin-bottom: get("margin");
153
125
  box-shadow: get("box-shadow");
154
126
  border-radius: get("border-radius");
155
127
  & >:first-child {
156
128
  margin-top: 0;
157
129
  }
130
+ &::before {
131
+ position: absolute;
132
+ left: 0 - get("border-width");
133
+ top: 0 - get("border-width");
134
+ bottom: 0 - get("border-width");
135
+ width: get("left-cap-width");
136
+ background-color: color.get(get("left-cap-color"));
137
+ }
158
138
  @if get("left-cap") {
159
- @include left-cap();
139
+ @include -left-cap();
140
+ &::before {
141
+ content: "";
142
+ }
160
143
  }
161
144
  }
162
145
  @each $name, $style in $styles {
@@ -168,8 +151,13 @@ $styles: (
168
151
  border-color: color.get(map.get($style, "border-color"));
169
152
  box-shadow: map.get($style, "box-shadow");
170
153
  padding: map.get($style, "padding");
154
+ &::before {
155
+ background-color: color.get(map.get($style, "left-cap-color"));
156
+ }
171
157
  @if map.get($style, "left-cap") {
172
- @include left-cap( map.get($style, "left-cap-width"), map.get($style, "left-cap-color"));
158
+ @if not get("left-cap") {
159
+ @include -left-cap();
160
+ }
173
161
  }
174
162
  }
175
163
  }
@@ -30,6 +30,23 @@ $-fallbacks: (
30
30
 
31
31
  /// Module Settings
32
32
  /// @type Map
33
+ /// @prop {Boolean} text-alignment-matches [false] Toggles matching alignment.
34
+ /// @prop {Boolean} text-alignment-matches-center-only [true] Toggles matching alignment, but only if center.
35
+ /// @prop {Color} background-color [white] Background color of the component.
36
+ /// @prop {CssValue} box-shadow [true] Box shadow the captioned figure.
37
+ /// @prop {Dimension} margin-bottom [true] Bottom margin of the captioned figure.
38
+ /// @prop {Number} line-height [true] Line height of the captioned figure caption.
39
+ /// @prop {Dimension} caption-padding [0.5em] Padding of the captioned figure caption.
40
+ /// @prop {Color} color [null] Font color of the captioned figure caption.
41
+ /// @prop {String} type-size ["small"] Font size of the captioned figure caption.
42
+ /// @prop {Dimension} caption-max-width [min(100%, 15em)] Max width of the captioned figure caption.
43
+ /// @prop {Color} caption-background-color [rgba(255,255,255,0.7)] background color of the captioned figure caption.
44
+ /// @prop {CssValue} caption-backdrop-filter [blur(2px)] Filter of the backdrop of the captioned figure.
45
+ /// @prop {Color} traditional-caption-color [null] Traditional style for font color.
46
+ /// @prop {Color} traditional-caption-background-color [transparent] Traditional style for caption background color.
47
+ /// @prop {Dimension} traditional-caption-padding [0.5em] Traditional style for caption padding.
48
+ /// @prop {Dimension} traditional-caption-max-width [35em] Traditional style for caption max width.
49
+ /// @prop {CssValue} traditional-caption-text-align [right] Traditional style for caption text-align.
33
50
 
34
51
  $config: (
35
52
  "text-alignment-matches" : false,
@@ -51,7 +51,7 @@ $config: (
51
51
 
52
52
  #{ $prefix } {
53
53
  display: grid;
54
- grid-template-columns: get("template-columns");
54
+ grid-template-columns: get("template-columns");
55
55
  grid-auto-rows: 1fr;
56
56
  gap: get("gap");
57
57
  margin: get("gap") 0;
@@ -19,7 +19,6 @@
19
19
  /// @prop {Dimension} padding [2rem] The padding for the image icon
20
20
  /// @prop {Dimension} margin-y [3rem] Top and bottom margin for the card.
21
21
  /// @prop {Dimension} border-radius [5rem] The border radius of the card.
22
- /// @prop {String} horizontal-breakpoint [small] The breakpoint used to change the card to vertical if using the card--horizontal styling. Uses ulu's breakpoint module.
23
22
  /// @prop {CssValue} box-shadow [null] The box-shadow for the card.
24
23
  /// @prop {CssValue} box-shadow-hover [null] The box-shadow for the card when hovered or focused.
25
24
  /// @prop {Color} color [null] The type color of the card.
@@ -58,8 +57,10 @@
58
57
  /// @prop {Boolean} image-transition-enabled [true] Enable or disable the image transition.
59
58
  /// @prop {Time} image-transition-duration [350ms] The duration of the image transition.
60
59
  /// @prop {CssValue} image-transition-timing-function [ease-in-out] The timing function for the image transition.
60
+ /// @prop {List} image-icon-max-width [30rem] Max width for image when using the modifier on the .card__image--icon
61
61
  /// @prop {List} image-transition-properties [(transform, filter)] The properties for the image transitions.
62
-
62
+ /// @prop {String} horizontal-breakpoint [small] The breakpoint used to change the card to vertical if using the card--horizontal styling. Uses ulu's breakpoint module.
63
+ /// @prop {Unit} horizontal-body-max-width [80rem] The max-width of body when horizontal
63
64
 
64
65
 
65
66
  $config: (
@@ -79,6 +80,8 @@ $config: (
79
80
  "footer-padding-y" : 0.25rem,
80
81
  "footer-min-height" : 2.5rem,
81
82
  "horizontal-breakpoint" : "small",
83
+ "horizontal-image-width" : 33%,
84
+ "horizontal-body-max-width" : 80rem,
82
85
  "header-margin" : 0.75em,
83
86
  "image-ratio" : 56.25%,
84
87
  "image-aspect-ratio": list.slash(5, 3),
@@ -86,6 +89,7 @@ $config: (
86
89
  "image-border" : null, // For when you have a margin
87
90
  "image-filter-hover" : null,
88
91
  "image-margin" : null,
92
+ "image-icon-max-width" : 30rem,
89
93
  "image-transform-hover" : null,
90
94
  "image-transition-duration" : 350ms,
91
95
  "image-transition-enabled" : true,
@@ -110,7 +114,7 @@ $config: (
110
114
  "overlay-background-color": rgba(0, 0, 0, 0.6),
111
115
  "overlay-shading": true,
112
116
  "overlay-body-padding-y": 1rem,
113
- ) !default;
117
+ ) !default;
114
118
 
115
119
  /// Change modules $config
116
120
  /// @param {Map} $changes Map of changes
@@ -182,7 +186,7 @@ $config: (
182
186
  // Border is on pseudo so that it's on top of image/etc
183
187
  &:after {
184
188
  position: absolute;
185
- content: if(get("border"), "", false);
189
+ content: if(get("border"), "", null);
186
190
  top: 0;
187
191
  bottom: 0;
188
192
  right: 0;
@@ -300,7 +304,7 @@ $config: (
300
304
  img {
301
305
  position: static;
302
306
  display: block;
303
- max-width: 30rem;
307
+ max-width: get("image-icon-max-width");
304
308
  height: auto;
305
309
  top: auto;
306
310
  left: auto;
@@ -414,8 +418,8 @@ $config: (
414
418
  justify-content: center;
415
419
  align-items: center;
416
420
  #{ $prefix }__image {
417
- width: 33%;
418
- flex: 0 1 33%;
421
+ width: get("horizontal-image-width");
422
+ flex: 0 1 get("horizontal-image-width");
419
423
  // max-width: 30rem;
420
424
  min-height: 28rem;
421
425
  // padding-top: 0;
@@ -425,7 +429,7 @@ $config: (
425
429
  flex: 1;
426
430
  flex-direction: column;
427
431
  justify-content: center;
428
- max-width: 80rem;
432
+ max-width: get("horizontal-body-max-width");
429
433
  }
430
434
  }
431
435
  }
@@ -24,16 +24,45 @@ $-fallbacks: (
24
24
 
25
25
  /// Module Settings
26
26
  /// @type Map
27
+ /// @prop {Dimension} cell-padding [(0.5em,)] Padding of the th and td elements.
28
+ /// @prop {CssValue} text-align [left] Text align of the table.
29
+ /// @prop {String} type-size ["small"] Font size of the table.
30
+ /// @prop {Color} background-color [white] Background color of table container.
31
+ /// @prop {Color} header-background-color [#f5f4f4] Background color of the the table header.
32
+ /// @prop {Color} body-background-color [white] Background color of table body.
33
+ /// @prop {Color} footer-background-color [#f3f3f3] Background color of table footer.
34
+ /// @prop {Color} color ["type-secondary"] Font color of the table.
35
+ /// @prop {Color} header-color ["headline"] Font color for the table header.
36
+ /// @prop {Number} line-height [true] Line height for the table.
37
+ /// @prop {Dimension} column-min-width [6em] Min-width of the th element.
38
+ /// @prop {Dimension} first-column-large-min-width [15em] When using "--large-first" style, the min width of the first th element.
39
+ /// @prop {Dimension} border-width [1px] Border width of the table.
40
+ /// @prop {Color} border-color [#dddddd] Border color for the table.
41
+ /// @prop {Color} striped-row-background-color [#eeeeee] Background color for even rows if using "--striped" styling.
42
+ /// @prop {Color} muted-row-background-color [#ccc] Background color for odd rows if using "--striped" styling.
43
+ /// @prop {Color} muted-row-border-color [null] Border color for odd rows if using "--striped" styling.
44
+ /// @prop {Color} highlighted-row-background-color [#ccc] Background color row if using "__row-highlighted" styling.
45
+ /// @prop {Color} highlighted-row-border-color [null] Border color row if using "__row-highlighted" styling.
46
+ /// @prop {Dimension} large-header-cell-padding-y [1em] Vertical padding of header if using "--large-header" styling.
47
+ /// @prop {String} caption-type-size ["large"] Type size of table caption.
48
+ /// @prop {Color} caption-background-color [null] Background color of table caption.
49
+ /// @prop {CssValue} caption-font-weight [bold] Font weight of caption.
50
+ /// @prop {CssBalue} caption-border-bottom [null] Bottom border of the caption.
51
+ /// @prop {Dimension} caption-margin [(0,)] Margin of the caption.
52
+ /// @prop {Dimension} caption-padding [(0.65em 0)] Padding of the caption.
53
+ /// @prop {CssValue} caption-text-align [left] Text align of the caption.
54
+ /// @prop {String} extra-selector [".wysiwyg table"] Additional selectors to include table styling.
27
55
 
28
56
  $config: (
29
57
  "cell-padding" : (0.5em,),
30
58
  "text-align" : left,
31
59
  "type-size" : "small",
32
60
  "background-color" : white,
33
- "header-background-color" : #eeeeee,
61
+ "header-background-color" : #f5f4f4,
34
62
  "body-background-color" : white,
35
63
  "footer-background-color" : #f3f3f3,
36
64
  "color" : "type-secondary",
65
+ "header-color" : "headline",
37
66
  "line-height" : true,
38
67
  "column-min-width" : 6em,
39
68
  "first-column-large-min-width" : 15em,
@@ -48,8 +77,9 @@ $config: (
48
77
  "caption-type-size" : "large",
49
78
  "caption-background-color" : null,
50
79
  "caption-font-weight" : bold,
80
+ "caption-border-bottom" : null,
51
81
  "caption-margin" : (0,),
52
- "caption-padding" : (0.5em,),
82
+ "caption-padding" : (0.65em 0),
53
83
  "caption-text-align" : left,
54
84
  "extra-selector" : ".wysiwyg table"
55
85
  ) !default;
@@ -113,7 +143,7 @@ $config: (
113
143
  margin: get("caption-margin");
114
144
  padding: get("caption-padding");
115
145
  background-color: get("caption-background-color");
116
- border-bottom: $border;
146
+ border-bottom: get("caption-border-bottom");
117
147
  }
118
148
  th,
119
149
  tr,
@@ -137,6 +167,9 @@ $config: (
137
167
  thead tr {
138
168
  background-color: color.get(get("header-background-color"));
139
169
  }
170
+ thead th {
171
+ color: color.get(get("header-color"));
172
+ }
140
173
  tbody tr {
141
174
  background-color: color.get(get("body-background-color"));
142
175
  }
@@ -18,7 +18,7 @@
18
18
  /// @prop {} color [inherit]
19
19
  /// @prop {} color-placeholder ["type-tertiary"]
20
20
  /// @prop {} drupal [false]
21
- /// @prop {} error-color ["error"]
21
+ /// @prop {} error-color ["danger"]
22
22
  /// @prop {} error-highlight-color [rgb(251, 242, 242)]
23
23
  /// @prop {} error-selector [".is-danger"]
24
24
  /// @prop {} file-button-style [true]
@@ -37,7 +37,7 @@
37
37
  /// @prop {} input-background-color [white]
38
38
  /// @prop {} item-border-radius [null]
39
39
  /// @prop {} item-highlight-width [6px]
40
- /// @prop {} required-color ["error"]
40
+ /// @prop {} required-color ["danger"]
41
41
  /// @prop {} text-input-margin-bottom [0.5em]
42
42
  /// @prop {} text-input-margin-top [1em]
43
43
  /// @prop {} warning-color ["warning"]
@@ -82,9 +82,11 @@
82
82
  /// @prop {} fieldset-margin-top [1rem]
83
83
  /// @prop {} fieldset-padding [0]
84
84
  /// @prop {} fieldset-margin-compact [0]
85
+ /// @prop {} fieldset-border-bottom [0]
85
86
  /// @prop {} fieldset-border-radius [0]
86
87
  /// @prop {} fieldset-legend-color [inherit]
87
88
  /// @prop {} fieldset-legend-border-bottom [null]
89
+ /// @prop {} fieldset-legend-padding-bottom [null]
88
90
  /// @prop {} select-border-radius [4px]
89
91
  /// @prop {} select-background-color [null]
90
92
  /// @prop {} select-border [null]
@@ -94,12 +96,13 @@
94
96
  /// @prop {} select-image-size [0.9em]
95
97
  /// @prop {} select-image-offset [0.7em]
96
98
  /// @prop {} select-image-margin [0.65em]
99
+ /// @prop {Unit} inline-gap [1em] Gap between items that are inline like checkboxes
97
100
 
98
101
  $config: (
99
102
  "color" : inherit,
100
103
  "color-placeholder" : "type-tertiary",
101
104
  "drupal" : false,
102
- "error-color" : "error",
105
+ "error-color" : "danger",
103
106
  "error-highlight-color" : rgb(251, 242, 242),
104
107
  "error-selector" : ".is-danger",
105
108
  "file-button-style" : true,
@@ -111,14 +114,14 @@ $config: (
111
114
  "font-weight-select" : null,
112
115
  "input-border" : element.get-rule-style(),
113
116
  "input-border-radius" : 0,
114
- "input-margin-y" : 0.75em,
117
+ "item-margin-y" : 0.75em,
115
118
  "input-padding-x" : 0.5em,
116
119
  "input-padding-y" : 0.25em,
117
120
  "input-min-width" : 10em,
118
121
  "input-background-color" : white,
119
122
  "item-border-radius" : null,
120
123
  "item-highlight-width" : 6px,
121
- "required-color" : "error",
124
+ "required-color" : "danger",
122
125
  "text-input-margin-bottom" : 0.5em,
123
126
  "text-input-margin-top" : 1em,
124
127
  "warning-color" : "warning",
@@ -166,6 +169,8 @@ $config: (
166
169
  "fieldset-border-radius" : 0,
167
170
  "fieldset-legend-color" : inherit,
168
171
  "fieldset-legend-border-bottom" : null,
172
+ "fieldset-legend-padding-bottom" : 0,
173
+ "fieldset-legend-margin-bottom" : 0.5em,
169
174
  "select-border-radius" : 4px,
170
175
  "select-background-color" : null,
171
176
  "select-border" : null,
@@ -175,6 +180,7 @@ $config: (
175
180
  "select-image-size" : 0.9em,
176
181
  "select-image-offset" : 0.7em,
177
182
  "select-image-margin" : 0.65em,
183
+ "inline-gap" : 1em
178
184
  ) !default;
179
185
 
180
186
  /// Change modules $config
@@ -305,7 +311,6 @@ $config: (
305
311
  }
306
312
  select {
307
313
  font-weight: get("font-weight-select");
308
- border: get("select-border");
309
314
  border-radius: get("select-border-radius");
310
315
  background-color: color.get(get("select-background-color"));
311
316
  padding: -fallback("select-padding-y", "input-padding-y") -fallback("select-padding-x", "input-padding-x");
@@ -456,19 +461,13 @@ $config: (
456
461
  > legend {
457
462
  font-weight: get("font-weight-legend");
458
463
  display: block;
459
- margin: 0 0 0.5em 0;
464
+ margin: 0 0 get("fieldset-legend-margin-bottom") 0;
460
465
  border: 0;
461
- padding: 0;
466
+ padding: 0 0 get("fieldset-legend-padding-bottom") 0;
462
467
  width: 100%;
463
468
  float: left;
464
- > span {
465
- display: block;
466
- margin-bottom: 1rem;
467
- padding-bottom: 0.5em;
468
- padding-top: 0.5em;
469
- border-bottom: get("fieldset-legend-border-bottom");
470
- color: color.get(get("fieldset-legend-color"));
471
- }
469
+ border-bottom: get("fieldset-legend-border-bottom");
470
+ color: color.get(get("fieldset-legend-color"));
472
471
  & ~ * {
473
472
  clear: left;
474
473
  }
@@ -547,7 +546,7 @@ $config: (
547
546
  #{ $prefix }__item {
548
547
  display: flex;
549
548
  align-items: center;
550
- margin-bottom: get("input-margin-y");
549
+ margin-bottom: get("item-margin-y");
551
550
  border-radius: get("item-border-radius");
552
551
  flex-shrink: 0; // Cannot be smaller than content within
553
552
  @include -form-item-state($selectError, $errorColor, color.get(get("error-highlight-color")));
@@ -565,8 +564,9 @@ $config: (
565
564
  #{ $prefix }__items-inline {
566
565
  display: flex;
567
566
  flex-wrap: wrap;
567
+ gap: get("inline-gap");
568
568
  > #{ $prefix }__item {
569
- margin-right: 1.5em;
569
+ margin: 0;
570
570
  }
571
571
  }
572
572
  #{ $prefix }__actions {
@@ -15,6 +15,15 @@
15
15
  /// Module Settings
16
16
  /// @type Map
17
17
  /// @prop {Map} extra-split-ratios [wide 70/30] A map where the name is the modifier and the value is a list with two percentages (the first percentage will be correspond with the graphic or content depending on selector [ie. .hero--split-graphic-[name] would apply the first percentage to the graphic while hero--split-content-[name] would apply the first percentage to the content])
18
+ /// @prop {String} breakpoint ["medium"] At what breakpoint the hero goes to small screen styling.
19
+ /// @prop {Dimension} height [100vh] Height of the hero.
20
+ /// @prop {Dimension} height-compact [40vh] Height of the hero when using the "--compact" styling.
21
+ /// @prop {Dimension} graphic-height-stacked [60vh] Height of the graphic.
22
+ /// @prop {Dimension} content-max-width [40rem] Max width of the content.
23
+ /// @prop {Dimension} content-padding-top [3rem] Top padding of the content.
24
+ /// @prop {Dimension} content-padding-bottom [3rem] Bottom padding of the content.
25
+ /// @prop {CssValue} text-align [center] Text align of the content.
26
+
18
27
 
19
28
  $config: (
20
29
  "breakpoint" : "medium",
@@ -24,7 +24,7 @@ $-fallbacks: (
24
24
 
25
25
  /// Module Settings
26
26
  /// @type Map
27
- /// @prop {Dimension} checkbox-area-width [3em] The width of the checkbox area.
27
+ /// @prop {Dimension} selectable-input-width [3em] The width of the checkbox/radio input
28
28
  /// @prop {Boolean} link-separated-margin [false] Enables a margin between the items in the menu-stack.
29
29
  /// @prop {Boolean} link-separated-rule-style [false] Enables a rule between the items in the menu-stack.
30
30
  /// @prop {Dimension} nested-indent [0.5em] The indentation of child lists within the menu-stack.
@@ -53,7 +53,7 @@ $-fallbacks: (
53
53
  /// @prop {Dimension} link-padding-y [0.35em] Vertical padding for menu-stack toggle.
54
54
 
55
55
  $config: (
56
- "checkbox-area-width" : 3em,
56
+ "selectable-input-width" : 3em,
57
57
  "nested-indent" : 0.5em,
58
58
  "rule-style" : "default",
59
59
  "rule-margin" : 0.5em,
@@ -115,6 +115,7 @@ $config: (
115
115
 
116
116
  @mixin styles {
117
117
  $prefix: selector.class("menu-stack");
118
+ $selectable-y: (get("link-padding-y") + get("link-margin"));
118
119
 
119
120
  #{ $prefix }--separated {
120
121
  border-top: element.get-rule-style(get("rule-style"));
@@ -149,7 +150,7 @@ $config: (
149
150
  // - Use the modifier "site-menu--contained" to keep the links within
150
151
  // the parent container (no optical alignment), should be within something that contains it
151
152
  #{ $prefix }__link,
152
- #{ $prefix }__checkbox,
153
+ #{ $prefix }__selectable,
153
154
  #{ $prefix }__toggle {
154
155
  width: 100%;
155
156
  display: flex;
@@ -176,19 +177,21 @@ $config: (
176
177
  }
177
178
  }
178
179
  }
179
- #{ $prefix }__checkbox {
180
- $checkbox-y: (get("link-padding-y") + get("link-margin"));
180
+ #{ $prefix }__selectable {
181
181
  padding: 0;
182
182
  position: relative;
183
- [type="checkbox"] {
184
- position: absolute;
185
- top: $checkbox-y;
186
- left: get("link-padding-x");
187
- }
188
- label {
189
- width: 100%;
190
- padding: $checkbox-y get("link-padding-x") $checkbox-y get("checkbox-area-width");
191
- }
183
+ }
184
+ #{ $prefix }__selectable [type="checkbox"],
185
+ #{ $prefix }__selectable [type="radio"],
186
+ #{ $prefix }__selectable-input {
187
+ position: absolute;
188
+ top: $selectable-y;
189
+ left: get("link-padding-x");
190
+ }
191
+ #{ $prefix }__selectable label,
192
+ #{ $prefix }__selectable-label {
193
+ width: 100%;
194
+ padding: $selectable-y get("link-padding-x") $selectable-y get("selectable-input-width");
192
195
  }
193
196
  #{ $prefix }__link-text {
194
197
  display: block;
@@ -219,8 +222,8 @@ $config: (
219
222
 
220
223
  // Link buttons hang outside in margin so that text optically aligns
221
224
  #{ $prefix }--hanging {
222
- padding-left: get("link-padding-x");
223
- padding-right: get("link-padding-x");
225
+ // padding-left: get("link-padding-x");
226
+ // padding-right: get("link-padding-x");
224
227
  > #{ $prefix }__list > #{ $prefix }__item {
225
228
  > #{ $prefix }__link,
226
229
  >#{ $prefix }__collapsible > #{ $prefix }__toggle {