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

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.
@@ -4773,9 +4773,15 @@
4773
4773
  <span class="pjs-token pjs-string">"background"</span> <span class="pjs-token pjs-punctuation">:</span> white<span class="pjs-token pjs-punctuation">,</span>
4774
4774
  <span class="pjs-token pjs-string">"background-gray"</span> <span class="pjs-token pjs-punctuation">:</span> #F7F8F7<span class="pjs-token pjs-punctuation">,</span>
4775
4775
  <span class="pjs-token pjs-string">"focus"</span> <span class="pjs-token pjs-punctuation">:</span> blue<span class="pjs-token pjs-punctuation">,</span>
4776
- <span class="pjs-token pjs-string">"error"</span> <span class="pjs-token pjs-punctuation">:</span> red<span class="pjs-token pjs-punctuation">,</span>
4777
- <span class="pjs-token pjs-string">"warning"</span> <span class="pjs-token pjs-punctuation">:</span> orange<span class="pjs-token pjs-punctuation">,</span>
4778
4776
  <span class="pjs-token pjs-string">"accent"</span> <span class="pjs-token pjs-punctuation">:</span> orange<span class="pjs-token pjs-punctuation">,</span>
4777
+ <span class="pjs-token pjs-string">"info"</span> <span class="pjs-token pjs-punctuation">:</span> #00bde3<span class="pjs-token pjs-punctuation">,</span>
4778
+ <span class="pjs-token pjs-string">"success"</span> <span class="pjs-token pjs-punctuation">:</span> #00a91c<span class="pjs-token pjs-punctuation">,</span>
4779
+ <span class="pjs-token pjs-string">"warning"</span> <span class="pjs-token pjs-punctuation">:</span> #ffbe2e<span class="pjs-token pjs-punctuation">,</span>
4780
+ <span class="pjs-token pjs-string">"danger"</span> <span class="pjs-token pjs-punctuation">:</span> #d54309<span class="pjs-token pjs-punctuation">,</span>
4781
+ <span class="pjs-token pjs-string">"info-background"</span> <span class="pjs-token pjs-punctuation">:</span> #e7f6f8<span class="pjs-token pjs-punctuation">,</span>
4782
+ <span class="pjs-token pjs-string">"success-background"</span> <span class="pjs-token pjs-punctuation">:</span> #ecf3ec<span class="pjs-token pjs-punctuation">,</span>
4783
+ <span class="pjs-token pjs-string">"warning-background"</span> <span class="pjs-token pjs-punctuation">:</span> #faf3d1<span class="pjs-token pjs-punctuation">,</span>
4784
+ <span class="pjs-token pjs-string">"danger-background"</span> <span class="pjs-token pjs-punctuation">:</span> #f4e3db<span class="pjs-token pjs-punctuation">,</span>
4779
4785
  <span class="pjs-token pjs-string">"selected"</span> <span class="pjs-token pjs-punctuation">:</span> green<span class="pjs-token pjs-punctuation">,</span>
4780
4786
  <span class="pjs-token pjs-string">"box-shadow"</span> <span class="pjs-token pjs-punctuation">:</span> <span class="pjs-token pjs-function">rgba</span><span class="pjs-token pjs-punctuation">(</span>0<span class="pjs-token pjs-punctuation">,</span> 0<span class="pjs-token pjs-punctuation">,</span> 0<span class="pjs-token pjs-punctuation">,</span> 0.349<span class="pjs-token pjs-punctuation">)</span><span class="pjs-token pjs-punctuation">,</span>
4781
4787
  <span class="pjs-token pjs-string">"box-shadow-hover"</span> <span class="pjs-token pjs-punctuation">:</span> <span class="pjs-token pjs-function">rgba</span><span class="pjs-token pjs-punctuation">(</span>0<span class="pjs-token pjs-punctuation">,</span> 0<span class="pjs-token pjs-punctuation">,</span> 0<span class="pjs-token pjs-punctuation">,</span> 0.5<span class="pjs-token pjs-punctuation">)</span><span class="pjs-token pjs-punctuation">,</span>
@@ -4803,7 +4809,7 @@
4803
4809
  <li><strong>Group:</strong> color</li>
4804
4810
  <li><strong>Type:</strong> variable</li>
4805
4811
  <li><strong>Lines (comments):</strong> 13-16</li>
4806
- <li><strong>Lines (code):</strong> 18-50</li>
4812
+ <li><strong>Lines (code):</strong> 18-56</li>
4807
4813
  </ul>
4808
4814
  </details>
4809
4815
  <div class="sassdoc-item-header">
@@ -4831,8 +4837,8 @@
4831
4837
  <li><strong>File:</strong> _color.scss</li>
4832
4838
  <li><strong>Group:</strong> color</li>
4833
4839
  <li><strong>Type:</strong> variable</li>
4834
- <li><strong>Lines (comments):</strong> 52-56</li>
4835
- <li><strong>Lines (code):</strong> 58-69</li>
4840
+ <li><strong>Lines (comments):</strong> 58-62</li>
4841
+ <li><strong>Lines (code):</strong> 64-75</li>
4836
4842
  </ul>
4837
4843
  </details>
4838
4844
  <h4 id="map-properties" tabindex="-1">Map Properties</h4>
@@ -4883,8 +4889,8 @@
4883
4889
  <li><strong>File:</strong> _color.scss</li>
4884
4890
  <li><strong>Group:</strong> color</li>
4885
4891
  <li><strong>Type:</strong> variable</li>
4886
- <li><strong>Lines (comments):</strong> 71-72</li>
4887
- <li><strong>Lines (code):</strong> 73-77</li>
4892
+ <li><strong>Lines (comments):</strong> 77-78</li>
4893
+ <li><strong>Lines (code):</strong> 79-83</li>
4888
4894
  </ul>
4889
4895
  </details>
4890
4896
  <h2 id="mixins" tabindex="-1">Mixins</h2>
@@ -4901,8 +4907,8 @@
4901
4907
  <li><strong>File:</strong> _color.scss</li>
4902
4908
  <li><strong>Group:</strong> color</li>
4903
4909
  <li><strong>Type:</strong> mixin</li>
4904
- <li><strong>Lines (comments):</strong> 79-85</li>
4905
- <li><strong>Lines (code):</strong> 87-89</li>
4910
+ <li><strong>Lines (comments):</strong> 85-91</li>
4911
+ <li><strong>Lines (code):</strong> 93-95</li>
4906
4912
  </ul>
4907
4913
  </details>
4908
4914
  <h4 id="examples" tabindex="-1">Examples</h4>
@@ -4945,8 +4951,8 @@
4945
4951
  <li><strong>File:</strong> _color.scss</li>
4946
4952
  <li><strong>Group:</strong> color</li>
4947
4953
  <li><strong>Type:</strong> mixin</li>
4948
- <li><strong>Lines (comments):</strong> 111-112</li>
4949
- <li><strong>Lines (code):</strong> 114-116</li>
4954
+ <li><strong>Lines (comments):</strong> 117-118</li>
4955
+ <li><strong>Lines (code):</strong> 120-122</li>
4950
4956
  </ul>
4951
4957
  </details>
4952
4958
  <h4 id="parameters-1" tabindex="-1">Parameters</h4>
@@ -4983,8 +4989,8 @@
4983
4989
  <li><strong>File:</strong> _color.scss</li>
4984
4990
  <li><strong>Group:</strong> color</li>
4985
4991
  <li><strong>Type:</strong> mixin</li>
4986
- <li><strong>Lines (comments):</strong> 125-135</li>
4987
- <li><strong>Lines (code):</strong> 137-139</li>
4992
+ <li><strong>Lines (comments):</strong> 131-141</li>
4993
+ <li><strong>Lines (code):</strong> 143-145</li>
4988
4994
  </ul>
4989
4995
  </details>
4990
4996
  <h4 id="examples-1" tabindex="-1">Examples</h4>
@@ -5040,8 +5046,8 @@
5040
5046
  <li><strong>File:</strong> _color.scss</li>
5041
5047
  <li><strong>Group:</strong> color</li>
5042
5048
  <li><strong>Type:</strong> mixin</li>
5043
- <li><strong>Lines (comments):</strong> 164-165</li>
5044
- <li><strong>Lines (code):</strong> 167-173</li>
5049
+ <li><strong>Lines (comments):</strong> 170-171</li>
5050
+ <li><strong>Lines (code):</strong> 173-179</li>
5045
5051
  </ul>
5046
5052
  </details>
5047
5053
  <h4 id="parameters-3" tabindex="-1">Parameters</h4>
@@ -5080,8 +5086,8 @@
5080
5086
  <li><strong>File:</strong> _color.scss</li>
5081
5087
  <li><strong>Group:</strong> color</li>
5082
5088
  <li><strong>Type:</strong> mixin</li>
5083
- <li><strong>Lines (comments):</strong> 197-204</li>
5084
- <li><strong>Lines (code):</strong> 206-215</li>
5089
+ <li><strong>Lines (comments):</strong> 203-210</li>
5090
+ <li><strong>Lines (code):</strong> 212-221</li>
5085
5091
  </ul>
5086
5092
  </details>
5087
5093
  <h4 id="examples-2" tabindex="-1">Examples</h4>
@@ -5133,8 +5139,8 @@
5133
5139
  <li><strong>File:</strong> _color.scss</li>
5134
5140
  <li><strong>Group:</strong> color</li>
5135
5141
  <li><strong>Type:</strong> mixin</li>
5136
- <li><strong>Lines (comments):</strong> 217-221</li>
5137
- <li><strong>Lines (code):</strong> 223-232</li>
5142
+ <li><strong>Lines (comments):</strong> 223-227</li>
5143
+ <li><strong>Lines (code):</strong> 229-238</li>
5138
5144
  </ul>
5139
5145
  </details>
5140
5146
  <h4 id="examples-3" tabindex="-1">Examples</h4>
@@ -5165,8 +5171,8 @@
5165
5171
  <li><strong>File:</strong> _color.scss</li>
5166
5172
  <li><strong>Group:</strong> color</li>
5167
5173
  <li><strong>Type:</strong> function</li>
5168
- <li><strong>Lines (comments):</strong> 91-93</li>
5169
- <li><strong>Lines (code):</strong> 95-109</li>
5174
+ <li><strong>Lines (comments):</strong> 97-99</li>
5175
+ <li><strong>Lines (code):</strong> 101-115</li>
5170
5176
  </ul>
5171
5177
  </details>
5172
5178
  <h4 id="parameters-5" tabindex="-1">Parameters</h4>
@@ -5219,8 +5225,8 @@
5219
5225
  <li><strong>File:</strong> _color.scss</li>
5220
5226
  <li><strong>Group:</strong> color</li>
5221
5227
  <li><strong>Type:</strong> function</li>
5222
- <li><strong>Lines (comments):</strong> 118-118</li>
5223
- <li><strong>Lines (code):</strong> 120-123</li>
5228
+ <li><strong>Lines (comments):</strong> 124-124</li>
5229
+ <li><strong>Lines (code):</strong> 126-129</li>
5224
5230
  </ul>
5225
5231
  </details>
5226
5232
  <h4 id="require-7" tabindex="-1">Require</h4>
@@ -5241,8 +5247,8 @@
5241
5247
  <li><strong>File:</strong> _color.scss</li>
5242
5248
  <li><strong>Group:</strong> color</li>
5243
5249
  <li><strong>Type:</strong> function</li>
5244
- <li><strong>Lines (comments):</strong> 141-143</li>
5245
- <li><strong>Lines (code):</strong> 145-147</li>
5250
+ <li><strong>Lines (comments):</strong> 147-149</li>
5251
+ <li><strong>Lines (code):</strong> 151-153</li>
5246
5252
  </ul>
5247
5253
  </details>
5248
5254
  <h4 id="parameters-6" tabindex="-1">Parameters</h4>
@@ -5293,8 +5299,8 @@
5293
5299
  <li><strong>File:</strong> _color.scss</li>
5294
5300
  <li><strong>Group:</strong> color</li>
5295
5301
  <li><strong>Type:</strong> function</li>
5296
- <li><strong>Lines (comments):</strong> 149-152</li>
5297
- <li><strong>Lines (code):</strong> 154-162</li>
5302
+ <li><strong>Lines (comments):</strong> 155-158</li>
5303
+ <li><strong>Lines (code):</strong> 160-168</li>
5298
5304
  </ul>
5299
5305
  </details>
5300
5306
  <h4 id="parameters-7" tabindex="-1">Parameters</h4>
@@ -5350,8 +5356,8 @@
5350
5356
  <li><strong>File:</strong> _color.scss</li>
5351
5357
  <li><strong>Group:</strong> color</li>
5352
5358
  <li><strong>Type:</strong> function</li>
5353
- <li><strong>Lines (comments):</strong> 175-180</li>
5354
- <li><strong>Lines (code):</strong> 182-184</li>
5359
+ <li><strong>Lines (comments):</strong> 181-186</li>
5360
+ <li><strong>Lines (code):</strong> 188-190</li>
5355
5361
  <li><strong>Author:</strong></li>
5356
5362
  </ul>
5357
5363
  </details>
@@ -5411,8 +5417,8 @@
5411
5417
  <li><strong>File:</strong> _color.scss</li>
5412
5418
  <li><strong>Group:</strong> color</li>
5413
5419
  <li><strong>Type:</strong> function</li>
5414
- <li><strong>Lines (comments):</strong> 186-191</li>
5415
- <li><strong>Lines (code):</strong> 193-195</li>
5420
+ <li><strong>Lines (comments):</strong> 192-197</li>
5421
+ <li><strong>Lines (code):</strong> 199-201</li>
5416
5422
  <li><strong>Author:</strong> Kitty Giraudel</li>
5417
5423
  </ul>
5418
5424
  </details>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend",
3
- "version": "0.1.0-beta.10",
3
+ "version": "0.1.0-beta.11",
4
4
  "description": "Modular Sass Theming Library",
5
5
  "browser": "js/index.js",
6
6
  "main": "index.js",
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,16 @@ 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
@@ -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
  }
@@ -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
  }
@@ -30,10 +30,11 @@ $config: (
30
30
  "text-align" : left,
31
31
  "type-size" : "small",
32
32
  "background-color" : white,
33
- "header-background-color" : #eeeeee,
33
+ "header-background-color" : #f5f4f4,
34
34
  "body-background-color" : white,
35
35
  "footer-background-color" : #f3f3f3,
36
36
  "color" : "type-secondary",
37
+ "header-color" : "headline",
37
38
  "line-height" : true,
38
39
  "column-min-width" : 6em,
39
40
  "first-column-large-min-width" : 15em,
@@ -48,8 +49,9 @@ $config: (
48
49
  "caption-type-size" : "large",
49
50
  "caption-background-color" : null,
50
51
  "caption-font-weight" : bold,
52
+ "caption-border-bottom" : null,
51
53
  "caption-margin" : (0,),
52
- "caption-padding" : (0.5em,),
54
+ "caption-padding" : (0.65em 0),
53
55
  "caption-text-align" : left,
54
56
  "extra-selector" : ".wysiwyg table"
55
57
  ) !default;
@@ -113,7 +115,7 @@ $config: (
113
115
  margin: get("caption-margin");
114
116
  padding: get("caption-padding");
115
117
  background-color: get("caption-background-color");
116
- border-bottom: $border;
118
+ border-bottom: get("caption-border-bottom");
117
119
  }
118
120
  th,
119
121
  tr,
@@ -137,6 +139,9 @@ $config: (
137
139
  thead tr {
138
140
  background-color: color.get(get("header-background-color"));
139
141
  }
142
+ thead th {
143
+ color: color.get(get("header-color"));
144
+ }
140
145
  tbody tr {
141
146
  background-color: color.get(get("body-background-color"));
142
147
  }
@@ -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 {