@qld-gov-au/qgds-bootstrap5 2.0.2 → 2.0.3
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/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 +228 -175
- 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 +28 -24
- 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/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/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/inpagenav/inpagenav.scss +7 -3
- 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 +219 -166
- 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/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/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/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
|
@@ -312,10 +312,15 @@ export default {
|
|
|
312
312
|
};
|
|
313
313
|
|
|
314
314
|
export const Default = {
|
|
315
|
+
parameters: {
|
|
316
|
+
docs: {
|
|
317
|
+
story: { height: "80vh" },
|
|
318
|
+
},
|
|
319
|
+
},
|
|
315
320
|
args: {
|
|
316
321
|
"Nav alternativeColor": false,
|
|
317
322
|
"Nav verticalOrientation": false,
|
|
318
|
-
"Nav navbarBrandName": "",
|
|
323
|
+
"Nav navbarBrandName": "Menu",
|
|
319
324
|
"Add Navigation Item": 0,
|
|
320
325
|
// Initialize base items with iconName
|
|
321
326
|
...(() => {
|
|
@@ -500,8 +505,32 @@ export const Default = {
|
|
|
500
505
|
align-items: center;
|
|
501
506
|
}
|
|
502
507
|
@media (width <= 992px) {
|
|
508
|
+
|
|
503
509
|
#burgerBtn {
|
|
510
|
+
--nav-header-icon-color: #ffe500;
|
|
504
511
|
display: flex !important;
|
|
512
|
+
flex-direction: column;
|
|
513
|
+
gap:0;
|
|
514
|
+
.qld-icon {
|
|
515
|
+
background-color: var(--nav-header-icon-color);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
.navbar.show #overlay {
|
|
519
|
+
position: absolute;
|
|
520
|
+
}
|
|
521
|
+
#story--3-components-navbar--default--primary-inner:has(.show) {
|
|
522
|
+
#storybook-only-header {
|
|
523
|
+
display:none;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
#storybook-root:has(.show) {
|
|
527
|
+
#storybook-only-header {
|
|
528
|
+
display:none;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
.navbar #burgerCloseBtn::before {
|
|
532
|
+
--nav-header-icon-color: var(--#{$prefix}brand-accent);
|
|
533
|
+
background-color: var(--nav-header-icon-color, #008635);
|
|
505
534
|
}
|
|
506
535
|
}
|
|
507
536
|
@media (width >= 992px) {
|
|
@@ -519,7 +548,7 @@ export const Default = {
|
|
|
519
548
|
<div id="storybook-only-header">
|
|
520
549
|
<button id="burgerBtn" class="btn btn-primary" type="button" data-bs-toggle="collapse" data-bs-target="#main-nav" aria-expanded="false" aria-controls="collapseExample">
|
|
521
550
|
<span class="qld-icon qld-icon-xl qld-icon-menu"></span>
|
|
522
|
-
|
|
551
|
+
menu
|
|
523
552
|
</button>
|
|
524
553
|
</div>
|
|
525
554
|
`;
|
|
@@ -3,7 +3,7 @@ import { ContentPageWithSideNavigation } from "./ContentPageWithSideNavigation.j
|
|
|
3
3
|
import { ContentPageWithForm } from "./ContentPageWithForm.js";
|
|
4
4
|
//Data
|
|
5
5
|
import masterbrand_variant from "../header/header.variant.masterBrand.data.json";
|
|
6
|
-
import menu_state from "../navbar/navbar.
|
|
6
|
+
import menu_state from "../navbar/navbar.data.json";
|
|
7
7
|
import globalAlertData from "../globalAlert/globalAlert.data.json";
|
|
8
8
|
import tableData from "../table/table.data.json";
|
|
9
9
|
import footerData from "../footer/footer.data.json";
|
|
@@ -70,6 +70,8 @@ const defaultData = {
|
|
|
70
70
|
},
|
|
71
71
|
contentFooter: contentFooterData,
|
|
72
72
|
sidenav: sideNavData,
|
|
73
|
+
// Mapping some @root header fields to this pageLayout root object, so template partials can resolve values
|
|
74
|
+
// assets: masterbrand_variant.assets,
|
|
73
75
|
};
|
|
74
76
|
|
|
75
77
|
export default {
|
|
@@ -2,122 +2,154 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
|
|
4
4
|
<head>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>{{title}}</title>
|
|
8
8
|
</head>
|
|
9
9
|
|
|
10
10
|
<body>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
<!-- Global ALert -->
|
|
12
|
+
{{> globalAlert globalAlert}}
|
|
13
|
+
|
|
14
|
+
<!-- Header -->
|
|
15
|
+
{{> header header }}
|
|
16
|
+
|
|
17
|
+
<!-- Navbar -->
|
|
18
|
+
{{> navbar navbar}}
|
|
19
|
+
|
|
20
|
+
{{#if banner}}
|
|
21
|
+
{{> banner banner}}
|
|
22
|
+
{{/if}}
|
|
23
|
+
|
|
24
|
+
<main>
|
|
25
|
+
|
|
26
|
+
<div class="container mt-40 mt-lg-64">
|
|
27
|
+
{{#if breadcrumbs}}
|
|
28
|
+
<div class="row">
|
|
29
|
+
<div class="col-12">
|
|
30
|
+
<!-- breadcrumbs -->
|
|
31
|
+
{{> breadcrumbs breadcrumbs}}
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
{{/if}}
|
|
35
|
+
|
|
36
|
+
<!-- Main Grid Layout: Side navigation and content -->
|
|
37
|
+
<div class="row">
|
|
38
|
+
|
|
39
|
+
<!-- Side navigation column -->
|
|
40
|
+
<div class="col-12 col-lg-3 mt-0 pe-lg-0">
|
|
41
|
+
{{> sidenav sidenav}}
|
|
42
|
+
</div>
|
|
43
|
+
<!-- End Side navigation column -->
|
|
44
|
+
|
|
45
|
+
<!-- Content Column -->
|
|
46
|
+
<div class="col-lg-8 mt-40 mt-lg-0 ms-lg-32 ps-lg-32">
|
|
47
|
+
|
|
48
|
+
{{#if inpagenav}}
|
|
49
|
+
<!-- Inpagenav Component (.mb-64 provides vertical spacing) -->
|
|
50
|
+
{{> inpagenav inpagenav}}
|
|
51
|
+
{{/if}}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<!-- Content Section with top vertical spacer (2rem mobile, 4rem LG and above) -->
|
|
56
|
+
<div class="mt-32 mt-lg-64">
|
|
57
|
+
<h2 id="section-heading">Section heading (H2)</h2>
|
|
58
|
+
<p>
|
|
59
|
+
Lorem ipsum dolor sit amet consectetur. Sed facilisis purus eu convallis ut. Morbi condimentum volutpat
|
|
60
|
+
feugiat pellentesque. Auctor amet auctor dolor metus eget diam. Facilisis vitae venenatis vestibulum
|
|
61
|
+
libero ut. Luctus diam pellentesque ipsum accumsan amet commodo.
|
|
62
|
+
</p>
|
|
63
|
+
<p>
|
|
64
|
+
Convallis et ullamcorper ac nisi ornare sed facilisis sem. Scelerisque malesuada vivamus tellus mi vitae
|
|
65
|
+
amet ornare donec malesuada. Nascetur senectus aenean fames id turpis.
|
|
66
|
+
</p>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
<!-- Content Section with top vertical spacer (2rem mobile, 4rem LG and above) -->
|
|
72
|
+
<div class="mt-32 mt-lg-64">
|
|
73
|
+
|
|
74
|
+
<h2 id="content-heading">Content heading (H2)</h2>
|
|
75
|
+
|
|
76
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
|
77
|
+
|
|
78
|
+
{{#if calloutdata}}
|
|
79
|
+
<!-- Callout Component -->
|
|
80
|
+
{{> callout calloutdata}}
|
|
81
|
+
{{/if}}
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
<!-- Content Section with top vertical spacer (2rem mobile, 2.5rem LG and above) -->
|
|
87
|
+
<div class="mt-32 mt-lg-40">
|
|
88
|
+
<h3 id="inspection">Pre-registration inspection (H3)</h3>
|
|
89
|
+
<p>Information about pre-registration inspection requirements.</p>
|
|
90
|
+
|
|
91
|
+
<h4 id="fees-and-charges">Fees and charges (H4)</h4>
|
|
92
|
+
<p>Details about fees and charges for vehicle registration.</p>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
{{#if accordionItems}}
|
|
96
|
+
<!-- QGDS Accordion Component with 1.5rem vertical spacer -->
|
|
97
|
+
<div class="mt-24">
|
|
98
|
+
{{> accordion accordionItems}}
|
|
30
99
|
</div>
|
|
31
100
|
{{/if}}
|
|
101
|
+
</div>
|
|
32
102
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
incididunt ut labore et dolore magna aliqua.</p>
|
|
65
|
-
|
|
66
|
-
{{#if calloutdata}}
|
|
67
|
-
<!-- callout Section -->
|
|
68
|
-
{{> callout calloutdata}}
|
|
69
|
-
{{/if}}
|
|
70
|
-
|
|
71
|
-
<h3 id="inspection">Pre-registration inspection (H3)</h3>
|
|
72
|
-
<p>Information about pre-registration inspection requirements.</p>
|
|
73
|
-
|
|
74
|
-
<h4 id="fees-and-charges">Fees and charges (H4)</h4>
|
|
75
|
-
<p>Details about fees and charges for vehicle registration.</p>
|
|
76
|
-
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
{{#if accordionItems}}
|
|
80
|
-
<!-- accordion Section -->
|
|
81
|
-
<div class="my-5 px-1 px-md-32">
|
|
82
|
-
{{> accordion accordionItems}}
|
|
83
|
-
</div>
|
|
84
|
-
{{/if}}
|
|
85
|
-
|
|
86
|
-
{{#if video}}
|
|
87
|
-
<!-- video Section -->
|
|
88
|
-
<div class="my-5 px-1 px-md-32">
|
|
89
|
-
{{> video video}}
|
|
90
|
-
</div>
|
|
91
|
-
{{/if}}
|
|
92
|
-
|
|
93
|
-
<div class="my-5 p-1 p-md-32 bg-light">
|
|
94
|
-
<h2 id="inspection">Section heading (H2)</h2>
|
|
95
|
-
<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies
|
|
96
|
-
est.
|
|
97
|
-
Tincidunt ultrices commodo vestibulum non netus. </p>
|
|
98
|
-
<p>Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien
|
|
99
|
-
condimentum adipiscing augue quisque eu.</p>
|
|
100
|
-
|
|
101
|
-
{{> callToAction callToAction}}
|
|
102
|
-
</div>
|
|
103
|
-
|
|
104
|
-
{{#if table}}
|
|
105
|
-
<!-- table Section -->
|
|
106
|
-
<div class="my-5 px-1 px-md-32">
|
|
107
|
-
{{> table table}}
|
|
108
|
-
</div>
|
|
109
|
-
{{/if}}
|
|
110
|
-
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
<!-- Content Footer -->
|
|
115
|
-
{{> contentFooter contentFooter}}
|
|
103
|
+
<!-- Top vertical spacer: 2rem default (mobile), 4rem LG and above -->
|
|
104
|
+
<div class="mt-32 mt-lg-64">
|
|
105
|
+
{{#if video}}
|
|
106
|
+
<!-- QGDS Video Component -->
|
|
107
|
+
{{> video video}}
|
|
108
|
+
{{/if}}
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<!-- Emphasis Container, with top vertical spacer: 2rem default (mobile), 4rem LG and above -->
|
|
112
|
+
<div class="mt-40 mt-lg-64 bg-light content-emphasis">
|
|
113
|
+
|
|
114
|
+
<h2 id="inspection">Section heading (H2) with emphasis</h2>
|
|
115
|
+
|
|
116
|
+
<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. </p>
|
|
117
|
+
|
|
118
|
+
<!-- QGDS Call To Action button -->
|
|
119
|
+
{{> callToAction callToAction}}
|
|
120
|
+
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
<!-- Top vertical spacer: 2rem default (mobile), 4rem LG and above -->
|
|
126
|
+
<div class="mt-32 mt-lg-64">
|
|
127
|
+
<h2 id="inspection">Section heading (H2)</h2>
|
|
128
|
+
<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. </p>
|
|
129
|
+
|
|
130
|
+
{{#if table}}
|
|
131
|
+
<!-- Table Component (.my-40 wrapper provides vertical spacing) -->
|
|
132
|
+
<div class="mt-24">
|
|
133
|
+
{{> table table}}
|
|
116
134
|
</div>
|
|
135
|
+
{{/if}}
|
|
136
|
+
</div>
|
|
137
|
+
|
|
117
138
|
</div>
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
139
|
+
<!-- End Main Content Section -->
|
|
140
|
+
|
|
141
|
+
</div>
|
|
142
|
+
<!-- End Content Column -->
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<!-- QGDS Content Footer Component -->
|
|
146
|
+
<div class="mt-64">
|
|
147
|
+
{{> contentFooter contentFooter}}
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
</main>
|
|
151
|
+
<!-- Footer -->
|
|
152
|
+
{{> footer footer}}
|
|
121
153
|
</body>
|
|
122
154
|
|
|
123
155
|
</html>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
"arialabel": "Pagination for search results",
|
|
3
|
+
"previous": {
|
|
4
|
+
"href": "#",
|
|
5
|
+
"linktext": "Back",
|
|
6
|
+
"arialabel": "Previous page"
|
|
7
|
+
},
|
|
8
|
+
"next": {
|
|
9
|
+
"href": "#",
|
|
10
|
+
"linktext": "Next",
|
|
11
|
+
"arialabel": "Next page"
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
"pages": [
|
|
15
|
+
{ "href": "#", "linktext": "1", "customClasses": "" },
|
|
16
|
+
{ "href": "#", "linktext": "2", "customClasses": "active" },
|
|
17
|
+
{ "href": "#", "linktext": "3", "customClasses": "" },
|
|
18
|
+
{ "href": "#", "linktext": "", "customClasses": "more", "more": true },
|
|
19
|
+
{ "href": "#", "linktext": "7", "customClasses": "" }
|
|
20
|
+
]
|
|
21
21
|
}
|
|
@@ -16,24 +16,11 @@ $pagination-icon-more-hover-color: $secondary;
|
|
|
16
16
|
$pagination-icon-more-dark-color: $qld-white;
|
|
17
17
|
$pagination-icon-more-dark-hover-color: $qld-golden-yellow;
|
|
18
18
|
|
|
19
|
-
//SVG ICONS - Default, light and light-alt
|
|
20
|
-
$pagination-icon-prevnext: url('data:image/svg+xml,<svg width="22" height="17" viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21.5 8.50066C21.5 8.89906 21.125 9.20892 20.7031 9.20892L3.03125 9.20892L9.59375 15.8489C9.875 16.1145 9.875 16.5572 9.54688 16.8228C9.40625 16.9556 9.21875 16.9998 9.03125 16.9998C8.79688 16.9998 8.60938 16.9556 8.46875 16.7785L0.6875 8.98759C0.40625 8.72199 0.40625 8.32359 0.6875 8.05799L8.46875 0.267061C8.75 -0.0428051 9.21875 -0.0428051 9.54688 0.222795C9.875 0.488394 9.875 0.931061 9.59375 1.19666L3.03125 7.79239L20.7031 7.79239C21.125 7.79239 21.5 8.14652 21.5 8.50066Z" fill="#{$pagination-icon-prevnext-color}"/></svg>');
|
|
21
|
-
$pagination-icon-prevnext-hover: url('data:image/svg+xml,<svg width="22" height="17" viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21.5 8.50066C21.5 8.89906 21.125 9.20892 20.7031 9.20892L3.03125 9.20892L9.59375 15.8489C9.875 16.1145 9.875 16.5572 9.54688 16.8228C9.40625 16.9556 9.21875 16.9998 9.03125 16.9998C8.79688 16.9998 8.60938 16.9556 8.46875 16.7785L0.6875 8.98759C0.40625 8.72199 0.40625 8.32359 0.6875 8.05799L8.46875 0.267061C8.75 -0.0428051 9.21875 -0.0428051 9.54688 0.222795C9.875 0.488394 9.875 0.931061 9.59375 1.19666L3.03125 7.79239L20.7031 7.79239C21.125 7.79239 21.5 8.14652 21.5 8.50066Z" fill="#{$pagination-icon-prevnext-hover-color}"/></svg>');
|
|
22
|
-
$pagination-icon-more: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="16" r="2" fill="#{$pagination-icon-more-color}"/><circle cx="16" cy="16" r="2" fill="#{$pagination-icon-more-color}"/><circle cx="24" cy="16" r="2" fill="#{$pagination-icon-more-color}"/></svg>');
|
|
23
|
-
|
|
24
|
-
///////////////////////EDIT
|
|
25
|
-
$pagination-icon-more-hover: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="16" r="2" fill="#{$pagination-icon-more-hover-color}"/><circle cx="16" cy="16" r="2" fill="#{$pagination-icon-more-hover-color}"/><circle cx="24" cy="16" r="2" fill="#{$pagination-icon-more-hover-color}"/></svg>');
|
|
26
|
-
|
|
27
|
-
$pagination-icon-more-dark-hover: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="16" r="2" fill="#{$pagination-icon-more-dark-hover-color}"/><circle cx="16" cy="16" r="2" fill="#{$pagination-icon-more-dark-hover-color}"/><circle cx="24" cy="16" r="2" fill="#{$pagination-icon-more-dark-hover-color}"/></svg>');
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
//SVG ICONS - Dark and dark-alt
|
|
31
|
-
$pagination-icon-prevnext-dark: url('data:image/svg+xml,<svg width="22" height="17" viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21.5 8.50066C21.5 8.89906 21.125 9.20892 20.7031 9.20892L3.03125 9.20892L9.59375 15.8489C9.875 16.1145 9.875 16.5572 9.54688 16.8228C9.40625 16.9556 9.21875 16.9998 9.03125 16.9998C8.79688 16.9998 8.60938 16.9556 8.46875 16.7785L0.6875 8.98759C0.40625 8.72199 0.40625 8.32359 0.6875 8.05799L8.46875 0.267061C8.75 -0.0428051 9.21875 -0.0428051 9.54688 0.222795C9.875 0.488394 9.875 0.931061 9.59375 1.19666L3.03125 7.79239L20.7031 7.79239C21.125 7.79239 21.5 8.14652 21.5 8.50066Z" fill="#{$pagination-icon-prevnext-dark-color}"/></svg>');
|
|
32
|
-
$pagination-icon-prevnext-dark-hover: url('data:image/svg+xml,<svg width="22" height="17" viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21.5 8.50066C21.5 8.89906 21.125 9.20892 20.7031 9.20892L3.03125 9.20892L9.59375 15.8489C9.875 16.1145 9.875 16.5572 9.54688 16.8228C9.40625 16.9556 9.21875 16.9998 9.03125 16.9998C8.79688 16.9998 8.60938 16.9556 8.46875 16.7785L0.6875 8.98759C0.40625 8.72199 0.40625 8.32359 0.6875 8.05799L8.46875 0.267061C8.75 -0.0428051 9.21875 -0.0428051 9.54688 0.222795C9.875 0.488394 9.875 0.931061 9.59375 1.19666L3.03125 7.79239L20.7031 7.79239C21.125 7.79239 21.5 8.14652 21.5 8.50066Z" fill="#{$pagination-icon-prevnext-dark-hover-color}"/></svg>');
|
|
33
|
-
$pagination-icon-more-dark: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="16" r="2" fill="#{$pagination-icon-more-dark-color}"/><circle cx="16" cy="16" r="2" fill="#{$pagination-icon-more-dark-color}"/><circle cx="24" cy="16" r="2" fill="#{$pagination-icon-more-dark-color}"/></svg>');
|
|
34
|
-
|
|
35
|
-
|
|
36
19
|
.pagination {
|
|
20
|
+
--action-icon-color: var(--#{$prefix}light-action-secondary);
|
|
21
|
+
--action-icon-color-hover: var(--#{$prefix}light-action-secondary-hover);
|
|
22
|
+
--action-icon-more-color: var(--#{$prefix}light-text-text);
|
|
23
|
+
--action-icon-more-color-hover: var(--#{$prefix}light-action-secondary);
|
|
37
24
|
|
|
38
25
|
//Padding
|
|
39
26
|
--#{$prefix}pagination-padding-x: 1rem;
|
|
@@ -78,13 +65,6 @@ $pagination-icon-more-dark: url('data:image/svg+xml,<svg width="32" height="32"
|
|
|
78
65
|
--#{$prefix}pagination-disabled-bg: var(--#{$prefix}secondary-bg);
|
|
79
66
|
--#{$prefix}pagination-disabled-border-color: var(--#{$prefix}border-color);
|
|
80
67
|
|
|
81
|
-
//SASS icons assinged to CSS properties
|
|
82
|
-
--#{$prefix}pagination-icon-prevnext: #{escape-svg($pagination-icon-prevnext)};
|
|
83
|
-
--#{$prefix}pagination-icon-prevnext-hover: #{escape-svg($pagination-icon-prevnext-hover)};
|
|
84
|
-
--#{$prefix}pagination-icon-more: #{escape-svg($pagination-icon-more)};
|
|
85
|
-
--#{$prefix}pagination-icon-more-hover: #{escape-svg($pagination-icon-more-hover)};
|
|
86
|
-
--#{$prefix}pagination-icon-more-dark-hover: #{escape-svg($pagination-icon-more-dark-hover)};
|
|
87
|
-
|
|
88
68
|
}
|
|
89
69
|
|
|
90
70
|
// When the parent container has a darker background (.dark), or the parent container uses attribute data-bs-theme="dark"
|
|
@@ -126,9 +106,10 @@ $pagination-icon-more-dark: url('data:image/svg+xml,<svg width="32" height="32"
|
|
|
126
106
|
--#{$prefix}pagination-active-focus-bg: var(--#{$prefix}dark-action-primary-hover);
|
|
127
107
|
|
|
128
108
|
//SASS icons assinged to CSS properties
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
109
|
+
--action-icon-color: var(--#{$prefix}dark-action-secondary);
|
|
110
|
+
--action-icon-color-hover: var(--#{$prefix}dark-action-secondary-hover);
|
|
111
|
+
--action-icon-more-color: var(--#{$prefix}dark-text-text);
|
|
112
|
+
--action-icon-more-color-hover: var(--#{$prefix}dark-action-secondary);
|
|
132
113
|
}
|
|
133
114
|
|
|
134
115
|
|
|
@@ -154,7 +135,7 @@ $pagination-icon-more-dark: url('data:image/svg+xml,<svg width="32" height="32"
|
|
|
154
135
|
.page-item {
|
|
155
136
|
|
|
156
137
|
.page-link {
|
|
157
|
-
border-radius:
|
|
138
|
+
border-radius: 4px;
|
|
158
139
|
width: 2rem;
|
|
159
140
|
height: 2rem;
|
|
160
141
|
padding: 0;
|
|
@@ -194,40 +175,41 @@ $pagination-icon-more-dark: url('data:image/svg+xml,<svg width="32" height="32"
|
|
|
194
175
|
//Shared by both .prev and .next
|
|
195
176
|
&.previous .page-link,
|
|
196
177
|
&.next .page-link {
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
gap: 0.5rem;
|
|
197
181
|
|
|
198
182
|
//.prev and .next arrows
|
|
199
183
|
&:before {
|
|
200
184
|
content: "";
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
background-repeat: no-repeat;
|
|
185
|
+
width: 1.5rem;
|
|
186
|
+
height: 1.5rem;
|
|
187
|
+
mask-image: var(--qgds-icon-arrow-left);
|
|
188
|
+
background-color: var(--action-icon-color);
|
|
189
|
+
mask-repeat: no-repeat;
|
|
190
|
+
mask-position: 0;
|
|
208
191
|
}
|
|
209
192
|
|
|
210
193
|
&:hover:before {
|
|
211
|
-
background: var(
|
|
212
|
-
background-repeat: no-repeat;
|
|
194
|
+
background-color: var(--action-icon-color-hover);
|
|
213
195
|
}
|
|
214
196
|
|
|
215
197
|
&:hover, &:focus {
|
|
216
198
|
//Previous and Next "link text"
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
199
|
+
span {
|
|
200
|
+
text-decoration: underline;
|
|
201
|
+
text-underline-offset: 2px;
|
|
202
|
+
}
|
|
221
203
|
|
|
222
204
|
}
|
|
223
|
-
|
|
224
205
|
}
|
|
225
206
|
|
|
226
|
-
&.next .page-link
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
207
|
+
&.next .page-link {
|
|
208
|
+
flex-direction: row-reverse;
|
|
209
|
+
|
|
210
|
+
&:before {
|
|
211
|
+
transform: rotate(180deg);
|
|
212
|
+
}
|
|
231
213
|
}
|
|
232
214
|
|
|
233
215
|
//Non-numeric links in pagination
|
|
@@ -276,29 +258,21 @@ $pagination-icon-more-dark: url('data:image/svg+xml,<svg width="32" height="32"
|
|
|
276
258
|
//More dots
|
|
277
259
|
&.more span {
|
|
278
260
|
border: none;
|
|
279
|
-
position: relative;
|
|
261
|
+
// position: relative;
|
|
280
262
|
height: 2rem;
|
|
281
263
|
width: 2rem;
|
|
282
|
-
display: inline-
|
|
264
|
+
display: inline-flex;
|
|
283
265
|
|
|
284
266
|
&:hover:before {
|
|
285
|
-
background: var(
|
|
267
|
+
background-color: var(--action-icon-more-color-hover);
|
|
286
268
|
}
|
|
287
269
|
&:before {
|
|
288
270
|
content: "";
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
left: 0;
|
|
292
|
-
width: 100%;
|
|
293
|
-
height: 100%;
|
|
294
|
-
background: var(--#{$prefix}pagination-icon-more);
|
|
271
|
+
width: 2rem;
|
|
272
|
+
height: 2rem;
|
|
295
273
|
background-repeat: no-repeat;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
&:hover:before {
|
|
299
|
-
background: var(--#{$prefix}pagination-icon-more-dark-hover);
|
|
300
|
-
|
|
301
|
-
}
|
|
274
|
+
mask-image: var(--qgds-icon-more-horizontal);
|
|
275
|
+
background-color: var(--action-icon-more-color);
|
|
302
276
|
}
|
|
303
277
|
}
|
|
304
278
|
}
|
|
@@ -307,7 +281,7 @@ $pagination-icon-more-dark: url('data:image/svg+xml,<svg width="32" height="32"
|
|
|
307
281
|
.dark &, .dark-alt & {
|
|
308
282
|
|
|
309
283
|
.page-item {
|
|
310
|
-
|
|
284
|
+
//Active link only
|
|
311
285
|
&.active .page-link {
|
|
312
286
|
&:hover {
|
|
313
287
|
color: black;
|