@graupl/graupl 1.0.0-alpha.13 → 1.0.0-alpha.15
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.
- package/.github/workflows/codeql-analysis.yml +3 -3
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/CHANGELOG.md +38 -0
- package/dist/base/button.css +1 -1
- package/dist/base/button.css.map +1 -1
- package/dist/base/form.css.map +1 -1
- package/dist/base/link.css.map +1 -1
- package/dist/base/table.css.map +1 -1
- package/dist/base.css +1 -1
- package/dist/base.css.map +1 -1
- package/dist/component/alert.css +2 -0
- package/dist/component/alert.css.map +1 -0
- package/dist/component/card.css +1 -1
- package/dist/component/card.css.map +1 -1
- package/dist/component/carousel.css +2 -0
- package/dist/component/carousel.css.map +1 -0
- package/dist/component/input-group.css.map +1 -1
- package/dist/component/menu.css +1 -1
- package/dist/component/menu.css.map +1 -1
- package/dist/component/navigation.css.map +1 -1
- package/dist/component.css +1 -1
- package/dist/component.css.map +1 -1
- package/dist/graupl.css +1 -1
- package/dist/graupl.css.map +1 -1
- package/dist/layout/columns.css.map +1 -1
- package/dist/layout/container.css.map +1 -1
- package/dist/layout/flex-columns.css.map +1 -1
- package/dist/layout.css +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/normalize.css.map +1 -1
- package/dist/state/focus.css.map +1 -1
- package/dist/state.css.map +1 -1
- package/dist/theme/color.css.map +1 -1
- package/dist/theme/typography.css.map +1 -1
- package/dist/theme.css.map +1 -1
- package/dist/utilities/alignment.css.map +1 -1
- package/dist/utilities/color.css.map +1 -1
- package/dist/utilities/display.css +1 -1
- package/dist/utilities/display.css.map +1 -1
- package/dist/utilities/flex.css.map +1 -1
- package/dist/utilities/height.css +2 -0
- package/dist/utilities/height.css.map +1 -0
- package/dist/utilities/inset.css.map +1 -1
- package/dist/utilities/justification.css.map +1 -1
- package/dist/utilities/list.css.map +1 -1
- package/dist/utilities/order.css.map +1 -1
- package/dist/utilities/postion.css.map +1 -1
- package/dist/utilities/spacing.css.map +1 -1
- package/dist/utilities/typography.css.map +1 -1
- package/dist/utilities/visibility.css.map +1 -1
- package/dist/utilities/width.css +2 -0
- package/dist/utilities/width.css.map +1 -0
- package/dist/utilities.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/docs/.vitepress/config.js +39 -12
- package/docs/components/alert.md +130 -0
- package/docs/components/button.md +84 -0
- package/docs/components/card.md +369 -0
- package/docs/components/index.md +1 -0
- package/docs/components/inputgroup.md +159 -0
- package/docs/components/menu.md +326 -0
- package/docs/components/navigation.md +158 -0
- package/docs/content.md +237 -0
- package/docs/defaults.md +121 -0
- package/docs/forms.md +79 -0
- package/docs/functions.md +9 -0
- package/docs/getting-started.md +1 -0
- package/docs/index.md +1 -7
- package/docs/introduction.md +22 -2
- package/docs/layout.md +200 -0
- package/docs/mixins.md +47 -0
- package/docs/state.md +67 -0
- package/docs/theme.md +258 -0
- package/docs/utilities.md +357 -0
- package/index.html +178 -37
- package/package.json +5 -6
- package/scss/component/alert.scss +3 -0
- package/scss/component/carousel.scss +3 -0
- package/scss/utilities/height.scss +3 -0
- package/scss/utilities/width.scss +3 -0
- package/src/js/alert/Alert.js +511 -0
- package/src/js/alert/index.js +21 -0
- package/src/js/carousel/Carousel.js +1376 -0
- package/src/js/carousel/index.js +20 -0
- package/src/js/domHelpers.js +37 -0
- package/src/js/eventHandlers.js +32 -0
- package/src/js/validate.js +225 -0
- package/src/scss/base/_index.scss +1 -1
- package/src/scss/base/button/_defaults.scss +7 -0
- package/src/scss/base/button/_index.scss +46 -149
- package/src/scss/base/button/_mixins.scss +164 -0
- package/src/scss/base/form/_index.scss +1 -1
- package/src/scss/base/link/_index.scss +1 -1
- package/src/scss/base/table/_index.scss +1 -1
- package/src/scss/component/_index.scss +3 -1
- package/src/scss/component/alert/_defaults.scss +49 -0
- package/src/scss/component/alert/_index.scss +118 -0
- package/src/scss/component/alert/_variables.scss +170 -0
- package/src/scss/component/card/_defaults.scss +3 -0
- package/src/scss/component/card/_index.scss +43 -9
- package/src/scss/component/carousel/_defaults.scss +43 -0
- package/src/scss/component/carousel/_index.scss +182 -0
- package/src/scss/component/carousel/_variables.scss +104 -0
- package/src/scss/component/input-group/_index.scss +1 -1
- package/src/scss/component/menu/_defaults.scss +2 -1
- package/src/scss/component/menu/_index.scss +2 -1
- package/src/scss/component/menu/_variables.scss +4 -0
- package/src/scss/component/navigation/_index.scss +1 -1
- package/src/scss/layout/_index.scss +1 -1
- package/src/scss/layout/columns/_index.scss +1 -1
- package/src/scss/layout/container/_index.scss +1 -1
- package/src/scss/layout/flex-columns/_index.scss +1 -1
- package/src/scss/mixins/_layer.scss +2 -4
- package/src/scss/mixins/_visually-hidden.scss +20 -0
- package/src/scss/state/_index.scss +1 -1
- package/src/scss/state/focus/_index.scss +1 -1
- package/src/scss/theme/_index.scss +1 -1
- package/src/scss/theme/color/_index.scss +1 -1
- package/src/scss/theme/typography/_index.scss +1 -1
- package/src/scss/utilities/_index.scss +3 -1
- package/src/scss/utilities/alignment/_index.scss +1 -1
- package/src/scss/utilities/color/_index.scss +1 -1
- package/src/scss/utilities/display/_defaults.scss +2 -0
- package/src/scss/utilities/display/_index.scss +11 -1
- package/src/scss/utilities/flex/_index.scss +1 -1
- package/src/scss/utilities/height/_defaults.scss +38 -0
- package/src/scss/utilities/height/_index.scss +23 -0
- package/src/scss/utilities/height/_variables.scss +6 -0
- package/src/scss/utilities/inset/_index.scss +1 -1
- package/src/scss/utilities/justification/_index.scss +1 -1
- package/src/scss/utilities/list/_index.scss +1 -1
- package/src/scss/utilities/order/_index.scss +1 -1
- package/src/scss/utilities/position/_index.scss +1 -1
- package/src/scss/utilities/ratio/_defaults.scss +1 -0
- package/src/scss/utilities/ratio/_index.scss +9 -1
- package/src/scss/utilities/spacing/_index.scss +1 -1
- package/src/scss/utilities/typography/_index.scss +1 -1
- package/src/scss/utilities/visibility/_index.scss +1 -1
- package/src/scss/utilities/width/_defaults.scss +38 -0
- package/src/scss/utilities/width/_index.scss +23 -0
- package/src/scss/utilities/width/_variables.scss +6 -0
- package/stylelint.config.js +5 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# Input Group
|
|
2
|
+
|
|
3
|
+
Defaults
|
|
4
|
+
|
|
5
|
+
```jsx
|
|
6
|
+
// Input group selectors.
|
|
7
|
+
$input-group-selector: ".input-group" !default;
|
|
8
|
+
$input-group-inline-selector: ".inline" !default;
|
|
9
|
+
$input-group-help-text-selector: ".help-text" !default;
|
|
10
|
+
|
|
11
|
+
// Grid names.
|
|
12
|
+
$input-group-grid-label-name: label !default;
|
|
13
|
+
$input-group-grid-input-name: input !default;
|
|
14
|
+
$input-group-grid-help-name: help !default;
|
|
15
|
+
|
|
16
|
+
// Input group properties.
|
|
17
|
+
$input-group-grid-template-columns: 100% !default;
|
|
18
|
+
$input-group-grid-template-rows: auto auto auto !default;
|
|
19
|
+
|
|
20
|
+
// Inline input group properties.
|
|
21
|
+
$input-group-inline-grid-template-columns: auto 1fr !default;
|
|
22
|
+
$input-group-inline-grid-template-rows: auto auto !default;
|
|
23
|
+
|
|
24
|
+
// Inner element properties.
|
|
25
|
+
$input-group-label-grid-area: $input-group-grid-label-name !default;
|
|
26
|
+
$input-group-input-grid-area: $input-group-grid-input-name !default;
|
|
27
|
+
$input-group-help-grid-area: $input-group-grid-help-name !default;
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Variables
|
|
31
|
+
|
|
32
|
+
Input group properties
|
|
33
|
+
|
|
34
|
+
```jsx
|
|
35
|
+
--#{root-defaults.$prefix}-input-group-grid-template-areas
|
|
36
|
+
--#{root-defaults.$prefix}-input-group-grid-template-columns
|
|
37
|
+
--#{root-defaults.$prefix}-input-group-grid-template-rows
|
|
38
|
+
--#{root-defaults.$prefix}-input-group-row-gap
|
|
39
|
+
--#{root-defaults.$prefix}-input-group-column-gap
|
|
40
|
+
--#{root-defaults.$prefix}-input-group-gap
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Inline input group properties
|
|
44
|
+
|
|
45
|
+
```jsx
|
|
46
|
+
--#{root-defaults.$prefix}-input-group-inline-grid-template-areas
|
|
47
|
+
--#{root-defaults.$prefix}-input-group-inline-grid-template-columns
|
|
48
|
+
--#{root-defaults.$prefix}-input-group-inline-grid-template-rows
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Inner element properties
|
|
52
|
+
|
|
53
|
+
```jsx
|
|
54
|
+
--#{root-defaults.$prefix}-input-group-label-grid-area
|
|
55
|
+
--#{root-defaults.$prefix}-input-group-input-grid-area
|
|
56
|
+
--#{root-defaults.$prefix}-input-group-help-grid-area
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Markup
|
|
60
|
+
|
|
61
|
+
```jsx
|
|
62
|
+
<div class="py-10 full-width container">
|
|
63
|
+
<h2>Form elements</h2>
|
|
64
|
+
<p>Graupl provides default styling for all form elements.</p>
|
|
65
|
+
<form class="full-width rg-4">
|
|
66
|
+
<div class="input-group">
|
|
67
|
+
<label for="input">Input</label>
|
|
68
|
+
<input type="text" placeholder="Input" id="input">
|
|
69
|
+
<small class="help-text">This is some help text to assist with knowing what the field is about.</small>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="input-group inline"><label for="input-readonly">Readonly Input</label>
|
|
72
|
+
<input type="text" placeholder="Readonly Input" id="input-readonly" value="Readonly Input" readonly>
|
|
73
|
+
<small class="help-text">This is some help text to assist with knowing what the field is about.</small>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="input-group"><label for="input-disabled">Disabled Input</label>
|
|
76
|
+
<input type="text" placeholder="Disabled Input" id="input-disabled" disabled>
|
|
77
|
+
<small class="help-text">This is some help text to assist with knowing what the field is about.</small>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="input-group inline"><label for="textarea">Textarea</label>
|
|
80
|
+
<textarea class="textarea" placeholder="Textarea" id="textarea"></textarea>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="input-group"><label for="textarea-readonly">Readonly Textarea</label>
|
|
83
|
+
<textarea class="textarea" placeholder="Readonly Textarea" id="textarea-readonly"
|
|
84
|
+
readonly>Readonly Textarea</textarea>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="input-group"><label for="textarea-disabled">Disabled Textarea</label>
|
|
87
|
+
<textarea class="textarea" placeholder="Disabled Textarea" id="textarea-disabled" disabled></textarea>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="input-group inline"><label for="select">Select</label>
|
|
90
|
+
<select id="select">
|
|
91
|
+
<option value="1">Option 1</option>
|
|
92
|
+
<option value="2">Option 2</option>
|
|
93
|
+
<optgroup label="Group 1">
|
|
94
|
+
<option value="3">Option 3</option>
|
|
95
|
+
<option value="4">Option 4</option>
|
|
96
|
+
<option value="5">Option 5</option>
|
|
97
|
+
</optgroup>
|
|
98
|
+
</select>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="input-group"><label for="select-disabled">Disabled Select</label>
|
|
101
|
+
<select id="select-disabled" disabled>
|
|
102
|
+
<option value="1">Option 1</option>
|
|
103
|
+
<option value="2">Option 2</option>
|
|
104
|
+
<optgroup label="Group 1">
|
|
105
|
+
<option value="3">Option 3</option>
|
|
106
|
+
<option value="4">Option 4</option>
|
|
107
|
+
<option value="5">Option 5</option>
|
|
108
|
+
</optgroup>
|
|
109
|
+
</select>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="input-group"><label for"multi-select">Multi-select</label>
|
|
112
|
+
<select id="multi-select" multiple>
|
|
113
|
+
<option value="1">Option 1</option>
|
|
114
|
+
<option value="2">Option 2</option>
|
|
115
|
+
<optgroup label="Group 1">
|
|
116
|
+
<option value="3">Option 3</option>
|
|
117
|
+
<option value="4">Option 4</option>
|
|
118
|
+
<option value="5">Option 5</option>
|
|
119
|
+
</optgroup>
|
|
120
|
+
</select>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="input-group inline"><label for="multi-select-disabled">Disabled Multi-select</label>
|
|
123
|
+
<select id="multi-select-disabled" multiple disabled>
|
|
124
|
+
<option value="1">Option 1</option>
|
|
125
|
+
<option value="2">Option 2</option>
|
|
126
|
+
<optgroup label="Group 1">
|
|
127
|
+
<option value="3">Option 3</option>
|
|
128
|
+
<option value="4">Option 4</option>
|
|
129
|
+
<option value="5">Option 5</option>
|
|
130
|
+
</optgroup>
|
|
131
|
+
</select>
|
|
132
|
+
</div>
|
|
133
|
+
<fieldset>
|
|
134
|
+
<legend>Checkboxes</legend>
|
|
135
|
+
<label for="checkbox">
|
|
136
|
+
<input type="checkbox" id="checkbox"> Checkbox</label>
|
|
137
|
+
<label for="checkbox-checked">
|
|
138
|
+
<input type="checkbox" id="checkbox-checked" checked> Checked Checkbox</label>
|
|
139
|
+
<label for="checkbox-disabled">
|
|
140
|
+
<input type="checkbox" id="checkbox-disabled" disabled> Disabled Checkbox</label>
|
|
141
|
+
</fieldset>
|
|
142
|
+
<fieldset>
|
|
143
|
+
<legend>Radio Buttons</legend>
|
|
144
|
+
<label for="radio"><input type="radio" id="radio" name="radio"> Radio</label>
|
|
145
|
+
<label for="radio-checked"><input type="radio" id="radio-checked" name="radio" checked> Checked Radio</label>
|
|
146
|
+
<label for="radio-disabled"><input type="radio" id="radio-disabled" name="radio" disabled> Disabled
|
|
147
|
+
Radio</label>
|
|
148
|
+
</fieldset>
|
|
149
|
+
<fieldset disabled>
|
|
150
|
+
<legend>Disabled Fieldset</legend>
|
|
151
|
+
<label for="disabled-fieldset-checkbox">
|
|
152
|
+
<input type="checkbox" id="disabled-fieldset-checkbox"> Checkbox</label>
|
|
153
|
+
</fieldset>
|
|
154
|
+
<div class="input-group"><label for="range">Range</label>
|
|
155
|
+
<input type="range" class="range" id="range">
|
|
156
|
+
</div>
|
|
157
|
+
</form>
|
|
158
|
+
</div>
|
|
159
|
+
```
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
# Menu
|
|
2
|
+
|
|
3
|
+
Defaults
|
|
4
|
+
|
|
5
|
+
```jsx
|
|
6
|
+
// Menu selectors.
|
|
7
|
+
$menu-selector: ".menu" !default;
|
|
8
|
+
$submenu-selector: ".submenu" !default;
|
|
9
|
+
$menu-item-selector: ".menu-item" !default;
|
|
10
|
+
$menu-link-selector: ".menu-link" !default;
|
|
11
|
+
$submenu-toggle-selector: ".submenu-toggle" !default;
|
|
12
|
+
$menu-show-selector: ".show" !default;
|
|
13
|
+
$menu-hide-selector: ".hide" !default;
|
|
14
|
+
|
|
15
|
+
// Flex properties.
|
|
16
|
+
$menu-flex-direction: row !default;
|
|
17
|
+
$submenu-flex-direction: column !default;
|
|
18
|
+
|
|
19
|
+
// Visibility properties.
|
|
20
|
+
$menu-show-display: flex !default;
|
|
21
|
+
$menu-hide-display: none !default;
|
|
22
|
+
$submenu-show-display: $menu-show-display !default;
|
|
23
|
+
$submenu-hide-display: $menu-hide-display !default;
|
|
24
|
+
|
|
25
|
+
// Menu item properties.
|
|
26
|
+
$menu-item-min-width: min-content !default;
|
|
27
|
+
$menu-item-max-width: 100% !default;
|
|
28
|
+
|
|
29
|
+
// Submenu properties.
|
|
30
|
+
$submenu-position: absolute !default;
|
|
31
|
+
$submenu-z-index: 2 !default;
|
|
32
|
+
$submenu-top: 100% !default;
|
|
33
|
+
$submenu-right: auto !default;
|
|
34
|
+
$submenu-bottom: auto !default;
|
|
35
|
+
$submenu-left: 0 !default;
|
|
36
|
+
|
|
37
|
+
// Submenu item properties.
|
|
38
|
+
$submenu-item-width: 100% !default;
|
|
39
|
+
|
|
40
|
+
// Menu link properties.
|
|
41
|
+
$menu-link-text-decoration: none !default;
|
|
42
|
+
$menu-link-visited-text-decoration: $menu-link-text-decoration !default;
|
|
43
|
+
$menu-link-focus-text-decoration: $menu-link-text-decoration !default;
|
|
44
|
+
$menu-link-hover-text-decoration: $menu-link-text-decoration !default;
|
|
45
|
+
$menu-link-active-text-decoration: $menu-link-text-decoration !default;
|
|
46
|
+
$menu-link-disabled-text-decoration: $menu-link-text-decoration !default;
|
|
47
|
+
$menu-link-text-decoration-style: solid !default;
|
|
48
|
+
$menu-link-visited-text-decoration-style: $menu-link-text-decoration-style !default;
|
|
49
|
+
$menu-link-focus-text-decoration-style: $menu-link-text-decoration-style !default;
|
|
50
|
+
$menu-link-hover-text-decoration-style: $menu-link-text-decoration-style !default;
|
|
51
|
+
$menu-link-active-text-decoration-style: $menu-link-text-decoration-style !default;
|
|
52
|
+
$menu-link-disabled-text-decoration-style: $menu-link-text-decoration-style !default;
|
|
53
|
+
$menu-link-transform: none !default;
|
|
54
|
+
$menu-link-visited-transform: $menu-link-transform !default;
|
|
55
|
+
$menu-link-focus-transform: $menu-link-transform !default;
|
|
56
|
+
$menu-link-hover-transform: $menu-link-transform !default;
|
|
57
|
+
$menu-link-active-transform: $menu-link-transform !default;
|
|
58
|
+
$menu-link-disabled-transform: $menu-link-transform !default;
|
|
59
|
+
$menu-border-width: 0 !default;
|
|
60
|
+
$menu-link-border-width: 0 !default;
|
|
61
|
+
$submenu-toggle-transform: rotate(0deg) !default;
|
|
62
|
+
$submenu-toggle-open-transform: rotate(-180deg) !default;
|
|
63
|
+
$submenu-toggle-content: "'▼'" !default;
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Variables
|
|
67
|
+
|
|
68
|
+
The menu properties:
|
|
69
|
+
|
|
70
|
+
```scss
|
|
71
|
+
--#{root-defaults.$prefix}-menu-flex-direction
|
|
72
|
+
--#{root-defaults.$prefix}-menu-padding-x
|
|
73
|
+
--#{root-defaults.$prefix}-menu-padding-y
|
|
74
|
+
--#{root-defaults.$prefix}-menu-padding
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The menu gap properties:
|
|
79
|
+
|
|
80
|
+
```scss
|
|
81
|
+
--#{root-defaults.$prefix}-menu-column-gap
|
|
82
|
+
--#{root-defaults.$prefix}-menu-row-gap
|
|
83
|
+
--#{root-defaults.$prefix}-menu-gap
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The menu display properties:
|
|
88
|
+
|
|
89
|
+
```scss
|
|
90
|
+
--#{root-defaults.$prefix}-menu-show-display
|
|
91
|
+
--#{root-defaults.$prefix}-menu-hide-display
|
|
92
|
+
--#{root-defaults.$prefix}-menu-display
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The menu color properties:
|
|
97
|
+
|
|
98
|
+
```scss
|
|
99
|
+
--#{root-defaults.$prefix}-menu-background
|
|
100
|
+
--#{root-defaults.$prefix}-menu-color
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The menu border properties:
|
|
105
|
+
|
|
106
|
+
```scss
|
|
107
|
+
--#{root-defaults.$prefix}-menu-border-color
|
|
108
|
+
--#{root-defaults.$prefix}-menu-border-radius
|
|
109
|
+
--#{root-defaults.$prefix}-menu-border-style
|
|
110
|
+
--#{root-defaults.$prefix}-menu-border-width
|
|
111
|
+
--#{root-defaults.$prefix}-menu-border
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
The submenu properties:
|
|
116
|
+
|
|
117
|
+
```scss
|
|
118
|
+
--#{root-defaults.$prefix}-submenu-flex-direction
|
|
119
|
+
--#{root-defaults.$prefix}-submenu-z-index
|
|
120
|
+
--#{root-defaults.$prefix}-submenu-padding-x
|
|
121
|
+
--#{root-defaults.$prefix}-submenu-padding-y
|
|
122
|
+
--#{root-defaults.$prefix}-submenu-padding
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
The submenu gap properties:
|
|
127
|
+
|
|
128
|
+
```scss
|
|
129
|
+
--#{root-defaults.$prefix}-submenu-column-gap
|
|
130
|
+
--#{root-defaults.$prefix}-submenu-row-gap
|
|
131
|
+
--#{root-defaults.$prefix}-submenu-gap
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
The submenu display properties:
|
|
136
|
+
|
|
137
|
+
```scss
|
|
138
|
+
--#{root-defaults.$prefix}-submenu-show-display
|
|
139
|
+
--#{root-defaults.$prefix}-submenu-hide-display
|
|
140
|
+
--#{root-defaults.$prefix}-submenu-display
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
The submenu color properties:
|
|
145
|
+
|
|
146
|
+
```scss
|
|
147
|
+
--#{root-defaults.$prefix}-submenu-background
|
|
148
|
+
--#{root-defaults.$prefix}-submenu-color
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
The submenu border properties:
|
|
153
|
+
|
|
154
|
+
```scss
|
|
155
|
+
--#{root-defaults.$prefix}-submenu-border-color
|
|
156
|
+
--#{root-defaults.$prefix}-submenu-border-radius
|
|
157
|
+
--#{root-defaults.$prefix}-submenu-border-style
|
|
158
|
+
--#{root-defaults.$prefix}-submenu-border-width
|
|
159
|
+
--#{root-defaults.$prefix}-submenu-border
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
The submenu position properties:
|
|
164
|
+
|
|
165
|
+
```scss
|
|
166
|
+
--#{root-defaults.$prefix}-submenu-position
|
|
167
|
+
--#{root-defaults.$prefix}-submenu-top
|
|
168
|
+
--#{root-defaults.$prefix}-submenu-right
|
|
169
|
+
--#{root-defaults.$prefix}-submenu-bottom
|
|
170
|
+
--#{root-defaults.$prefix}-submenu-left
|
|
171
|
+
--#{root-defaults.$prefix}-submenu-inset
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
The menu item properties:
|
|
176
|
+
|
|
177
|
+
```scss
|
|
178
|
+
--#{root-defaults.$prefix}-menu-item-min-width
|
|
179
|
+
--#{root-defaults.$prefix}-menu-item-max-width
|
|
180
|
+
--#{root-defaults.$prefix}-menu-item-padding-x
|
|
181
|
+
--#{root-defaults.$prefix}-menu-item-padding-y
|
|
182
|
+
--#{root-defaults.$prefix}-menu-item-padding
|
|
183
|
+
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
The submenu item properties:
|
|
187
|
+
|
|
188
|
+
```scss
|
|
189
|
+
--#{root-defaults.$prefix}-submenu-item-width
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
The menu link properties:
|
|
194
|
+
|
|
195
|
+
```scss
|
|
196
|
+
--#{root-defaults.$prefix}-menu-link-padding-x
|
|
197
|
+
--#{root-defaults.$prefix}-menu-link-padding-y
|
|
198
|
+
--#{root-defaults.$prefix}-menu-link-padding
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
The menu link transform properties:
|
|
203
|
+
|
|
204
|
+
```scss
|
|
205
|
+
--#{root-defaults.$prefix}-menu-link-transition
|
|
206
|
+
--#{root-defaults.$prefix}-menu-link-transition-reduced-motion
|
|
207
|
+
--#{root-defaults.$prefix}-menu-link-transform
|
|
208
|
+
--#{root-defaults.$prefix}-menu-link-visited-transform
|
|
209
|
+
--#{root-defaults.$prefix}-menu-link-focus-transform
|
|
210
|
+
--#{root-defaults.$prefix}-menu-link-hover-transform
|
|
211
|
+
--#{root-defaults.$prefix}-menu-link-active-transform
|
|
212
|
+
--#{root-defaults.$prefix}-menu-link-disabled-transform
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
The menu link gap properties:
|
|
217
|
+
|
|
218
|
+
```scss
|
|
219
|
+
--#{root-defaults.$prefix}-menu-link-column-gap
|
|
220
|
+
--#{root-defaults.$prefix}-menu-link-row-gap
|
|
221
|
+
--#{root-defaults.$prefix}-menu-link-gap
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
The menu link colors:
|
|
226
|
+
|
|
227
|
+
```scss
|
|
228
|
+
--#{root-defaults.$prefix}-menu-link-background
|
|
229
|
+
--#{root-defaults.$prefix}-menu-link-visited-background
|
|
230
|
+
--#{root-defaults.$prefix}-menu-link-focus-background
|
|
231
|
+
--#{root-defaults.$prefix}-menu-link-hover-background
|
|
232
|
+
--#{root-defaults.$prefix}-menu-link-active-background
|
|
233
|
+
--#{root-defaults.$prefix}-menu-link-disabled-background
|
|
234
|
+
--#{root-defaults.$prefix}-menu-link-color
|
|
235
|
+
--#{root-defaults.$prefix}-menu-link-visited-color
|
|
236
|
+
--#{root-defaults.$prefix}-menu-link-focus-color
|
|
237
|
+
--#{root-defaults.$prefix}-menu-link-hover-color
|
|
238
|
+
--#{root-defaults.$prefix}-menu-link-active-color
|
|
239
|
+
--#{root-defaults.$prefix}-menu-link-disabled-color
|
|
240
|
+
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
The menu link text decoration properties:
|
|
244
|
+
|
|
245
|
+
```scss
|
|
246
|
+
--#{root-defaults.$prefix}-menu-link-text-decoration
|
|
247
|
+
--#{root-defaults.$prefix}-menu-link-visited-text-decoration
|
|
248
|
+
--#{root-defaults.$prefix}-menu-link-focus-text-decoration
|
|
249
|
+
--#{root-defaults.$prefix}-menu-link-hover-text-decoration
|
|
250
|
+
--#{root-defaults.$prefix}-menu-link-active-text-decoration
|
|
251
|
+
--#{root-defaults.$prefix}-menu-link-disabled-text-decoration
|
|
252
|
+
--#{root-defaults.$prefix}-menu-link-text-decoration-thickness
|
|
253
|
+
--#{root-defaults.$prefix}-menu-link-visited-text-decoration-thickness
|
|
254
|
+
--#{root-defaults.$prefix}-menu-link-focus-text-decoration-thickness
|
|
255
|
+
--#{root-defaults.$prefix}-menu-link-hover-text-decoration-thickness
|
|
256
|
+
--#{root-defaults.$prefix}-menu-link-active-text-decoration-thickness
|
|
257
|
+
--#{root-defaults.$prefix}-menu-link-disabled-text-decoration-thickness
|
|
258
|
+
--#{root-defaults.$prefix}-menu-link-text-decoration-style
|
|
259
|
+
--#{root-defaults.$prefix}-menu-link-visited-text-decoration-style
|
|
260
|
+
--#{root-defaults.$prefix}-menu-link-focus-text-decoration-style
|
|
261
|
+
--#{root-defaults.$prefix}-menu-link-hover-text-decoration-style
|
|
262
|
+
--#{root-defaults.$prefix}-menu-link-active-text-decoration-style
|
|
263
|
+
--#{root-defaults.$prefix}-menu-link-disabled-text-decoration-style
|
|
264
|
+
--#{root-defaults.$prefix}-menu-link-text-decoration-color
|
|
265
|
+
--#{root-defaults.$prefix}-menu-link-visited-text-decoration-color
|
|
266
|
+
--#{root-defaults.$prefix}-menu-link-focus-text-decoration-color
|
|
267
|
+
--#{root-defaults.$prefix}-menu-link-hover-text-decoration-color
|
|
268
|
+
--#{root-defaults.$prefix}-menu-link-active-text-decoration-color
|
|
269
|
+
--#{root-defaults.$prefix}-menu-link-disabled-text-decoration-color
|
|
270
|
+
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
The menu link border properties:
|
|
274
|
+
|
|
275
|
+
```scss
|
|
276
|
+
--#{root-defaults.$prefix}-menu-link-border-radius
|
|
277
|
+
--#{root-defaults.$prefix}-menu-link-border-style
|
|
278
|
+
--#{root-defaults.$prefix}-menu-link-border-width
|
|
279
|
+
--#{root-defaults.$prefix}-menu-link-border
|
|
280
|
+
--#{root-defaults.$prefix}-menu-link-border-color
|
|
281
|
+
--#{root-defaults.$prefix}-menu-link-visited-border-color
|
|
282
|
+
--#{root-defaults.$prefix}-menu-link-focus-border-color
|
|
283
|
+
--#{root-defaults.$prefix}-menu-link-hover-border-color
|
|
284
|
+
--#{root-defaults.$prefix}-menu-link-active-border-color
|
|
285
|
+
--#{root-defaults.$prefix}-menu-link-disabled-border-color
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
The submenu toggle properties:
|
|
290
|
+
|
|
291
|
+
```scss
|
|
292
|
+
--#{root-defaults.$prefix}-submenu-toggle-transform
|
|
293
|
+
--#{root-defaults.$prefix}-submenu-toggle-open-transform
|
|
294
|
+
--#{root-defaults.$prefix}-submenu-toggle-content
|
|
295
|
+
--#{root-defaults.$prefix}-submenu-toggle-transition
|
|
296
|
+
--#{root-defaults.$prefix}-submenu-toggle-transition-reduced-motion
|
|
297
|
+
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Markup
|
|
301
|
+
|
|
302
|
+
```jsx
|
|
303
|
+
<div class="py-10 full-width container">
|
|
304
|
+
<div class="py-7">
|
|
305
|
+
<nav class="navigation" data-graupl-menu-type="DisclosureMenu" data-graupl-menu-options="{'optionalKeySupport': true}">
|
|
306
|
+
<a class="navigation-branding" href="#">Graupl</a>
|
|
307
|
+
<button class="navigation-toggle ml-auto mr-0" aria-label="Toggle navigation"></button>
|
|
308
|
+
<ul class="menu">
|
|
309
|
+
<li class="menu-item"><a class="menu-link" href="#">Home</a></li>
|
|
310
|
+
<li class="menu-item submenu-item">
|
|
311
|
+
<button class="menu-link button link submenu-toggle">About</button>
|
|
312
|
+
<ul class="submenu">
|
|
313
|
+
<li class="menu-item"><a class="menu-link" href="#">About Us</a></li>
|
|
314
|
+
<li class="menu-item"><a class="menu-link" href="#">Our Team</a></li>
|
|
315
|
+
<li class="menu-item"><a class="menu-link" href="#">Our Mission</a></li>
|
|
316
|
+
</ul>
|
|
317
|
+
</li>
|
|
318
|
+
<li class="menu-item"><a class="menu-link" href="#">Blog</a></li>
|
|
319
|
+
<li class="menu-item"><a class="menu-link" href="#">Portfolio</a></li>
|
|
320
|
+
<li class="menu-item"><a class="menu-link button tertiary" href="#">Contact</a></li>
|
|
321
|
+
</ul>
|
|
322
|
+
</nav>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
```
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Navigation
|
|
2
|
+
|
|
3
|
+
Default
|
|
4
|
+
|
|
5
|
+
```jsx
|
|
6
|
+
// Navigation selectors.
|
|
7
|
+
$navigation-selector: ".navigation" !default;
|
|
8
|
+
$navigation-toggle-selector: ".navigation-toggle" !default;
|
|
9
|
+
$navigation-branding-selector: ".navigation-branding" !default;
|
|
10
|
+
|
|
11
|
+
// Navigation toggle properties.
|
|
12
|
+
$navigation-toggle-content: "'☰'" !default;
|
|
13
|
+
|
|
14
|
+
// Navigation branding properties.
|
|
15
|
+
$navigation-branding-text-decoration: none !default;
|
|
16
|
+
$navigation-branding-visited-text-decoration: $navigation-branding-text-decoration !default;
|
|
17
|
+
$navigation-branding-focus-text-decoration: $navigation-branding-text-decoration !default;
|
|
18
|
+
$navigation-branding-hover-text-decoration: $navigation-branding-text-decoration !default;
|
|
19
|
+
$navigation-branding-active-text-decoration: $navigation-branding-text-decoration !default;
|
|
20
|
+
$navigation-branding-disabled-text-decoration: $navigation-branding-text-decoration !default;
|
|
21
|
+
$navigation-branding-text-decoration-style: solid !default;
|
|
22
|
+
$navigation-branding-visited-text-decoration-style: $navigation-branding-text-decoration-style !default;
|
|
23
|
+
$navigation-branding-focus-text-decoration-style: $navigation-branding-text-decoration-style !default;
|
|
24
|
+
$navigation-branding-hover-text-decoration-style: $navigation-branding-text-decoration-style !default;
|
|
25
|
+
$navigation-branding-active-text-decoration-style: $navigation-branding-text-decoration-style !default;
|
|
26
|
+
$navigation-branding-disabled-text-decoration-style: $navigation-branding-text-decoration-style !default;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Variables
|
|
30
|
+
|
|
31
|
+
The navigation colors:
|
|
32
|
+
|
|
33
|
+
```scss
|
|
34
|
+
--#{root-defaults.$prefix}-navigation-background
|
|
35
|
+
--#{root-defaults.$prefix}-navigation-color
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The navigation toggle size:
|
|
40
|
+
|
|
41
|
+
```scss
|
|
42
|
+
--#{root-defaults.$prefix}-navigation-toggle-min-width
|
|
43
|
+
--#{root-defaults.$prefix}-navigation-toggle-min-height
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The navigation toggle spacing:
|
|
48
|
+
|
|
49
|
+
```scss
|
|
50
|
+
--#{root-defaults.$prefix}-navigation-toggle-padding-x
|
|
51
|
+
--#{root-defaults.$prefix}-navigation-toggle-padding-y
|
|
52
|
+
--#{root-defaults.$prefix}-navigation-toggle-padding
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The navigation toggle colors:
|
|
57
|
+
|
|
58
|
+
```scss
|
|
59
|
+
--#{root-defaults.$prefix}-navigation-toggle-background
|
|
60
|
+
--#{root-defaults.$prefix}-navigation-toggle-color
|
|
61
|
+
--#{root-defaults.$prefix}-navigation-toggle-hover-background
|
|
62
|
+
--#{root-defaults.$prefix}-navigation-toggle-hover-color
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
The navigation toggle border properties:
|
|
67
|
+
|
|
68
|
+
```scss
|
|
69
|
+
--#{root-defaults.$prefix}-navigation-toggle-border-width
|
|
70
|
+
--#{root-defaults.$prefix}-navigation-toggle-border-style
|
|
71
|
+
--#{root-defaults.$prefix}-navigation-toggle-border
|
|
72
|
+
--#{root-defaults.$prefix}-navigation-toggle-border-color
|
|
73
|
+
--#{root-defaults.$prefix}-navigation-toggle-border-radius
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The navigation branding properties:
|
|
78
|
+
|
|
79
|
+
```scss
|
|
80
|
+
--#{root-defaults.$prefix}-navigation-branding-font-size
|
|
81
|
+
--#{root-defaults.$prefix}-navigation-branding-font-weight
|
|
82
|
+
--#{root-defaults.$prefix}-navigation-branding-padding-x
|
|
83
|
+
--#{root-defaults.$prefix}-navigation-branding-padding-y
|
|
84
|
+
--#{root-defaults.$prefix}-navigation-branding-padding
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The navigation branding colors:
|
|
89
|
+
|
|
90
|
+
```scss
|
|
91
|
+
--#{root-defaults.$prefix}-navigation-branding-color
|
|
92
|
+
--#{root-defaults.$prefix}-navigation-branding-visited-color
|
|
93
|
+
--#{root-defaults.$prefix}-navigation-branding-focus-color
|
|
94
|
+
--#{root-defaults.$prefix}-navigation-branding-hover-color
|
|
95
|
+
--#{root-defaults.$prefix}-navigation-branding-active-color
|
|
96
|
+
--#{root-defaults.$prefix}-navigation-branding-disabled-color
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
The navigation branding text decoration properties:
|
|
101
|
+
|
|
102
|
+
```scss
|
|
103
|
+
--#{root-defaults.$prefix}-navigation-branding-text-decoration
|
|
104
|
+
--#{root-defaults.$prefix}-navigation-branding-visited-text-decoration
|
|
105
|
+
--#{root-defaults.$prefix}-navigation-branding-focus-text-decoration
|
|
106
|
+
--#{root-defaults.$prefix}-navigation-branding-hover-text-decoration
|
|
107
|
+
--#{root-defaults.$prefix}-navigation-branding-active-text-decoration
|
|
108
|
+
--#{root-defaults.$prefix}-navigation-branding-disabled-text-decoration
|
|
109
|
+
--#{root-defaults.$prefix}-navigation-branding-text-decoration-style
|
|
110
|
+
--#{root-defaults.$prefix}-navigation-branding-visited-text-decoration-style
|
|
111
|
+
--#{root-defaults.$prefix}-navigation-branding-focus-text-decoration-style
|
|
112
|
+
--#{root-defaults.$prefix}-navigation-branding-hover-text-decoration-style
|
|
113
|
+
--#{root-defaults.$prefix}-navigation-branding-active-text-decoration-style
|
|
114
|
+
--#{root-defaults.$prefix}-navigation-branding-disabled-text-decoration-style
|
|
115
|
+
--#{root-defaults.$prefix}-navigation-branding-text-decoration-thickness
|
|
116
|
+
--#{root-defaults.$prefix}-navigation-branding-visited-text-decoration-thickness
|
|
117
|
+
--#{root-defaults.$prefix}-navigation-branding-focus-text-decoration-thickness
|
|
118
|
+
--#{root-defaults.$prefix}-navigation-branding-hover-text-decoration-thickness
|
|
119
|
+
--#{root-defaults.$prefix}-navigation-branding-active-text-decoration-thickness
|
|
120
|
+
--#{root-defaults.$prefix}-navigation-branding-disabled-text-decoration-thickness
|
|
121
|
+
--#{root-defaults.$prefix}-navigation-branding-text-decoration-color
|
|
122
|
+
--#{root-defaults.$prefix}-navigation-branding-visited-text-decoration-color
|
|
123
|
+
--#{root-defaults.$prefix}-navigation-branding-focus-text-decoration-color
|
|
124
|
+
--#{root-defaults.$prefix}-navigation-branding-hover-text-decoration-color
|
|
125
|
+
--#{root-defaults.$prefix}-navigation-branding-active-text-decoration-color
|
|
126
|
+
--#{root-defaults.$prefix}-navigation-branding-disabled-text-decoration-color
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
The navigation toggle properties:
|
|
131
|
+
|
|
132
|
+
```scss
|
|
133
|
+
--#{root-defaults.$prefix}-navigation-toggle-content
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Markup
|
|
138
|
+
|
|
139
|
+
```jsx
|
|
140
|
+
<nav class="navigation" data-graupl-menu-type="DisclosureMenu" data-graupl-menu-options="{'optionalKeySupport': true}">
|
|
141
|
+
<a class="navigation-branding" href="#">Graupl</a>
|
|
142
|
+
<button class="navigation-toggle ml-auto mr-0" aria-label="Toggle navigation"></button>
|
|
143
|
+
<ul class="menu">
|
|
144
|
+
<li class="menu-item"><a class="menu-link" href="#">Home</a></li>
|
|
145
|
+
<li class="menu-item submenu-item">
|
|
146
|
+
<button class="menu-link button link submenu-toggle">About</button>
|
|
147
|
+
<ul class="submenu">
|
|
148
|
+
<li class="menu-item"><a class="menu-link" href="#">About Us</a></li>
|
|
149
|
+
<li class="menu-item"><a class="menu-link" href="#">Our Team</a></li>
|
|
150
|
+
<li class="menu-item"><a class="menu-link" href="#">Our Mission</a></li>
|
|
151
|
+
</ul>
|
|
152
|
+
</li>
|
|
153
|
+
<li class="menu-item"><a class="menu-link" href="#">Blog</a></li>
|
|
154
|
+
<li class="menu-item"><a class="menu-link" href="#">Portfolio</a></li>
|
|
155
|
+
<li class="menu-item"><a class="menu-link button tertiary" href="#">Contact</a></li>
|
|
156
|
+
</ul>
|
|
157
|
+
</nav>
|
|
158
|
+
```
|