@iamproperty/components 3.6.0 → 3.7.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/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 +19 -9
- package/assets/js/components/table/table.component.min.js +13 -13
- 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/applied-filters.js +1 -1
- package/assets/js/modules/dialogs.js +184 -0
- package/assets/js/modules/helpers.js +1 -89
- package/assets/js/modules/table.js +113 -37
- package/assets/js/modules/tabs.js +0 -2
- package/assets/js/scripts.bundle.js +26 -26
- 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 +34 -13
- 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 +125 -92
- package/assets/sass/foundations/buttons.scss +9 -13
- package/assets/sass/foundations/icons.scss +14 -69
- package/assets/sass/foundations/reboot.scss +19 -7
- 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 +24 -10
- 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/applied-filters.ts +1 -1
- package/assets/ts/modules/dialogs.ts +248 -0
- package/assets/ts/modules/helpers.ts +1 -123
- package/assets/ts/modules/table.ts +153 -47
- package/assets/ts/modules/tabs.ts +0 -4
- package/assets/ts/tests/table.spec.ts +21 -6
- package/dist/components.es.js +1114 -1101
- package/dist/components.umd.js +23 -19
- 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', () => {
|
|
@@ -40,8 +55,8 @@ describe('addDataAttributes', () => {
|
|
|
40
55
|
expect(table.querySelector('tbody td:nth-child(2)').getAttribute('data-label')).toEqual('Heading 2');
|
|
41
56
|
});
|
|
42
57
|
test('should add data-content attribute to the table cells if the content matches a pre-defined list', () => {
|
|
43
|
-
expect(table.querySelector('tbody tr:nth-child(2) td:nth-child(2)').getAttribute('data-content')).toEqual('
|
|
44
|
-
expect(table.querySelector('tbody tr:nth-child(3) td:nth-child(2)').getAttribute('data-content')).toEqual('
|
|
58
|
+
expect(table.querySelector('tbody tr:nth-child(2) td:nth-child(2)').getAttribute('data-content')).toEqual('low');
|
|
59
|
+
expect(table.querySelector('tbody tr:nth-child(3) td:nth-child(2)').getAttribute('data-content')).toEqual('medium');
|
|
45
60
|
});
|
|
46
61
|
});
|
|
47
62
|
/* TODO: This unit test doesn't work as puppeteer seems to have an issue with query selector all
|
|
@@ -127,19 +142,25 @@ describe('filterTable', () => {
|
|
|
127
142
|
expect(table.querySelectorAll('tbody tr.filtered--matched').length).toEqual(1);
|
|
128
143
|
});
|
|
129
144
|
});
|
|
145
|
+
/*
|
|
130
146
|
describe('populateDataQueries', () => {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
147
|
+
|
|
148
|
+
const table = document.createElement('table');
|
|
149
|
+
table.innerHTML = basicTable;
|
|
150
|
+
const form = document.createElement('form');
|
|
151
|
+
form.innerHTML += `<div><input name="heading" value="Low" data-filter="Heading 2" /><span data-query="total"></span><span data-query="Heading 2 == Low"></span></div>`;
|
|
152
|
+
|
|
153
|
+
tableModule.addDataAttributes(table);
|
|
154
|
+
tableModule.filterTable(table, form, document.createElement('div'));
|
|
155
|
+
tableModule.populateDataQueries(table, form);
|
|
156
|
+
|
|
157
|
+
test('should populate elements with the data-query attribute with the result of the corresponding query', () => {
|
|
158
|
+
|
|
159
|
+
//expect(form.querySelector('[data-query="total"]').textContent).toEqual('4');
|
|
160
|
+
//expect(form.querySelector('[data-query="Heading 2 == Low"]').textContent).toEqual('2');
|
|
161
|
+
});
|
|
142
162
|
});
|
|
163
|
+
*/
|
|
143
164
|
describe('formatCell', () => {
|
|
144
165
|
test('should format the text correctly', () => {
|
|
145
166
|
expect(tableModule.formatCell('date', '2023-05-15 12:10:45.000000')).toEqual('15 May 23');
|
|
@@ -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
|
}
|