@qhealth-design-system/core 1.18.4 → 1.19.0
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/assets/accordion-js.js +344 -0
- package/.storybook/assets/animate-js.js +247 -0
- package/.storybook/assets/index.js +15 -0
- package/.storybook/globals.js +39 -41
- package/.storybook/main.js +4 -3
- package/.storybook/preview.js +11 -13
- package/CHANGELOG.md +2 -0
- package/README.md +1 -1
- package/package.json +10 -15
- package/src/component-loader.js +23 -0
- package/src/components/_global/css/body/component.scss +3 -3
- package/src/components/_global/css/btn/component.scss +1 -1
- package/src/components/_global/css/cta_links/component.scss +2 -2
- package/src/components/_global/css/example/component.scss +11 -19
- package/src/components/_global/css/forms/control_inputs/component.scss +2 -2
- package/src/components/_global/css/forms/general/component.scss +5 -5
- package/src/components/_global/css/headings/component.scss +42 -44
- package/src/components/_global/css/img/images.scss +20 -36
- package/src/components/_global/css/link_columns/component.scss +2 -2
- package/src/components/_global/css/modal/component.scss +20 -26
- package/src/components/_global/css/table/component.scss +14 -21
- package/src/components/_global/css/tabs/component.scss +2 -2
- package/src/components/_global/css/tags/component.scss +1 -1
- package/src/components/_global/css/toggle_and_tool_tip/component.scss +3 -3
- package/src/components/_global/js/global.js +1 -1
- package/src/components/_global/js/select_boxes/global.js +26 -35
- package/src/components/accordion/css/component.scss +289 -326
- package/src/components/banner/css/component.scss +77 -173
- package/src/components/banner/html/component.hbs +2 -4
- package/src/components/banner_advanced/html/component.hbs +2 -2
- package/src/components/banner_advanced/js/manifest.json +1422 -1386
- package/src/components/basic_search/css/component.scss +13 -14
- package/src/components/basic_search/html/component.hbs +11 -20
- package/src/components/breadcrumbs/js/global.js +6 -1
- package/src/components/callout/css/component.scss +37 -40
- package/src/components/card_feature/css/component.scss +28 -167
- package/src/components/card_multi_action/css/component.scss +46 -58
- package/src/components/code/css/component.scss +3 -3
- package/src/components/code/html/component.hbs +12 -12
- package/src/components/code/js/global.js +6 -1
- package/src/components/file_upload/css/component.scss +5 -5
- package/src/components/file_upload/js/global.js +46 -43
- package/src/components/footer/css/component.scss +3 -3
- package/src/components/global_alert/css/component.scss +8 -14
- package/src/components/global_alert/html/component.hbs +3 -3
- package/src/components/header/css/component.scss +16 -4
- package/src/components/header/html/component.hbs +3 -2
- package/src/components/in_page_navigation/css/component.scss +14 -16
- package/src/components/in_page_navigation/js/global.js +48 -58
- package/src/components/internal_navigation/css/component.scss +3 -3
- package/src/components/internal_navigation/js/global.js +27 -35
- package/src/components/left_hand_navigation/css/component.scss +8 -2
- package/src/components/main_navigation/css/component.scss +16 -7
- package/src/components/main_navigation/html/component.hbs +1 -0
- package/src/components/mega_main_navigation/css/component.scss +5 -5
- package/src/components/mega_main_navigation/html/component.hbs +1 -0
- package/src/components/pagination/css/component.scss +32 -28
- package/src/components/pagination/html/component.hbs +37 -40
- package/src/components/promo_panel/css/component.scss +1 -4
- package/src/components/promo_panel/html/component.hbs +11 -5
- package/src/components/promo_panel/js/global.js +24 -39
- package/src/components/promo_panel/js/manifest.json +8 -0
- package/src/components/tab/css/component.scss +3 -3
- package/src/components/toggle_tip/css/component.scss +1 -1
- package/src/components/tool_tip/css/component.scss +1 -1
- package/src/components/video_player/js/global.js +16 -13
- package/src/data/current.json +33 -1
- package/src/helpers/global-helpers.js +56 -0
- package/src/html/component-in_page_navigation.html +2 -2
- package/src/index.js +4 -8
- package/src/stories/BackToTop/BackToTop.mdx +3 -21
- package/src/stories/CTALink/CTALink.mdx +1 -4
- package/src/stories/Checkboxes/Checkboxes.mdx +1 -4
- package/src/stories/DirectionLinks/DirectionLinks.mdx +1 -4
- package/src/stories/InPageAlert/InPageAlert.mdx +1 -4
- package/src/stories/Introduction.mdx +9 -5
- package/src/stories/LinkColumns/LinkColumns.mdx +1 -4
- package/src/stories/Pagination/Pagination.mdx +26 -0
- package/src/stories/Pagination/Pagination.stories.js +257 -0
- package/src/stories/PromoPanel/PromoPanel.mdx +26 -0
- package/src/stories/PromoPanel/PromoPanel.stories.js +219 -0
- package/src/stories/RadioButtons/RadioButtons.mdx +1 -4
- package/src/stories/SelectBox/SelectBox.mdx +1 -4
- package/src/stories/Tags/Tags.js +3 -3
- package/src/stories/Tags/Tags.mdx +1 -4
- package/src/stories/VideoPlayer/VideoPlayer.mdx +3 -28
- package/src/stories/VideoPlayer/VideoPlayer.stories.js +19 -46
- package/src/styles/imports/utilities.scss +3 -3
- package/src/styles/imports/variables.scss +5 -0
- package/src/stories/VideoPlayer/VideoPlayer.js +0 -0
package/.storybook/globals.js
CHANGED
|
@@ -18,11 +18,11 @@ export const viewports = {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export const themes = {
|
|
21
|
-
white: "qld__body qld__grid",
|
|
22
|
-
light: "qld__body qld__body--light qld__light",
|
|
23
|
-
"light alt": "qld__body qld__body--alt qld__light-alt",
|
|
24
|
-
dark: "qld__body qld__body--dark qld__dark",
|
|
25
|
-
"dark alt": "qld__body qld__body--dark-alt qld__dark-alt",
|
|
21
|
+
white: "js qld__body qld__grid",
|
|
22
|
+
light: "js qld__body qld__body--light qld__light",
|
|
23
|
+
"light alt": "js qld__body qld__body--alt qld__light-alt",
|
|
24
|
+
dark: "js qld__body qld__body--dark qld__dark",
|
|
25
|
+
"dark alt": "js qld__body qld__body--dark-alt qld__dark-alt",
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export const themeColours = {
|
|
@@ -37,54 +37,52 @@ export const figmaLinks = {
|
|
|
37
37
|
masterDoc: {
|
|
38
38
|
file: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23529-440999&t=y8LMLpCtTxOgtHpT-0",
|
|
39
39
|
},
|
|
40
|
-
|
|
41
|
-
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-
|
|
42
|
-
|
|
43
|
-
ds: "https://www.designsystem.qld.gov.au/components/call-to-action-cta",
|
|
44
|
-
},
|
|
45
|
-
inPageAlert: {
|
|
46
|
-
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=5990-98125&p=f&t=y8LMLpCtTxOgtHpT-0",
|
|
47
|
-
file: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23167-395551&t=h9SPYdoJV6KCygCT-0",
|
|
48
|
-
ds: "https://www.designsystem.qld.gov.au/components/alerts-in-page",
|
|
49
|
-
},
|
|
50
|
-
tags: {
|
|
51
|
-
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=5990-97596&p=f&t=y8LMLpCtTxOgtHpT-0",
|
|
52
|
-
file: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23167-395550&t=y8LMLpCtTxOgtHpT-0",
|
|
53
|
-
ds: "https://www.designsystem.qld.gov.au/components/tags",
|
|
40
|
+
backToTop: {
|
|
41
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321317&p=f&t=A5RGn3vQ6cEyXHw7-0",
|
|
42
|
+
ds: "https://www.designsystem.qld.gov.au/components/back-to-top",
|
|
54
43
|
},
|
|
55
|
-
|
|
56
|
-
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-
|
|
57
|
-
|
|
58
|
-
ds: "https://www.designsystem.qld.gov.au/components/input-fields-select-box",
|
|
44
|
+
checkboxes: {
|
|
45
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321348&p=f&t=WmKMIp3MbkVrYkUf-0",
|
|
46
|
+
ds: "https://www.designsystem.qld.gov.au/components/checkboxes",
|
|
59
47
|
},
|
|
60
|
-
|
|
61
|
-
design: "https://www.figma.com/design/
|
|
62
|
-
|
|
63
|
-
ds: "https://www.designsystem.qld.gov.au/components",
|
|
48
|
+
ctaLink: {
|
|
49
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321367&p=f&t=WmKMIp3MbkVrYkUf-0",
|
|
50
|
+
ds: "https://www.designsystem.qld.gov.au/components/call-to-action-cta",
|
|
64
51
|
},
|
|
65
52
|
directionLinks: {
|
|
66
|
-
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321363&p=f",
|
|
67
|
-
file: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23167-395560",
|
|
53
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321363&p=f&t=WmKMIp3MbkVrYkUf-0",
|
|
68
54
|
ds: "https://www.designsystem.qld.gov.au/components/direction-links",
|
|
69
55
|
},
|
|
56
|
+
inPageAlert: {
|
|
57
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=5990-98125&p=f&t=WmKMIp3MbkVrYkUf-0",
|
|
58
|
+
ds: "https://www.designsystem.qld.gov.au/components/alerts-in-page",
|
|
59
|
+
},
|
|
70
60
|
linkColumns: {
|
|
71
|
-
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321574&p=f",
|
|
72
|
-
file: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23167-395563",
|
|
61
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321574&p=f&t=WmKMIp3MbkVrYkUf-0",
|
|
73
62
|
ds: "https://www.designsystem.qld.gov.au/components/link-columns-link-list",
|
|
74
63
|
},
|
|
75
|
-
|
|
76
|
-
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-
|
|
77
|
-
|
|
78
|
-
|
|
64
|
+
pagination: {
|
|
65
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321779&p=f&t=wdrRF6qJa1fuzxWP-0",
|
|
66
|
+
ds: "https://www.designsystem.qld.gov.au/components/pagination",
|
|
67
|
+
},
|
|
68
|
+
promoPanel: {
|
|
69
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23269-286312&p=f&t=ub7vIB4rUQNZ6zzo-0",
|
|
70
|
+
ds: "https://www.designsystem.qld.gov.au/components/promotional-panel",
|
|
79
71
|
},
|
|
80
72
|
radioButtons: {
|
|
81
|
-
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321347&p=f",
|
|
82
|
-
file: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=23167-395570",
|
|
73
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321347&p=f&t=kHfUZsyKYuDkprji-0",
|
|
83
74
|
ds: "https://www.designsystem.qld.gov.au/components/radio-buttons",
|
|
84
75
|
},
|
|
85
|
-
|
|
86
|
-
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=
|
|
87
|
-
|
|
88
|
-
|
|
76
|
+
selectBox: {
|
|
77
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=11056-321345&p=f&t=WmKMIp3MbkVrYkUf-0",
|
|
78
|
+
ds: "https://www.designsystem.qld.gov.au/components/input-fields-select-box",
|
|
79
|
+
},
|
|
80
|
+
tags: {
|
|
81
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=5990-97596&p=f&t=WmKMIp3MbkVrYkUf-0",
|
|
82
|
+
ds: "https://www.designsystem.qld.gov.au/components/tags",
|
|
83
|
+
},
|
|
84
|
+
videoPlayer: {
|
|
85
|
+
design: "https://www.figma.com/design/qKsxl3ogIlBp7dafgxXuCA/QGDS-UI-kit?node-id=13297-214065&p=f&t=WmKMIp3MbkVrYkUf-0",
|
|
86
|
+
ds: "https://www.designsystem.qld.gov.au/components",
|
|
89
87
|
},
|
|
90
88
|
};
|
package/.storybook/main.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/** @type { import('@storybook/html-
|
|
1
|
+
/** @type { import('@storybook/html-vite').StorybookConfig } */
|
|
2
|
+
|
|
2
3
|
const config = {
|
|
3
4
|
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
|
4
|
-
addons: ["@storybook/addon-
|
|
5
|
+
addons: ["@storybook/addon-a11y", "@storybook/addon-themes", "@storybook/addon-designs", "@storybook/addon-docs"],
|
|
5
6
|
framework: {
|
|
6
|
-
name: "@storybook/html-
|
|
7
|
+
name: "@storybook/html-vite",
|
|
7
8
|
options: {},
|
|
8
9
|
},
|
|
9
10
|
staticDirs: ["../dist/mysource_files/img", "./core-assets", "./assets"],
|
package/.storybook/preview.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "
|
|
3
|
-
import { INITIAL_VIEWPORTS } from "@storybook/addon-viewport";
|
|
1
|
+
import "./assets/index.js"; // Storybook assets import
|
|
2
|
+
import { INITIAL_VIEWPORTS } from "storybook/viewport";
|
|
4
3
|
import { viewports, themes, themeColours } from "./globals.js";
|
|
5
4
|
|
|
6
|
-
/** @type { import('@storybook/html').Preview } */
|
|
5
|
+
/** @type { import('@storybook/html-vite').Preview } */
|
|
7
6
|
const preview = {
|
|
8
7
|
parameters: {
|
|
9
8
|
controls: {
|
|
@@ -23,7 +22,7 @@ const preview = {
|
|
|
23
22
|
},
|
|
24
23
|
},
|
|
25
24
|
viewport: {
|
|
26
|
-
|
|
25
|
+
options: {
|
|
27
26
|
...viewports,
|
|
28
27
|
...INITIAL_VIEWPORTS,
|
|
29
28
|
},
|
|
@@ -34,29 +33,28 @@ const preview = {
|
|
|
34
33
|
},
|
|
35
34
|
},
|
|
36
35
|
backgrounds: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{
|
|
36
|
+
options: {
|
|
37
|
+
white: {
|
|
40
38
|
name: "White",
|
|
41
39
|
value: themeColours["white"],
|
|
42
40
|
},
|
|
43
|
-
{
|
|
41
|
+
light: {
|
|
44
42
|
name: "Light",
|
|
45
43
|
value: themeColours["light"],
|
|
46
44
|
},
|
|
47
|
-
{
|
|
45
|
+
light_alternate: {
|
|
48
46
|
name: "Light Alternate",
|
|
49
47
|
value: themeColours["light alt"],
|
|
50
48
|
},
|
|
51
|
-
{
|
|
49
|
+
dark: {
|
|
52
50
|
name: "Dark",
|
|
53
51
|
value: themeColours["dark"],
|
|
54
52
|
},
|
|
55
|
-
{
|
|
53
|
+
dark_alternate: {
|
|
56
54
|
name: "Dark Alternate",
|
|
57
55
|
value: themeColours["dark alt"],
|
|
58
56
|
},
|
|
59
|
-
|
|
57
|
+
},
|
|
60
58
|
},
|
|
61
59
|
},
|
|
62
60
|
args: {
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -558,4 +558,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
558
558
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
559
559
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
560
560
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
561
|
-
SOFTWARE.
|
|
561
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qhealth-design-system/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"licence": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -26,24 +26,18 @@
|
|
|
26
26
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
27
27
|
"@babel/preset-env": "^7.22.5",
|
|
28
28
|
"@babel/preset-react": "^7.22.5",
|
|
29
|
-
"@storybook/addon-a11y": "^
|
|
30
|
-
"@storybook/addon-designs": "^
|
|
31
|
-
"@storybook/addon-
|
|
32
|
-
"@storybook/addon-
|
|
33
|
-
"@storybook/
|
|
34
|
-
"@storybook/addon-viewport": "^8.6.12",
|
|
35
|
-
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
|
|
36
|
-
"@storybook/blocks": "^8.6.12",
|
|
37
|
-
"@storybook/html": "^8.6.12",
|
|
38
|
-
"@storybook/html-webpack5": "^8.6.12",
|
|
39
|
-
"@storybook/test": "^8.6.12",
|
|
29
|
+
"@storybook/addon-a11y": "^10.1.10",
|
|
30
|
+
"@storybook/addon-designs": "^11.1.0",
|
|
31
|
+
"@storybook/addon-docs": "^10.1.10",
|
|
32
|
+
"@storybook/addon-themes": "^10.1.10",
|
|
33
|
+
"@storybook/html-vite": "^10.1.10",
|
|
40
34
|
"autoprefixer": "^10.4.14",
|
|
41
|
-
"chromatic": "^
|
|
35
|
+
"chromatic": "^13.3.4",
|
|
42
36
|
"copy-webpack-plugin": "^11.0.0",
|
|
43
37
|
"core-js": "^3.31.0",
|
|
44
38
|
"css-loader": "^5.2.6",
|
|
45
39
|
"eslint": "^8.43.0",
|
|
46
|
-
"eslint-plugin-storybook": "^
|
|
40
|
+
"eslint-plugin-storybook": "^10.1.10",
|
|
47
41
|
"eslint-webpack-plugin": "^4.0.1",
|
|
48
42
|
"glob": "^7.2.0",
|
|
49
43
|
"handlebars": "^4.7.8",
|
|
@@ -56,7 +50,7 @@
|
|
|
56
50
|
"postcss-loader": "^7.3.3",
|
|
57
51
|
"sass": "^1.63.6",
|
|
58
52
|
"sass-loader": "^13.3.2",
|
|
59
|
-
"storybook": "^
|
|
53
|
+
"storybook": "^10.1.10",
|
|
60
54
|
"string-replace-loader": "^3.1.0",
|
|
61
55
|
"style-loader": "^3.3.3",
|
|
62
56
|
"stylelint": "^15.9.0",
|
|
@@ -65,6 +59,7 @@
|
|
|
65
59
|
"stylelint-webpack-plugin": "^4.1.1",
|
|
66
60
|
"terser-webpack-plugin": "^5.3.9",
|
|
67
61
|
"url-loader": "^4.1.1",
|
|
62
|
+
"vite": "^7.2.6",
|
|
68
63
|
"webpack": "^5.88.0",
|
|
69
64
|
"webpack-cli": "^5.1.4",
|
|
70
65
|
"webpack-dev-server": "^4.15.1"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Standard components
|
|
2
|
+
import initHeader from "./components/header/js/global.js";
|
|
3
|
+
import initInPageNavigation from "./components/in_page_navigation/js/global.js";
|
|
4
|
+
import initInternalNavigation from "./components/internal_navigation/js/global.js";
|
|
5
|
+
import initLeftHandNav from "./components/left_hand_navigation/js/global.js";
|
|
6
|
+
import initPromoPanel from "./components/promo_panel/js/global.js";
|
|
7
|
+
import initVideoPlayer from "./components/video_player/js/global.js";
|
|
8
|
+
|
|
9
|
+
// Global components
|
|
10
|
+
import initSelectBoxes from "./components/_global/js/select_boxes/global.js";
|
|
11
|
+
|
|
12
|
+
// Adding ES module initialisation for components
|
|
13
|
+
export default function initComponents() {
|
|
14
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
15
|
+
initHeader(document);
|
|
16
|
+
initInPageNavigation(document);
|
|
17
|
+
initInternalNavigation(document);
|
|
18
|
+
initLeftHandNav(document);
|
|
19
|
+
initPromoPanel(document);
|
|
20
|
+
initSelectBoxes(document);
|
|
21
|
+
initVideoPlayer(document);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
@@ -582,7 +582,7 @@ form {
|
|
|
582
582
|
|
|
583
583
|
> dt {
|
|
584
584
|
@include QLD-space(margin-top, 1.5unit);
|
|
585
|
-
font-weight:
|
|
585
|
+
font-weight: $QLD-font-weight-semibold;
|
|
586
586
|
|
|
587
587
|
&:first-of-type {
|
|
588
588
|
margin-top: 0;
|
|
@@ -769,7 +769,7 @@ form {
|
|
|
769
769
|
.qld__block-quote {
|
|
770
770
|
@include QLD-fontgrid(md, small);
|
|
771
771
|
color: var(--QLD-color-light__heading);
|
|
772
|
-
font-weight:
|
|
772
|
+
font-weight: $QLD-font-weight-semibold;
|
|
773
773
|
|
|
774
774
|
.qld__quote-source {
|
|
775
775
|
@include QLD-fontgrid(xs, small);
|
|
@@ -798,7 +798,7 @@ form {
|
|
|
798
798
|
|
|
799
799
|
.qld__caption {
|
|
800
800
|
@include QLD-fontgrid(xs);
|
|
801
|
-
font-weight:
|
|
801
|
+
font-weight: $QLD-font-weight-regular;
|
|
802
802
|
color: var(--QLD-color-light__text--lighter);
|
|
803
803
|
}
|
|
804
804
|
*:not([type="hidden"]) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.qld__cta-link,
|
|
6
6
|
a.qld__cta-link {
|
|
7
7
|
@include QLD-fontgrid(md);
|
|
8
|
-
font-weight:
|
|
8
|
+
font-weight: $QLD-font-weight-semibold;
|
|
9
9
|
color: var(--QLD-color-light__link);
|
|
10
10
|
z-index: 1;
|
|
11
11
|
|
|
@@ -44,7 +44,7 @@ a.qld__cta-link {
|
|
|
44
44
|
|
|
45
45
|
&:disabled,
|
|
46
46
|
&[disabled] {
|
|
47
|
-
font-weight:
|
|
47
|
+
font-weight: $QLD-font-weight-semibold;
|
|
48
48
|
&::after {
|
|
49
49
|
@include QLD-space(margin, 0 0.5unit 0 0.5unit);
|
|
50
50
|
}
|
|
@@ -4,51 +4,43 @@
|
|
|
4
4
|
|
|
5
5
|
.qld__body {
|
|
6
6
|
.qld__example {
|
|
7
|
-
@include QLD-space(margin-top, 2unit);
|
|
8
|
-
|
|
7
|
+
@include QLD-space(margin-top, 2unit);
|
|
8
|
+
|
|
9
9
|
@include QLD-media(lg) {
|
|
10
10
|
@include QLD-space(margin-top, 0.1875unit);
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
&__title {
|
|
14
14
|
background-color: var(--QLD-color-light__background--shade);
|
|
15
15
|
display: inline-block;
|
|
16
|
-
@include QLD-space(
|
|
17
|
-
border,
|
|
18
|
-
solid var(--QLD-color-light__border) 0.0625unit
|
|
19
|
-
);
|
|
16
|
+
@include QLD-space(border, solid var(--QLD-color-light__border) 0.0625unit);
|
|
20
17
|
@include QLD-space(padding, 0.375unit 0.5unit);
|
|
21
|
-
font-weight:
|
|
18
|
+
font-weight: $QLD-font-weight-regular;
|
|
22
19
|
}
|
|
23
|
-
|
|
20
|
+
|
|
24
21
|
&__iframe,
|
|
25
22
|
&__inline {
|
|
26
23
|
display: block;
|
|
27
24
|
width: 100%;
|
|
28
|
-
@include QLD-space(
|
|
29
|
-
border,
|
|
30
|
-
solid 0.0625unit var(--QLD-color-light__border--alt)
|
|
31
|
-
);
|
|
25
|
+
@include QLD-space(border, solid 0.0625unit var(--QLD-color-light__border--alt));
|
|
32
26
|
}
|
|
33
|
-
|
|
27
|
+
|
|
34
28
|
&__inline {
|
|
35
29
|
@include QLD-space(padding, 1unit);
|
|
36
30
|
|
|
37
|
-
.qld__body{
|
|
31
|
+
.qld__body {
|
|
38
32
|
margin-left: 0 !important;
|
|
39
33
|
margin-right: 0 !important;
|
|
40
34
|
}
|
|
41
35
|
}
|
|
42
|
-
|
|
36
|
+
|
|
43
37
|
&__html {
|
|
44
38
|
@include QLD-space(padding, 1unit 0);
|
|
45
39
|
}
|
|
46
40
|
}
|
|
47
|
-
|
|
41
|
+
|
|
48
42
|
* + .qld__example {
|
|
49
43
|
@include QLD-space(margin-top, 2unit);
|
|
50
44
|
@include QLD-space(margin-bottom, 2unit);
|
|
51
|
-
|
|
52
45
|
}
|
|
53
46
|
}
|
|
54
|
-
|
|
@@ -14,7 +14,7 @@ input[type="checkbox"],
|
|
|
14
14
|
vertical-align: bottom;
|
|
15
15
|
@include QLD-space(line-height, 2unit);
|
|
16
16
|
@include QLD-space(padding-left, 2.5unit);
|
|
17
|
-
font-weight:
|
|
17
|
+
font-weight: $QLD-font-weight-regular;
|
|
18
18
|
|
|
19
19
|
&:before {
|
|
20
20
|
@include QLD-space(width, 2unit);
|
|
@@ -176,7 +176,7 @@ input[type="radio"],
|
|
|
176
176
|
@extend .sr-only;
|
|
177
177
|
|
|
178
178
|
+ label {
|
|
179
|
-
font-weight:
|
|
179
|
+
font-weight: $QLD-font-weight-regular;
|
|
180
180
|
cursor: pointer;
|
|
181
181
|
position: relative;
|
|
182
182
|
@include QLD-space(line-height, 2unit);
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
legend.sq-form-section-title {
|
|
18
18
|
@include QLD-space(padding-top, 2unit);
|
|
19
19
|
@include QLD-fontgrid(lg, heading);
|
|
20
|
-
font-weight:
|
|
20
|
+
font-weight: $QLD-font-weight-semibold;
|
|
21
21
|
color: var(--QLD-color-light__heading);
|
|
22
22
|
|
|
23
23
|
+ * {
|
|
@@ -34,7 +34,7 @@ legend,
|
|
|
34
34
|
legend.sq-form-question-title {
|
|
35
35
|
margin-bottom: 0;
|
|
36
36
|
padding: 0;
|
|
37
|
-
font-weight:
|
|
37
|
+
font-weight: $QLD-font-weight-semibold;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
//Label
|
|
@@ -42,7 +42,7 @@ legend.sq-form-question-title {
|
|
|
42
42
|
label {
|
|
43
43
|
color: var(--QLD-color-light__text);
|
|
44
44
|
display: block;
|
|
45
|
-
font-weight:
|
|
45
|
+
font-weight: $QLD-font-weight-semibold;
|
|
46
46
|
line-height: 1.5rem;
|
|
47
47
|
|
|
48
48
|
@include QLD-media(lg) {
|
|
@@ -70,7 +70,7 @@ label {
|
|
|
70
70
|
font-size: 0.875rem;
|
|
71
71
|
display: inline-block;
|
|
72
72
|
margin-left: 0.25rem;
|
|
73
|
-
font-weight:
|
|
73
|
+
font-weight: $QLD-font-weight-regular;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
& + .qld__select,
|
|
@@ -283,7 +283,7 @@ span.qld__input--success {
|
|
|
283
283
|
p.qld__input--error,
|
|
284
284
|
span.qld__input--error p.sq-form-error {
|
|
285
285
|
font-family: $QLD-font;
|
|
286
|
-
font-weight:
|
|
286
|
+
font-weight: $QLD-font-weight-semibold;
|
|
287
287
|
@include QLD-fontgrid(sm, default);
|
|
288
288
|
color: $QLD-color-status__error;
|
|
289
289
|
display: block;
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
.qld__display-lg,
|
|
35
35
|
.qld__display-md,
|
|
36
36
|
.qld__display-sm,
|
|
37
|
-
.qld__display-xs{
|
|
37
|
+
.qld__display-xs {
|
|
38
38
|
font-family: $QLD-font;
|
|
39
|
-
font-weight:
|
|
39
|
+
font-weight: $QLD-font-weight-semibold;
|
|
40
40
|
margin: 0;
|
|
41
41
|
color: var(--QLD-color-light__heading);
|
|
42
42
|
}
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
.qld__display-lg,
|
|
64
64
|
.qld__display-md,
|
|
65
65
|
.qld__display-sm,
|
|
66
|
-
.qld__display-xs{
|
|
67
|
-
|
|
66
|
+
.qld__display-xs {
|
|
67
|
+
color: var(--QLD-color-dark__heading);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
* Also ref. https://github.com/govau/design-system-components/issues/282
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
h1{
|
|
78
|
+
h1 {
|
|
79
79
|
@include QLD-fontgrid(xl, heading);
|
|
80
80
|
|
|
81
81
|
@include QLD-media(lg) {
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
h2{
|
|
87
|
-
@include QLD-space(font-size, 1.75unit);
|
|
86
|
+
h2 {
|
|
87
|
+
@include QLD-space(font-size, 1.75unit);
|
|
88
88
|
@include QLD-space(line-height, 2.25unit);
|
|
89
89
|
|
|
90
90
|
@include QLD-media(lg) {
|
|
@@ -92,85 +92,84 @@
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
h3{
|
|
95
|
+
h3 {
|
|
96
96
|
@include QLD-fontgrid(lg, heading);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
h4{
|
|
99
|
+
h4 {
|
|
100
100
|
@include QLD-fontgrid(md, heading);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
h5{
|
|
103
|
+
h5 {
|
|
104
104
|
@include QLD-fontgrid(sm, heading);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
h6{
|
|
107
|
+
h6 {
|
|
108
108
|
@include QLD-fontgrid(xs, heading);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
.qld__display-xxxl{
|
|
111
|
+
.qld__display-xxxl {
|
|
112
112
|
font-size: $QLD-font-size-mobile-xxxl;
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
@include QLD-media(lg) {
|
|
115
115
|
font-size: $QLD-font-size-desktop-xxxl;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
|
|
119
|
-
.qld__display-xxl{
|
|
118
|
+
|
|
119
|
+
.qld__display-xxl {
|
|
120
120
|
font-size: $QLD-font-size-mobile-xxl;
|
|
121
|
-
|
|
121
|
+
|
|
122
122
|
@include QLD-media(lg) {
|
|
123
123
|
font-size: $QLD-font-size-desktop-xxl;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
.qld__display-xl{
|
|
126
|
+
|
|
127
|
+
.qld__display-xl {
|
|
128
128
|
font-size: $QLD-font-size-mobile-xl;
|
|
129
|
-
|
|
129
|
+
|
|
130
130
|
@include QLD-media(lg) {
|
|
131
131
|
font-size: $QLD-font-size-desktop-xl;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
.qld__display-lg{
|
|
134
|
+
|
|
135
|
+
.qld__display-lg {
|
|
136
136
|
font-size: $QLD-font-size-mobile-lg;
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
@include QLD-media(lg) {
|
|
139
139
|
font-size: $QLD-font-size-desktop-lg;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
.qld__display-md{
|
|
142
|
+
|
|
143
|
+
.qld__display-md {
|
|
144
144
|
font-size: $QLD-font-size-mobile-md;
|
|
145
|
-
|
|
145
|
+
|
|
146
146
|
@include QLD-media(lg) {
|
|
147
|
-
font-size: $QLD-font-size-desktop-md;
|
|
147
|
+
font-size: $QLD-font-size-desktop-md;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
.qld__display-sm{
|
|
150
|
+
|
|
151
|
+
.qld__display-sm {
|
|
152
152
|
font-size: $QLD-font-size-mobile-sm;
|
|
153
|
-
|
|
153
|
+
|
|
154
154
|
@include QLD-media(lg) {
|
|
155
155
|
font-size: $QLD-font-size-desktop-sm;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
.qld__display-xs{
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
158
|
+
|
|
159
|
+
.qld__display-xs {
|
|
160
|
+
font-size: $QLD-font-size-mobile-xs;
|
|
161
|
+
|
|
162
|
+
@include QLD-media(lg) {
|
|
163
|
+
font-size: $QLD-font-size-desktop-xs;
|
|
164
164
|
}
|
|
165
|
-
|
|
166
165
|
}
|
|
167
166
|
|
|
168
167
|
/**
|
|
169
168
|
* Default margin-top
|
|
170
169
|
*/
|
|
171
170
|
|
|
172
|
-
*:not([type="hidden"]){
|
|
173
|
-
+ .qld__display-xxxl{
|
|
171
|
+
*:not([type="hidden"]) {
|
|
172
|
+
+ .qld__display-xxxl {
|
|
174
173
|
@include QLD-space(margin-top, 2.5unit);
|
|
175
174
|
|
|
176
175
|
@include QLD-media(lg) {
|
|
@@ -187,7 +186,7 @@
|
|
|
187
186
|
}
|
|
188
187
|
|
|
189
188
|
+ h1,
|
|
190
|
-
+ .qld__display-xl{
|
|
189
|
+
+ .qld__display-xl {
|
|
191
190
|
@include QLD-space(margin-top, 2unit);
|
|
192
191
|
|
|
193
192
|
@include QLD-media(lg) {
|
|
@@ -196,7 +195,7 @@
|
|
|
196
195
|
}
|
|
197
196
|
|
|
198
197
|
+ .qld__display-lg,
|
|
199
|
-
+ h2{
|
|
198
|
+
+ h2 {
|
|
200
199
|
@include QLD-space(margin-top, 2unit);
|
|
201
200
|
|
|
202
201
|
@include QLD-media(lg) {
|
|
@@ -205,7 +204,7 @@
|
|
|
205
204
|
}
|
|
206
205
|
|
|
207
206
|
+ .qld__display-md,
|
|
208
|
-
+ h3{
|
|
207
|
+
+ h3 {
|
|
209
208
|
@include QLD-space(margin-top, 2unit);
|
|
210
209
|
|
|
211
210
|
@include QLD-media(lg) {
|
|
@@ -214,7 +213,7 @@
|
|
|
214
213
|
}
|
|
215
214
|
|
|
216
215
|
+ .qld__display-sm,
|
|
217
|
-
+ h4{
|
|
216
|
+
+ h4 {
|
|
218
217
|
@include QLD-space(margin-top, 1.25unit);
|
|
219
218
|
|
|
220
219
|
@include QLD-media(lg) {
|
|
@@ -224,7 +223,7 @@
|
|
|
224
223
|
|
|
225
224
|
+ .qld__display-xs,
|
|
226
225
|
+ h5,
|
|
227
|
-
+ h6{
|
|
226
|
+
+ h6 {
|
|
228
227
|
@include QLD-space(margin-top, 1.25unit);
|
|
229
228
|
|
|
230
229
|
@include QLD-media(lg) {
|
|
@@ -233,4 +232,3 @@
|
|
|
233
232
|
}
|
|
234
233
|
}
|
|
235
234
|
}
|
|
236
|
-
|