@iamproperty/components 3.6.0 → 3.7.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/assets/css/components/accordion.css.map +1 -1
- package/assets/css/components/admin-panel.css +1 -1
- package/assets/css/components/admin-panel.css.map +1 -1
- package/assets/css/components/card.css +1 -1
- package/assets/css/components/card.css.map +1 -1
- package/assets/css/components/dialog.css +1 -1
- package/assets/css/components/dialog.css.map +1 -1
- package/assets/css/components/forms.css.map +1 -1
- package/assets/css/components/lists.css +1 -1
- package/assets/css/components/lists.css.map +1 -1
- package/assets/css/components/table.css +1 -1
- package/assets/css/components/table.css.map +1 -1
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/bundle.js +2 -0
- package/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/card/card.component.js +2 -2
- package/assets/js/components/card/card.component.min.js +4 -4
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/table/table.component.js +11 -8
- package/assets/js/components/table/table.component.min.js +5 -5
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +2 -2
- package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
- package/assets/js/dynamic.js +3 -1
- package/assets/js/dynamic.min.js +2 -2
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/flat-components.js +2 -0
- package/assets/js/modules/dialogs.js +173 -0
- package/assets/js/modules/helpers.js +1 -89
- package/assets/js/modules/table.js +10 -8
- package/assets/js/modules/tabs.js +0 -2
- package/assets/js/scripts.bundle.js +24 -24
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/js/tests/table.spec.js +15 -0
- package/assets/sass/_functions/variables.scss +3 -28
- package/assets/sass/components/admin-panel.scss +0 -10
- package/assets/sass/components/card.scss +32 -25
- package/assets/sass/components/dialog.scss +332 -28
- package/assets/sass/components/lists.scss +16 -33
- package/assets/sass/components/table.scss +47 -41
- package/assets/sass/foundations/buttons.scss +9 -13
- package/assets/sass/foundations/icons.scss +14 -69
- package/assets/sass/foundations/reboot.scss +12 -4
- package/assets/sass/foundations/root.scss +9 -0
- package/assets/sass/helpers/max-height.scss +15 -0
- package/assets/ts/bundle.ts +2 -0
- package/assets/ts/components/card/README.md +2 -1
- package/assets/ts/components/card/card.component.ts +2 -2
- package/assets/ts/components/table/table.component.ts +12 -9
- package/assets/ts/dynamic.ts +3 -1
- package/assets/ts/flat-components.ts +2 -0
- package/assets/ts/html.d.ts +7 -1
- package/assets/ts/modules/dialogs.ts +237 -0
- package/assets/ts/modules/helpers.ts +1 -123
- package/assets/ts/modules/table.ts +14 -13
- package/assets/ts/modules/tabs.ts +0 -4
- package/assets/ts/tests/table.spec.ts +15 -0
- package/dist/components.es.js +982 -1003
- package/dist/components.umd.js +25 -21
- package/package.json +2 -3
- package/src/components/Card/Card.vue +2 -2
- package/src/components/Card/README.md +1 -1
- package/src/components/Nav/Nav.vue +1 -3
- package/src/index.js +0 -1
- package/assets/svg/icons.svg +0 -599
- package/src/foundations/Icon/Icon.spec.js +0 -24
- package/src/foundations/Icon/Icon.vue +0 -24
- package/src/foundations/Icon/README.md +0 -11
|
@@ -7,6 +7,9 @@ const basicTable = `<thead>
|
|
|
7
7
|
<th>Heading 1</th>
|
|
8
8
|
<th>Heading 2</th>
|
|
9
9
|
<th>Heading 3</th>
|
|
10
|
+
<th>Heading 4</th>
|
|
11
|
+
<th>Heading 5</th>
|
|
12
|
+
<th>Heading 6</th>
|
|
10
13
|
</tr>
|
|
11
14
|
</thead>
|
|
12
15
|
<tbody>
|
|
@@ -14,21 +17,33 @@ const basicTable = `<thead>
|
|
|
14
17
|
<td>Cell 1</td>
|
|
15
18
|
<td>Low</td>
|
|
16
19
|
<td>Cell 3</td>
|
|
20
|
+
<td>Cell 4</td>
|
|
21
|
+
<td>Cell 5</td>
|
|
22
|
+
<td>Cell 6</td>
|
|
17
23
|
</tr>
|
|
18
24
|
<tr>
|
|
19
25
|
<td>Cell 1</td>
|
|
20
26
|
<td>Low</td>
|
|
21
27
|
<td><a href="/link">View information</a></td>
|
|
28
|
+
<td>Cell 4</td>
|
|
29
|
+
<td>Cell 5</td>
|
|
30
|
+
<td>Cell 6</td>
|
|
22
31
|
</tr>
|
|
23
32
|
<tr>
|
|
24
33
|
<td>Different Cell 1</td>
|
|
25
34
|
<td>Medium</td>
|
|
26
35
|
<td><a href="/link">View information</a></td>
|
|
36
|
+
<td>Cell 4</td>
|
|
37
|
+
<td>Cell 5</td>
|
|
38
|
+
<td>Cell 6</td>
|
|
27
39
|
</tr>
|
|
28
40
|
<tr>
|
|
29
41
|
<td>Different Cell 1</td>
|
|
30
42
|
<td>High</td>
|
|
31
43
|
<td><a href="/link">View information</a></td>
|
|
44
|
+
<td>Cell 4</td>
|
|
45
|
+
<td>Cell 5</td>
|
|
46
|
+
<td>Cell 6</td>
|
|
32
47
|
</tr>
|
|
33
48
|
</tbody>`;
|
|
34
49
|
describe('addDataAttributes', () => {
|
|
@@ -109,6 +109,7 @@ $theme-colors: map-merge((
|
|
|
109
109
|
"info": $info,
|
|
110
110
|
"warning": $warning,
|
|
111
111
|
"success": $success,
|
|
112
|
+
"complete": #0F9D58,
|
|
112
113
|
"danger": $danger,
|
|
113
114
|
"dark": $dark,
|
|
114
115
|
"light": $light,
|
|
@@ -136,7 +137,7 @@ $theme-colors: map-merge((
|
|
|
136
137
|
@return var(--colour-#{$identifier});
|
|
137
138
|
}
|
|
138
139
|
|
|
139
|
-
$utilities-colors: $theme-colors
|
|
140
|
+
$utilities-colors: $theme-colors;
|
|
140
141
|
|
|
141
142
|
$utilities-text: map-merge(
|
|
142
143
|
$utilities-colors,
|
|
@@ -436,41 +437,15 @@ $card-cap-bg: transparent;
|
|
|
436
437
|
// #endregion card-variables
|
|
437
438
|
|
|
438
439
|
// #region Icons
|
|
439
|
-
$icon-blank: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path d='M17 13v6c0 0.276-0.111 0.525-0.293 0.707s-0.431 0.293-0.707 0.293h-11c-0.276 0-0.525-0.111-0.707-0.293s-0.293-0.431-0.293-0.707v-11c0-0.276 0.111-0.525 0.293-0.707s0.431-0.293 0.707-0.293h6c0.552 0 1-0.448 1-1s-0.448-1-1-1h-6c-0.828 0-1.58 0.337-2.121 0.879s-0.879 1.293-0.879 2.121v11c0 0.828 0.337 1.58 0.879 2.121s1.293 0.879 2.121 0.879h11c0.828 0 1.58-0.337 2.121-0.879s0.879-1.293 0.879-2.121v-6c0-0.552-0.448-1-1-1s-1 0.448-1 1zM10.707 14.707l9.293-9.293v3.586c0 0.552 0.448 1 1 1s1-0.448 1-1v-6c0-0.136-0.027-0.265-0.076-0.383s-0.121-0.228-0.216-0.323c-0.001-0.001-0.001-0.001-0.002-0.002-0.092-0.092-0.202-0.166-0.323-0.216-0.118-0.049-0.247-0.076-0.383-0.076h-6c-0.552 0-1 0.448-1 1s0.448 1 1 1h3.586l-9.293 9.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0z' stroke-width='4px'></path></svg>");
|
|
440
|
-
$icon-sort: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none'%3E%3Cpath opacity='.3' d='M51 1l25 23 24 22H1l25-22zm0 100l25-23 24-22H1l25 22z'/%3E%3C/svg%3E");
|
|
441
440
|
$icon-arrow: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><path d='M6.5,2l9,9-9,9' style='fill:none;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px'/></svg>");
|
|
442
441
|
$icon-close: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/></svg>");
|
|
443
|
-
$icon-tick: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16 0c-8.836 0-16 7.164-16 16s7.164 16 16 16 16-7.164 16-16-7.164-16-16-16zM13.52 23.383l-7.362-7.363 2.828-2.828 4.533 4.535 9.617-9.617 2.828 2.828-12.444 12.445z'/></svg>");
|
|
444
442
|
$icon-question: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'><path d='M14 21.5v-3c0-0.281-0.219-0.5-0.5-0.5h-3c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h3c0.281 0 0.5-0.219 0.5-0.5zM18 11c0-2.859-3-5-5.688-5-2.547 0-4.453 1.094-5.797 3.328-0.141 0.219-0.078 0.5 0.125 0.656l2.063 1.563c0.078 0.063 0.187 0.094 0.297 0.094 0.141 0 0.297-0.063 0.391-0.187 0.734-0.938 1.047-1.219 1.344-1.437 0.266-0.187 0.781-0.375 1.344-0.375 1 0 1.922 0.641 1.922 1.328 0 0.812-0.422 1.219-1.375 1.656-1.109 0.5-2.625 1.797-2.625 3.313v0.562c0 0.281 0.219 0.5 0.5 0.5h3c0.281 0 0.5-0.219 0.5-0.5v0c0-0.359 0.453-1.125 1.188-1.547 1.188-0.672 2.812-1.578 2.812-3.953zM24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z'/></svg>");
|
|
445
443
|
|
|
446
|
-
$icon-warning: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-13.3 0-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z'/></svg>");
|
|
447
|
-
|
|
448
|
-
$icon-filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'><path d='M0,28.5a.5.5,0,0,0,.5.5H2.55a2.5,2.5,0,0,0,4.9,0H15.5a.5.5,0,0,0,0-1H7.45a2.5,2.5,0,0,0-4.9,0H.5A.5.5,0,0,0,0,28.5Zm3.5,0A1.5,1.5,0,1,1,5,30,1.5,1.5,0,0,1,3.5,28.5Zm6-5A1.5,1.5,0,1,1,11,25a1.5,1.5,0,0,1-1.5-1.5ZM11,21a2.5,2.5,0,0,0-2.45,2H.5a.5.5,0,0,0,0,1H8.55a2.5,2.5,0,0,0,4.9,0H15.5a.5.5,0,0,0,0-1H13.45A2.5,2.5,0,0,0,11,21ZM6,20a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,6,20Zm2.45-2a2.5,2.5,0,0,0-4.9,0H.5a.5.5,0,0,0,0,1H3.55a2.5,2.5,0,0,0,4.9,0H15.5a.5.5,0,0,0,0-1Z' transform='translate(0 -16)'/></svg>");
|
|
449
|
-
|
|
450
|
-
$icon-low: url("data:image/svg+xml,<svg viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'><path d='M20 12.1429H2C1.42857 12.1429 1 11.5714 1 11C1 10.4286 1.42857 9.85715 2.14286 9.85715H20C20.5714 9.85715 21 10.4286 21 11C21 11.5714 20.5714 12.1429 20 12.1429Z' /></svg>");
|
|
451
|
-
|
|
452
|
-
$icon-medium: url("data:image/svg+xml,<svg viewBox='0 0 20 8' xmlns='http://www.w3.org/2000/svg'><path d='M19.0001 2.28572H1.14286C0.428573 2.28572 0 1.71429 0 1.14286C0 0.571431 0.428573 0 1.14286 0H19.0001C19.5715 0 20.0001 0.571431 20.0001 1.14286C20.0001 1.71429 19.5715 2.28572 19.0001 2.28572ZM20.0001 6.85716C20.0001 6.28573 19.5715 5.7143 18.8572 5.7143H1.14286C0.428573 5.7143 0 6.28573 0 6.85716C0 7.42859 0.428573 8.00002 1.14286 8.00002H19.0001C19.5715 8.00002 20.0001 7.42859 20.0001 6.85716Z'/></svg>");
|
|
453
|
-
|
|
454
|
-
$icon-high: url("data:image/svg+xml,<svg viewBox='0 0 20 22' xmlns='http://www.w3.org/2000/svg'><path d='M17.4648 11.7747L10 4.30985L2.53522 11.7747C1.97184 12.338 0.985918 12.338 0.422536 11.7747C-0.140845 11.2113 -0.140845 10.3662 0.422536 9.80282L8.87326 1.3521C9.43664 0.78872 10.2817 0.78872 10.8451 1.3521L19.4367 9.94367C20 10.5071 20 11.3521 19.4367 11.9155C19.0141 12.338 18.0282 12.338 17.4648 11.7747Z' /><path d='M17.4649 20.6479L10 13.0422L2.53524 20.5071C1.97186 21.0704 1.12679 21.0704 0.563405 20.5071C2.37375e-05 19.9437 2.37375e-05 19.0986 0.563405 18.5352L9.01413 10.0845C9.57751 9.52111 10.4226 9.52111 10.986 10.0845L19.5775 18.6761C20.1409 19.2394 20.1409 20.0845 19.5775 20.6479C19.0142 21.2113 18.0282 21.2113 17.4649 20.6479Z' /></svg>");
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
$icon-flag: url("data:image/svg+xml, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M15.578.242a1.287,1.287,0,0,0-1.3-.034,8.118,8.118,0,0,1-3.369.873A7.341,7.341,0,0,1,8.537.609,7.826,7.826,0,0,0,5.788.057,11.873,11.873,0,0,0,1,1.261V.548A.477.477,0,0,0,.5.076.477.477,0,0,0,0,.548v15a.5.5,0,0,0,1,0V12.269a11.324,11.324,0,0,1,4.65-1.217,11.982,11.982,0,0,1,3.1.5,12.171,12.171,0,0,0,3.1.5,9.326,9.326,0,0,0,3.472-.722,1,1,0,0,0,.637-.931L16,1.058A.943.943,0,0,0,15.578.242Zm-.587,10.149a8.588,8.588,0,0,1-3.134.653A11.219,11.219,0,0,1,9,10.579a12.948,12.948,0,0,0-3.35-.525,11.152,11.152,0,0,0-4.559,1.081L1,11.175V2.34l.875-.355a10.676,10.676,0,0,1,3.912-.928,7.465,7.465,0,0,1,2.444.476,8.261,8.261,0,0,0,2.678.519A9.943,9.943,0,0,0,15,1.048Z'/></svg>");
|
|
458
|
-
|
|
459
|
-
|
|
460
444
|
|
|
461
445
|
$vars: map-merge((
|
|
462
|
-
--icon-blank: #{escape-svg($icon-blank)},
|
|
463
|
-
--icon-sort: #{$icon-sort},
|
|
464
446
|
--icon-arrow: #{escape-svg($icon-arrow)},
|
|
465
447
|
--icon-close: #{escape-svg($icon-close)},
|
|
466
|
-
--icon-
|
|
467
|
-
--icon-question: #{escape-svg($icon-question)},
|
|
468
|
-
--icon-warning: #{escape-svg($icon-warning)},
|
|
469
|
-
--icon-filter: #{escape-svg($icon-filter)},
|
|
470
|
-
--icon-high: #{escape-svg($icon-high)},
|
|
471
|
-
--icon-medium: #{escape-svg($icon-medium)},
|
|
472
|
-
--icon-low: #{escape-svg($icon-low)},
|
|
473
|
-
--icon-flag: #{escape-svg($icon-flag)}
|
|
448
|
+
--icon-question: #{escape-svg($icon-question)}
|
|
474
449
|
), $vars);
|
|
475
450
|
// #endregion
|
|
476
451
|
|
|
@@ -68,17 +68,7 @@
|
|
|
68
68
|
margin: 0 calc(var(--padding-x) * -1) rem(24) calc(var(--padding-x) * -1);
|
|
69
69
|
|
|
70
70
|
&:before {
|
|
71
|
-
content: "";
|
|
72
71
|
top: 100%;
|
|
73
|
-
bottom: 0;
|
|
74
|
-
left: 0;
|
|
75
|
-
right: 0;
|
|
76
|
-
height: 1.5rem;
|
|
77
|
-
position: sticky;
|
|
78
|
-
display: block;
|
|
79
|
-
background: linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);
|
|
80
|
-
z-index: 2;
|
|
81
|
-
margin-bottom: -1.5rem;
|
|
82
72
|
}
|
|
83
73
|
}
|
|
84
74
|
|
|
@@ -2,15 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
// #region Default card
|
|
4
4
|
.card {
|
|
5
|
-
--
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
--left-padding: 1rem;
|
|
9
|
-
--icon-right: 1rem;
|
|
10
|
-
|
|
5
|
+
--card-icon-right: 1rem;
|
|
6
|
+
box-shadow: var(--card-box-shadow);
|
|
7
|
+
border-radius: var(--card-border-radius);
|
|
11
8
|
position: relative;
|
|
12
|
-
box-shadow: 2px 6px 12px rgba(0,0,0,0.2);
|
|
13
|
-
border-radius: rem(8);
|
|
14
9
|
font-weight: bold;
|
|
15
10
|
font-size: rem(18);
|
|
16
11
|
line-height: rem(24);
|
|
@@ -27,13 +22,13 @@
|
|
|
27
22
|
|
|
28
23
|
&.border-0 {
|
|
29
24
|
box-shadow: none;
|
|
30
|
-
--left-padding: 0rem;
|
|
25
|
+
--card-left-padding: 0rem;
|
|
31
26
|
outline-offset: 1px!important;
|
|
32
27
|
}
|
|
33
28
|
|
|
34
29
|
&__body {
|
|
35
30
|
position: relative;
|
|
36
|
-
padding: var(--top-padding) var(--right-padding) var(--bottom-padding) var(--left-padding);
|
|
31
|
+
padding: var(--card-top-padding) var(--card-right-padding) var(--card-bottom-padding) var(--card-left-padding);
|
|
37
32
|
z-index: -1;
|
|
38
33
|
}
|
|
39
34
|
|
|
@@ -41,8 +36,8 @@
|
|
|
41
36
|
&:after {
|
|
42
37
|
content: "";
|
|
43
38
|
position: absolute;
|
|
44
|
-
right: var(--icon-right);
|
|
45
|
-
bottom: var(--bottom-padding);
|
|
39
|
+
right: var(--card-icon-right);
|
|
40
|
+
bottom: var(--card-bottom-padding);
|
|
46
41
|
height: rem(24);
|
|
47
42
|
width: rem(24);
|
|
48
43
|
background: var(--colour-warning);
|
|
@@ -64,11 +59,16 @@
|
|
|
64
59
|
|
|
65
60
|
&:is(:hover,:focus,.hover) {
|
|
66
61
|
--icon-right: 0.5rem;
|
|
67
|
-
outline: 2px solid var(--colour-primary);
|
|
62
|
+
outline: 2px solid var(--colour, var(--colour-primary));
|
|
68
63
|
outline-offset: -2px;
|
|
69
64
|
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Update arrow cololur
|
|
68
|
+
&:not([class*="colour-"]):is(:hover,:focus,.hover) {
|
|
69
|
+
|
|
70
70
|
&:before {
|
|
71
|
-
background: var(--colour-primary);
|
|
71
|
+
background: var(--colour-primary-theme);
|
|
72
72
|
}
|
|
73
73
|
&:after {
|
|
74
74
|
background: #ffffff;
|
|
@@ -123,20 +123,13 @@
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
|
|
127
126
|
::slotted(i){
|
|
128
127
|
font-size: rem(24);
|
|
129
|
-
margin: -3px var(--icon-right) 0 0;
|
|
128
|
+
margin: -3px var(--card-icon-right) 0 0;
|
|
130
129
|
font-weight: 400;
|
|
131
130
|
vertical-align: middle;
|
|
132
131
|
}
|
|
133
132
|
|
|
134
|
-
.card--filter ::slotted(i) {
|
|
135
|
-
display: block !important;
|
|
136
|
-
height: rem(18)!important;
|
|
137
|
-
margin: 0 0 0.5rem 0!important;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
133
|
::slotted(span){
|
|
141
134
|
display: block;
|
|
142
135
|
font-weight: normal;
|
|
@@ -145,6 +138,14 @@
|
|
|
145
138
|
}
|
|
146
139
|
// #endregion
|
|
147
140
|
|
|
141
|
+
// #region border left
|
|
142
|
+
.card[class*="colour-"],
|
|
143
|
+
.card--filter {
|
|
144
|
+
|
|
145
|
+
border-left: rem(12) solid var(--colour,var(--colour-primary));
|
|
146
|
+
}
|
|
147
|
+
// #endregion
|
|
148
|
+
|
|
148
149
|
//#region Filter card
|
|
149
150
|
.card--filter {
|
|
150
151
|
--top-padding: #{rem(24)};
|
|
@@ -152,7 +153,7 @@
|
|
|
152
153
|
--bottom-padding: #{rem(24)};
|
|
153
154
|
--left-padding: 1rem;
|
|
154
155
|
|
|
155
|
-
border-left: rem(12) solid var(--colour,var(--colour-primary));
|
|
156
|
+
//border-left: rem(12) solid var(--colour,var(--colour-primary));
|
|
156
157
|
|
|
157
158
|
&:has(.card__total) .card__body{
|
|
158
159
|
|
|
@@ -202,13 +203,19 @@
|
|
|
202
203
|
padding-right: rem(16);
|
|
203
204
|
}
|
|
204
205
|
}
|
|
206
|
+
|
|
207
|
+
.card--filter ::slotted(i) {
|
|
208
|
+
display: block !important;
|
|
209
|
+
font-size: rem(18)!important;
|
|
210
|
+
margin: 0 0 0.5rem 0!important;
|
|
211
|
+
}
|
|
205
212
|
// #endregion
|
|
206
213
|
|
|
207
214
|
// #region card with an image
|
|
208
215
|
.card:has(.card__head) {
|
|
209
216
|
.card__head {
|
|
210
217
|
padding-bottom: 0;
|
|
211
|
-
padding-top:
|
|
218
|
+
padding-top: 27%;
|
|
212
219
|
position: relative;
|
|
213
220
|
overflow: hidden;
|
|
214
221
|
background: rgba(0,0,0,0.1);
|
|
@@ -236,7 +243,7 @@
|
|
|
236
243
|
.card__footer {
|
|
237
244
|
position: relative;
|
|
238
245
|
background: #ffffff;
|
|
239
|
-
padding: var(--top-padding) var(--right-padding) var(--bottom-padding) var(--left-padding);
|
|
246
|
+
padding: var(--card-top-padding) var(--card-right-padding) var(--card-bottom-padding) var(--card-left-padding);
|
|
240
247
|
z-index: -1;
|
|
241
248
|
display: block;
|
|
242
249
|
}
|
|
@@ -17,13 +17,37 @@ dialog[open] {
|
|
|
17
17
|
overscroll-behavior: contain;
|
|
18
18
|
background: var(--colour-canvas-2);
|
|
19
19
|
box-shadow: 0px 2px 9px rgba(0, 0, 0, 0.11);
|
|
20
|
-
border-radius: rem(
|
|
20
|
+
border-radius: rem(10);
|
|
21
21
|
padding: var(--dialog-padding);
|
|
22
22
|
outline: var(--contrast-outline-width, 0px) solid var(--colour-primary);
|
|
23
23
|
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
|
|
27
|
+
> *:last-child,
|
|
28
|
+
> .mh-lg > *:last-child{
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
> :is(p):last-child,
|
|
33
|
+
> .mh-lg > :is(p):last-child {
|
|
34
|
+
padding-bottom: 0;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
// #endregion
|
|
38
|
+
|
|
39
|
+
// #region modal styling
|
|
40
|
+
*:not(.dialog__wrapper) > dialog[open] {
|
|
41
|
+
overflow-y: hidden;
|
|
42
|
+
width: 90vw;
|
|
43
|
+
max-width: rem(324); // col-width*4
|
|
44
|
+
|
|
45
|
+
//height: 90vh;
|
|
46
|
+
max-height: min(90vh, #{rem(752)});
|
|
47
|
+
overscroll-behavior: contain;
|
|
48
|
+
|
|
24
49
|
// Close button
|
|
25
50
|
> form:first-child {
|
|
26
|
-
|
|
27
51
|
position: static;
|
|
28
52
|
}
|
|
29
53
|
|
|
@@ -64,58 +88,338 @@ dialog[open] {
|
|
|
64
88
|
& + * {
|
|
65
89
|
padding-right: var(--dialog-padding);
|
|
66
90
|
margin-right: rem(20);
|
|
91
|
+
display: block;
|
|
67
92
|
}
|
|
68
|
-
}
|
|
69
93
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
padding-bottom: 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
// #endregion
|
|
94
|
+
& + span:not(.h1,.h2,.h3,.h4,.h5,.h6) {
|
|
95
|
+
padding-bottom: rem(8);
|
|
96
|
+
line-height: rem(19);
|
|
97
|
+
}
|
|
78
98
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
99
|
+
& + span:not(.h1,.h2,.h3,.h4,.h5,.h6) + * {
|
|
100
|
+
padding-right: var(--dialog-padding);
|
|
101
|
+
margin-right: rem(20);
|
|
102
|
+
display: block;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (forced-colors: active) {
|
|
106
|
+
text-indent: 0;
|
|
107
|
+
width: fit-content;
|
|
108
|
+
|
|
109
|
+
&:after {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
85
114
|
|
|
86
115
|
@include media-breakpoint-up(sm) {
|
|
87
116
|
|
|
88
117
|
--dialog-padding: #{rem(32)};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
118
|
+
min-width: rem(335);
|
|
119
|
+
width: fit-content;
|
|
120
|
+
max-width: rem(686);
|
|
92
121
|
}
|
|
93
122
|
|
|
94
123
|
@include media-breakpoint-up(md) {
|
|
95
124
|
|
|
125
|
+
min-width: rem(454);
|
|
126
|
+
width: fit-content;
|
|
127
|
+
max-width: rem(736);
|
|
96
128
|
}
|
|
97
129
|
|
|
98
130
|
&:has(.youtube-embed){
|
|
99
131
|
padding: 0!important;
|
|
100
132
|
}
|
|
101
|
-
}
|
|
102
133
|
|
|
103
|
-
|
|
104
|
-
|
|
134
|
+
&.dialog--fullwidth {
|
|
135
|
+
max-width: rem(1112);
|
|
136
|
+
}
|
|
105
137
|
|
|
106
|
-
|
|
107
|
-
|
|
138
|
+
container-type: inline-size;
|
|
139
|
+
|
|
140
|
+
@container (width < 23.4375em) {
|
|
141
|
+
|
|
142
|
+
> .btn:not(.dialog__close),
|
|
143
|
+
> form > .btn:not(.dialog__close),
|
|
144
|
+
> .mh-lg > :is(form,div) > .btn:not(.dialog__close),
|
|
145
|
+
> .mh-lg > .btn:not(.dialog__close),
|
|
146
|
+
> form > fieldset > .btn:not(.dialog__close),
|
|
147
|
+
.btn--wrapper > .btn:not(.dialog__close) {
|
|
148
|
+
width: 100%;
|
|
149
|
+
max-width: 100%;
|
|
150
|
+
margin: 0;
|
|
151
|
+
display: block;
|
|
152
|
+
text-align: center;
|
|
153
|
+
|
|
154
|
+
&:not(:last-child) {
|
|
155
|
+
margin-bottom: 1rem!important;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
108
158
|
}
|
|
109
159
|
|
|
110
|
-
|
|
111
|
-
|
|
160
|
+
.mh-lg {
|
|
161
|
+
padding-right: calc(var(--dialog-padding) - 10px);
|
|
162
|
+
margin-right: calc((var(--dialog-padding) * -1) + 10px);
|
|
163
|
+
margin-bottom: calc(var(--dialog-padding) * -1);
|
|
164
|
+
padding-bottom: var(--dialog-padding);
|
|
165
|
+
//max-height: none!important;
|
|
166
|
+
|
|
167
|
+
&:before {
|
|
168
|
+
top: 100%;
|
|
169
|
+
height: var(--dialog-padding);
|
|
170
|
+
}
|
|
112
171
|
}
|
|
113
172
|
}
|
|
114
173
|
|
|
115
|
-
|
|
116
174
|
dialog::backdrop {
|
|
117
175
|
background: rgba(0, 0, 0, 0.3);
|
|
118
176
|
backdrop-filter: blur(4px);
|
|
177
|
+
overscroll-behavior: contain;
|
|
178
|
+
}
|
|
179
|
+
// #endregion
|
|
180
|
+
|
|
181
|
+
// #region Transactional
|
|
182
|
+
*:not(.dialog__wrapper) > dialog[open]:not(.dialog--multi):is(:has(button:last-child),:has(form:last-child > button:last-child)) {
|
|
183
|
+
|
|
184
|
+
text-align: center;
|
|
185
|
+
|
|
186
|
+
&:before {
|
|
187
|
+
content: "\f05a";
|
|
188
|
+
font-weight: 300;
|
|
189
|
+
-moz-osx-font-smoothing: grayscale;
|
|
190
|
+
-webkit-font-smoothing: antialiased;
|
|
191
|
+
display: var(--fa-display,inline-block);
|
|
192
|
+
font-style: normal;
|
|
193
|
+
font-variant: normal;
|
|
194
|
+
line-height: 1;
|
|
195
|
+
text-rendering: auto;
|
|
196
|
+
font-family: "Font Awesome 6 Pro";
|
|
197
|
+
font-size: 3rem;
|
|
198
|
+
@include media-breakpoint-up(md) {
|
|
199
|
+
font-size: 4rem;
|
|
200
|
+
}
|
|
201
|
+
margin-top: 0;
|
|
202
|
+
margin-bottom: rem(24);
|
|
203
|
+
line-height: 1;
|
|
204
|
+
color: var(--colour-heading);
|
|
205
|
+
clear: both;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
> form:first-child button,
|
|
209
|
+
> button:first-child {
|
|
210
|
+
display: none;
|
|
211
|
+
|
|
212
|
+
& + * {
|
|
213
|
+
padding-right: 0;
|
|
214
|
+
margin-right: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
& + span:not(.h1,.h2,.h3,.h4,.h5,.h6) + * {
|
|
218
|
+
padding-right: 0;
|
|
219
|
+
margin-right: 0;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
button {
|
|
224
|
+
margin-bottom: 0;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
// #endregion
|
|
228
|
+
|
|
229
|
+
// #region Multi
|
|
230
|
+
.js-enabled *:not(.dialog__wrapper) > dialog[open].dialog--multi {
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
padding-top: calc(var(--dialog-padding) * 4);
|
|
234
|
+
|
|
235
|
+
& > form:first-child button, & > button:first-child {
|
|
236
|
+
top: calc(var(--dialog-padding) * 4);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
fieldset:not(.active) {
|
|
240
|
+
display: none;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&:not(:has(fieldset.active)) fieldset:first-of-type{
|
|
244
|
+
display: flex;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
form > *:not(fieldset) {
|
|
248
|
+
display: none!important;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
form {
|
|
252
|
+
max-height: rem(370);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
:is(.h1,.h2,.h3,.h4,.h5,.h6){
|
|
256
|
+
padding-right: calc(var(--dialog-padding) * 3);
|
|
257
|
+
padding-bottom: var(--dialog-padding);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.steps {
|
|
261
|
+
width: 100%;
|
|
262
|
+
position: absolute;
|
|
263
|
+
top:0;
|
|
264
|
+
left: 0;
|
|
265
|
+
padding: var(--dialog-padding);
|
|
266
|
+
counter-reset: section;
|
|
267
|
+
display: flex;
|
|
268
|
+
justify-content: space-between;
|
|
269
|
+
|
|
270
|
+
&:before {
|
|
271
|
+
|
|
272
|
+
content: "";
|
|
273
|
+
position: absolute;
|
|
274
|
+
top: calc(50% - 1px);
|
|
275
|
+
left: var(--dialog-padding);
|
|
276
|
+
z-index: 2;
|
|
277
|
+
width: calc(100% - var(--dialog-padding) - var(--dialog-padding));
|
|
278
|
+
height: 2px;
|
|
279
|
+
background: currentColor;
|
|
280
|
+
z-index: 1;
|
|
281
|
+
opacity: 0.5;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
button {
|
|
285
|
+
|
|
286
|
+
position: relative;
|
|
287
|
+
background: transparent;
|
|
288
|
+
border: none;
|
|
289
|
+
color: inherit;
|
|
290
|
+
height: rem(24);
|
|
291
|
+
line-height: rem(24);
|
|
292
|
+
width: rem(24);
|
|
293
|
+
text-indent: 300%;
|
|
294
|
+
overflow: hidden;
|
|
295
|
+
z-index: 2;
|
|
296
|
+
background-color: var(--colour-primary);
|
|
297
|
+
outline: 0.5rem solid var(--colour-primary);
|
|
298
|
+
|
|
299
|
+
&:before {
|
|
300
|
+
position: absolute;
|
|
301
|
+
top: 0;
|
|
302
|
+
left: 0;
|
|
303
|
+
counter-increment: section;
|
|
304
|
+
content: counter(section);
|
|
305
|
+
|
|
306
|
+
border: 1px solid currentColor;
|
|
307
|
+
height: rem(24);
|
|
308
|
+
line-height: rem(24);
|
|
309
|
+
width: rem(24);
|
|
310
|
+
text-align: center;
|
|
311
|
+
display: inline-block;
|
|
312
|
+
text-indent: 0;
|
|
313
|
+
border-radius: 50%;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&:not(.active):before {
|
|
317
|
+
opacity: 0.5;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@include media-breakpoint-up(md) {
|
|
323
|
+
min-width: rem(924);
|
|
324
|
+
width: rem(924);
|
|
325
|
+
max-width: rem(924);
|
|
326
|
+
padding-top: var(--dialog-padding);
|
|
327
|
+
padding-left: calc(var(--dialog-padding) + #{rem(282)});
|
|
328
|
+
display: flex;
|
|
329
|
+
flex-direction: column;
|
|
330
|
+
//height: rem(478);
|
|
331
|
+
|
|
332
|
+
@media (min-height: #{rem(500)}) {
|
|
333
|
+
height: rem(478);
|
|
334
|
+
max-height: rem(478);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
& > form:first-child button, & > button:first-child {
|
|
339
|
+
top: var(--dialog-padding);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.steps {
|
|
343
|
+
width: rem(282);
|
|
344
|
+
height: 100%;
|
|
345
|
+
flex-direction: column;
|
|
346
|
+
justify-content: center;
|
|
347
|
+
|
|
348
|
+
&:before {
|
|
349
|
+
display: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
button {
|
|
353
|
+
margin-block: 0.5rem;
|
|
354
|
+
width: 100%;
|
|
355
|
+
text-indent: 0;
|
|
356
|
+
text-align: left;
|
|
357
|
+
padding-left: 2rem;
|
|
358
|
+
font-size: rem(18);
|
|
359
|
+
outline-width: 1px;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.btn--wrapper {
|
|
364
|
+
margin-top: auto;
|
|
365
|
+
text-align: right;
|
|
366
|
+
}
|
|
367
|
+
> form {
|
|
368
|
+
display: contents
|
|
369
|
+
}
|
|
370
|
+
fieldset {
|
|
371
|
+
display: flex;
|
|
372
|
+
flex-direction: column;
|
|
373
|
+
flex-grow: 1;
|
|
374
|
+
position: relative;
|
|
375
|
+
|
|
376
|
+
overflow: auto;
|
|
377
|
+
margin-bottom: calc(var(--dialog-padding) * -1);
|
|
378
|
+
padding-bottom: var(--dialog-padding);
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
padding-right: calc(var(--dialog-padding) - 10px);
|
|
382
|
+
margin-right: calc((var(--dialog-padding) * -1) + 10px);
|
|
383
|
+
|
|
384
|
+
&::before {
|
|
385
|
+
content: "";
|
|
386
|
+
top: 100%;
|
|
387
|
+
bottom: 0;
|
|
388
|
+
left: 0;
|
|
389
|
+
right: 0;
|
|
390
|
+
height: var(--dialog-padding);
|
|
391
|
+
min-height: var(--dialog-padding);
|
|
392
|
+
position: sticky;
|
|
393
|
+
display: block;
|
|
394
|
+
background: linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);
|
|
395
|
+
z-index: 2;
|
|
396
|
+
margin-bottom: calc(var(--dialog-padding) * -1);;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
// #endregion
|
|
402
|
+
|
|
403
|
+
// #region youTube video
|
|
404
|
+
*:not(.dialog__wrapper) > dialog[open]:has(.youtube-embed){
|
|
405
|
+
|
|
406
|
+
display: block;
|
|
407
|
+
|
|
408
|
+
.mh-lg, .mh-lg:before {
|
|
409
|
+
display: contents;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
@include media-breakpoint-up(sm) {
|
|
413
|
+
|
|
414
|
+
min-width: rem(686);
|
|
415
|
+
max-width: rem(686);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
@include media-breakpoint-up(md) {
|
|
419
|
+
|
|
420
|
+
min-width: rem(736);
|
|
421
|
+
max-width: rem(736);
|
|
422
|
+
}
|
|
119
423
|
}
|
|
120
424
|
// #endregion
|
|
121
425
|
|