@iamproperty/components 4.0.0 → 4.0.1
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/actionbar-global.css +1 -1
- package/assets/css/components/actionbar-global.css.map +1 -1
- package/assets/css/components/actionbar.css +1 -1
- package/assets/css/components/actionbar.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-global.css +1 -1
- package/assets/css/components/card-global.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.map +1 -1
- package/assets/css/components/collapsible-side.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/fileupload.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.map +1 -1
- package/assets/css/components/lists.css.map +1 -1
- package/assets/css/components/nav-global.css +1 -1
- package/assets/css/components/nav-global.css.map +1 -1
- package/assets/css/components/nav.css.map +1 -1
- package/assets/css/components/nav.old.css.map +1 -1
- package/assets/css/components/notification.css.map +1 -1
- package/assets/css/components/pagination.css.map +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/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/actionbar/actionbar.component.js +45 -0
- package/assets/js/components/actionbar/actionbar.component.min.js +4 -4
- package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +3 -3
- package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -1
- package/assets/js/components/card/card.component.js +9 -1
- package/assets/js/components/card/card.component.min.js +7 -5
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +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/nav/nav.component.min.js +1 -1
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +1 -1
- package/assets/js/components/table/table.component.js +3 -0
- package/assets/js/components/table/table.component.min.js +10 -10
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +4 -4
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/applied-filters.js +6 -7
- package/assets/js/modules/dialogs.js +32 -4
- package/assets/js/modules/table.js +68 -13
- package/assets/js/scripts.bundle.js +18 -16
- 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/_corefiles.scss +0 -1
- package/assets/sass/_func.scss +1 -0
- package/assets/sass/_functions/mixins.scss +22 -0
- package/assets/sass/components/actionbar-global.scss +69 -7
- package/assets/sass/components/actionbar.scss +20 -8
- package/assets/sass/components/admin-panel.scss +47 -2
- package/assets/sass/components/card-global.scss +53 -1
- package/assets/sass/components/card.scss +14 -12
- package/assets/sass/components/charts.scss +1 -1
- package/assets/sass/components/collapsible-side.scss +1 -1
- package/assets/sass/components/dialog.scss +62 -61
- package/assets/sass/components/fileupload.scss +1 -1
- package/assets/sass/components/forms.scss +112 -102
- package/assets/sass/components/nav-global.scss +15 -9
- package/assets/sass/components/nav.scss +9 -10
- package/assets/sass/components/notification.scss +1 -1
- package/assets/sass/components/table.scss +85 -4
- package/assets/sass/core.scss +1 -0
- package/assets/sass/error.scss +2 -1
- package/assets/sass/foundations/root.scss +3 -3
- package/assets/sass/main.scss +4 -3
- package/assets/ts/components/actionbar/actionbar.component.ts +67 -2
- package/assets/ts/components/card/card.component.ts +12 -2
- package/assets/ts/components/table/table.component.ts +4 -0
- package/assets/ts/modules/applied-filters.ts +8 -10
- package/assets/ts/modules/dialogs.ts +42 -5
- package/assets/ts/modules/table.ts +82 -13
- package/dist/components.es.js +914 -838
- package/dist/components.umd.js +47 -45
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ label {
|
|
|
16
16
|
// #endregion
|
|
17
17
|
|
|
18
18
|
// #region input field
|
|
19
|
-
:is(input,textarea,output,select) {
|
|
19
|
+
:is(input:not([type="checkbox"]):not([type="radio"]),textarea,output,select) {
|
|
20
20
|
display: block;
|
|
21
21
|
width: 100%;
|
|
22
22
|
max-width: $content-max-width;
|
|
@@ -108,7 +108,7 @@ div:has(> label:first-child):has(> input) {
|
|
|
108
108
|
text-align: center;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
input, output, .prefix, .suffix {
|
|
111
|
+
input:not([type="checkbox"]):not([type="radio"]), output, .prefix, .suffix {
|
|
112
112
|
margin-bottom: 0;
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -116,12 +116,12 @@ div:has(> label:first-child):has(> input) {
|
|
|
116
116
|
flex-wrap: wrap;
|
|
117
117
|
align-items: center;
|
|
118
118
|
|
|
119
|
-
> *:not(input):not(output):not(.prefix):not(.suffix) {
|
|
119
|
+
> *:not(input:not([type="checkbox"]):not([type="radio"])):not(output):not(.prefix):not(.suffix) {
|
|
120
120
|
flex-shrink: 0;
|
|
121
121
|
width: 100%;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
:is(input,textarea,output) {
|
|
124
|
+
:is(input:not([type="checkbox"]):not([type="radio"]),textarea,output) {
|
|
125
125
|
flex-shrink: 1;
|
|
126
126
|
flex-grow: 1;
|
|
127
127
|
width: 0;
|
|
@@ -133,9 +133,9 @@ div:has(> label:first-child):has(> input) {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
input[type="color"]{
|
|
136
|
-
width: 3rem;
|
|
137
|
-
flex-shrink: 0;
|
|
138
|
-
flex-grow: 0;
|
|
136
|
+
width: 3rem!important;
|
|
137
|
+
flex-shrink: 0!important;
|
|
138
|
+
flex-grow: 0!important;
|
|
139
139
|
border-start-end-radius: 0;
|
|
140
140
|
border-end-end-radius: 0;
|
|
141
141
|
padding: 0;
|
|
@@ -156,9 +156,10 @@ div:has(> label:first-child):has(> input) {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
output {
|
|
159
|
-
border-left: none;
|
|
160
|
-
border-end-start-radius: 0;
|
|
161
|
-
border-start-start-radius: 0;
|
|
159
|
+
border-left: none!important;
|
|
160
|
+
border-end-start-radius: 0!important;
|
|
161
|
+
border-start-start-radius: 0!important;
|
|
162
|
+
margin: 0!important;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
|
|
@@ -192,111 +193,117 @@ div:has(> label:first-child):has(> input):has(> :is(.form-control-inline,.input-
|
|
|
192
193
|
|
|
193
194
|
// #region prefix
|
|
194
195
|
:is(.prefix, .suffix) {
|
|
195
|
-
display:
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
font-size: var(--input-fs, #{rem(16)});
|
|
199
|
-
line-height: var(--input-lh, #{rem(20)});
|
|
200
|
-
color: var(--colour-body);
|
|
201
|
-
background-color: var(--colour-primary-theme);
|
|
202
|
-
border: 2px solid var(--colour-primary);
|
|
203
|
-
color: var(--colour-white);
|
|
204
|
-
margin-bottom: 1rem;
|
|
205
|
-
border-end-start-radius: rem(8);
|
|
206
|
-
border-start-start-radius: rem(8);
|
|
207
|
-
min-width: calc(#{rem(20 + 12 + 12)} + 4px);
|
|
208
|
-
overflow: hidden;
|
|
209
|
-
white-space: nowrap;
|
|
210
|
-
text-align: center;
|
|
211
|
-
text-overflow: ellipsis;
|
|
212
|
-
position: relative;
|
|
213
|
-
|
|
214
|
-
min-height: calc(var(--input-padding-block, #{rem(12)}) + var(--input-padding-block, #{rem(12)}) + var(--input-lh, #{rem(20)}) + 4px);
|
|
215
|
-
max-height: calc(var(--input-padding-block, #{rem(12)}) + var(--input-padding-block, #{rem(12)}) + var(--input-lh, #{rem(20)}) + 4px);
|
|
216
|
-
|
|
196
|
+
display: none;
|
|
197
|
+
}
|
|
198
|
+
@supports selector(:has(*)) {
|
|
217
199
|
|
|
218
|
-
|
|
200
|
+
:is(.prefix, .suffix) {
|
|
219
201
|
display: inline-block;
|
|
220
|
-
|
|
221
|
-
|
|
202
|
+
width: auto;
|
|
203
|
+
padding: var(--input-padding-block, #{rem(12)}) var(--input-padding-block, #{rem(16)});
|
|
204
|
+
font-size: var(--input-fs, #{rem(16)});
|
|
205
|
+
line-height: var(--input-lh, #{rem(20)});
|
|
206
|
+
color: var(--colour-body);
|
|
207
|
+
background-color: var(--colour-primary-theme);
|
|
208
|
+
border: 2px solid var(--colour-primary);
|
|
209
|
+
color: var(--colour-white);
|
|
210
|
+
margin-bottom: 1rem;
|
|
211
|
+
border-end-start-radius: rem(8);
|
|
212
|
+
border-start-start-radius: rem(8);
|
|
213
|
+
min-width: calc(#{rem(20 + 12 + 12)} + 4px);
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
white-space: nowrap;
|
|
216
|
+
text-align: center;
|
|
217
|
+
text-overflow: ellipsis;
|
|
218
|
+
position: relative;
|
|
219
|
+
|
|
220
|
+
min-height: calc(var(--input-padding-block, #{rem(12)}) + var(--input-padding-block, #{rem(12)}) + var(--input-lh, #{rem(20)}) + 4px);
|
|
221
|
+
max-height: calc(var(--input-padding-block, #{rem(12)}) + var(--input-padding-block, #{rem(12)}) + var(--input-lh, #{rem(20)}) + 4px);
|
|
222
222
|
|
|
223
|
-
&[class*="fa-"] {
|
|
224
|
-
width: calc(#{rem(20 + 12 + 12)} + 4px);
|
|
225
|
-
padding-inline: 0;
|
|
226
|
-
}
|
|
227
223
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
cursor: pointer;
|
|
233
|
-
}
|
|
224
|
+
&:after {
|
|
225
|
+
display: inline-block;
|
|
226
|
+
max-width: rem(20);
|
|
227
|
+
}
|
|
234
228
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
229
|
+
&[class*="fa-"] {
|
|
230
|
+
width: calc(#{rem(20 + 12 + 12)} + 4px);
|
|
231
|
+
padding-inline: 0;
|
|
232
|
+
}
|
|
238
233
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
select:has(option:nth-child(7):checked) ~ span:nth-of-type(7),
|
|
246
|
-
select:has(option:nth-child(8):checked) ~ span:nth-of-type(8),
|
|
247
|
-
select:has(option:nth-child(9):checked) ~ span:nth-of-type(9),
|
|
248
|
-
select:has(option:nth-child(10):checked) ~ span:nth-of-type(10) {
|
|
234
|
+
select {
|
|
235
|
+
position: absolute;
|
|
236
|
+
inset: 0;
|
|
237
|
+
opacity: 0;
|
|
238
|
+
cursor: pointer;
|
|
239
|
+
}
|
|
249
240
|
|
|
250
|
-
|
|
251
|
-
|
|
241
|
+
span {
|
|
242
|
+
display: none;
|
|
243
|
+
}
|
|
252
244
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
245
|
+
select:has(option:nth-child(1):checked) ~ span:nth-of-type(1),
|
|
246
|
+
select:has(option:nth-child(2):checked) ~ span:nth-of-type(2),
|
|
247
|
+
select:has(option:nth-child(3):checked) ~ span:nth-of-type(3),
|
|
248
|
+
select:has(option:nth-child(4):checked) ~ span:nth-of-type(4),
|
|
249
|
+
select:has(option:nth-child(5):checked) ~ span:nth-of-type(5),
|
|
250
|
+
select:has(option:nth-child(6):checked) ~ span:nth-of-type(6),
|
|
251
|
+
select:has(option:nth-child(7):checked) ~ span:nth-of-type(7),
|
|
252
|
+
select:has(option:nth-child(8):checked) ~ span:nth-of-type(8),
|
|
253
|
+
select:has(option:nth-child(9):checked) ~ span:nth-of-type(9),
|
|
254
|
+
select:has(option:nth-child(10):checked) ~ span:nth-of-type(10) {
|
|
255
|
+
|
|
256
|
+
display: block;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
select ~ span:after {
|
|
260
|
+
content: " \f078";
|
|
261
|
+
font-family: "Font Awesome 6 Pro";
|
|
262
|
+
font-size: 0.8em;
|
|
263
|
+
display: inline-block;
|
|
264
|
+
padding-left: 1em;
|
|
265
|
+
}
|
|
260
266
|
|
|
261
|
-
|
|
262
|
-
|
|
267
|
+
select:focus-visible ~ span:after {
|
|
268
|
+
content: "\f077";
|
|
269
|
+
}
|
|
263
270
|
}
|
|
264
|
-
}
|
|
265
271
|
|
|
266
|
-
.prefix {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}
|
|
272
|
+
.prefix {
|
|
273
|
+
|
|
274
|
+
border-right: none;
|
|
275
|
+
}
|
|
270
276
|
|
|
271
|
-
.suffix {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}
|
|
277
|
+
.suffix {
|
|
278
|
+
|
|
279
|
+
border-left: none;
|
|
280
|
+
border-end-start-radius: 0;
|
|
281
|
+
border-start-start-radius: 0;
|
|
282
|
+
border-start-end-radius: rem(8)!important;
|
|
283
|
+
border-end-end-radius: rem(8)!important;
|
|
284
|
+
order: 2;
|
|
285
|
+
}
|
|
280
286
|
|
|
281
|
-
.prefix span {
|
|
282
|
-
|
|
287
|
+
.prefix span {
|
|
288
|
+
display: none;
|
|
283
289
|
|
|
284
|
-
|
|
285
|
-
|
|
290
|
+
small {
|
|
291
|
+
font-size: 0.8em;
|
|
292
|
+
}
|
|
286
293
|
}
|
|
287
|
-
}
|
|
288
294
|
|
|
289
|
-
.prefix ~ :is(input,textarea,output) {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
295
|
+
.prefix ~ :is(input:not([type="checkbox"]):not([type="radio"]),textarea,output) {
|
|
296
|
+
|
|
297
|
+
border-end-start-radius: 0!important;
|
|
298
|
+
border-start-start-radius: 0!important;
|
|
299
|
+
}
|
|
294
300
|
|
|
295
|
-
.suffix ~ :is(input,textarea,output) {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
301
|
+
.suffix ~ :is(input:not([type="checkbox"]):not([type="radio"]),textarea,output) {
|
|
302
|
+
order: 1;
|
|
303
|
+
|
|
304
|
+
border-start-end-radius: 0!important;
|
|
305
|
+
border-end-end-radius: 0!important;
|
|
306
|
+
}
|
|
300
307
|
}
|
|
301
308
|
// #endregion
|
|
302
309
|
|
|
@@ -379,6 +386,8 @@ $icon-tick: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' view
|
|
|
379
386
|
// #endregion
|
|
380
387
|
|
|
381
388
|
// #region radio/checkbox field
|
|
389
|
+
@supports selector(:has(*)) {
|
|
390
|
+
|
|
382
391
|
input:is([type="radio"],[type="checkbox"]) {
|
|
383
392
|
position: absolute;
|
|
384
393
|
top: 0;
|
|
@@ -392,8 +401,7 @@ input:is([type="radio"],[type="checkbox"]) {
|
|
|
392
401
|
|
|
393
402
|
:is(div,fieldset):has(> input:is([type="radio"],[type="checkbox"])) {
|
|
394
403
|
position: relative;
|
|
395
|
-
|
|
396
|
-
padding-bottom: rem(24);
|
|
404
|
+
margin-bottom: rem(24);
|
|
397
405
|
}
|
|
398
406
|
|
|
399
407
|
:is(div,fieldset):has( > input[type="radio"]){
|
|
@@ -433,7 +441,7 @@ input:is([type="radio"],[type="checkbox"]) + label:not(:has(> iam-card)) {
|
|
|
433
441
|
|
|
434
442
|
&:last-child {
|
|
435
443
|
|
|
436
|
-
margin-bottom:
|
|
444
|
+
margin-bottom: 0;
|
|
437
445
|
}
|
|
438
446
|
|
|
439
447
|
&:before {
|
|
@@ -497,7 +505,7 @@ input[type="radio"] + label:not(:has(> iam-card)) {
|
|
|
497
505
|
}
|
|
498
506
|
|
|
499
507
|
div:has(> :is(input[type="radio"],input[type="checkbox"]):nth-of-type(2)) {
|
|
500
|
-
label:not(:has(> iam-card))
|
|
508
|
+
label:not(:has(> iam-card)) {
|
|
501
509
|
margin-bottom: 0rem;
|
|
502
510
|
}
|
|
503
511
|
}
|
|
@@ -629,6 +637,8 @@ input[type="checkbox"][disabled]:checked + label {
|
|
|
629
637
|
border-color: #E0E0E0!important;
|
|
630
638
|
}
|
|
631
639
|
}
|
|
640
|
+
|
|
641
|
+
}
|
|
632
642
|
// #endregion
|
|
633
643
|
|
|
634
644
|
// #region Conditional reveal
|
|
@@ -10,11 +10,17 @@ body:has(iam-nav.open:not(.nav--sticky):not(.nav--xs-sticky)) {
|
|
|
10
10
|
body {
|
|
11
11
|
|
|
12
12
|
--nav-height: #{rem(96)};
|
|
13
|
+
--sticky-padding: 0px;
|
|
13
14
|
|
|
14
15
|
&:has(iam-nav a[slot="secondary"]){
|
|
15
16
|
|
|
16
17
|
--nav-height: #{rem(96 + 40)};
|
|
17
18
|
}
|
|
19
|
+
|
|
20
|
+
&:has(iam-nav.nav--sticky) {
|
|
21
|
+
|
|
22
|
+
--sticky-padding: var(--nav-height);
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
// #region Create the correct padding top of the page
|
|
@@ -110,7 +116,7 @@ iam-nav {
|
|
|
110
116
|
text-decoration: none;
|
|
111
117
|
}
|
|
112
118
|
|
|
113
|
-
a:not([slot="logo"]):not(:has(iam-card)) {
|
|
119
|
+
a:not([slot="logo"]):not(.btn):not(:has(iam-card)) {
|
|
114
120
|
|
|
115
121
|
text-decoration: none;
|
|
116
122
|
|
|
@@ -165,7 +171,7 @@ iam-nav details {
|
|
|
165
171
|
|
|
166
172
|
background-color: var(--colour-canvas);
|
|
167
173
|
|
|
168
|
-
@
|
|
174
|
+
@include light-mode() {
|
|
169
175
|
background-color: #EEEEEE;
|
|
170
176
|
}
|
|
171
177
|
|
|
@@ -180,9 +186,9 @@ iam-nav details {
|
|
|
180
186
|
background-color: var(--colour-white);
|
|
181
187
|
|
|
182
188
|
|
|
183
|
-
@
|
|
189
|
+
@include dark-mode() {
|
|
184
190
|
|
|
185
|
-
|
|
191
|
+
background-color: var(--colour-canvas-2);
|
|
186
192
|
}
|
|
187
193
|
display:block;
|
|
188
194
|
border: none;
|
|
@@ -378,11 +384,11 @@ iam-nav details {
|
|
|
378
384
|
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.11);
|
|
379
385
|
|
|
380
386
|
|
|
381
|
-
@
|
|
387
|
+
@include light-mode() {
|
|
382
388
|
background: var(--colour-white);
|
|
383
389
|
@include reset-colours();
|
|
384
390
|
}
|
|
385
|
-
@
|
|
391
|
+
@include dark-mode() {
|
|
386
392
|
|
|
387
393
|
@include invert-colours();
|
|
388
394
|
}
|
|
@@ -393,7 +399,7 @@ iam-nav details {
|
|
|
393
399
|
|
|
394
400
|
background: var(--colour-canvas-2);
|
|
395
401
|
|
|
396
|
-
@
|
|
402
|
+
@include light-mode() {
|
|
397
403
|
background: #EEEEEE;
|
|
398
404
|
}
|
|
399
405
|
a {
|
|
@@ -426,7 +432,7 @@ iam-nav details {
|
|
|
426
432
|
&[open] > div:not(:has(details)) {
|
|
427
433
|
background: var(--colour-canvas);
|
|
428
434
|
|
|
429
|
-
@
|
|
435
|
+
@include light-mode() {
|
|
430
436
|
background: var(--colour-white);
|
|
431
437
|
--colour-canvas-2: white;
|
|
432
438
|
}
|
|
@@ -489,7 +495,7 @@ iam-nav details {
|
|
|
489
495
|
}
|
|
490
496
|
}
|
|
491
497
|
|
|
492
|
-
a:not([slot="logo"]):not(:has(iam-card)) {
|
|
498
|
+
a:not([slot="logo"]):not(.btn):not(:has(iam-card)) {
|
|
493
499
|
|
|
494
500
|
font-size: 1rem;
|
|
495
501
|
line-height: rem(24);
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.btn {
|
|
101
|
-
@
|
|
101
|
+
@include light-mode() {
|
|
102
102
|
|
|
103
103
|
@include reset-colours();
|
|
104
104
|
|
|
@@ -188,13 +188,13 @@
|
|
|
188
188
|
flex-shrink: 0;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
@
|
|
191
|
+
@include dark-mode() {
|
|
192
192
|
--colour-link: var(--colour-white);
|
|
193
193
|
@include invert-colours();
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
// The menu is always white unless in dark mode
|
|
197
|
-
@
|
|
197
|
+
@include light-mode() {
|
|
198
198
|
|
|
199
199
|
background-color: var(--colour-white);
|
|
200
200
|
@include reset-colours();
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
flex-grow: 1;
|
|
243
243
|
position: relative;
|
|
244
244
|
|
|
245
|
-
@
|
|
245
|
+
@include light-mode() {
|
|
246
246
|
background-color: #EEEEEE;
|
|
247
247
|
}
|
|
248
248
|
|
|
@@ -393,14 +393,13 @@
|
|
|
393
393
|
left: 0;
|
|
394
394
|
width: 100%;
|
|
395
395
|
|
|
396
|
-
@
|
|
396
|
+
@include light-mode(){
|
|
397
397
|
|
|
398
398
|
background-color: #EEEEEE;
|
|
399
399
|
@include reset-colours();
|
|
400
400
|
}
|
|
401
401
|
|
|
402
|
-
@
|
|
403
|
-
|
|
402
|
+
@include dark-mode() {
|
|
404
403
|
|
|
405
404
|
@include invert-colours();
|
|
406
405
|
}
|
|
@@ -494,7 +493,7 @@
|
|
|
494
493
|
|
|
495
494
|
background: #E6EAEC!important;
|
|
496
495
|
|
|
497
|
-
@
|
|
496
|
+
@include dark-mode() {
|
|
498
497
|
|
|
499
498
|
background: var(--colour-canvas-2)!important;
|
|
500
499
|
}
|
|
@@ -564,13 +563,13 @@
|
|
|
564
563
|
flex-shrink: 0;
|
|
565
564
|
}
|
|
566
565
|
|
|
567
|
-
@
|
|
566
|
+
@include dark-mode() {
|
|
568
567
|
--colour-link: var(--colour-white);
|
|
569
568
|
@include invert-colours();
|
|
570
569
|
}
|
|
571
570
|
|
|
572
571
|
// The menu is always white unless in dark mode
|
|
573
|
-
@
|
|
572
|
+
@include light-mode() {
|
|
574
573
|
|
|
575
574
|
background-color: var(--colour-white);
|
|
576
575
|
@include reset-colours();
|
|
@@ -76,7 +76,7 @@ tr td[colspan="100%"]:first-child:last-child span {
|
|
|
76
76
|
@container (width >= 60em) {
|
|
77
77
|
thead {
|
|
78
78
|
|
|
79
|
-
th {
|
|
79
|
+
th:not(:empty) {
|
|
80
80
|
white-space: nowrap;
|
|
81
81
|
min-width: #{$td-mw};
|
|
82
82
|
}
|
|
@@ -136,12 +136,17 @@ table.border-0 {
|
|
|
136
136
|
margin-bottom: 0;
|
|
137
137
|
|
|
138
138
|
td:has(input[type="checkbox"]) {
|
|
139
|
-
width: rem(
|
|
140
|
-
min-width: rem(
|
|
141
|
-
max-width: rem(
|
|
139
|
+
width: rem(40);
|
|
140
|
+
min-width: rem(40);
|
|
141
|
+
max-width: rem(40);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
@media screen and (prefers-color-scheme: dark) {
|
|
146
|
+
|
|
147
|
+
background: var(--colour-canvas-2);
|
|
148
|
+
}
|
|
149
|
+
|
|
145
150
|
@media (forced-colors: active) {
|
|
146
151
|
--wrapper-padding: 0;
|
|
147
152
|
background: var(--colour-canvas-2);
|
|
@@ -170,6 +175,11 @@ table.border-0 {
|
|
|
170
175
|
margin-right: -1.5rem;
|
|
171
176
|
margin-bottom: 0;
|
|
172
177
|
background: white;
|
|
178
|
+
|
|
179
|
+
@media screen and (prefers-color-scheme: dark) {
|
|
180
|
+
|
|
181
|
+
background: var(--colour-canvas-2);
|
|
182
|
+
}
|
|
173
183
|
}
|
|
174
184
|
|
|
175
185
|
|
|
@@ -381,7 +391,13 @@ table.border-0 {
|
|
|
381
391
|
margin-left: rem(-40);
|
|
382
392
|
min-height: var(--row-height);
|
|
383
393
|
text-align: right;
|
|
394
|
+
background: linear-gradient(90deg, transparent 0%, white 1.25rem);
|
|
395
|
+
cursor: default;
|
|
396
|
+
|
|
397
|
+
@media screen and (prefers-color-scheme: dark) {
|
|
398
|
+
|
|
384
399
|
background: linear-gradient(90deg, transparent 0%, var(--colour-canvas-2) 1.25rem);
|
|
400
|
+
}
|
|
385
401
|
|
|
386
402
|
&:after {
|
|
387
403
|
bottom: 0;
|
|
@@ -622,3 +638,68 @@ table {
|
|
|
622
638
|
color: var(--colour-primary);
|
|
623
639
|
}
|
|
624
640
|
}
|
|
641
|
+
|
|
642
|
+
// #region Table with actionbar
|
|
643
|
+
|
|
644
|
+
iam-table {
|
|
645
|
+
|
|
646
|
+
td:has([type="checkbox"]){
|
|
647
|
+
position: static!important;
|
|
648
|
+
width: rem(40);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
input:is([type="radio"],[type="checkbox"]) + label {
|
|
652
|
+
padding-left: 0!important;
|
|
653
|
+
margin: 0!important;
|
|
654
|
+
|
|
655
|
+
&:before,
|
|
656
|
+
&:after {
|
|
657
|
+
top: 0!important;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
table:has([type="checkbox"]:checked) tr:has([type="checkbox"]){
|
|
662
|
+
|
|
663
|
+
cursor: pointer;
|
|
664
|
+
|
|
665
|
+
&:is(:hover, :focus) {
|
|
666
|
+
|
|
667
|
+
background: var(--hover-background);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
td {
|
|
671
|
+
background: transparent;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
[type="checkbox"] {
|
|
675
|
+
width: 100%;
|
|
676
|
+
height: 100%;
|
|
677
|
+
max-height: var(--row-height);
|
|
678
|
+
max-width: 100%;
|
|
679
|
+
cursor: pointer;
|
|
680
|
+
pointer-events: all;
|
|
681
|
+
top: auto;
|
|
682
|
+
margin: 0;
|
|
683
|
+
margin-top: -0.75rem;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
@container (width < 23.4375em) {
|
|
690
|
+
|
|
691
|
+
iam-table:has([slot="before"]) {
|
|
692
|
+
|
|
693
|
+
iam-actionbar {
|
|
694
|
+
background-color: #e6eaec;
|
|
695
|
+
}
|
|
696
|
+
.actionbar__sticky + * {
|
|
697
|
+
margin-top: 0!important;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.table__wrapper.has-actionbar {
|
|
702
|
+
margin-top: calc(-100vh - -6.75rem)!important;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
// #endregion
|
package/assets/sass/core.scss
CHANGED
package/assets/sass/error.scss
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// Dark mode; functional colours get updated
|
|
42
|
-
@
|
|
42
|
+
@include dark-mode() {
|
|
43
43
|
:root {
|
|
44
44
|
|
|
45
45
|
@each $color, $value in $dark-mode-colors {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@
|
|
52
|
+
@include light-mode() {
|
|
53
53
|
|
|
54
54
|
// Reset the colours of lighter backgrounds to make sure they aren't over written by dark mode. Some other tweaks to colours are applied
|
|
55
55
|
[class*="bg-"]:not(.bg-primary):not(.bg-dark):not(.bg-danger):not(.bg-white):not(.bg-canvas):not(.bg-canvas-2):not(.invert-colours) {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
@
|
|
75
|
+
@include dark-mode() {
|
|
76
76
|
|
|
77
77
|
// Reset the colours of lighter backgrounds to make sure they aren't over written by dark mode. Some other tweaks to colours are applied
|
|
78
78
|
[class*="bg-"]:not(.bg-canvas):not(.bg-canvas-2) {
|
package/assets/sass/main.scss
CHANGED