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

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.
@@ -19,12 +19,20 @@ $-fallbacks: (
19
19
  "link-border-radius" : (
20
20
  "function" : meta.get-function("get", false, "button"),
21
21
  "property" : "border-radius"
22
+ ),
23
+ "label-line-height" : (
24
+ "function" : meta.get-function("get", false, "typography"),
25
+ "property" : "line-height-dense"
26
+ ),
27
+ "link-line-height" : (
28
+ "function" : meta.get-function("get", false, "typography"),
29
+ "property" : "line-height-dense"
22
30
  )
23
31
  );
24
32
 
25
33
  /// Module Settings
26
34
  /// @type Map
27
- /// @prop {Dimension} checkbox-area-width [3em] The width of the checkbox area.
35
+ /// @prop {Dimension} selectable-input-width [3em] The width of the checkbox/radio input
28
36
  /// @prop {Boolean} link-separated-margin [false] Enables a margin between the items in the menu-stack.
29
37
  /// @prop {Boolean} link-separated-rule-style [false] Enables a rule between the items in the menu-stack.
30
38
  /// @prop {Dimension} nested-indent [0.5em] The indentation of child lists within the menu-stack.
@@ -36,7 +44,8 @@ $-fallbacks: (
36
44
  /// @prop {Color} label-color [null] The type color of the label.
37
45
  /// @prop {Dimension} label-margin [0.5em] The margin of the label.
38
46
  /// @prop {CssValue} label-text-transform [uppercase] Transforms the label text.
39
- /// @prop {CssValue} label-type-size [false] Adjusts the type size of the label.
47
+ /// @prop {CssValue} label-type-size [false] Adjusts the type size of the label. Only uses font-size from type size.
48
+ /// @prop {CssValue} label-line-height [true] Adjust the label line-height, defaults to typography line-height-dense
40
49
  /// @prop {list} link-active-selectors [(.is-active, '[aria-current=page]')] Selectors to apply active styling.
41
50
  /// @prop {Color} link-background-color [transparent] The background color of the menu-stack toggle.
42
51
  /// @prop {Color} link-background-color-active [rgb(219, 219, 219)] The background color of the menu-stack toggle when active.
@@ -46,6 +55,7 @@ $-fallbacks: (
46
55
  /// @prop {Color} link-color-active [black] The type color of the menu-stack toggle when active.
47
56
  /// @prop {String} link-color-hover [link-hover] The type color of the menu-stack toggle when hovered or focused. This uses color.scss, so the value of this option should be a color variable from color.scss.
48
57
  /// @prop {CssValue} link-font-weight [null] The font weight of the menu-stack toggle.
58
+ /// @prop {CssValue} label-line-height [true] Adjust the link line-height, defaults to typography line-height-dense
49
59
  /// @prop {Dimension} link-icon-margin [0.65em] Adds a right margin to the icon.
50
60
  /// @prop {Dimension} link-icon-width [1em] The width of the icon.
51
61
  /// @prop {Dimension} link-margin [0.2em] Margin for the menu-stack toggle.
@@ -53,33 +63,35 @@ $-fallbacks: (
53
63
  /// @prop {Dimension} link-padding-y [0.35em] Vertical padding for menu-stack toggle.
54
64
 
55
65
  $config: (
56
- "checkbox-area-width" : 3em,
66
+ "selectable-input-width" : 3em,
57
67
  "nested-indent" : 0.5em,
58
- "rule-style" : "default",
68
+ "rule-style" : "light",
59
69
  "rule-margin" : 0.5em,
60
- "link-separated-margin" : false,
61
- "link-separated-rule-style" : false,
62
70
  "toggle-icon-rotate" : false,
63
- "compact-link-padding-x": 0.75em,
64
- "compact-link-padding-y": 0.25em,
65
71
  "label-color" : null,
66
72
  "label-margin" : 0.5em,
67
73
  "label-text-transform" : uppercase,
68
74
  "label-type-size" : false,
75
+ "label-line-height" : true,
76
+ "link-separated-margin" : false,
77
+ "link-separated-rule-style" : false,
69
78
  "link-active-selectors" : (".is-active", '[aria-current="page"]'),
70
79
  "link-background-color" : transparent,
71
80
  "link-background-color-active" : rgb(219, 219, 219),
72
- "link-background-color-hover" : rgb(219, 219, 219),
81
+ "link-background-color-hover" : rgb(240, 240, 240),
73
82
  "link-border-radius" : true,
74
83
  "link-color" : "link",
75
84
  "link-color-active" : black,
76
85
  "link-color-hover" : "link-hover",
77
86
  "link-font-weight" : null,
87
+ "link-line-height" : true,
78
88
  "link-icon-margin" : 0.65em,
79
89
  "link-icon-width" : 1em,
80
90
  "link-margin" : 0.2em,
81
- "link-padding-x": 1em,
82
- "link-padding-y": 0.35em,
91
+ "link-padding-x": 1.25em,
92
+ "link-padding-y": 0.5em,
93
+ "compact-link-padding-x": 0.75em,
94
+ "compact-link-padding-y": 0.25em,
83
95
  ) !default;
84
96
 
85
97
 
@@ -115,6 +127,7 @@ $config: (
115
127
 
116
128
  @mixin styles {
117
129
  $prefix: selector.class("menu-stack");
130
+ $selectable-y: (get("link-padding-y") + get("link-margin"));
118
131
 
119
132
  #{ $prefix }--separated {
120
133
  border-top: element.get-rule-style(get("rule-style"));
@@ -125,6 +138,7 @@ $config: (
125
138
  text-transform: get("label-text-transform");
126
139
  padding-bottom: get("label-margin");
127
140
  color: color.get(get("label-color"));
141
+ line-height: get("label-line-height");
128
142
  @if (get("label-type-size")) {
129
143
  @include typography.size(get("label-type-size"), $only-font-size: true);
130
144
  }
@@ -149,7 +163,7 @@ $config: (
149
163
  // - Use the modifier "site-menu--contained" to keep the links within
150
164
  // the parent container (no optical alignment), should be within something that contains it
151
165
  #{ $prefix }__link,
152
- #{ $prefix }__checkbox,
166
+ #{ $prefix }__selectable,
153
167
  #{ $prefix }__toggle {
154
168
  width: 100%;
155
169
  display: flex;
@@ -158,6 +172,7 @@ $config: (
158
172
  margin: get("link-margin") 0;
159
173
  border-radius: get("link-border-radius");
160
174
  font-weight: get("link-font-weight");
175
+ line-height: get("link-line-height");
161
176
  color: color.get(get("link-color"));
162
177
  background-color: color.get(get("link-background-color"));
163
178
  box-sizing: border-box;
@@ -176,19 +191,21 @@ $config: (
176
191
  }
177
192
  }
178
193
  }
179
- #{ $prefix }__checkbox {
180
- $checkbox-y: (get("link-padding-y") + get("link-margin"));
194
+ #{ $prefix }__selectable {
181
195
  padding: 0;
182
196
  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
- }
197
+ }
198
+ #{ $prefix }__selectable [type="checkbox"],
199
+ #{ $prefix }__selectable [type="radio"],
200
+ #{ $prefix }__selectable-input {
201
+ position: absolute;
202
+ top: $selectable-y;
203
+ left: get("link-padding-x");
204
+ }
205
+ #{ $prefix }__selectable label,
206
+ #{ $prefix }__selectable-label {
207
+ width: 100%;
208
+ padding: $selectable-y get("link-padding-x") $selectable-y get("selectable-input-width");
192
209
  }
193
210
  #{ $prefix }__link-text {
194
211
  display: block;
@@ -29,35 +29,35 @@ $-fallbacks: (
29
29
 
30
30
  /// Module Settings
31
31
  /// @type Map
32
- /// @prop {Dimension} arrow-size [16px]
33
- /// @prop {Color} background-color [white]
34
- /// @prop {Dimension} border-radius [6px]
35
- /// @prop {Color} color [inherit]
36
- /// @prop {Dimension} max-width [90vw]
37
- /// @prop {Dimension} max-height [25rem]
38
- /// @prop {Dimension} padding [1rem]
39
- /// @prop {Dimension} padding-large [2rem]
40
- /// @prop {Dimension} type-size [null]
41
- /// @prop {Number} z-index [true]
42
- /// @prop {CssValue} box-shadow [true]
43
- /// @prop {CssValue} box-shadow-footer [0 0 4px]
44
- /// @prop {String} box-shadow-footer-color ["box-shadow"]
45
- /// @prop {Color} header-background-color [#ccc]
46
- /// @prop {Color} header-color [null]
47
- /// @prop {Color} header-media-background-color [black]
48
- /// @prop {Dimension} header-padding-y [0.25rem]
49
- /// @prop {Color} footer-background-color [#ccc]
50
- /// @prop {Color} footer-color [null]
51
- /// @prop {Dimension} footer-padding-y [0.25rem]
52
- /// @prop {Dimension} footer-padding-y-large [0.5rem]
53
- /// @prop {Color} tooltip-background-color [white]
54
- /// @prop {Color} tooltip-color [null]
55
- /// @prop {Dimension} tooltip-max-width [20rem]
56
- /// @prop {Dimension} tooltip-padding [0.5rem]
57
- /// @prop {Dimension} tooltip-width [auto]
58
- /// @prop {Dimension} width [15rem]
59
- /// @prop {Dimension} width-large [30rem]
60
- /// @prop {Dimension} width-large-x [50rem]
32
+ /// @prop {Dimension} arrow-size [16px] size of the dropdown arrow.
33
+ /// @prop {Color} background-color [white] Background color of the popover.
34
+ /// @prop {Dimension} border-radius [6px] Border radius of the popover.
35
+ /// @prop {Color} color [inherit] Text color of the popover.
36
+ /// @prop {Dimension} max-width [90vw] Max width of the popover.
37
+ /// @prop {Dimension} max-height [25rem] Max height of the popover.
38
+ /// @prop {Dimension} padding [1rem] Padding of the popover.
39
+ /// @prop {Dimension} padding-large [2rem] Padding of the popover if using "--large" or "--large-x" styling.
40
+ /// @prop {Dimension} type-size [null] Font size of the popover.
41
+ /// @prop {Number} z-index [true] z-index of the popover.
42
+ /// @prop {CssValue} box-shadow [true] Box shadow of the popover.
43
+ /// @prop {CssValue} box-shadow-footer [0 0 4px] Box shadow of the popover footer.
44
+ /// @prop {String} box-shadow-footer-color ["box-shadow"] Color of the footer's box shadow.
45
+ /// @prop {Color} header-background-color [#ccc] Background color of the popover header
46
+ /// @prop {Color} header-color [null] Text color for the header.
47
+ /// @prop {Color} header-media-background-color [black] background color for header media.
48
+ /// @prop {Dimension} header-padding-y [0.25rem] Vertical padding of the header.
49
+ /// @prop {Color} footer-background-color [#ccc] Background color of the footer.
50
+ /// @prop {Color} footer-color [null] Text color of the footer.
51
+ /// @prop {Dimension} footer-padding-y [0.25rem] Vertical padding of the footer.
52
+ /// @prop {Dimension} footer-padding-y-large [0.5rem] Vertical padding of the footer if using "--large" or "--large-x" styling.
53
+ /// @prop {Color} tooltip-background-color [white] Background color of the tooltip.
54
+ /// @prop {Color} tooltip-color [null] Font color of the tooltip.
55
+ /// @prop {Dimension} tooltip-max-width [20rem] Max width of the tooltip.
56
+ /// @prop {Dimension} tooltip-padding [0.5rem] Padding of the tooltip.
57
+ /// @prop {Dimension} tooltip-width [auto] Width of the tooltip.
58
+ /// @prop {Dimension} width [15rem] Width of the popover.
59
+ /// @prop {Dimension} width-large [30rem] Width of the popover if using "--large".
60
+ /// @prop {Dimension} width-large-x [50rem] Width of the popover if using "--large-x".
61
61
 
62
62
  $config: (
63
63
  "arrow-size" : 16px,
@@ -21,18 +21,18 @@ $-fallbacks: (
21
21
 
22
22
  /// Module Settings
23
23
  /// @type Map
24
- /// @prop {} body-line-height [true]
25
- /// @prop {} image-margin-bottom [1rem]
26
- /// @prop {} image-margin-top [2.5rem]
27
- /// @prop {} name-margin-bottom [1rem]
28
- /// @prop {} padding-y [2em]
29
- /// @prop {} title-font-style [italic]
30
- /// @prop {} quote-mark-character ["\201c"]
31
- /// @prop {} quote-mark-color [null]
32
- /// @prop {} quote-mark-font-family ["Georgia"]
33
- /// @prop {} quote-mark-font-size [3.75em]
34
- /// @prop {} quote-mark-enabled [true]
35
- /// @prop {} quote-mark-line-height [0.35]
24
+ /// @prop {Number} body-line-height [true]
25
+ /// @prop {Dimension} image-margin-bottom [1rem]
26
+ /// @prop {Dimension} image-margin-top [2.5rem]
27
+ /// @prop {Dimension} name-margin-bottom [1rem]
28
+ /// @prop {Dimension} padding-y [2em]
29
+ /// @prop {CssValue} title-font-style [italic]
30
+ /// @prop {String} quote-mark-character ["\201c"]
31
+ /// @prop {Color} quote-mark-color [null]
32
+ /// @prop {String} quote-mark-font-family ["Georgia"]
33
+ /// @prop {Dimension} quote-mark-font-size [3.75em]
34
+ /// @prop {Boolean} quote-mark-enabled [true]
35
+ /// @prop {Number} quote-mark-line-height [0.35]
36
36
 
37
37
  $config: (
38
38
  "body-line-height" : true,
@@ -12,6 +12,7 @@
12
12
  /// Module Settings
13
13
  /// @type Map
14
14
  /// @prop {Color} background-color [rgb(0,0,0)] Color used for the fade-in of the vignette. Must be actual color not color module palette name
15
+ /// @prop {CssValue} image-filter [saturate(85%)] Filter value placed over image.
15
16
 
16
17
  $config: (
17
18
  "background-color" : rgb(0,0,0),