@iamproperty/components 3.5.0 → 3.6.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/applied-filters.css +1 -1
- package/assets/css/components/applied-filters.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/charts.css +1 -1
- package/assets/css/components/charts.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 +1 -1
- package/assets/css/components/forms.css.map +1 -1
- package/assets/css/components/header.css +1 -1
- package/assets/css/components/header.css.map +1 -1
- package/assets/css/components/lists.css.map +1 -1
- package/assets/css/components/nav.css +1 -1
- package/assets/css/components/nav.css.map +1 -1
- package/assets/css/components/pagination.css +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/components/property-searchbar.css +1 -1
- package/assets/css/components/property-searchbar.css.map +1 -1
- package/assets/css/components/table.css +1 -1
- package/assets/css/components/table.css.map +1 -1
- package/assets/css/components/tabs.css +1 -1
- package/assets/css/components/tabs.css.map +1 -1
- package/assets/css/components/tooltips.css +1 -1
- package/assets/css/components/tooltips.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/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/card/card.component.js +1 -1
- package/assets/js/components/card/card.component.min.js +5 -5
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/filterlist/filterlist.component.js +13 -9
- package/assets/js/components/filterlist/filterlist.component.min.js +14 -5
- package/assets/js/components/filterlist/filterlist.component.min.js.map +1 -1
- package/assets/js/components/header/header.component.min.js +5 -5
- package/assets/js/components/table/table.component.js +12 -1
- package/assets/js/components/table/table.component.min.js +21 -11
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.js +6 -2
- package/assets/js/components/tabs/tabs.component.min.js +7 -5
- package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
- package/assets/js/dynamic.min.js +2 -2
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/applied-filters.js +6 -2
- package/assets/js/modules/helpers.js +5 -0
- package/assets/js/modules/table.js +25 -13
- package/assets/js/modules/tabs.js +4 -2
- package/assets/js/scripts.bundle.js +56 -34
- 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 +1 -2
- package/assets/sass/_corefiles.scss +3 -0
- package/assets/sass/_functions/functions.scss +2 -3
- package/assets/sass/_functions/mixins.scss +2 -18
- package/assets/sass/_functions/utilities.scss +35 -3
- package/assets/sass/_functions/variables.scss +82 -69
- package/assets/sass/_tests/colours.spec.scss +8 -8
- package/assets/sass/_tests/func.spec.scss +1 -1
- package/assets/sass/components/admin-panel.scss +105 -37
- package/assets/sass/components/applied-filters.scss +4 -0
- package/assets/sass/components/card.scss +12 -8
- package/assets/sass/components/charts.scss +2 -2
- package/assets/sass/components/dialog.scss +22 -14
- package/assets/sass/components/forms.scss +2 -2
- package/assets/sass/components/pagination.scss +4 -0
- package/assets/sass/components/table.scss +145 -30
- package/assets/sass/components/tabs.scss +54 -98
- package/assets/sass/components/tooltips.scss +1 -1
- package/assets/sass/foundations/buttons.scss +61 -46
- package/assets/sass/foundations/reboot.scss +5 -4
- package/assets/sass/foundations/root.scss +42 -48
- package/assets/sass/foundations/type.scss +4 -0
- package/assets/sass/helpers/max-height.scss +3 -0
- package/assets/ts/components/card/card.component.ts +1 -1
- package/assets/ts/components/filterlist/filterlist.component.ts +13 -11
- package/assets/ts/components/table/table.component.ts +12 -1
- package/assets/ts/components/tabs/tabs.component.ts +7 -2
- package/assets/ts/modules/applied-filters.ts +9 -3
- package/assets/ts/modules/helpers.ts +9 -1
- package/assets/ts/modules/table.ts +34 -14
- package/assets/ts/modules/tabs.ts +7 -2
- package/assets/ts/tests/table.spec.ts +1 -4
- package/dist/components.es.js +157 -126
- package/dist/components.umd.js +37 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ $chart-colors: map-merge((
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
@media (forced-colors: active) {
|
|
36
36
|
.chart__wrapper:has(.chart:not(.chart--line)) {
|
|
37
37
|
|
|
38
38
|
--colour-chart-1: repeating-linear-gradient(
|
|
@@ -52,7 +52,7 @@ $chart-colors: map-merge((
|
|
|
52
52
|
);
|
|
53
53
|
// TODO: Add more patterns
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
}
|
|
56
56
|
// #endregion
|
|
57
57
|
|
|
58
58
|
// #region Apply colours
|
|
@@ -15,10 +15,11 @@ dialog[open] {
|
|
|
15
15
|
height: fit-content;
|
|
16
16
|
border: none;
|
|
17
17
|
overscroll-behavior: contain;
|
|
18
|
-
background:
|
|
18
|
+
background: var(--colour-canvas-2);
|
|
19
19
|
box-shadow: 0px 2px 9px rgba(0, 0, 0, 0.11);
|
|
20
20
|
border-radius: rem(28);
|
|
21
21
|
padding: var(--dialog-padding);
|
|
22
|
+
outline: var(--contrast-outline-width, 0px) solid var(--colour-primary);
|
|
22
23
|
|
|
23
24
|
// Close button
|
|
24
25
|
> form:first-child {
|
|
@@ -61,7 +62,8 @@ dialog[open] {
|
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
& + * {
|
|
64
|
-
padding-right:
|
|
65
|
+
padding-right: var(--dialog-padding);
|
|
66
|
+
margin-right: rem(20);
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
|
|
@@ -76,27 +78,21 @@ dialog[open] {
|
|
|
76
78
|
|
|
77
79
|
// #region modal styling
|
|
78
80
|
*:not(.dialog__wrapper) > dialog[open] {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
max-width:
|
|
82
|
-
|
|
83
|
-
margin-top: 12vh;
|
|
81
|
+
overflow-y: hidden;
|
|
82
|
+
width: 90vw;
|
|
83
|
+
max-width: rem(376); // col-width*4 // 96px*4 = 376px
|
|
84
|
+
height: fit-content;
|
|
84
85
|
|
|
85
86
|
@include media-breakpoint-up(sm) {
|
|
86
87
|
|
|
87
|
-
--dialog-padding: #{rem(
|
|
88
|
+
--dialog-padding: #{rem(32)};
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
max-height: 80vh;
|
|
91
|
-
margin-top: auto;
|
|
90
|
+
max-width: rem(564); // col-width*6 // 96px*6 = 564px
|
|
92
91
|
border-radius: rem(34);
|
|
93
92
|
}
|
|
94
93
|
|
|
95
94
|
@include media-breakpoint-up(md) {
|
|
96
95
|
|
|
97
|
-
min-width: rem(1112);
|
|
98
|
-
width: rem(1112);
|
|
99
|
-
max-width: rem(1112);
|
|
100
96
|
}
|
|
101
97
|
|
|
102
98
|
&:has(.youtube-embed){
|
|
@@ -104,10 +100,22 @@ dialog[open] {
|
|
|
104
100
|
}
|
|
105
101
|
}
|
|
106
102
|
|
|
103
|
+
.mh-lg {
|
|
104
|
+
padding-right: rem(20);
|
|
105
|
+
|
|
106
|
+
@include media-breakpoint-up(md) {
|
|
107
|
+
margin-right: var(--dialog-padding);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
> *:last-child {
|
|
111
|
+
margin-bottom: 0;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
107
114
|
|
|
108
115
|
|
|
109
116
|
dialog::backdrop {
|
|
110
117
|
background: rgba(0, 0, 0, 0.3);
|
|
118
|
+
backdrop-filter: blur(4px);
|
|
111
119
|
}
|
|
112
120
|
// #endregion
|
|
113
121
|
|
|
@@ -187,12 +187,12 @@ select[multiple]::-webkit-scrollbar-thumb {
|
|
|
187
187
|
|
|
188
188
|
color: var(--colour-white);
|
|
189
189
|
background: var(--colour-primary);
|
|
190
|
-
padding: 0.75em 1em;
|
|
190
|
+
padding: calc(0.75em + 1px) 1em;
|
|
191
191
|
font-size: 1rem;
|
|
192
192
|
font-weight: normal;
|
|
193
193
|
line-height: 1.5;
|
|
194
194
|
position: absolute;
|
|
195
|
-
bottom:
|
|
195
|
+
bottom: 0px;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
.form-control__wrapper .prefix {
|
|
@@ -16,12 +16,16 @@
|
|
|
16
16
|
text-align: center;
|
|
17
17
|
overflow: hidden;
|
|
18
18
|
border: none!important;
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
font-weight: normal;
|
|
21
|
+
display: block;
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
.pagination .page-item {
|
|
22
25
|
border: var(--#{$prefix}pagination-border-width) solid var(--#{$prefix}pagination-border-color);
|
|
23
26
|
border-radius: 4px!important;
|
|
24
27
|
@include transition($pagination-transition);
|
|
28
|
+
overflow: hidden;
|
|
25
29
|
|
|
26
30
|
&:hover {
|
|
27
31
|
border-color: var(--#{$prefix}pagination-hover-border-color);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
table {
|
|
5
5
|
--border-width: 2px;
|
|
6
6
|
--inner-border-width: 2px;
|
|
7
|
-
--hover-background:
|
|
7
|
+
--hover-background: var(--colour-light);
|
|
8
8
|
width: 100%;
|
|
9
9
|
font-size: rem(16);
|
|
10
10
|
border: none;
|
|
@@ -24,7 +24,10 @@ td,th {
|
|
|
24
24
|
color: var(--colour-body);
|
|
25
25
|
|
|
26
26
|
&:last-child {
|
|
27
|
-
padding-right:
|
|
27
|
+
padding-right: rem(2);
|
|
28
|
+
}
|
|
29
|
+
&:first-child {
|
|
30
|
+
padding-left: rem(2);
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
|
|
@@ -56,8 +59,13 @@ tbody tr {
|
|
|
56
59
|
|
|
57
60
|
&:is(:hover,:focus-within,.hover) {
|
|
58
61
|
|
|
62
|
+
--bg-colour-rgb: 238,238,238;
|
|
63
|
+
|
|
59
64
|
th,td {
|
|
60
65
|
background: var(--hover-background);
|
|
66
|
+
color: var(--colour-primary-theme);
|
|
67
|
+
--colour-link: var(--colour-primary-theme);
|
|
68
|
+
--colour-hover: var(--colour-primary-theme);
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
71
|
|
|
@@ -89,7 +97,9 @@ table.border-0 {
|
|
|
89
97
|
// #region Table wrapper - Add via JS if needed, provides a safe space to scroll
|
|
90
98
|
:is(iam-table, .iam-table) {
|
|
91
99
|
--wrapper-padding: #{rem(32)};
|
|
100
|
+
--bg-colour: #ffffff;
|
|
92
101
|
display: block;
|
|
102
|
+
background: var(--colour-canvas-2);
|
|
93
103
|
padding: var(--wrapper-padding);
|
|
94
104
|
box-shadow: 0px 6px 12px rgba(0,0,0,0.11);
|
|
95
105
|
border-radius: rem(8);
|
|
@@ -119,25 +129,43 @@ table.border-0 {
|
|
|
119
129
|
}
|
|
120
130
|
*:has(> .iam-table){
|
|
121
131
|
container-type: inline-size;
|
|
132
|
+
|
|
122
133
|
}
|
|
123
134
|
@container (width < 23.4375em) {
|
|
124
135
|
|
|
136
|
+
.iam-table, iam-table {
|
|
137
|
+
margin-left: -1.5rem;
|
|
138
|
+
margin-right: -1.5rem;
|
|
139
|
+
margin-bottom: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
125
143
|
.table__wrapper:not(.table--fullwidth) {
|
|
126
144
|
|
|
127
145
|
overflow: hidden;
|
|
128
146
|
max-height: none!important;
|
|
129
|
-
|
|
130
147
|
}
|
|
131
148
|
:is(iam-table, .iam-table):not(.table--fullwidth) {
|
|
132
149
|
|
|
150
|
+
background: none;
|
|
151
|
+
padding: 0;
|
|
152
|
+
box-shadow: none;
|
|
153
|
+
overflow: visible;
|
|
154
|
+
|
|
133
155
|
table {
|
|
134
156
|
|
|
157
|
+
overflow: visible;
|
|
158
|
+
margin-inline: 1.5rem;
|
|
159
|
+
margin-bottom: 1.5rem;
|
|
160
|
+
width: calc(100% - 3rem);
|
|
161
|
+
|
|
135
162
|
thead {
|
|
136
163
|
display: none;
|
|
137
164
|
}
|
|
138
165
|
|
|
139
166
|
tbody {
|
|
140
167
|
display: block;
|
|
168
|
+
overflow: visible;
|
|
141
169
|
|
|
142
170
|
tr td:first-child {
|
|
143
171
|
padding-top:0;
|
|
@@ -148,6 +176,10 @@ table.border-0 {
|
|
|
148
176
|
display: block;
|
|
149
177
|
position: relative;
|
|
150
178
|
border: none;
|
|
179
|
+
background: var(--colour-canvas-2);
|
|
180
|
+
padding: var(--wrapper-padding);
|
|
181
|
+
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.11);
|
|
182
|
+
border-radius: rem(8);
|
|
151
183
|
|
|
152
184
|
& + tr {
|
|
153
185
|
margin-top: rem(32);
|
|
@@ -194,6 +226,14 @@ table.border-0 {
|
|
|
194
226
|
}
|
|
195
227
|
}
|
|
196
228
|
|
|
229
|
+
td:first-child::after {
|
|
230
|
+
top: 1.75rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
td::after {
|
|
234
|
+
top: 2.5rem;
|
|
235
|
+
}
|
|
236
|
+
|
|
197
237
|
tbody tr:first-child td:not(:first-child) {
|
|
198
238
|
border-top: var(--border-width) solid currentColor!important;
|
|
199
239
|
border-color: var(--colour-border)!important;
|
|
@@ -305,14 +345,18 @@ table.border-0 {
|
|
|
305
345
|
min-width: fit-content;
|
|
306
346
|
min-height: var(--row-height);
|
|
307
347
|
text-align: right;
|
|
308
|
-
background: linear-gradient(90deg,
|
|
309
|
-
background: linear-gradient(90deg, rgba(var(--bg-colour-rgb,255,255,255),0) 0%, rgba(var(--bg-colour-rgb,255,255,255),1) 1.25rem);
|
|
348
|
+
background: linear-gradient(90deg, transparent 0%, var(--colour-canvas-2) 1.25rem);
|
|
310
349
|
|
|
311
350
|
a {
|
|
312
351
|
white-space: nowrap;
|
|
313
352
|
}
|
|
314
353
|
}
|
|
315
354
|
|
|
355
|
+
tr:hover > *:last-child {
|
|
356
|
+
|
|
357
|
+
background: linear-gradient(90deg, transparent 0%, var(--hover-background) 1.25rem);
|
|
358
|
+
}
|
|
359
|
+
|
|
316
360
|
tbody tr > *:last-child {
|
|
317
361
|
margin-top: -1px;
|
|
318
362
|
}
|
|
@@ -327,9 +371,8 @@ table.border-0 {
|
|
|
327
371
|
// #endregion
|
|
328
372
|
|
|
329
373
|
// #region Max height tables
|
|
330
|
-
.table__wrapper:is(.
|
|
331
|
-
|
|
332
|
-
overflow: auto;
|
|
374
|
+
.table__wrapper:is(.mh-sm,.mh-md,.mh-lg) {
|
|
375
|
+
|
|
333
376
|
position: relative;
|
|
334
377
|
|
|
335
378
|
&::before {
|
|
@@ -341,25 +384,15 @@ table.border-0 {
|
|
|
341
384
|
height: 1.2rem;
|
|
342
385
|
position: sticky;
|
|
343
386
|
display: block;
|
|
344
|
-
background: linear-gradient(180deg,
|
|
387
|
+
background: linear-gradient(180deg, transparent 0%, var(--colour-canvas-2) 100%);
|
|
345
388
|
border-bottom: 2px solid var(--colour-border);
|
|
346
389
|
z-index: 2;
|
|
347
390
|
margin-bottom: -1.2rem;
|
|
348
391
|
}
|
|
349
392
|
}
|
|
350
393
|
|
|
351
|
-
.table__wrapper.table--mh-small {
|
|
352
|
-
--table-mh: #{$table-mh-sm};
|
|
353
|
-
}
|
|
354
|
-
.table__wrapper.table--mh-medium {
|
|
355
|
-
--table-mh: #{$table-mh-md};
|
|
356
|
-
}
|
|
357
|
-
.table__wrapper.table--mh-large {
|
|
358
|
-
--table-mh: #{$table-mh-lg};
|
|
359
|
-
}
|
|
360
|
-
|
|
361
394
|
// If table CTA class is set then undo max-height
|
|
362
|
-
.table--cta > .table__wrapper:is(.
|
|
395
|
+
.table--cta > .table__wrapper:is(.mh-sm,.mh-md,.mh-lg) {
|
|
363
396
|
max-height: none;
|
|
364
397
|
position: static;
|
|
365
398
|
|
|
@@ -368,7 +401,7 @@ table.border-0 {
|
|
|
368
401
|
}
|
|
369
402
|
}
|
|
370
403
|
|
|
371
|
-
iam-table:is(.
|
|
404
|
+
iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) {
|
|
372
405
|
|
|
373
406
|
position: relative;
|
|
374
407
|
|
|
@@ -377,7 +410,7 @@ iam-table:is(.table--mh-small,.table--mh-medium,.table--mh-large):not(.table--ct
|
|
|
377
410
|
top: 0;
|
|
378
411
|
left: 0;
|
|
379
412
|
z-index: 1;
|
|
380
|
-
background-color: var(--colour-
|
|
413
|
+
background-color: var(--colour-canvas-2);
|
|
381
414
|
|
|
382
415
|
&:before {
|
|
383
416
|
content: "";
|
|
@@ -413,11 +446,93 @@ table:not(.table--filtered) tbody tr:nth-child(15) ~ tr {
|
|
|
413
446
|
}
|
|
414
447
|
|
|
415
448
|
// Statuses
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
[data-content="
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
449
|
+
|
|
450
|
+
table {
|
|
451
|
+
|
|
452
|
+
:is([data-content="Low"],
|
|
453
|
+
[data-content="Medium"],
|
|
454
|
+
[data-content="High"],
|
|
455
|
+
[data-content="Incomplete"],
|
|
456
|
+
[data-content="Requires approval"],
|
|
457
|
+
[data-content="Verified"],
|
|
458
|
+
[data-content="Not started"],
|
|
459
|
+
[data-content="Completed"],
|
|
460
|
+
.alert-status
|
|
461
|
+
) {
|
|
462
|
+
|
|
463
|
+
position: relative;
|
|
464
|
+
padding-left: 1.5rem;
|
|
465
|
+
|
|
466
|
+
&::before {
|
|
467
|
+
margin-left: -1.5rem!important;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
&:after {
|
|
471
|
+
|
|
472
|
+
position: absolute;
|
|
473
|
+
top: 1rem;
|
|
474
|
+
left: 0;
|
|
475
|
+
|
|
476
|
+
content: "";
|
|
477
|
+
height: rem(16);
|
|
478
|
+
width: rem(16);
|
|
479
|
+
display: inline-block;
|
|
480
|
+
mask-size: 100%;
|
|
481
|
+
mask-repeat: no-repeat;
|
|
482
|
+
mask-position: 50% 50%;
|
|
483
|
+
-webkit-mask-size: 100%;
|
|
484
|
+
-webkit-mask-repeat: no-repeat;
|
|
485
|
+
-webkit-mask-position: 50% 50%;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
[data-content="High"]:after {
|
|
490
|
+
|
|
491
|
+
background: var(--colour-danger);
|
|
492
|
+
mask-image: var(--icon-high);
|
|
493
|
+
-webkit-mask-image: var(--icon-high);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
[data-content="Medium"]:after {
|
|
497
|
+
|
|
498
|
+
background: var(--colour-warning);
|
|
499
|
+
mask-image: var(--icon-medium);
|
|
500
|
+
-webkit-mask-image: var(--icon-medium);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
[data-content="Low"]:after {
|
|
504
|
+
|
|
505
|
+
background: var(--colour-success);
|
|
506
|
+
mask-image: var(--icon-low);
|
|
507
|
+
-webkit-mask-image: var(--icon-low);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
:is([data-content="Not started"],[data-content="Incomplete"]):after {
|
|
511
|
+
|
|
512
|
+
background: var(--colour-danger);
|
|
513
|
+
mask-image: var(--icon-flag);
|
|
514
|
+
-webkit-mask-image: var(--icon-flag);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
[data-content="Requires approval"]:after {
|
|
518
|
+
|
|
519
|
+
background: var(--colour-warning);
|
|
520
|
+
mask-image: var(--icon-flag);
|
|
521
|
+
-webkit-mask-image: var(--icon-flag);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
:is([data-content="Verified"],[data-content="Completed"]):after {
|
|
525
|
+
|
|
526
|
+
background: var(--colour-success);
|
|
527
|
+
mask-image: var(--icon-tick);
|
|
528
|
+
-webkit-mask-image: var(--icon-tick);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
.alert-status:not(:empty):after {
|
|
533
|
+
|
|
534
|
+
background: var(--colour-danger);
|
|
535
|
+
mask-image: var(--icon-warning);
|
|
536
|
+
-webkit-mask-image: var(--icon-warning);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
@@ -1,116 +1,72 @@
|
|
|
1
1
|
@use "../_func" as *;
|
|
2
2
|
|
|
3
|
-
.tabs {
|
|
3
|
+
.tabs:not(.admin-panel) {
|
|
4
4
|
|
|
5
5
|
position: relative;
|
|
6
|
-
|
|
7
|
-
> .tabs__links {
|
|
8
|
-
margin-bottom: 1.5rem;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
padding-bottom: 2px;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
.link:not(.text-decoration-none):not(.btn) {
|
|
14
|
-
--is-current: 0;
|
|
15
|
-
font-weight: bold;
|
|
16
|
-
font-family: var(--font-heading);
|
|
17
|
-
font-size: rem(18);
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
margin: 0 0 0.5rem 0;
|
|
20
|
-
float: left;
|
|
21
|
-
clear: both;
|
|
22
|
-
padding: 0;
|
|
23
|
-
display: inline-block;
|
|
24
|
-
|
|
25
|
-
@include media-breakpoint-up(sm) {
|
|
26
|
-
clear: none;
|
|
27
|
-
margin-bottom: 0;
|
|
28
|
-
margin-right: 2rem;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:after {
|
|
32
|
-
position: absolute;
|
|
33
|
-
content: "";
|
|
34
|
-
top: 100%;
|
|
35
|
-
left: 50%;
|
|
36
|
-
height: 2px;
|
|
37
|
-
//width: 100%;
|
|
38
|
-
transform: translate(-50%,0);
|
|
39
|
-
background: var(--colour-underline);
|
|
40
|
-
transition: width 0.5s;
|
|
41
|
-
|
|
42
|
-
width: calc(var(--is-current) * 100%);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:hover:after,
|
|
46
|
-
&:focus:after,
|
|
47
|
-
&.focus:after {
|
|
48
|
-
width: 100%;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.tabs__links .link:not(.text-decoration-none):not(.btn)[aria-pressed="true"] {
|
|
54
|
-
|
|
55
|
-
--is-current: 1;
|
|
56
|
-
--panel-tab-colour: white;
|
|
57
|
-
--panel-tab-border: var(--colour-secondary)
|
|
58
|
-
}
|
|
59
6
|
}
|
|
60
7
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
margin-right: calc(var(--panel-gutter) * -1);
|
|
68
|
-
display: flex;
|
|
69
|
-
flex-direction: column;
|
|
70
|
-
background-color: var(--colour-canvas);
|
|
71
|
-
border-bottom: 2px solid var(--colour-border-light);
|
|
72
|
-
margin-bottom: var(--panel-gutter);
|
|
73
|
-
|
|
74
|
-
@include media-breakpoint-up(sm) {
|
|
8
|
+
.tabs__links {
|
|
9
|
+
margin-bottom: 1.5rem;
|
|
10
|
+
overflow: visible;
|
|
11
|
+
padding-bottom: 2px;
|
|
12
|
+
position: relative;
|
|
13
|
+
display: block;
|
|
75
14
|
|
|
76
|
-
|
|
77
|
-
|
|
15
|
+
&:after {
|
|
16
|
+
content: "";
|
|
17
|
+
left: 50%;
|
|
18
|
+
position: relative;
|
|
19
|
+
height: 3px;
|
|
20
|
+
width: 100vw;
|
|
21
|
+
border-bottom: 1px solid var(--colour-border);
|
|
22
|
+
transform: translate(-50%,0);
|
|
23
|
+
display: block;
|
|
24
|
+
clear: both;
|
|
78
25
|
}
|
|
79
26
|
|
|
80
27
|
.link:not(.text-decoration-none):not(.btn) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
28
|
+
--is-current: 0;
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
font-family: var(--font-heading);
|
|
31
|
+
font-size: rem(18);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
margin: 0.5rem 1.5rem 0 0;
|
|
34
|
+
padding: 0;
|
|
35
|
+
display: inline-block;
|
|
36
|
+
|
|
37
|
+
&:last-child {
|
|
38
|
+
margin-inline-end: 0;
|
|
91
39
|
}
|
|
92
40
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
41
|
+
&:after {
|
|
42
|
+
position: absolute;
|
|
43
|
+
content: "";
|
|
44
|
+
top: 100%;
|
|
45
|
+
left: 50%;
|
|
46
|
+
height: 2px;
|
|
47
|
+
transform: translate(-50%,0);
|
|
48
|
+
background: var(--colour-info);
|
|
49
|
+
transition: width 0.5s;
|
|
50
|
+
width: 0%;
|
|
51
|
+
}
|
|
100
52
|
|
|
101
|
-
|
|
53
|
+
&:hover:after,
|
|
54
|
+
&:focus:after,
|
|
55
|
+
&.focus:after {
|
|
102
56
|
|
|
103
|
-
|
|
104
|
-
|
|
57
|
+
width: 60%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[aria-pressed="true"]:after,
|
|
61
|
+
&:active:after,
|
|
62
|
+
&.active:after {
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
105
65
|
|
|
106
|
-
|
|
66
|
+
&[aria-pressed="true"],
|
|
67
|
+
&.active {
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
outline: var(--contrast-outline-width, 0px) solid var(--colour-primary-theme)!important;
|
|
107
70
|
}
|
|
108
71
|
}
|
|
109
|
-
*/
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
:host(.admin-panel) {
|
|
113
|
-
|
|
114
|
-
display: block;
|
|
115
72
|
}
|
|
116
|
-
// #endregion
|