@qld-gov-au/qgds-bootstrap5 1.0.13 → 1.0.14

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.
Files changed (65) hide show
  1. package/.storybook/main.js +1 -1
  2. package/.storybook/preview.js +8 -0
  3. package/README.md +96 -46
  4. package/dist/assets/css/qld.bootstrap.css +1 -1
  5. package/dist/assets/css/qld.bootstrap.css.map +3 -3
  6. package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
  7. package/dist/assets/js/handlebars.helpers.bundle.js.map +3 -3
  8. package/dist/assets/js/handlebars.helpers.js +4 -8
  9. package/dist/assets/js/qld.bootstrap.min.js +9 -9
  10. package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
  11. package/dist/components/bs5/breadcrumbs/breadcrumbs.hbs +1 -1
  12. package/dist/components/bs5/button/button.hbs +30 -9
  13. package/dist/components/bs5/header/header.hbs +15 -17
  14. package/dist/components/bs5/navbar/navbar.hbs +1 -1
  15. package/dist/components/bs5/quickexit/quickexit.hbs +28 -20
  16. package/dist/components/bs5/searchInput/searchInput.hbs +9 -3
  17. package/dist/components/handlebars.helpers.js +4 -8
  18. package/dist/components/handlebars.init.bundle.js +1 -1
  19. package/dist/components/handlebars.init.bundle.js.map +3 -3
  20. package/dist/sample-data/button/button.data.json +2 -1
  21. package/dist/sample-data/header/header.data.json +134 -75
  22. package/dist/sample-data/navbar/navbar.data.json +8 -8
  23. package/dist/sample-data/quickexit/quickexit.data.json +8 -1
  24. package/dist/sample-data/searchInput/searchInput.data.json +10 -1
  25. package/package.json +20 -19
  26. package/src/components/bs5/breadcrumbs/breadcrumb.functions.js +71 -32
  27. package/src/components/bs5/breadcrumbs/breadcrumbs.hbs +1 -1
  28. package/src/components/bs5/button/button.data.json +2 -1
  29. package/src/components/bs5/button/button.hbs +30 -9
  30. package/src/components/bs5/button/button.scss +87 -44
  31. package/src/components/bs5/button/button.stories.js +121 -27
  32. package/src/components/bs5/callout/callout.scss +1 -1
  33. package/src/components/bs5/header/_colours.scss +0 -52
  34. package/src/components/bs5/header/header.data.json +134 -75
  35. package/src/components/bs5/header/header.functions.js +1 -180
  36. package/src/components/bs5/header/header.hbs +15 -17
  37. package/src/components/bs5/header/header.scss +7 -156
  38. package/src/components/bs5/header/header.stories.js +10 -50
  39. package/src/components/bs5/modal/modal.scss +54 -35
  40. package/src/components/bs5/modal/modal.stories.js +2 -2
  41. package/src/components/bs5/navbar/_colours.scss +46 -82
  42. package/src/components/bs5/navbar/navbar.data.json +8 -8
  43. package/src/components/bs5/navbar/navbar.hbs +1 -1
  44. package/src/components/bs5/navbar/navbar.scss +15 -6
  45. package/src/components/bs5/quickexit/_colours.scss +28 -0
  46. package/src/components/bs5/quickexit/quickexit.data.json +8 -1
  47. package/src/components/bs5/quickexit/quickexit.hbs +28 -20
  48. package/src/components/bs5/quickexit/quickexit.scss +236 -156
  49. package/src/components/bs5/quickexit/quickexit.stories.js +35 -13
  50. package/src/components/bs5/searchInput/_colours.scss +63 -0
  51. package/src/components/bs5/searchInput/search.functions.js +170 -0
  52. package/src/components/bs5/searchInput/searchInput.data.json +10 -1
  53. package/src/components/bs5/searchInput/searchInput.hbs +9 -3
  54. package/src/components/bs5/searchInput/searchInput.scss +122 -21
  55. package/src/components/bs5/searchInput/searchInput.stories.js +1 -1
  56. package/src/components/bs5/tag/tag.scss +4 -2
  57. package/src/js/handlebars.helpers.js +4 -8
  58. package/src/main.js +24 -7
  59. package/src/main.scss +6 -3
  60. package/src/scss/qld-print.scss +365 -0
  61. package/src/scss/qld-variables.scss +87 -101
  62. package/src/components/common/header/Header.js +0 -11
  63. package/src/components/common/header/header.html +0 -259
  64. package/src/components/common/header/header.scss +0 -118
  65. /package/src/components/bs5/{header/_search.json → searchInput/search.json} +0 -0
@@ -96,42 +96,42 @@
96
96
  "navigation_items": [
97
97
  {
98
98
  "title": "Visiting someone in hospital",
99
- "description1": "One of the best motivations for quitting is having a clear reason in mind so you know exactly why you’re doing it in the first place.",
99
+ "description": "One of the best motivations for quitting is having a clear reason in mind so you know exactly why you’re doing it in the first place.",
100
100
  "target_url": "index.html"
101
101
  },
102
102
  {
103
103
  "title": "Aboriginal and Torres Strait Islander support",
104
- "description1": "Be encouraged and motivated by listening to stories of others who've quit smoking for life.",
104
+ "description": "Be encouraged and motivated by listening to stories of others who've quit smoking for life.",
105
105
  "target_url": "index.html"
106
106
  },
107
107
  {
108
108
  "title": "Your healthcare rights and responsibilities",
109
- "description1": "Vaping products are also known as e-cigarettes, e-cigars, vape pens or personal vapourisers. Vapes are harmful. The safest option is to not vape at all.",
109
+ "description": "Vaping products are also known as e-cigarettes, e-cigars, vape pens or personal vapourisers. Vapes are harmful. The safest option is to not vape at all.",
110
110
  "target_url": "index.html"
111
111
  },
112
112
  {
113
113
  "title": "Going to hospital",
114
- "description1": "There are plenty of ways to quit smoking cigarettes and vapes. Find one that suits you best and commit to it.",
114
+ "description": "There are plenty of ways to quit smoking cigarettes and vapes. Find one that suits you best and commit to it.",
115
115
  "target_url": "index.html"
116
116
  },
117
117
  {
118
118
  "title": "Interpreter services",
119
- "description1": "Whether you’re thinking about getting pregnant, you're pregnant or have recently given birth, quitting smoking or vaping is the best thing you can do for the health of you and your baby.",
119
+ "description": "Whether you’re thinking about getting pregnant, you're pregnant or have recently given birth, quitting smoking or vaping is the best thing you can do for the health of you and your baby.",
120
120
  "target_url": "index.html"
121
121
  },
122
122
  {
123
123
  "title": "Health costs, insurance and financial support",
124
- "description1": "Sign up for My Quit Journey to support you to stop smoking.",
124
+ "description": "Sign up for My Quit Journey to support you to stop smoking.",
125
125
  "target_url": "index.html"
126
126
  },
127
127
  {
128
128
  "title": "Leaving hospital",
129
- "description1": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
129
+ "description": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
130
130
  "target_url": "index.html"
131
131
  },
132
132
  {
133
133
  "title": "Your health record",
134
- "description1": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
134
+ "description": "Congratulations on taking the first step in your journey and deciding to make one of the best choices of your life.",
135
135
  "target_url": "index.html"
136
136
  }
137
137
  ]
@@ -94,7 +94,7 @@
94
94
  {{title}}
95
95
  </a>
96
96
 
97
- <button class="nav-link dropdown-toggle second-element" id="menuDropdown" role="button"
97
+ <button class="dropdown-toggle second-element" id="menuDropdown" role="button"
98
98
  aria-controls="" data-bs-toggle="dropdown" aria-expanded="false" aria-selected="false"
99
99
  aria-label="Toggle navigation">
100
100
  <svg class="toggle_icon">
@@ -82,8 +82,9 @@
82
82
 
83
83
 
84
84
  &-collapse {
85
+
85
86
  @include media-breakpoint-down(md) {
86
- width: 320px;
87
+ width: 20rem;
87
88
  }
88
89
 
89
90
  @include media-breakpoint-up(md) {
@@ -255,7 +256,7 @@
255
256
  &__overlay {
256
257
  -webkit-transition: opacity .25s ease-in-out;
257
258
  transition: opacity .25s ease-in-out;
258
- background-color: var(--#{$prefix}navbar-color-dark-alt-background__shade);
259
+ background-color: var(--#{$prefix}navbar-overlay);
259
260
  cursor: pointer;
260
261
  position: fixed;
261
262
  top: 0;
@@ -330,7 +331,7 @@
330
331
  color: var(--#{$prefix}navbar-link-color);
331
332
  font-size: 1.5rem;
332
333
  text-decoration: none;
333
- font-weight: 700;
334
+ font-weight: 600;
334
335
 
335
336
  &:hover,
336
337
  &:focus {
@@ -347,7 +348,7 @@
347
348
 
348
349
  .dropdown-menu__view_all {
349
350
  font-size: 1.25rem;
350
- font-weight: 700;
351
+ font-weight: 600;
351
352
  text-decoration: none;
352
353
  color: var(--#{$prefix}navbar-link-color);
353
354
 
@@ -454,7 +455,12 @@
454
455
  display: block;
455
456
  height: 2rem;
456
457
  width: 1.5rem;
457
- color: var(--#{$prefix}navbar-home-icon-color);
458
+ @include media-breakpoint-up(lg) {
459
+ color: var(--#{$prefix}navbar-home-icon-color);
460
+ }
461
+ @include media-breakpoint-down(lg) {
462
+ color: var(--#{$prefix}navbar-mobile-home-icon-color);
463
+ }
458
464
  }
459
465
  }
460
466
  .nav-link {
@@ -474,7 +480,7 @@
474
480
  &.show,
475
481
  &:hover {
476
482
  text-decoration: underline;
477
-
483
+ background-color: var(--#{$prefix}navbar-menuitem-hover);
478
484
  @include media-breakpoint-up(lg) {
479
485
  background-color: var(--#{$prefix}navbar-menuitem-hover);
480
486
  border-bottom: var(--#{$prefix}navbar-border-width) solid var(--#{$prefix}navbar-menuitem-hover-border);
@@ -492,6 +498,9 @@
492
498
  border-bottom: var(--#{$prefix}navbar-border-width) solid var(--#{$prefix}navbar-bg-color);
493
499
  margin-bottom: -0.5rem;
494
500
  }
501
+ @include media-breakpoint-down(lg) {
502
+ background-color: var(--#{$prefix}navbar-bg-color);
503
+ }
495
504
  }
496
505
  }
497
506
 
@@ -0,0 +1,28 @@
1
+ .qld-quick-exit {
2
+ --#{$prefix}quick-exit-bg: var(--#{$prefix}color-default-color-dark-background-default);
3
+ --#{$prefix}quick-exit-text-colour: var(--#{$prefix}color-default-color-dark-text-default);
4
+ --#{$prefix}quick-exit-link-text-colour: var(--#{$prefix}color-default-color-dark-link-default);
5
+ --#{$prefix}quick-exit-button-bg-colour: var(--#{$prefix}color-default-color-dark-action-secondary);
6
+ --#{$prefix}quick-exit-button-bg-colour-hover: var(--#{$prefix}color-default-color-dark-action-secondary-hover);
7
+ --#{$prefix}quick-exit-button-text-colour: var(--#{$prefix}color-default-color-dark-link-on-action);
8
+
9
+ --#{$prefix}quick-exit-tooltip-bg: var(--#{$prefix}core-default-color-neutral-white);
10
+ --#{$prefix}quick-exit-tooltip-btn-focus: rgba(255, 255, 255, 0.2);
11
+ --#{$prefix}quick-exit-tooltip-text: var(--#{$prefix}color-default-color-light-text-default);
12
+ --#{$prefix}quick-exit-tooltip-box-shadow: #8a8f91;
13
+
14
+ .dark &,
15
+ .dark-alt & {
16
+ --#{$prefix}quick-exit-bg: var(--#{$prefix}color-default-color-dark-background-alt);
17
+ --#{$prefix}quick-exit-text-colour: var(--#{$prefix}color-default-color-dark-text-default);
18
+ --#{$prefix}quick-exit-link-text-colour: var(--#{$prefix}color-default-color-dark-link-default);
19
+ --#{$prefix}quick-exit-button-bg-colour: var(--#{$prefix}color-default-color-dark-action-secondary);
20
+ --#{$prefix}quick-exit-button-bg-colour-hover: var(--#{$prefix}color-default-color-dark-action-secondary-hover);
21
+ --#{$prefix}quick-exit-button-text-colour: var(--#{$prefix}color-default-color-dark-link-on-action);
22
+
23
+ --#{$prefix}quick-exit-tooltip-bg: var(--#{$prefix}core-default-color-neutral-white);
24
+ --#{$prefix}quick-exit-tooltip-btn-focus: rgba(255, 255, 255, 0.2);
25
+ --#{$prefix}quick-exit-tooltip-text: var(--#{$prefix}color-default-color-light-text-default);
26
+ --#{$prefix}quick-exit-tooltip-box-shadow: #8a8f91;
27
+ }
28
+ }
@@ -1,3 +1,10 @@
1
1
  {
2
-
2
+ "hasIconInfo": true,
3
+ "hasTooltip": true,
4
+ "exitMessage": "Select 'Close<span class='very-small-mobile'> this site</span>'<span class='not-mobile'> or press 'ESC' on your keyboard</span> to go to google.com.au.",
5
+ "exitMessageLinkText": "View more tips to browse safely online.",
6
+ "quickExitButtonText": "Close<span class='very-small-mobile'> this site</span>",
7
+ "qldTooltipPrompt": "What is this?",
8
+ "browseSafelyOnlineURL": "https://www.qld.gov.au/help/tips-to-browse-safely-online",
9
+ "qldTooltipContent": "To leave this site quickly, click the 'Close this site' button or press 'ESC' on your keyboard. You will be taken to google.com.au."
3
10
  }
@@ -1,30 +1,38 @@
1
1
  <!-- QGDS Component: Loading Quick exit -->
2
2
 
3
- <div class="qld-quick-exit dark">
4
- <div class="qld-quick-exit-inner container-fluid">
3
+ <div class="qld-quick-exit"><!-- dark -->
4
+ <div class="qld-quick-exit-inner container-fluid{{#if hasIconInfo}} has-icon-info{{/if}}{{#if hasTooltip}} has-tooltip{{/if}}">
5
5
  <div class="qg-quick-exit__tips">
6
- <a href="https://www.qld.gov.au/help/tips-to-browse-safely-online" class="qld-quick-exit-tip-link">
6
+ {{#if hasIconInfo}}
7
7
  <span class="qld-icon icon-info"></span>
8
- <span class="qld-quick-exit-tip-title">Tips to browse safely online</span>
8
+ {{/if}}
9
+ <p class="qld-quick-exit-tip-title">{{{exitMessage}}}</p>
10
+ <a href="{{browseSafelyOnlineURL}}" class="qld-quick-exit-tip-link">
11
+ <span>{{exitMessageLinkText}}</span>
9
12
  </a>
10
13
  </div>
11
14
  <div class="qld-quick-exit-actions">
12
- <ul class="qld-quick-exit-list">
13
- <li class="qld-quick-exit-item qld-tooltip-container">
14
- <input type="checkbox" id="qld-quick-exit-input" class="qld-quick-exit-input sr-only">
15
- <label for="qld-quick-exit-input" class="qld-quick-exit-label qld-tooltip-parent">
16
- <span class="qld-tooltip-prompt">What is this?</span>
17
- <div class="qld-tooltip-wrapper">
18
- <div class="qld-tooltip">
19
- <span class="qld-tooltip-content">To leave this site quickly, click the 'Close this site' button or press 'ESC' on your keyboard. You will be taken to google.com.au.</span>
15
+ {{#if hasTooltip}}
16
+ <ul class="qld-quick-exit-list">
17
+ <li class="qld-quick-exit-item qld-tooltip-container">
18
+ <input type="checkbox" id="qld-quick-exit-input" class="qld-quick-exit-input sr-only" />
19
+ <label for="qld-quick-exit-input" class="qld-quick-exit-label qld-tooltip-parent">
20
+ <span class="qld-tooltip-prompt">{{qldTooltipPrompt}}</span>
21
+ <div class="qld-tooltip-wrapper">
22
+ <div class="qld-tooltip">
23
+ <span class="qld-tooltip-content">{{qldTooltipContent}}</span>
24
+ </div>
20
25
  </div>
21
- </div>
22
- </label>
23
- </li>
24
- <li class="qld-quick-exit-item">
25
- <button class="btn btn-secondary qld-quick-exit-button">Close this site</button>
26
- </li>
27
- </ul>
26
+ </label>
27
+ </li>
28
+
29
+ <li class="qld-quick-exit-item">
30
+ {{/if}}
31
+ <button class="btn btn-secondary qld-quick-exit-button">{{{quickExitButtonText}}}</button>
32
+ {{#if hasTooltip}}
33
+ </li>
34
+ </ul>
35
+ {{/if}}
28
36
  </div>
29
37
  </div>
30
- </div>
38
+ </div>
@@ -1,178 +1,258 @@
1
+ // ----------------------------------------------------------------------------------------------------------------------
2
+ // Header - palettes and second hand variables:
3
+ @import "./colours";
4
+
1
5
  /*
2
6
  * Mobile layout
3
7
  */
4
8
  .qld-quick-exit {
5
- background: $qld-dark-blue;
6
- color: $qld-white;
7
- height: 72px;
8
- left: 0;
9
- bottom: 0;
10
- padding: 1rem;
11
- position: fixed;
12
- width: 100%;
13
- z-index: 200;
14
-
15
- &-inner {
16
- display: -ms-flexbox;
17
- display: flex;
18
- align-items: center;
19
- height: 100%;
20
-
21
- .qg-quick-exit__tips {
22
- display: none;
23
- }
24
-
25
- .qld-quick-exit-input:checked+.qld-tooltip-parent .qld-tooltip-wrapper {
26
- display: block
27
- }
28
-
29
- .qld-quick-exit-input:checked+.qld-quick-exit-label {
30
- color: white;
31
- font-weight: 500
32
- }
33
-
34
- .qld-tooltip {
35
- width: 190px;
36
- }
37
-
38
- .qld-tooltip-parent {
39
- position: relative
40
- }
41
-
42
- .qld-tooltip-wrapper {
43
- background-color: $qld-white;
44
- bottom: 50px;
45
- box-shadow: 0 0 8px 0 #8a8f91;
46
- color: #000;
47
- display: none;
48
- font-weight: 500;
49
- padding: 25px;
50
- position: absolute
51
- }
52
-
53
- .qld-tooltip-wrapper:after {
54
- border-bottom: 14px solid $qld-white;
55
- border-left: 14px solid $qld-white;
56
- border-right: 14px solid transparent;
57
- border-top: 14px solid transparent;
58
- bottom: -14px;
59
- content: " ";
60
- position: absolute;
61
- left: 25px;
62
- transform: rotate(-45deg)
63
- }
64
-
65
- .qld-quick-exit-item.qld-tooltip-container {
66
- text-decoration: underline;
9
+ --#{$prefix}quick-exit-spacing: 1rem;
10
+ --#{$prefix}quick-exit-gaps: 25px;
11
+ --#{$prefix}quick-exit-text-outline: 2px;
12
+ --#{$prefix}quick-exit-text-outline-offset: 2px;
67
13
 
68
- &:focus,
69
- &:active,
70
- &:focus-within {
71
- outline-offset: 2px;
72
- box-shadow: none;
73
- outline: 2px solid var(--qld-focus-color);
74
- border-radius: 0px;
75
- }
76
- }
14
+ // --#{$prefix}quick-tooltip-text-outline-thickness: 0.5px;
15
+ // --#{$prefix}quick-tooltip-text-outline-offset: 5px;
77
16
 
78
- .qld-quick-exit-label,
79
- .qld-tooltip-prompt {
80
- font-weight: 500;
81
- text-decoration-line: underline;
82
- text-decoration-style: solid;
83
- text-underline-offset: 5px;
84
- text-decoration-thickness: 0.5px;
17
+ --#{$prefix}tooltip-width: 190px;
18
+ --#{$prefix}tooltip-arrow: 8px;
19
+ --#{$prefix}tooltip-desktop-top-offset: 40px;
20
+ --#{$prefix}icon-info-spacing: 40px;
21
+ --#{$prefix}quick-exit-actions-right-padding: 9px;
85
22
 
86
- &:hover {
87
- text-decoration-thickness: var(--qld-link-underline-thickness-hover);
88
- }
89
- }
23
+ background: var(--#{$prefix}quick-exit-bg);
24
+ color: var(--#{$prefix}quick-exit-text-colour);
25
+ inset-inline-start: 0;
26
+ inset-block-end: 0;
27
+ padding-block: 16px;
28
+ padding-inline: 24px;
29
+ position: fixed;
30
+ width: 100%;
31
+ z-index: 200;
90
32
 
33
+ &-inner {
34
+ display: -ms-flexbox;
35
+ display: flex;
36
+ align-items: center;
37
+ height: 100%;
91
38
 
92
- .qld-quick-exit-list {
93
- margin: 0;
94
- padding: 0;
95
- list-style: none;
96
- -ms-flex-align: center;
97
- align-items: center;
98
- display: -ms-flexbox;
99
- display: flex;
100
- height: 100%;
101
- -ms-flex-pack: distribute;
102
- justify-content: space-around
103
- }
104
-
105
- .qld-quick-exit-actions {
106
- -ms-flex-positive: 1;
107
- flex-grow: 1
108
- }
39
+ .qld-quick-exit-input:checked + .qld-tooltip-parent .qld-tooltip-wrapper {
40
+ display: block;
41
+ }
42
+ .qld-quick-exit-input:checked + .qld-quick-exit-label {
43
+ color: var(--#{$prefix}quick-exit-text-colour);
44
+ font-weight: 500;
45
+ }
46
+ .qld-tooltip {
47
+ width: var(--#{$prefix}tooltip-width);
48
+ }
49
+ .qld-tooltip-parent {
50
+ position: relative;
51
+ }
52
+ .qld-tooltip-wrapper {
53
+ background-color: var(--#{$prefix}quick-exit-tooltip-bg);
54
+ inset-block-end: calc(var(--#{$prefix}tooltip-desktop-top-offset) + 9px);
55
+ box-shadow: 0 0 8px 0 var(--#{$prefix}quick-exit-tooltip-box-shadow);
56
+ color: var(--#{$prefix}quick-exit-tooltip-text);
57
+ display: none;
58
+ font-weight: 500;
59
+ padding: var(--#{$prefix}quick-exit-gaps);
60
+ position: absolute;
61
+ }
62
+ .qld-tooltip-wrapper:after {
63
+ border-block-end: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
64
+ border-inline-start: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
65
+ border-inline-end: var(--#{$prefix}tooltip-arrow) solid transparent;
66
+ border-block-start: var(--#{$prefix}tooltip-arrow) solid transparent;
67
+ inset-block-end: calc(var(--#{$prefix}tooltip-arrow) * -1);
68
+ content: " ";
69
+ position: absolute;
70
+ inset-inline-start: var(--#{$prefix}quick-exit-gaps);
71
+ transform: rotate(-45deg);
72
+ }
73
+ .qld-quick-exit-item.qld-tooltip-container {
74
+ text-decoration: underline;
75
+ margin-inline-end: var(--#{$prefix}quick-exit-gaps);
76
+ &:focus,
77
+ &:active,
78
+ &:focus-within {
79
+ outline-offset: var(--#{$prefix}quick-exit-text-outline-offset);
80
+ box-shadow: none;
81
+ outline: var(--#{$prefix}quick-exit-text-outline) solid var(--#{$prefix}quick-exit-tooltip-btn-focus);
82
+ border-radius: 0;
83
+ }
84
+ }
85
+ .qld-quick-exit-label,
86
+ .qld-tooltip-prompt {
87
+ font-weight: 500;
88
+ text-decoration-line: underline;
89
+ text-decoration-style: solid;
90
+ text-underline-offset: calc(var(--#{$prefix}quick-exit-text-outline-offset) * 2);
91
+ &:hover {
92
+ text-decoration-thickness: var(--qld-link-underline-thickness-hover); //
93
+ }
94
+ }
95
+ .qld-tooltip-prompt {
96
+ text-wrap: nowrap;
97
+ }
98
+ .qld-quick-exit-list {
99
+ margin: 0;
100
+ padding: 0;
101
+ list-style: none;
102
+ -ms-flex-align: center;
103
+ align-items: center;
104
+ display: -ms-flexbox;
105
+ display: flex;
106
+ height: 100%;
107
+ -ms-flex-pack: distribute;
108
+ justify-content: space-around;
109
+ }
110
+ .qld-quick-exit-actions {
111
+ -ms-flex-positive: 1;
112
+ flex-grow: 0;
113
+ }
114
+ .qld-quick-exit-tip-title {
115
+ margin-block-end: 0;
116
+ }
117
+ .qld-quick-exit-button {
118
+ border-color: var(--#{$prefix}quick-exit-button-bg-colour);
119
+ background-color: var(--#{$prefix}quick-exit-button-bg-colour);
120
+ color: var(--#{$prefix}quick-exit-button-text-colour);
121
+ &:hover {
122
+ border-color: var(--#{$prefix}quick-exit-button-bg-colour-hover);
123
+ background-color: var(--#{$prefix}quick-exit-button-bg-colour-hover);
124
+ }
125
+ }
126
+ .qld-quick-exit-tip-link {
127
+ color: var(--#{$prefix}quick-exit-link-text-colour);
109
128
  }
129
+ .qg-quick-exit__tips {
130
+ flex-grow: 1;
131
+ }
132
+ &.has-icon-info .qg-quick-exit__tips {
133
+ display: block;
134
+ padding-inline-start: var(--#{$prefix}icon-info-spacing);
135
+ }
136
+ }
110
137
  }
111
138
 
112
-
113
139
  /*
114
140
  * Desktop layout
115
141
  */
116
142
  @media screen and (min-width: 992px) {
117
- .qld-quick-exit {
118
- -webkit-box-pack: justify;
119
- -ms-flex-pack: justify;
120
- justify-content: space-between;
121
- position: relative;
122
- position: -webkit-sticky;
123
- position: sticky;
124
- top: 0;
125
- z-index: 999;
126
-
127
- &-inner {
128
- justify-content: space-between;
129
-
130
- .qg-quick-exit__tips {
131
- display: block;
132
- padding-left: 40px
133
- }
134
-
135
- .qld-quick-exit-tip-link {
136
- -ms-flex-align: center;
137
- align-items: center;
138
- color: $qld-white;
139
- display: -ms-flexbox;
140
- display: flex;
141
- }
142
-
143
- .qld-quick-exit-actions {
144
- padding-right: 9px;
145
- -ms-flex-positive: 0;
146
- flex-grow: 0
147
- }
143
+ .qld-quick-exit {
144
+ -webkit-box-pack: justify;
145
+ -ms-flex-pack: justify;
146
+ justify-content: space-between;
147
+ position: relative;
148
+ position: -webkit-sticky;
149
+ position: sticky;
150
+ inset-block-start: 0;
151
+ z-index: 999;
152
+ padding-block: 20px; //
153
+ padding-inline: 40px; //
148
154
 
149
- .qld-quick-exit-item {
150
- margin-left: 25px;
151
- }
152
-
153
- .qld-tooltip-wrapper {
154
- bottom: auto;
155
- top: 40px;
156
- padding: 1rem;
157
- }
155
+ &-inner {
156
+ justify-content: space-between;
158
157
 
159
- .qld-tooltip-wrapper:after {
160
- border-bottom: 8px solid $qld-white;
161
- border-left: 8px solid $qld-white;
162
- border-right: 8px solid transparent;
163
- border-top: 8px solid transparent;
164
- bottom: auto;
165
- left: 25px;
166
- top: -7px;
167
- transform: rotate(135deg)
168
- }
169
- }
158
+ .qld-quick-exit-tip-link {
159
+ -ms-flex-align: center;
160
+ align-items: center;
161
+ color: $qld-white; //
162
+ display: -ms-flexbox;
163
+ display: flex;
164
+ }
165
+ .qld-quick-exit-actions {
166
+ padding-inline-end: var(--#{$prefix}quick-exit-actions-right-padding);
167
+ -ms-flex-positive: 0;
168
+ flex-grow: 0;
169
+ }
170
+ .qld-tooltip-wrapper {
171
+ inset-block-end: auto;
172
+ inset-block-start: var(--#{$prefix}tooltip-desktop-top-offset);
173
+ padding: var(--#{$prefix}quick-exit-spacing);
174
+ }
175
+ .qld-tooltip-wrapper:after {
176
+ border-block-end: var(--#{$prefix}tooltip-arrow) solid transparent;
177
+ border-inline-start: var(--#{$prefix}tooltip-arrow) solid transparent;
178
+ border-inline-end: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
179
+ border-block-start: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
180
+ inset-block-end: auto;
181
+ inset-inline-start: 25px; //
182
+ inset-block-start: calc(var(--#{$prefix}tooltip-arrow) * -1);
183
+ }
184
+ .not-mobile,
185
+ .qld-quick-exit-tip-link {
186
+ display: inline;
187
+ }
170
188
  }
189
+ }
171
190
  }
172
-
173
191
  .icon-info {
174
- background-repeat: no-repeat;
175
- margin-top: 4px;
176
- margin-right: 5px;
177
- background-image: url("data:image/svg+xml,<svg width='18' height='19' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M9 0.25C4.00781 0.25 0 4.29297 0 9.25C0 14.2422 4.00781 18.25 9 18.25C13.957 18.25 18 14.2422 18 9.25C18 4.29297 13.957 0.25 9 0.25ZM9 17.125C4.64062 17.125 1.125 13.6094 1.125 9.25C1.125 4.92578 4.64062 1.375 9 1.375C13.3242 1.375 16.875 4.92578 16.875 9.25C16.875 13.6094 13.3242 17.125 9 17.125ZM9 6.71875C9.45703 6.71875 9.84375 6.36719 9.84375 5.875C9.84375 5.41797 9.45703 5.03125 9 5.03125C8.50781 5.03125 8.15625 5.41797 8.15625 5.875C8.15625 6.36719 8.50781 6.71875 9 6.71875ZM10.6875 12.625H9.5625V8.6875C9.5625 8.40625 9.28125 8.125 9 8.125H7.875C7.55859 8.125 7.3125 8.40625 7.3125 8.6875C7.3125 9.00391 7.55859 9.25 7.875 9.25H8.4375V12.625H7.3125C6.99609 12.625 6.75 12.9062 6.75 13.1875C6.75 13.5039 6.99609 13.75 7.3125 13.75H10.6875C10.9688 13.75 11.25 13.5039 11.25 13.1875C11.25 12.9062 10.9688 12.625 10.6875 12.625Z' fill='white'/></svg>");
192
+ position: absolute;
193
+ inset-inline-start: calc(var(--#{$prefix}quick-exit-spacing) * 2.5);
194
+ background-repeat: no-repeat;
195
+ margin-block-start: 4px; //
196
+ background-image: url("data:image/svg+xml,<svg width='18' height='19' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M9 0.25C4.00781 0.25 0 4.29297 0 9.25C0 14.2422 4.00781 18.25 9 18.25C13.957 18.25 18 14.2422 18 9.25C18 4.29297 13.957 0.25 9 0.25ZM9 17.125C4.64062 17.125 1.125 13.6094 1.125 9.25C1.125 4.92578 4.64062 1.375 9 1.375C13.3242 1.375 16.875 4.92578 16.875 9.25C16.875 13.6094 13.3242 17.125 9 17.125ZM9 6.71875C9.45703 6.71875 9.84375 6.36719 9.84375 5.875C9.84375 5.41797 9.45703 5.03125 9 5.03125C8.50781 5.03125 8.15625 5.41797 8.15625 5.875C8.15625 6.36719 8.50781 6.71875 9 6.71875ZM10.6875 12.625H9.5625V8.6875C9.5625 8.40625 9.28125 8.125 9 8.125H7.875C7.55859 8.125 7.3125 8.40625 7.3125 8.6875C7.3125 9.00391 7.55859 9.25 7.875 9.25H8.4375V12.625H7.3125C6.99609 12.625 6.75 12.9062 6.75 13.1875C6.75 13.5039 6.99609 13.75 7.3125 13.75H10.6875C10.9688 13.75 11.25 13.5039 11.25 13.1875C11.25 12.9062 10.9688 12.625 10.6875 12.625Z' fill='white'/></svg>");
197
+ }
198
+ .qld-quick-exit-inner {
199
+ padding: 0;
200
+ }
201
+ .qld-quick-exit-inner.has-tooltip {
202
+ .qg-quick-exit__tips {
203
+ padding-inline-start: 0;
204
+ }
205
+ @media screen and (max-width: 925px) {
206
+ .not-mobile {
207
+ display: none;
208
+ }
209
+ }
210
+ @media screen and (max-width: 520px) {
211
+ .very-small-mobile {
212
+ display: none;
213
+ }
214
+ }
215
+ }
216
+ .qld-quick-exit-inner.has-icon-info {
217
+ .qg-quick-exit__tips {
218
+ padding-inline-start: var(--#{$prefix}icon-info-spacing);
219
+ }
220
+ }
221
+ .qld-quick-exit-inner.has-icon-info.has-tooltip {
222
+ @media screen and (max-width: 1020px) {
223
+ .icon-info {
224
+ display: none;
225
+ }
226
+ .qg-quick-exit__tips {
227
+ padding-inline-start: 0;
228
+ }
229
+ }
230
+ @media screen and (max-width: 925px) {
231
+ .not-mobile {
232
+ display: none;
233
+ }
234
+ }
235
+ @media screen and (max-width: 520px) {
236
+ .very-small-mobile {
237
+ display: none;
238
+ }
239
+ }
240
+ }
241
+
242
+ @media screen and (max-width: 850px) {
243
+ .not-mobile,
244
+ .qld-quick-exit-tip-link {
245
+ display: none;
246
+ }
247
+ }
248
+
249
+ ////////////////////////////////////////////////////////////////////////////////////
250
+ /// This is only for Responsive Design and keeping important info available to view
251
+ @media screen and (max-width: 365px) {
252
+ .qld-quick-exit-button {
253
+ padding-inline: 10px; //
254
+ }
255
+ .very-small-mobile {
256
+ display: none;
257
+ }
178
258
  }