@qld-gov-au/qgds-bootstrap5 2.0.2 → 2.0.4
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/.storybook/preview.js +4 -1
- package/dist/assets/components/bs5/accordion/accordion.hbs +0 -3
- package/dist/assets/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/header/header.hbs +6 -9
- package/dist/assets/components/bs5/navbar/navbar.hbs +21 -14
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/dist/assets/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/dist/assets/components/bs5/searchInput/searchInput.hbs +34 -35
- package/dist/assets/components/bs5/sidenav/sidenav.hbs +56 -37
- package/dist/assets/css/qld.bootstrap.css +1 -6
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/js/handlebars.init.min.js +263 -212
- package/dist/assets/js/handlebars.init.min.js.map +2 -2
- package/dist/assets/js/qld.bootstrap.min.js +5 -5
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/assets/node/handlebars.init.min.js +29 -25
- package/dist/assets/node/handlebars.init.min.js.map +2 -2
- package/dist/components/bs5/accordion/accordion.hbs +0 -3
- package/dist/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/header/header.hbs +6 -9
- package/dist/components/bs5/navbar/navbar.hbs +21 -14
- package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/dist/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/dist/components/bs5/searchInput/searchInput.hbs +34 -35
- package/dist/components/bs5/sidenav/sidenav.hbs +56 -37
- package/dist/package.json +2 -4
- package/dist/sample-data/navbar/navbar.data.json +91 -25
- package/dist/sample-data/pagination/pagination.data.json +19 -19
- package/dist/sample-data/searchInput/searchInput.data.json +0 -1
- package/dist/sample-data/sidenav/sidenav.data.json +81 -80
- package/package.json +2 -4
- package/src/components/bs5/accordion/Accordion.mdx +34 -10
- package/src/components/bs5/accordion/__snapshots__/accordion.test.js.snap +0 -3
- package/src/components/bs5/accordion/accordion.hbs +0 -3
- package/src/components/bs5/accordion/mdx/_designResources.mdx +6 -0
- package/src/components/bs5/accordion/mdx/_usageInstructions.mdx +10 -0
- package/src/components/bs5/blockquote/blockquote.scss +47 -7
- package/src/components/bs5/button/button.scss +4 -0
- package/src/components/bs5/directionLinks/directionLinks.hbs +2 -1
- package/src/components/bs5/directionLinks/directionLinks.scss +27 -80
- package/src/components/bs5/directionLinks/directionLinks.stories.js +7 -14
- package/src/components/bs5/header/header.hbs +6 -9
- package/src/components/bs5/header/header.scss +15 -27
- package/src/components/bs5/inpagenav/inpagenav.scss +7 -3
- package/src/components/bs5/logo/Logo.mdx +1 -1
- package/src/components/bs5/navbar/navbar.data.json +91 -25
- package/src/components/bs5/navbar/navbar.functions.js +4 -0
- package/src/components/bs5/navbar/navbar.hbs +21 -14
- package/src/components/bs5/navbar/navbar.scss +225 -170
- package/src/components/bs5/navbar/navbar.stories.js +31 -2
- package/src/components/bs5/pageLayout/pageLayout.stories.js +3 -1
- package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +1 -1
- package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +140 -108
- package/src/components/bs5/pageLayout/templates/homePage.hbs +1 -1
- package/src/components/bs5/pagination/pagination.data.json +19 -19
- package/src/components/bs5/pagination/pagination.scss +37 -63
- package/src/components/bs5/promotionalPanel/promotionalPanel.scss +23 -22
- package/src/components/bs5/quickexit/quickexit.functions.js +24 -37
- package/src/components/bs5/quickexit/quickexit.scss +4 -0
- package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
- package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +32 -34
- package/src/components/bs5/searchInput/searchInput.data.json +0 -1
- package/src/components/bs5/searchInput/searchInput.hbs +34 -35
- package/src/components/bs5/searchInput/searchInput.scss +216 -195
- package/src/components/bs5/searchInput/searchInput.stories.js +42 -26
- package/src/components/bs5/sidenav/sidenav.data.json +81 -80
- package/src/components/bs5/sidenav/sidenav.hbs +56 -37
- package/src/components/bs5/sidenav/sidenav.scss +236 -151
- package/src/components/bs5/skiplinks/skipLinks.functions.js +0 -9
- package/src/components/bs5/skiplinks/skipLinks.test.js +0 -1
- package/src/components/bs5/tabs/tabs.scss +47 -40
- package/src/components/common/layout/container.scss +5 -0
- package/src/components/common/layout/content.scss +16 -8
- package/src/css/main.scss +0 -7
- package/src/css/mixins/focusable.scss +11 -3
- package/src/css/mixins/make-icon.scss +7 -1
- package/src/css/qld-theme.scss +1 -0
- package/src/css/utilities/_index.scss +1 -0
- package/src/css/utilities/sr-only.scss +5 -0
- package/src/js/qld.bootstrap.js +1 -9
- package/src/stories/documentation/_storybookDocsTabs.jsx +63 -0
- package/src/stories/documentation/storybook-documentation.scss +51 -0
- package/src/components/bs5/pagination/health-icon-sprite.svg +0 -156
- package/src/components/bs5/searchInput/_colours.scss +0 -63
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
//PREP REUSABLE VARIABLES, SCOPED TO .blockquote
|
|
2
2
|
.blockquote {
|
|
3
3
|
// Colours
|
|
4
|
-
--#{$prefix}quote-border-color: var(
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
--#{$prefix}quote-border-color: var(
|
|
5
|
+
--#{$prefix}color-default-color-light-accent-design-accent
|
|
6
|
+
);
|
|
7
|
+
--#{$prefix}quote-text-color: var(
|
|
8
|
+
--#{$prefix}color-default-color-light-text-heading
|
|
9
|
+
);
|
|
10
|
+
--#{$prefix}quote-ref-text-color: var(
|
|
11
|
+
--#{$prefix}color-default-color-light-text-default
|
|
12
|
+
);
|
|
7
13
|
//Measurements
|
|
8
14
|
--#{$prefix}quote-spacing: 1rem;
|
|
9
15
|
--#{$prefix}quote-border-width: 0.25rem;
|
|
@@ -11,13 +17,38 @@
|
|
|
11
17
|
// Fonts
|
|
12
18
|
--#{$prefix}quote-font-size: 1rem;
|
|
13
19
|
--#{$prefix}quote-heavy-font-weight: 600;
|
|
20
|
+
--#{$prefix}blockquote-bg: var(--#{$prefix}body-bg);
|
|
21
|
+
|
|
22
|
+
.light & {
|
|
23
|
+
--#{$prefix}blockquote-bg: var(--#{$prefix}light-background);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.alt & {
|
|
27
|
+
--#{$prefix}blockquote-bg: var(--#{$prefix}light-grey-alt);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dark & {
|
|
31
|
+
--#{$prefix}blockquote-bg: var(--#{$prefix}brand-primary);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dark-alt & {
|
|
35
|
+
--#{$prefix}blockquote-bg: var(--#{$prefix}dark-blue);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dark &,
|
|
39
|
+
.dark-alt & {
|
|
40
|
+
--#{$prefix}quote-text-color: var(--#{$prefix}white);
|
|
41
|
+
--#{$prefix}quote-ref-text-color: var(--#{$prefix}white);
|
|
42
|
+
}
|
|
14
43
|
}
|
|
15
44
|
|
|
16
45
|
//Ruleset for COMPONENT, reference our scoped variables, or use variables of ::root node
|
|
17
46
|
.blockquote {
|
|
18
|
-
|
|
47
|
+
background: var(--#{$prefix}blockquote-bg);
|
|
48
|
+
border-inline-start: var(--#{$prefix}quote-border-width) solid
|
|
49
|
+
var(--#{$prefix}quote-border-color);
|
|
19
50
|
padding-block: calc(var(--#{$prefix}quote-spacing) * 0.5);
|
|
20
|
-
padding-inline-start: calc(var(--#{$prefix}quote-spacing) * 1.
|
|
51
|
+
padding-inline-start: calc(var(--#{$prefix}quote-spacing) * 1.25);
|
|
21
52
|
padding-inline-end: calc(var(--#{$prefix}quote-spacing) * 1);
|
|
22
53
|
|
|
23
54
|
blockquote {
|
|
@@ -25,7 +56,7 @@
|
|
|
25
56
|
margin-block-end: 0;
|
|
26
57
|
color: var(--#{$prefix}quote-text-color);
|
|
27
58
|
font-size: calc(var(--#{$prefix}quote-font-size) * 1.25);
|
|
28
|
-
line-height: calc(var(--#{$prefix}quote-font-size) * 1.
|
|
59
|
+
line-height: calc(var(--#{$prefix}quote-font-size) * 1.75);
|
|
29
60
|
font-weight: var(--#{$prefix}quote-heavy-font-weight);
|
|
30
61
|
p:last-child {
|
|
31
62
|
margin-block-end: 0;
|
|
@@ -34,6 +65,15 @@
|
|
|
34
65
|
.quote-source {
|
|
35
66
|
color: var(--#{$prefix}quote-ref-text-color);
|
|
36
67
|
font-size: calc(var(--#{$prefix}quote-font-size) * 0.875);
|
|
37
|
-
margin-block-start: calc(var(--#{$prefix}quote-spacing) * 0.
|
|
68
|
+
margin-block-start: calc(var(--#{$prefix}quote-spacing) * 0.75);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
> figcaption {
|
|
72
|
+
background: transparent;
|
|
73
|
+
color: var(--figure-color);
|
|
74
|
+
|
|
75
|
+
display: block;
|
|
76
|
+
caption-side: bottom;
|
|
77
|
+
padding: 0;
|
|
38
78
|
}
|
|
39
79
|
}
|
|
@@ -5,5 +5,6 @@
|
|
|
5
5
|
{{~#if target}} target="{{target}}"{{/if~}}
|
|
6
6
|
{{~#if arialabel}} aria-label="{{arialabel}}" {{/if~}}>
|
|
7
7
|
{{{label}}}
|
|
8
|
-
<span class="icon" aria-hidden="true"></span>
|
|
8
|
+
{{!-- <span class="icon" aria-hidden="true"></span> --}}
|
|
9
|
+
<span class="qld-icon qld-icon-md qld-icon-arrow-{{class}}" aria-hidden="true"></span>
|
|
9
10
|
</a>
|
|
@@ -1,116 +1,63 @@
|
|
|
1
1
|
// QGDS QOL Direction Links
|
|
2
2
|
|
|
3
3
|
a.qld-dir-link {
|
|
4
|
-
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--icon-colour: var(--qld-light-action-secondary);
|
|
8
|
-
--icon-colour-hover: var(--qld-light-action-secondary-hover);
|
|
4
|
+
--link-colour: var(--#{$prefix}light-action-primary);
|
|
5
|
+
--icon-colour: var(--#{$prefix}light-action-secondary);
|
|
6
|
+
--icon-colour-hover: var(--#{$prefix}light-action-secondary-hover);
|
|
9
7
|
|
|
10
8
|
color: var(--link-colour);
|
|
11
9
|
text-decoration-color: var(--link-colour);
|
|
12
10
|
display: flex;
|
|
11
|
+
gap: 0.5rem;
|
|
13
12
|
width: fit-content;
|
|
14
13
|
justify-content: space-between;
|
|
15
14
|
align-self: flex-start;
|
|
16
15
|
|
|
17
16
|
&:focus {
|
|
18
17
|
border-radius: 4px;
|
|
19
|
-
outline: 3px solid var(
|
|
18
|
+
outline: 3px solid var(--#{$prefix}focus-color);
|
|
20
19
|
outline-offset: 2px;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
&.small {
|
|
24
|
-
font-size: 0.875rem;
|
|
25
|
-
line-height: 1rem;
|
|
26
|
-
|
|
27
|
-
.icon {
|
|
28
|
-
&::after {
|
|
29
|
-
zoom: 0.7;
|
|
30
|
-
mask-position: 0;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.icon {
|
|
36
|
-
&::after {
|
|
37
|
-
content: "";
|
|
38
|
-
display: inline-block;
|
|
39
|
-
width: 1rem;
|
|
40
|
-
height: 1.25rem;
|
|
41
|
-
mask-image: var(--dir-icon);
|
|
42
|
-
mask-repeat: no-repeat;
|
|
43
|
-
mask-position: 0 0.25rem;
|
|
44
|
-
background-color: var(--icon-colour);
|
|
45
|
-
margin-inline: 0.5rem;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
22
|
&:hover {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
&::after {
|
|
53
|
-
background-color: var(--icon-colour-hover);
|
|
54
|
-
}
|
|
23
|
+
.qld-icon {
|
|
24
|
+
background-color: var(--icon-colour-hover);
|
|
55
25
|
}
|
|
56
26
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
&.down {
|
|
65
|
-
.icon {
|
|
66
|
-
transform: rotate(90deg);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&.left {
|
|
71
|
-
flex-direction: row-reverse;
|
|
72
|
-
|
|
73
|
-
.icon {
|
|
74
|
-
transform: rotate(180deg);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.right {
|
|
79
|
-
.icon {
|
|
80
|
-
transform: rotate(0deg);
|
|
81
|
-
}
|
|
27
|
+
}
|
|
28
|
+
a[aria-disabled="true"] {
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
color: var(--#{$prefix}hint-text-color-muted);
|
|
31
|
+
text-decoration-color: var(--#{$prefix}dark-grey-muted);
|
|
32
|
+
.qld-icon {
|
|
33
|
+
background-color: var(--#{$prefix}dark-grey-muted);
|
|
82
34
|
}
|
|
83
35
|
}
|
|
84
|
-
|
|
85
36
|
.light,
|
|
86
37
|
.alt {
|
|
87
38
|
.qld-dir-link {
|
|
88
|
-
--link-colour: var(
|
|
89
|
-
--icon-colour: var(
|
|
90
|
-
--icon-colour-hover: var(
|
|
39
|
+
--link-colour: var(--#{$prefix}light-action-primary);
|
|
40
|
+
--icon-colour: var(--#{$prefix}light-action-secondary);
|
|
41
|
+
--icon-colour-hover: var(--#{$prefix}light-action-secondary-hover);
|
|
91
42
|
}
|
|
92
43
|
}
|
|
93
44
|
|
|
94
45
|
.dark,
|
|
95
46
|
.dark-alt {
|
|
96
47
|
.qld-dir-link {
|
|
97
|
-
--link-colour: var(
|
|
98
|
-
--icon-colour: var(
|
|
99
|
-
--icon-colour-hover: var(
|
|
48
|
+
--link-colour: var(--#{$prefix}dark-text);
|
|
49
|
+
--icon-colour: var(--#{$prefix}dark-action-secondary);
|
|
50
|
+
--icon-colour-hover: var(--#{$prefix}dark-action-secondary-hover);
|
|
51
|
+
}
|
|
52
|
+
a[aria-disabled="true"] {
|
|
53
|
+
color: var(--#{$prefix}dark-text-lighter);
|
|
54
|
+
text-decoration-color: var(--#{$prefix}dark-text-lighter);
|
|
55
|
+
.qld-icon {
|
|
56
|
+
background-color: var(--#{$prefix}dark-text-lighter);
|
|
57
|
+
}
|
|
100
58
|
}
|
|
101
59
|
}
|
|
102
60
|
|
|
103
61
|
li .qld-dir-link {
|
|
104
62
|
width: auto;
|
|
105
63
|
}
|
|
106
|
-
|
|
107
|
-
a[aria-disabled="true"] {
|
|
108
|
-
pointer-events: none;
|
|
109
|
-
color: var(--qld-dark-grey-muted);
|
|
110
|
-
|
|
111
|
-
.icon {
|
|
112
|
-
&::after {
|
|
113
|
-
background-color: var(--qld-dark-grey-muted);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
@@ -15,29 +15,21 @@ export default {
|
|
|
15
15
|
<!-- Grid container -->
|
|
16
16
|
<div class="container">
|
|
17
17
|
<div class="row">
|
|
18
|
-
<div class="col">
|
|
19
|
-
|
|
18
|
+
<div class="col">
|
|
20
19
|
<!-- Component HTML -->
|
|
21
|
-
${new DirectionLinks({ ...args, class: "up", label: "Up" }).html}
|
|
22
|
-
|
|
20
|
+
${new DirectionLinks({ ...args, class: "up", label: "Up" }).html}
|
|
23
21
|
</div>
|
|
24
22
|
<div class="col">
|
|
25
|
-
|
|
26
23
|
<!-- Component HTML -->
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
${new DirectionLinks({ ...args, class: "down", label: "Down" }).html}
|
|
29
25
|
</div>
|
|
30
26
|
<div class="col">
|
|
31
|
-
|
|
32
27
|
<!-- Component HTML -->
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
${new DirectionLinks({ ...args, class: "left", label: "Left" }).html}
|
|
35
29
|
</div>
|
|
36
|
-
<div class="col">
|
|
37
|
-
|
|
30
|
+
<div class="col">
|
|
38
31
|
<!-- Component HTML -->
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
${new DirectionLinks({ ...args, class: "right", label: "Right" }).html}
|
|
41
33
|
</div>
|
|
42
34
|
</div>
|
|
43
35
|
</div>
|
|
@@ -59,6 +51,7 @@ export default {
|
|
|
59
51
|
label: { control: "text" },
|
|
60
52
|
},
|
|
61
53
|
parameters: {
|
|
54
|
+
controls: { disable: true },
|
|
62
55
|
design: {
|
|
63
56
|
name: "QGDS Figma Reference",
|
|
64
57
|
type: "figma",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg"
|
|
24
24
|
class="qld-header-dropdown-icon ">
|
|
25
|
-
<use href="{{
|
|
25
|
+
<use href="{{../assets.SVGSpritePath}}#qgds-icon-chevron-down"
|
|
26
26
|
aria-hidden="true"></use>
|
|
27
27
|
</svg>
|
|
28
28
|
</a>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<a class="qld-header-link dropdown-item " href="{{url}}" {{#if target}}target="{{target}}"{{/if}}>
|
|
36
36
|
{{text}}
|
|
37
37
|
<svg width="24" height="24" class="qld-header-icon qld-header-dropdown-item-icon">
|
|
38
|
-
<use href="{{
|
|
38
|
+
<use href="{{ ../../assets.SVGSpritePath }}#qgds-icon-arrow-right"
|
|
39
39
|
aria-hidden="true"></use>
|
|
40
40
|
</svg>
|
|
41
41
|
</a>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
<a class="qld-header-link" href="{{url}}">
|
|
67
67
|
{{#if icon}}
|
|
68
68
|
<svg class="qld-header-link-icon">
|
|
69
|
-
<use href="{{
|
|
69
|
+
<use href="{{ ../assets.SVGSpritePath }}#qgds-icon-{{icon}}" aria-hidden="true"></use>
|
|
70
70
|
</svg>{{/if}}{{{text}}}
|
|
71
71
|
</a>
|
|
72
72
|
{{/if}}
|
|
@@ -80,11 +80,8 @@
|
|
|
80
80
|
<button id="qld-header-toggle-search-button" aria-controls="qld-header-search"
|
|
81
81
|
class="qld-header-toggle-main-nav" aria-expanded="false">
|
|
82
82
|
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg">
|
|
83
|
-
<use class="icon-search"
|
|
84
|
-
|
|
85
|
-
style="display: block;"></use>
|
|
86
|
-
<use class="icon-close" href="{{@root.assets.SVGSpritePath}}#qgds-icon-close"
|
|
87
|
-
style="display: none;"></use>
|
|
83
|
+
<use class="icon-search" href="{{ assets.SVGSpritePath }}#qgds-icon-search" aria-hidden="true" style="display: block;"></use>
|
|
84
|
+
<use class="icon-close" href="{{ assets.SVGSpritePath}}#qgds-icon-close" style="display: none;"></use>
|
|
88
85
|
</svg>
|
|
89
86
|
<span class="qld-header-toggle-main-nav-text">Search</span>
|
|
90
87
|
</button>
|
|
@@ -94,7 +91,7 @@
|
|
|
94
91
|
data-bs-toggle="collapse" data-bs-target="#main-nav" aria-controls="main-nav" aria-expanded="false"
|
|
95
92
|
aria-label="Open menu">
|
|
96
93
|
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg">
|
|
97
|
-
<use href="{{
|
|
94
|
+
<use href="{{assets.SVGSpritePath}}#qgds-icon-menu" aria-hidden="true">
|
|
98
95
|
</use>
|
|
99
96
|
</svg>
|
|
100
97
|
<span class="qld-header-toggle-main-nav-text">Menu</span>
|
|
@@ -400,37 +400,25 @@
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
&-site-search {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
403
|
+
display: none;
|
|
404
|
+
z-index: 1;
|
|
405
|
+
position: absolute;
|
|
406
|
+
left: 0;
|
|
407
|
+
right: 0;
|
|
408
|
+
top: 0.4rem;
|
|
409
|
+
padding: 1rem var(--qld-container-padding-x);
|
|
410
|
+
background-color: var(--#{$prefix}header-color-bg);
|
|
407
411
|
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
&.is-open {
|
|
411
|
-
z-index: 1;
|
|
412
|
-
display: block;
|
|
413
|
-
position: absolute;
|
|
414
|
-
left: 0;
|
|
415
|
-
right: 0;
|
|
416
|
-
top: 0.4rem;
|
|
417
|
-
padding: 1rem 0;
|
|
418
|
-
background-color: var(--#{$prefix}header-color-bg);
|
|
419
|
-
}
|
|
420
|
-
&.is-closed {
|
|
421
|
-
display: none;
|
|
422
|
-
}
|
|
412
|
+
&.is-open {
|
|
413
|
+
display: block;
|
|
423
414
|
}
|
|
424
415
|
|
|
425
|
-
// Some default styling overrides.
|
|
426
416
|
@include media-breakpoint-up(lg) {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
.qld-search-input {
|
|
433
|
-
min-width: auto;
|
|
417
|
+
z-index: unset;
|
|
418
|
+
display: block;
|
|
419
|
+
position: static;
|
|
420
|
+
padding: 0;
|
|
421
|
+
background-color: transparent;
|
|
434
422
|
}
|
|
435
423
|
}
|
|
436
424
|
}
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
// QGDS specific In-page Navigation variables.
|
|
5
5
|
.qld-inpage-nav {
|
|
6
|
-
--#{$prefix}inpage-nav-padding-left: 1.
|
|
7
|
-
--#{$prefix}inpage-nav-title-padding-left:
|
|
8
|
-
--#{$prefix}inpage-nav-link-padding-left: $nav-link-padding-x;
|
|
6
|
+
--#{$prefix}inpage-nav-padding-left: 1.25rem;
|
|
7
|
+
--#{$prefix}inpage-nav-title-padding-left: 0;
|
|
9
8
|
--#{$prefix}inpage-nav-link-padding-y: 0.25rem;
|
|
10
9
|
--#{$prefix}inpage-nav-border-color: var(--#{$prefix}brand-primary);
|
|
11
10
|
}
|
|
@@ -46,10 +45,15 @@
|
|
|
46
45
|
padding-bottom: var(--#{$prefix}inpage-nav-link-padding-y);
|
|
47
46
|
padding-left: var(--#{$prefix}inpage-nav-title-padding-left);
|
|
48
47
|
color: var(--#{$prefix}nav-link-color);
|
|
48
|
+
text-decoration-line: underline;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&:first-child .nav-link {
|
|
52
52
|
padding-top: 0;
|
|
53
53
|
}
|
|
54
|
+
|
|
55
|
+
&:last-child .nav-link {
|
|
56
|
+
padding-bottom: 0;
|
|
57
|
+
}
|
|
54
58
|
}
|
|
55
59
|
}
|