Menu-stack
Variables
$config
Variable Type: Map
Module Settings
$config: (
"selectable-input-width" : 3em,
"nested-indent" : 0.5em,
"rule-style" : "light",
"rule-margin" : 0.5em,
"toggle-icon-rotate" : false,
"label-color" : null,
"label-margin" : 0.5em,
"label-text-transform" : uppercase,
"label-type-size" : false,
"label-line-height" : true,
"link-separated-margin" : false,
"link-separated-rule-style" : false,
"link-active-selectors" : (".is-active", '[aria-current="page"]'),
"link-background-color" : transparent,
"link-background-color-active" : rgb(219, 219, 219),
"link-background-color-hover" : rgb(240, 240, 240),
"link-border-radius" : true,
"link-color" : "link",
"link-color-active" : black,
"link-color-hover" : "link-hover",
"link-font-weight" : null,
"link-line-height" : true,
"link-icon-margin" : 0.65em,
"link-icon-width" : 1em,
"link-margin" : 0.2em,
"link-padding-x": 1.25em,
"link-padding-y": 0.5em,
"compact-link-padding-x": 0.75em,
"compact-link-padding-y": 0.25em,
);
File Information
- File: _menu-stack.scss
- Group: menu-stack
- Type: variable
- Lines (comments): 33-63
- Lines (code): 65-95
Map Properties
Name | Type | Default | Description |
---|---|---|---|
selectable-input-width | Dimension | 3em | The width of the checkbox/radio input |
link-separated-margin | Boolean | false | Enables a margin between the items in the menu-stack. |
link-separated-rule-style | Boolean | false | Enables a rule between the items in the menu-stack. |
nested-indent | Dimension | 0.5em | The indentation of child lists within the menu-stack. |
rule-margin | Dimension | 0.5em | Sets the padding and margin of the rule. |
rule-style | String | default | Determines the styling of the rule. Uses the rule.scss component. |
toggle-icon-rotate | Number | false | Set a value to rotate the collapsible item toggle icon rotation when open (ie. 90deg) |
compact-link-padding-x | Dimension | 0.75em | The links horizontal padding when using the compact option. |
compact-link-padding-y | Dimension | 0.25em | The links vertical padding when using the compact option. |
label-color | Color | null | The type color of the label. |
label-margin | Dimension | 0.5em | The margin of the label. |
label-text-transform | CssValue | uppercase | Transforms the label text. |
label-type-size | CssValue | false | Adjusts the type size of the label. Only uses font-size from type size. |
label-line-height | CssValue | true | Adjust the label line-height, defaults to typography line-height-dense |
link-active-selectors | list | (.is-active, '[aria-current=page | ')] Selectors to apply active styling. |
link-background-color | Color | transparent | The background color of the menu-stack toggle. |
link-background-color-active | Color | rgb(219, 219, 219) | The background color of the menu-stack toggle when active. |
link-background-color-hover | Color | rgb(219, 219, 219) | The background color of the menu-stack toggle when hovered or focused. |
link-border-radius | Dimension | true | The border radius of the menu-stack toggle. If set to true, will use the border radius from the button component. |
link-color | String | link | The type color of the menu-stack toggle. This uses color.scss, so the value of this option should be a color variable from color.scss. |
link-color-active | Color | black | The type color of the menu-stack toggle when active. |
link-color-hover | String | 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. |
link-font-weight | CssValue | null | The font weight of the menu-stack toggle. |
label-line-height | CssValue | true | Adjust the link line-height, defaults to typography line-height-dense |
link-icon-margin | Dimension | 0.65em | Adds a right margin to the icon. |
link-icon-width | Dimension | 1em | The width of the icon. |
link-margin | Dimension | 0.2em | Margin for the menu-stack toggle. |
link-padding-x | Dimension | 1em | Horizontal padding for menu-stack toggle. |
link-padding-y | Dimension | 0.35em | Vertical padding for menu-stack toggle. |
Mixins
set()
Mixin
Change modules $config
File Information
- File: _menu-stack.scss
- Group: menu-stack
- Type: mixin
- Lines (comments): 98-101
- Lines (code): 103-105
Examples
@include ulu.component-menu-stack-set(( "property" : value ));
Parameters
Name | Type | Description |
---|---|---|
$changes | Map |
Map of changes |
Require
styles()
Mixin
Prints component styles
File Information
- File: _menu-stack.scss
- Group: menu-stack
- Type: mixin
- Lines (comments): 122-126
- Lines (code): 128-261
Examples
@include ulu.component-menu-stack-styles();
Todos
- Colors stuff
- Selector prefix
Require
Functions
get()
Function
Get a config option
File Information
- File: _menu-stack.scss
- Group: menu-stack
- Type: function
- Lines (comments): 107-110
- Lines (code): 112-115
Examples
@include ulu.component-menu-stack-get("property");
Parameters
Name | Type | Description |
---|---|---|
$name | Map |
Name of property |