@iamproperty/components 2.6.3 → 2.7.2
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/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/error.min.css +1 -0
- package/assets/css/error.min.css.map +1 -0
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/favicons/android-chrome-512x512-maskable.png +0 -0
- package/assets/js/modules/form.js +110 -0
- package/assets/js/modules/table.js +16 -8
- package/assets/js/scripts.bundle.js +85 -5
- 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/sass/_components.scss +14 -37
- package/assets/sass/_corefiles.scss +26 -43
- package/assets/sass/_forms.scss +10 -0
- package/assets/sass/_func.scss +6 -4
- package/assets/sass/_functions/functions.scss +54 -8
- package/assets/sass/_functions/mixins.scss +70 -18
- package/assets/sass/_functions/utilities.scss +13 -0
- package/assets/sass/_functions/variables.scss +82 -41
- package/assets/sass/_print.scss +2 -0
- package/assets/sass/components/accordion.scss +6 -4
- package/assets/sass/components/alert.scss +5 -3
- package/assets/sass/components/cardDeck.scss +1 -0
- package/assets/sass/components/carousel.scss +10 -40
- package/assets/sass/components/charts.scss +18 -11
- package/assets/sass/components/drawer.scss +5 -3
- package/assets/sass/components/header.scss +8 -1
- package/assets/sass/components/modal.scss +8 -5
- package/assets/sass/components/nav.scss +222 -26
- package/assets/sass/components/property-searchbar.scss +5 -0
- package/assets/sass/components/snapshot.scss +2 -0
- package/assets/sass/components/stepper.scss +5 -3
- package/assets/sass/components/tabs.scss +30 -2
- package/assets/sass/components/testimonial.scss +2 -0
- package/assets/sass/components/timeline.scss +5 -2
- package/assets/sass/core.scss +4 -4
- package/assets/sass/elements/buttons.scss +41 -88
- package/assets/sass/{components → elements}/card.scss +9 -0
- package/assets/sass/elements/container.scss +18 -15
- package/assets/sass/elements/forms.scss +66 -0
- package/assets/sass/elements/links.scss +2 -0
- package/assets/sass/elements/lists.scss +66 -2
- package/assets/sass/elements/panel.scss +162 -0
- package/assets/sass/elements/tables.scss +34 -0
- package/assets/sass/elements/tooltips.scss +33 -19
- package/assets/sass/elements/type.scss +44 -21
- package/assets/sass/email.scss +66 -0
- package/assets/sass/error.scss +5 -0
- package/assets/sass/foundations/brand.scss +6 -8
- package/assets/sass/foundations/circles.scss +2 -0
- package/assets/sass/foundations/icons.scss +3 -2
- package/assets/sass/foundations/media.scss +7 -3
- package/assets/sass/foundations/reboot.scss +12 -6
- package/assets/sass/foundations/root.scss +76 -18
- package/assets/sass/main.scss +5 -5
- package/dist/components.common.js +384 -131
- package/dist/components.common.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/components.umd.js +384 -131
- package/dist/components.umd.js.map +1 -1
- package/dist/components.umd.min.js +1 -1
- package/dist/components.umd.min.js.map +1 -1
- package/package.json +6 -1
- package/src/components/Accordion/Accordion.vue +0 -2
- package/src/components/Alert/Alert.vue +1 -2
- package/src/components/CardDeck/CardDeck.vue +1 -2
- package/src/components/Carousel/Carousel.vue +1 -2
- package/src/components/Chart/Chart.vue +0 -1
- package/src/components/Drawer/Drawer.vue +0 -1
- package/src/components/Header/Header.vue +0 -1
- package/src/components/Modal/Modal.vue +0 -1
- package/src/components/Nav/Nav.vue +55 -7
- package/src/components/NoteFeed/NoteFeed.vue +79 -0
- package/src/components/NoteFeed/README.md +16 -0
- package/src/components/PropertySearchbar/PropertySearchbar.vue +0 -2
- package/src/components/Snapshot/Snapshot.vue +0 -1
- package/src/components/Stepper/Stepper.vue +0 -1
- package/src/components/Tabs/Tabs.vue +0 -1
- package/src/components/Testimonial/Testimonial.vue +0 -1
- package/src/components/Timeline/Timeline.vue +0 -1
- package/src/{components → elements}/Card/Card.vue +1 -3
- package/src/{components → elements}/Card/README.md +0 -0
- package/src/elements/FileUploads/FileUploads.vue +48 -0
- package/src/elements/FileUploads/README.md +24 -0
- package/src/elements/Input/Input.vue +33 -1
- package/src/elements/Input/README.md +1 -0
- package/src/index.js +3 -1
|
@@ -1,11 +1,20 @@
|
|
|
1
|
+
@import "../../../node_modules/bootstrap/scss/mixins";
|
|
2
|
+
|
|
1
3
|
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
|
4
|
+
|
|
2
5
|
$min: breakpoint-min($name, $breakpoints);
|
|
3
6
|
@if $min {
|
|
4
7
|
@media screen and (min-width: $min) {
|
|
5
8
|
@content;
|
|
6
9
|
}
|
|
7
|
-
}
|
|
10
|
+
}
|
|
11
|
+
@else if $name =='xs' {
|
|
12
|
+
@content;
|
|
13
|
+
}
|
|
14
|
+
@else {
|
|
15
|
+
@if $mobileOnly != "true" {
|
|
8
16
|
@content;
|
|
17
|
+
}
|
|
9
18
|
}
|
|
10
19
|
}
|
|
11
20
|
|
|
@@ -24,16 +33,11 @@
|
|
|
24
33
|
// Used to make it possible to use css properties but still support IE11
|
|
25
34
|
@mixin var($property, $varName, $important:"", $compatible:$compatible) {
|
|
26
35
|
|
|
27
|
-
@if $compatible ==
|
|
28
|
-
#{$property}: map-get($vars, $varName) #{$important};
|
|
29
|
-
}
|
|
30
|
-
@else if $compatible == 'fallback' {
|
|
31
|
-
|
|
36
|
+
@if $compatible == "true" {
|
|
32
37
|
#{$property}: map-get($vars, $varName) #{$important};
|
|
33
|
-
#{$property}: var(#{$varName}) #{$important};
|
|
34
38
|
}
|
|
35
39
|
@else {
|
|
36
|
-
|
|
40
|
+
#{$property}: var(#{$varName}) #{$important};
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -43,19 +47,11 @@
|
|
|
43
47
|
ol,
|
|
44
48
|
dd,
|
|
45
49
|
.body,
|
|
46
|
-
td {
|
|
50
|
+
table:not(.table--email) td {
|
|
47
51
|
@content;
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
@mixin invert-colours(){
|
|
52
|
-
[class*="bg-"].bg-dark:not(.prevent-invert) &,
|
|
53
|
-
[class*="bg-"].bg-danger:not(.prevent-invert) &,
|
|
54
|
-
[class*="bg-"].bg-primary:not(.prevent-invert) &,
|
|
55
|
-
.invert-colours & {
|
|
56
|
-
@content;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
55
|
|
|
60
56
|
@mixin headers($includeClasses: 'false'){
|
|
61
57
|
h1,
|
|
@@ -100,7 +96,7 @@
|
|
|
100
96
|
|
|
101
97
|
$found: false;
|
|
102
98
|
|
|
103
|
-
@if $compatible ==
|
|
99
|
+
@if $compatible == "true" {
|
|
104
100
|
font-size: $value;
|
|
105
101
|
}
|
|
106
102
|
@else {
|
|
@@ -116,4 +112,60 @@
|
|
|
116
112
|
}
|
|
117
113
|
}
|
|
118
114
|
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@mixin is($selector, $before: '', $after: '' ,$compatible:$compatible){
|
|
118
|
+
|
|
119
|
+
@if $compatible == "true" {
|
|
120
|
+
$split-values: str-split($selector, ",");
|
|
121
|
+
@each $value in $split-values {
|
|
122
|
+
|
|
123
|
+
#{$before}#{$value}#{$after} {
|
|
124
|
+
@content;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@else {
|
|
129
|
+
#{$before}:is(#{$selector})#{$after} {
|
|
130
|
+
@content;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@mixin reset-colours($compatible:$compatible) {
|
|
136
|
+
|
|
137
|
+
--colour-body: var(--colour-body-theme);
|
|
138
|
+
--colour-heading: var(--colour-primary);
|
|
139
|
+
--colour-link: var(--colour-link-theme);
|
|
140
|
+
--colour-hover: var(--colour-hover-theme);
|
|
141
|
+
--colour-active: var(--colour-active-theme);
|
|
142
|
+
//--colour-underline: var(--colour-underline);
|
|
143
|
+
--colour-border: var(--colour-border-theme);
|
|
144
|
+
--colour-brand: var(--colour-primary);
|
|
145
|
+
|
|
146
|
+
--btn-bg: var(--colour-warning);
|
|
147
|
+
--btn-text: var(--colour-primary);
|
|
148
|
+
--btn-hover-text: var(--colour-primary);
|
|
149
|
+
--btn-tertiary-bg: var(--colour-primary);
|
|
150
|
+
--btn-tertiary-hover-text: white;
|
|
151
|
+
|
|
152
|
+
.text-primary {
|
|
153
|
+
color: var(--colour-primary)!important;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@mixin invert-colours($compatible:$compatible) {
|
|
158
|
+
|
|
159
|
+
--colour-body: white;
|
|
160
|
+
--colour-heading: white;
|
|
161
|
+
--colour-link: white;
|
|
162
|
+
--colour-hover: white;
|
|
163
|
+
--colour-border: white;
|
|
164
|
+
--colour-brand: white;
|
|
165
|
+
|
|
166
|
+
--btn-bg: white;
|
|
167
|
+
--btn-text: var(--colour-primary);
|
|
168
|
+
--btn-hover-text: var(--colour-heading);
|
|
169
|
+
--btn-tertiary-bg: white;
|
|
170
|
+
--btn-tertiary-hover-text: var(--colour-primary);
|
|
119
171
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "functions" as *;
|
|
2
|
+
|
|
3
|
+
@import "../../../node_modules/bootstrap/scss/utilities";
|
|
4
|
+
|
|
1
5
|
// #region Sizing
|
|
2
6
|
/* Enhance the max width utility to include fit-content which can come in handy for flex-box based layouts. */
|
|
3
7
|
$utilities: map-merge(
|
|
@@ -11,6 +15,15 @@ $utilities: map-merge(
|
|
|
11
15
|
100: 100%,
|
|
12
16
|
fit-content: fit-content
|
|
13
17
|
)
|
|
18
|
+
),
|
|
19
|
+
"min-width": (
|
|
20
|
+
responsive: true,
|
|
21
|
+
property: min-width,
|
|
22
|
+
class: min,
|
|
23
|
+
values: (
|
|
24
|
+
100: 100%,
|
|
25
|
+
fit-content: fit-content
|
|
26
|
+
)
|
|
14
27
|
)
|
|
15
28
|
)
|
|
16
29
|
);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
$vars: ();
|
|
3
|
-
$varsMD: ();
|
|
1
|
+
@import "../../../node_modules/bootstrap/scss/_variables.scss";
|
|
4
2
|
|
|
5
3
|
// #region Grid Breakpoints, layouts
|
|
6
4
|
$grid-breakpoints: (
|
|
@@ -79,49 +77,63 @@ $theme-colors: map-merge((
|
|
|
79
77
|
"warning": $warning,
|
|
80
78
|
"danger": $danger,
|
|
81
79
|
"light": $light,
|
|
82
|
-
"dark": $dark
|
|
80
|
+
"dark": $dark,
|
|
81
|
+
"admin": #f0f0f0
|
|
83
82
|
), $theme-colors);
|
|
84
83
|
|
|
85
84
|
|
|
86
85
|
$theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
|
|
87
86
|
|
|
88
|
-
@each $color, $value in $theme-colors-rgb {
|
|
89
87
|
|
|
90
|
-
$vars: map-merge((
|
|
91
|
-
--colour-#{$color}-rgb: #{$value}
|
|
92
|
-
), $vars);
|
|
93
|
-
}
|
|
94
88
|
@each $color, $value in $theme-colors-rgb {
|
|
95
89
|
|
|
96
90
|
$vars: map-merge((
|
|
97
|
-
--colour-#{$color}: rgba(
|
|
98
|
-
), $vars);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@each $color, $value in $theme-colors-rgb {
|
|
102
|
-
|
|
103
|
-
$vars: map-merge((
|
|
104
|
-
--colour-#{$color}-theme: rgba(var(--colour-#{$color}-rgb),var(--alpha,1))
|
|
91
|
+
--colour-#{$color}: rgba($value,var(--alpha, 1))
|
|
105
92
|
), $vars);
|
|
106
93
|
}
|
|
107
94
|
|
|
108
95
|
// RGB Theme colours
|
|
109
96
|
@function show-css-var($identifier) {
|
|
110
|
-
|
|
97
|
+
|
|
98
|
+
@if $compatible == "true" {
|
|
99
|
+
@return #{map-get($theme-colors, #{$identifier})};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@return var(--colour-#{$identifier});
|
|
111
103
|
}
|
|
112
104
|
@function show-css-var-text($identifier) {
|
|
113
|
-
|
|
105
|
+
|
|
106
|
+
@if $compatible == "true" {
|
|
107
|
+
@return #{map-get($theme-colors, #{$identifier})};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@return var(--colour-#{$identifier});
|
|
114
111
|
}
|
|
112
|
+
|
|
113
|
+
$utilities-colors: $theme-colors-rgb;
|
|
114
|
+
|
|
115
|
+
$utilities-colors: map-merge(
|
|
116
|
+
$utilities-colors,
|
|
117
|
+
(
|
|
118
|
+
"black": to-rgb($black),
|
|
119
|
+
"white": to-rgb($white),
|
|
120
|
+
"body": to-rgb($body-color)
|
|
121
|
+
)
|
|
122
|
+
);
|
|
123
|
+
|
|
115
124
|
$utilities-bg-colors: map-loop($utilities-colors, show-css-var, "$key");
|
|
116
|
-
$utilities-text-colors: map-loop($utilities-
|
|
125
|
+
$utilities-text-colors: map-loop($utilities-text, show-css-var-text, "$key");
|
|
117
126
|
|
|
118
127
|
|
|
119
128
|
|
|
120
129
|
// Colours that we want setting but not used for Bootstraps mixins, i.e. .text-primary, .bg-muted
|
|
121
130
|
$non-theme-colors: ();
|
|
122
131
|
$non-theme-colors: map-merge((
|
|
132
|
+
"black": #000000,
|
|
133
|
+
"white": #ffffff,
|
|
123
134
|
"muted": $colour-muted,
|
|
124
135
|
"border": $colour-border,
|
|
136
|
+
"border-light": #eeeeee,
|
|
125
137
|
"link": $colour-link,
|
|
126
138
|
"focus": $colour-focus,
|
|
127
139
|
"hover": $colour-hover,
|
|
@@ -138,12 +150,12 @@ $non-theme-colors: map-merge((
|
|
|
138
150
|
}
|
|
139
151
|
|
|
140
152
|
$vars: map-merge((
|
|
141
|
-
"--colour-body-
|
|
142
|
-
"--colour-white-
|
|
143
|
-
"--colour-black-
|
|
144
|
-
"--colour-body": rgba(
|
|
145
|
-
"--colour-white": rgba(
|
|
146
|
-
"--colour-black": rgba(
|
|
153
|
+
"--colour-body-theme": rgba(to-rgb($colour-body),var(--alpha,1)),
|
|
154
|
+
"--colour-white-theme": rgba(to-rgb(#ffffff),var(--alpha,1)),
|
|
155
|
+
"--colour-black-theme": rgba(to-rgb(#000000),var(--alpha,1)),
|
|
156
|
+
"--colour-body": rgba(to-rgb($colour-body),var(--alpha,1)),
|
|
157
|
+
"--colour-white": rgba(to-rgb(#ffffff),var(--alpha,1)),
|
|
158
|
+
"--colour-black": rgba(to-rgb(#000000),var(--alpha,1))
|
|
147
159
|
), $vars);
|
|
148
160
|
|
|
149
161
|
$gradient: linear-gradient(180deg, var(--colour-secondary) 0, var(--colour-info) 100%);
|
|
@@ -190,14 +202,6 @@ $type-scale-5: #{rem(28)};
|
|
|
190
202
|
$type-scale-6: #{rem(16)};
|
|
191
203
|
$type-scale-7: #{rem(14)};
|
|
192
204
|
|
|
193
|
-
|
|
194
|
-
$h1-font-size: var(--fs-1);
|
|
195
|
-
$h2-font-size: var(--fs-2);
|
|
196
|
-
$h3-font-size: var(--fs-3);
|
|
197
|
-
$h4-font-size: var(--fs-4);
|
|
198
|
-
$h5-font-size: var(--fs-5);
|
|
199
|
-
$h6-font-size: var(--fs-6);
|
|
200
|
-
|
|
201
205
|
$font-sizes: (
|
|
202
206
|
'display': $type-scale-3,
|
|
203
207
|
1: $type-scale-3,
|
|
@@ -218,6 +222,14 @@ $font-sizes: (
|
|
|
218
222
|
), $vars);
|
|
219
223
|
}
|
|
220
224
|
|
|
225
|
+
|
|
226
|
+
$h1-font-size: var(--fs-1);
|
|
227
|
+
$h2-font-size: var(--fs-2);
|
|
228
|
+
$h3-font-size: var(--fs-3);
|
|
229
|
+
$h4-font-size: var(--fs-4);
|
|
230
|
+
$h5-font-size: var(--fs-5);
|
|
231
|
+
$h6-font-size: var(--fs-6);
|
|
232
|
+
|
|
221
233
|
$headings-margin-bottom: clamp(1rem,0.5em,0.5em);
|
|
222
234
|
$headings-font-style: normal;
|
|
223
235
|
$headings-line-height: clamp(1em,2.5rem,clamp(1.5em,1rem,1.2em));
|
|
@@ -361,35 +373,39 @@ $card-cap-bg: transparent;
|
|
|
361
373
|
$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='2px'></path></svg>");
|
|
362
374
|
$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");
|
|
363
375
|
$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>");
|
|
364
|
-
$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>")
|
|
376
|
+
$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>");
|
|
377
|
+
$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>");
|
|
378
|
+
$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>");
|
|
365
379
|
|
|
366
380
|
$vars: map-merge((
|
|
367
381
|
--icon-blank: #{escape-svg($icon-blank)},
|
|
368
382
|
--icon-sort: #{$icon-sort},
|
|
369
383
|
--icon-arrow: #{escape-svg($icon-arrow)},
|
|
370
384
|
--icon-close: #{escape-svg($icon-close)},
|
|
385
|
+
--icon-tick: #{escape-svg($icon-tick)},
|
|
386
|
+
--icon-question: #{escape-svg($icon-question)}
|
|
371
387
|
), $vars);
|
|
372
388
|
// #endregion
|
|
373
389
|
|
|
374
390
|
// #region pagination
|
|
375
391
|
// Default
|
|
376
|
-
$pagination-color: var(--colour-
|
|
392
|
+
$pagination-color: var(--colour-heading);
|
|
377
393
|
$pagination-disabled-color: var(--colour-muted);
|
|
378
394
|
$pagination-bg: transparent;
|
|
379
395
|
$pagination-border-width: 1px;
|
|
380
396
|
$pagination-border-color: var(--colour-border);
|
|
381
397
|
|
|
382
398
|
// Hover and focus
|
|
383
|
-
$pagination-hover-color: var(--colour-
|
|
399
|
+
$pagination-hover-color: var(--colour-heading);
|
|
384
400
|
$pagination-hover-bg: var(--colour-muted);
|
|
385
401
|
$pagination-hover-border-color: var(--colour-border);
|
|
386
|
-
$pagination-focus-color: var(--colour-
|
|
402
|
+
$pagination-focus-color: var(--colour-hover);
|
|
387
403
|
$pagination-focus-bg: var(--colour-muted);
|
|
388
404
|
|
|
389
405
|
// Active
|
|
390
|
-
$pagination-active-color:
|
|
391
|
-
$pagination-active-bg: var(--colour-
|
|
392
|
-
$pagination-active-border-color: var(--colour-
|
|
406
|
+
$pagination-active-color: var(--bs-body-bg);
|
|
407
|
+
$pagination-active-bg: var(--colour-heading);
|
|
408
|
+
$pagination-active-border-color: var(--colour-heading);
|
|
393
409
|
|
|
394
410
|
// Disabled
|
|
395
411
|
$pagination-disabled-bg: $pagination-bg;
|
|
@@ -417,4 +433,29 @@ $accordion-bg: transparent;
|
|
|
417
433
|
$accordion-body-padding-y: 1rem;
|
|
418
434
|
$accordion-body-padding-x: var(--accordion-indent);
|
|
419
435
|
|
|
436
|
+
// #endregion
|
|
437
|
+
|
|
438
|
+
// #region Z-index
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
$vars: map-merge((
|
|
442
|
+
"--index-below": -1,
|
|
443
|
+
"--index-base": 0,
|
|
444
|
+
"--index-focus": 2,
|
|
445
|
+
"--index-above": 10,
|
|
446
|
+
"--index-floating": 100,
|
|
447
|
+
"--index-menu": 200,
|
|
448
|
+
"--index-overlay": 1000,
|
|
449
|
+
), $vars);
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
$zindex-dropdown: var(--index-above);
|
|
453
|
+
$zindex-sticky: var(--index-floating);
|
|
454
|
+
$zindex-fixed: var(--index-floating);
|
|
455
|
+
$zindex-offcanvas-backdrop: var(--index-menu);
|
|
456
|
+
$zindex-offcanvas: var(--index-menu);
|
|
457
|
+
$zindex-modal-backdrop: var(--index-overlay);
|
|
458
|
+
$zindex-modal: var(--index-overlay);
|
|
459
|
+
$zindex-popover: var(--index-above);
|
|
460
|
+
$zindex-tooltip: var(--index-above);
|
|
420
461
|
// #endregion
|
package/assets/sass/_print.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../_func.scss" as *;
|
|
2
|
+
|
|
1
3
|
// Accordion
|
|
2
4
|
.accordion {
|
|
3
5
|
--accordion-indent: 0.75rem;
|
|
@@ -18,7 +20,7 @@
|
|
|
18
20
|
.accordion-button {
|
|
19
21
|
|
|
20
22
|
padding: $accordion-button-padding-y var(--accordion-right-padding) $accordion-button-padding-y $accordion-button-padding-x;
|
|
21
|
-
color:
|
|
23
|
+
color: var(--colour-heading);
|
|
22
24
|
text-align: left; // Reset button style
|
|
23
25
|
background-color: $accordion-button-bg;
|
|
24
26
|
overflow-anchor: none;
|
|
@@ -81,18 +83,18 @@
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
&:hover {
|
|
84
|
-
z-index:
|
|
86
|
+
z-index: var(--index-focus);
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
&:focus {
|
|
88
|
-
z-index:
|
|
90
|
+
z-index: var(--index-focus);
|
|
89
91
|
border-color: $accordion-button-focus-border-color;
|
|
90
92
|
outline: 0;
|
|
91
93
|
box-shadow: $accordion-button-focus-box-shadow;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
[open] > summary > & {
|
|
95
|
-
color:
|
|
97
|
+
color: var(--colour-heading);
|
|
96
98
|
background-color: $accordion-button-active-bg;
|
|
97
99
|
|
|
98
100
|
&::after {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../_func" as *;
|
|
2
|
+
|
|
1
3
|
.alert {
|
|
2
4
|
|
|
3
5
|
&__inner {
|
|
@@ -24,7 +26,7 @@
|
|
|
24
26
|
&--fixed {
|
|
25
27
|
position: fixed;
|
|
26
28
|
padding-top: 2rem;
|
|
27
|
-
z-index:
|
|
29
|
+
z-index: var(--index-floating);
|
|
28
30
|
left: 50%;
|
|
29
31
|
transform: translate(-50%,0);
|
|
30
32
|
bottom: 0;
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
width: 1rem;
|
|
46
48
|
padding:0;
|
|
47
49
|
border: none;
|
|
48
|
-
z-index:
|
|
50
|
+
z-index: var(--index-focus);
|
|
49
51
|
background: currentColor;
|
|
50
52
|
mask-image: var(--icon-close);
|
|
51
53
|
mask-size: 100%;
|
|
@@ -56,7 +58,7 @@
|
|
|
56
58
|
|
|
57
59
|
.alert__holder {
|
|
58
60
|
position: fixed;
|
|
59
|
-
z-index:
|
|
61
|
+
z-index: var(--index-floating);
|
|
60
62
|
bottom: 0;
|
|
61
63
|
left: 0;
|
|
62
64
|
width: 100%;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../_func" as *;
|
|
2
|
+
|
|
1
3
|
// #region default carousel
|
|
2
4
|
.carousel {
|
|
3
5
|
padding-bottom: 3rem;
|
|
@@ -89,18 +91,6 @@ body.js-enabled .carousel__inner::-webkit-scrollbar {
|
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
|
|
92
|
-
|
|
93
|
-
.carousel__controls {
|
|
94
|
-
|
|
95
|
-
@include invert-colours(){
|
|
96
|
-
|
|
97
|
-
a:not(:hover):not(:focus):not(:active):not(.active){
|
|
98
|
-
|
|
99
|
-
opacity: 0.5;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
94
|
.carousel .carousel__controls > a:nth-child(10) ~ a {
|
|
105
95
|
|
|
106
96
|
display: none;
|
|
@@ -176,20 +166,10 @@ body.js-enabled .carousel__inner::-webkit-scrollbar {
|
|
|
176
166
|
|
|
177
167
|
// Make sure that we dont just have one pip showing
|
|
178
168
|
.carousel .carousel__controls.cols-sm-2 > a:first-child:nth-last-child(2),
|
|
179
|
-
.carousel .carousel__controls.cols-sm-3 > a:first-child:nth-last-child(2),
|
|
180
|
-
.carousel .carousel__controls.cols-sm-
|
|
181
|
-
.carousel .carousel__controls.cols-sm-
|
|
182
|
-
.carousel .carousel__controls.cols-sm-
|
|
183
|
-
.carousel .carousel__controls.cols-sm-4 > a:first-child:nth-last-child(4),
|
|
184
|
-
.carousel .carousel__controls.cols-sm-5 > a:first-child:nth-last-child(2),
|
|
185
|
-
.carousel .carousel__controls.cols-sm-5 > a:first-child:nth-last-child(3),
|
|
186
|
-
.carousel .carousel__controls.cols-sm-5 > a:first-child:nth-last-child(4),
|
|
187
|
-
.carousel .carousel__controls.cols-sm-5 > a:first-child:nth-last-child(5),
|
|
188
|
-
.carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(2),
|
|
189
|
-
.carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(3),
|
|
190
|
-
.carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(4),
|
|
191
|
-
.carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(5),
|
|
192
|
-
.carousel .carousel__controls.cols-sm-6 > a:first-child:nth-last-child(6) {
|
|
169
|
+
.carousel .carousel__controls.cols-sm-3 > :is(a:first-child:nth-last-child(2), a:first-child:nth-last-child(3)),
|
|
170
|
+
.carousel .carousel__controls.cols-sm-4 > :is(a:first-child:nth-last-child(2), a:first-child:nth-last-child(3), a:first-child:nth-last-child(4)),
|
|
171
|
+
.carousel .carousel__controls.cols-sm-5 > :is(a:first-child:nth-last-child(2),a:first-child:nth-last-child(3),a:first-child:nth-last-child(4),a:first-child:nth-last-child(5)),
|
|
172
|
+
.carousel .carousel__controls.cols-sm-6 > :is(a:first-child:nth-last-child(2),a:first-child:nth-last-child(3),a:first-child:nth-last-child(4),a:first-child:nth-last-child(5),a:first-child:nth-last-child(6)) {
|
|
193
173
|
display: none;
|
|
194
174
|
}
|
|
195
175
|
|
|
@@ -235,20 +215,10 @@ body.js-enabled .carousel__inner::-webkit-scrollbar {
|
|
|
235
215
|
|
|
236
216
|
// Make sure that we dont just have one pip showing
|
|
237
217
|
.carousel .carousel__controls.cols-md-2 > a:first-child:nth-last-child(2),
|
|
238
|
-
.carousel .carousel__controls.cols-md-3 > a:first-child:nth-last-child(2),
|
|
239
|
-
.carousel .carousel__controls.cols-md-
|
|
240
|
-
.carousel .carousel__controls.cols-md-
|
|
241
|
-
.carousel .carousel__controls.cols-md-
|
|
242
|
-
.carousel .carousel__controls.cols-md-4 > a:first-child:nth-last-child(4),
|
|
243
|
-
.carousel .carousel__controls.cols-md-5 > a:first-child:nth-last-child(2),
|
|
244
|
-
.carousel .carousel__controls.cols-md-5 > a:first-child:nth-last-child(3),
|
|
245
|
-
.carousel .carousel__controls.cols-md-5 > a:first-child:nth-last-child(4),
|
|
246
|
-
.carousel .carousel__controls.cols-md-5 > a:first-child:nth-last-child(5),
|
|
247
|
-
.carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(2),
|
|
248
|
-
.carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(3),
|
|
249
|
-
.carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(4),
|
|
250
|
-
.carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(5),
|
|
251
|
-
.carousel .carousel__controls.cols-md-6 > a:first-child:nth-last-child(6) {
|
|
218
|
+
.carousel .carousel__controls.cols-md-3 > :is(a:first-child:nth-last-child(2), a:first-child:nth-last-child(3)),
|
|
219
|
+
.carousel .carousel__controls.cols-md-4 > :is(a:first-child:nth-last-child(2), a:first-child:nth-last-child(3), a:first-child:nth-last-child(4)),
|
|
220
|
+
.carousel .carousel__controls.cols-md-5 > :is(a:first-child:nth-last-child(2),a:first-child:nth-last-child(3),a:first-child:nth-last-child(4),a:first-child:nth-last-child(5)),
|
|
221
|
+
.carousel .carousel__controls.cols-md-6 > :is(a:first-child:nth-last-child(2),a:first-child:nth-last-child(3),a:first-child:nth-last-child(4),a:first-child:nth-last-child(5),a:first-child:nth-last-child(6)) {
|
|
252
222
|
display: none;
|
|
253
223
|
}
|
|
254
224
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../_func" as *;
|
|
2
|
+
|
|
1
3
|
// #region Chart Colours
|
|
2
4
|
$chart-colors: ();
|
|
3
5
|
$chart-colors: map-merge((
|
|
@@ -13,12 +15,21 @@ $chart-colors: map-merge((
|
|
|
13
15
|
10: --colour-warning,
|
|
14
16
|
), $chart-colors);
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
:root {
|
|
17
19
|
|
|
18
20
|
@each $index, $value in $chart-colors {
|
|
19
21
|
--colour-chart-#{$index}: var(#{$value});
|
|
20
22
|
}
|
|
21
23
|
}
|
|
24
|
+
|
|
25
|
+
@media screen and (prefers-color-scheme: dark) {
|
|
26
|
+
:root {
|
|
27
|
+
--colour-chart-1: var(--colour-dark);
|
|
28
|
+
--colour-chart-5: var(--colour-light);
|
|
29
|
+
--colour-chart-6: var(--colour-dark);
|
|
30
|
+
--colour-chart-7: var(--colour-secondary);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
22
33
|
// #endregion
|
|
23
34
|
|
|
24
35
|
// #region Apply colours
|
|
@@ -114,7 +125,6 @@ html {
|
|
|
114
125
|
margin-bottom: 2rem;
|
|
115
126
|
display: flex;
|
|
116
127
|
flex-direction: column-reverse;
|
|
117
|
-
z-index: 2;
|
|
118
128
|
width: 0;
|
|
119
129
|
|
|
120
130
|
.axis__point {
|
|
@@ -168,7 +178,7 @@ html {
|
|
|
168
178
|
width: 100%;
|
|
169
179
|
height: calc(100% - 2rem);
|
|
170
180
|
margin-bottom: 2rem;
|
|
171
|
-
z-index: -
|
|
181
|
+
z-index: var(--index-below);
|
|
172
182
|
display: flex;
|
|
173
183
|
flex-direction: column-reverse;
|
|
174
184
|
|
|
@@ -303,12 +313,9 @@ html {
|
|
|
303
313
|
}
|
|
304
314
|
}
|
|
305
315
|
|
|
306
|
-
&:hover {
|
|
307
|
-
//z-index: 1;
|
|
308
|
-
}
|
|
309
316
|
&:hover span {
|
|
310
317
|
opacity: 1;
|
|
311
|
-
z-index:
|
|
318
|
+
z-index: var(--index-above);
|
|
312
319
|
}
|
|
313
320
|
}
|
|
314
321
|
|
|
@@ -427,7 +434,7 @@ html {
|
|
|
427
434
|
left: 50%;
|
|
428
435
|
height: 100%;
|
|
429
436
|
margin-left: -1px;
|
|
430
|
-
z-index:
|
|
437
|
+
z-index: var(--index-below);
|
|
431
438
|
}
|
|
432
439
|
}
|
|
433
440
|
}
|
|
@@ -442,7 +449,7 @@ html {
|
|
|
442
449
|
width: 100%;
|
|
443
450
|
height: calc(100% - 2rem);
|
|
444
451
|
pointer-events: none;
|
|
445
|
-
z-index: -
|
|
452
|
+
z-index: var(--index-below)
|
|
446
453
|
}
|
|
447
454
|
|
|
448
455
|
.pie {
|
|
@@ -507,9 +514,9 @@ html {
|
|
|
507
514
|
}
|
|
508
515
|
|
|
509
516
|
.pie foreignObject {
|
|
510
|
-
background:
|
|
517
|
+
background: var(--bs-body-bg);
|
|
511
518
|
border-radius: 50%;
|
|
512
|
-
z-index:
|
|
519
|
+
z-index: var(--index-focus);
|
|
513
520
|
pointer-events: none;
|
|
514
521
|
display: none;
|
|
515
522
|
padding: 1rem;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
@use "../_func" as *;
|
|
2
|
+
|
|
1
3
|
.drawer__btn {
|
|
2
4
|
|
|
3
5
|
position: sticky;
|
|
4
6
|
bottom: 1.5rem;
|
|
5
7
|
left: 0;
|
|
6
8
|
width: 100%;
|
|
7
|
-
z-index:
|
|
9
|
+
z-index: var(--index-floating);
|
|
8
10
|
margin-bottom: -6rem;
|
|
9
11
|
|
|
10
12
|
.btn {
|
|
@@ -18,13 +20,13 @@
|
|
|
18
20
|
display: none;
|
|
19
21
|
margin-bottom: -2rem;
|
|
20
22
|
position: relative;
|
|
21
|
-
z-index:
|
|
23
|
+
z-index: var(--index-focus);
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
margin-top: 1rem;
|
|
25
27
|
padding-top: 2rem;
|
|
26
28
|
position: relative;
|
|
27
|
-
z-index:
|
|
29
|
+
z-index: var(--index-menu);
|
|
28
30
|
background: rgb(255,255,255);
|
|
29
31
|
background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 1.5rem, rgba(255,255,255,1) 100%);
|
|
30
32
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../_func" as *;
|
|
2
|
+
|
|
1
3
|
.header-banner {
|
|
2
4
|
background: linear-gradient(180deg,var(--colour-secondary) 0, var(--colour-info) 100%);
|
|
3
5
|
margin-bottom: rem(32);
|
|
@@ -13,11 +15,16 @@
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
&__inner {
|
|
18
|
+
|
|
19
|
+
@include reset-colours();
|
|
20
|
+
|
|
21
|
+
color: var(--colour-body);
|
|
16
22
|
background: white;
|
|
17
23
|
padding: rem(32);
|
|
18
24
|
margin: rem(30) 0;
|
|
19
25
|
position: relative;
|
|
20
|
-
z-index:
|
|
26
|
+
z-index: var(--index-above);
|
|
27
|
+
|
|
21
28
|
@include media-breakpoint-up(md) {
|
|
22
29
|
max-width: rem(600);
|
|
23
30
|
margin: rem(112) 0 rem(80) 0;
|