@italia/card 1.0.0-alpha.8 → 1.0.0-beta.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/custom-elements.json +92 -24
- package/dist/src/it-card.d.ts +5 -1
- package/dist/src/it-card.d.ts.map +1 -1
- package/dist/src/it-card.js +1082 -108
- package/dist/src/it-card.js.map +1 -1
- package/dist/src/types.d.ts +2 -0
- package/dist/src/types.d.ts.map +1 -1
- package/package.json +5 -5
- package/styles/_fouc.scss +54 -4
- package/styles/globals.scss +17 -4
package/dist/src/it-card.js
CHANGED
|
@@ -36,14 +36,80 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
36
36
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
const ARIA_IDREF_ATTRIBUTES = new Map([
|
|
40
|
+
['aria-activedescendant', 'ariaActivedescendantElement'],
|
|
41
|
+
['aria-controls', 'ariaControlsElements'],
|
|
42
|
+
['aria-describedby', 'ariaDescribedByElements'],
|
|
43
|
+
['aria-details', 'ariaDetailsElements'],
|
|
44
|
+
['aria-errormessage', 'ariaErrormessageElements'],
|
|
45
|
+
['aria-flowto', 'ariaFlowtoElements'],
|
|
46
|
+
['aria-labelledby', 'ariaLabelledByElements'],
|
|
47
|
+
['aria-owns', 'ariaOwnsElements'],
|
|
48
|
+
]);
|
|
49
|
+
function resolveAriaIdRefs(element, value) {
|
|
50
|
+
const ids = value
|
|
51
|
+
.trim()
|
|
52
|
+
.split(/\s+/)
|
|
53
|
+
.filter((id) => id.length > 0);
|
|
54
|
+
if (ids.length === 0)
|
|
55
|
+
return null;
|
|
56
|
+
const root = element.getRootNode();
|
|
57
|
+
let resolvedElements = [];
|
|
58
|
+
if (root instanceof ShadowRoot) {
|
|
59
|
+
resolvedElements = ids.map((id) => root.getElementById(id));
|
|
60
|
+
}
|
|
61
|
+
else if (root instanceof Document) {
|
|
62
|
+
resolvedElements = ids.map((id) => root.getElementById(id));
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
resolvedElements = ids.map((id) => document.getElementById(id));
|
|
66
|
+
}
|
|
67
|
+
if (resolvedElements.filter((el) => el !== null).length === 0) {
|
|
68
|
+
resolvedElements = ids.map((id) => document.getElementById(id));
|
|
69
|
+
}
|
|
70
|
+
const validElements = resolvedElements.filter((el) => el !== null);
|
|
71
|
+
return validElements.length === ids.length ? validElements : null;
|
|
72
|
+
}
|
|
73
|
+
function setInternalsProperty(el, name, resolvedElements) {
|
|
74
|
+
if (name === 'aria-activedescendant') {
|
|
75
|
+
const [firstElement] = resolvedElements;
|
|
76
|
+
// eslint-disable-next-line no-param-reassign
|
|
77
|
+
el[name] = firstElement;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
// eslint-disable-next-line no-param-reassign
|
|
81
|
+
el[name] = resolvedElements;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
39
84
|
class SetAttributesDirective extends Directive {
|
|
40
85
|
update(part, [attributes]) {
|
|
41
86
|
const el = part.element;
|
|
87
|
+
const internals = el.internals ?? null;
|
|
42
88
|
for (const [name, value] of Object.entries(attributes)) {
|
|
43
|
-
if (value
|
|
44
|
-
el.setAttribute(name, value);
|
|
45
|
-
else
|
|
89
|
+
if (value == null) {
|
|
46
90
|
el.removeAttribute(name);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
const internalsPropertyName = ARIA_IDREF_ATTRIBUTES.get(name);
|
|
94
|
+
if (internalsPropertyName) {
|
|
95
|
+
const resolvedElements = resolveAriaIdRefs(el, String(value));
|
|
96
|
+
if (resolvedElements) {
|
|
97
|
+
if (internals) {
|
|
98
|
+
// Set on ElementInternals
|
|
99
|
+
setInternalsProperty(internals, internalsPropertyName, resolvedElements);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
// Set internals property on shadowdom item
|
|
103
|
+
el.setAttribute(name, String(value));
|
|
104
|
+
setInternalsProperty(el, internalsPropertyName, resolvedElements);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
// Non-ARIA IDREF attributes: set normally
|
|
110
|
+
el.setAttribute(name, String(value));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
47
113
|
}
|
|
48
114
|
return null;
|
|
49
115
|
}
|
|
@@ -114,7 +180,9 @@ function registerTranslation(...translation) {
|
|
|
114
180
|
});
|
|
115
181
|
update();
|
|
116
182
|
}
|
|
117
|
-
window
|
|
183
|
+
if (typeof window !== 'undefined') {
|
|
184
|
+
window.registerTranslation = registerTranslation;
|
|
185
|
+
}
|
|
118
186
|
/**
|
|
119
187
|
* Localize Reactive Controller for components built with Lit
|
|
120
188
|
*
|
|
@@ -409,6 +477,26 @@ class BaseComponent extends LitElement {
|
|
|
409
477
|
// generate internal _id
|
|
410
478
|
const prefix = this.id?.length > 0 ? this.id : this.tagName.toLowerCase();
|
|
411
479
|
this._id = this.generateId(prefix);
|
|
480
|
+
this.ariaAttributesObserver = new MutationObserver((mutations) => {
|
|
481
|
+
const shouldUpdate = mutations.some((mutation) => {
|
|
482
|
+
if (mutation.type !== 'attributes' || !mutation.attributeName) {
|
|
483
|
+
return false;
|
|
484
|
+
}
|
|
485
|
+
return mutation.attributeName === 'it-role' || mutation.attributeName.startsWith('it-aria-');
|
|
486
|
+
});
|
|
487
|
+
if (shouldUpdate) {
|
|
488
|
+
this.requestUpdate();
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
this.ariaAttributesObserver.observe(this, {
|
|
492
|
+
attributes: true,
|
|
493
|
+
attributeOldValue: true,
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
disconnectedCallback() {
|
|
497
|
+
this.ariaAttributesObserver?.disconnect();
|
|
498
|
+
this.ariaAttributesObserver = undefined;
|
|
499
|
+
super.disconnectedCallback();
|
|
412
500
|
}
|
|
413
501
|
}
|
|
414
502
|
const BaseLocalizedComponent = LocalizeMixin(BaseComponent);
|
|
@@ -472,6 +560,14 @@ class FormControlController {
|
|
|
472
560
|
case 'it-toggle-group':
|
|
473
561
|
// non settare valori in formData, perchè ogni singola checkbox setta il suo valore
|
|
474
562
|
break;
|
|
563
|
+
case 'it-upload':
|
|
564
|
+
// value is File[] — append each File object directly (not as string)
|
|
565
|
+
if (Array.isArray(value)) {
|
|
566
|
+
value.forEach((file) => {
|
|
567
|
+
event.formData.append(name, file);
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
break;
|
|
475
571
|
default:
|
|
476
572
|
if (Array.isArray(value)) {
|
|
477
573
|
value.forEach((val) => {
|
|
@@ -833,7 +929,7 @@ class FormControl extends BaseLocalizedComponent {
|
|
|
833
929
|
});
|
|
834
930
|
// TODO: verificare se serve davvero con il fatto che usiamo form-controller
|
|
835
931
|
// static formAssociated = true;
|
|
836
|
-
//
|
|
932
|
+
// @property()
|
|
837
933
|
// internals = this.attachInternals();
|
|
838
934
|
this._touched = false;
|
|
839
935
|
/** The name of the input, submitted as a name/value pair with form data. */
|
|
@@ -1081,7 +1177,7 @@ if (typeof window !== 'undefined') {
|
|
|
1081
1177
|
window._itAnalytics = window._itAnalytics || {};
|
|
1082
1178
|
window._itAnalytics = {
|
|
1083
1179
|
...window._itAnalytics,
|
|
1084
|
-
version: '1.0.0-
|
|
1180
|
+
version: '1.0.0-beta.0',
|
|
1085
1181
|
};
|
|
1086
1182
|
}
|
|
1087
1183
|
|
|
@@ -1103,21 +1199,9 @@ const CARD_BORDER_COLORS = ['primary', 'secondary', 'success', 'danger', 'warnin
|
|
|
1103
1199
|
const CARD_IMAGE_RATIOS = ['1x1', '4x3', '16x9', '21x9'];
|
|
1104
1200
|
const CARD_SHADOWS = ['none', 'sm', 'md', 'lg'];
|
|
1105
1201
|
const CARD_HEADING_LEVELS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
1202
|
+
const CARD_HEADING_SIZES = ['sm', 'md'];
|
|
1106
1203
|
|
|
1107
1204
|
var styles = css`@charset "UTF-8";
|
|
1108
|
-
/***************************** 1 ****************************************/
|
|
1109
|
-
/***************************** 2 ****************************************/
|
|
1110
|
-
/***************************** 1 ****************************************/
|
|
1111
|
-
/***************************** 2 ****************************************/
|
|
1112
|
-
/***************************** 1 ****************************************/
|
|
1113
|
-
/***************************** 2 ****************************************/
|
|
1114
|
-
/***************************** 3 ****************************************/
|
|
1115
|
-
/***************************** 1 ****************************************/
|
|
1116
|
-
/***************************** 2 ****************************************/
|
|
1117
|
-
/***************************** 3 ****************************************/
|
|
1118
|
-
/***************************** NEUTRAL 1 ****************************************/
|
|
1119
|
-
/***************************** NEUTRAL 2 ****************************************/
|
|
1120
|
-
/***************************** NEUTRAL 2 / 3 ****************************************/
|
|
1121
1205
|
.ratio {
|
|
1122
1206
|
position: relative;
|
|
1123
1207
|
width: 100%;
|
|
@@ -1184,6 +1268,7 @@ var styles = css`@charset "UTF-8";
|
|
|
1184
1268
|
--bsi-card-title-spacing-y: var(
|
|
1185
1269
|
--bsi-card-spacing-y
|
|
1186
1270
|
);
|
|
1271
|
+
--bsi-card-text-font-size: var(--bsi-font-size-3);
|
|
1187
1272
|
--bsi-card-signature-font-size: var(--bsi-label-font-size);
|
|
1188
1273
|
--bsi-card-signature-font-family: var(--bsi-font-mono);
|
|
1189
1274
|
}
|
|
@@ -1210,6 +1295,17 @@ var styles = css`@charset "UTF-8";
|
|
|
1210
1295
|
display: flex;
|
|
1211
1296
|
justify-content: space-between;
|
|
1212
1297
|
}
|
|
1298
|
+
.it-card .it-card-title.it-card-title-icon > * {
|
|
1299
|
+
margin: 0.25rem;
|
|
1300
|
+
}
|
|
1301
|
+
@supports (gap: 0.5rem) {
|
|
1302
|
+
.it-card .it-card-title.it-card-title-icon {
|
|
1303
|
+
gap: 0.5rem;
|
|
1304
|
+
}
|
|
1305
|
+
.it-card .it-card-title.it-card-title-icon > * {
|
|
1306
|
+
margin: 0;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1213
1309
|
.it-card .it-card-title.it-card-title-icon .it-card-title-icon-wrapper {
|
|
1214
1310
|
margin-left: var(--bsi-icon-spacing);
|
|
1215
1311
|
}
|
|
@@ -1296,7 +1392,7 @@ var styles = css`@charset "UTF-8";
|
|
|
1296
1392
|
color: var(--bsi-card-link-color);
|
|
1297
1393
|
}
|
|
1298
1394
|
.it-card .it-card-link:hover {
|
|
1299
|
-
color:
|
|
1395
|
+
color: color-hover(hsl(210, 33%, 28%));
|
|
1300
1396
|
}
|
|
1301
1397
|
.it-card .it-card-link + .it-card-link {
|
|
1302
1398
|
margin-left: var(--bsi-card-spacing-x);
|
|
@@ -1312,8 +1408,8 @@ var styles = css`@charset "UTF-8";
|
|
|
1312
1408
|
line-height: var(--bsi-font-leading-2);
|
|
1313
1409
|
}
|
|
1314
1410
|
.it-card .it-card-body .it-card-text {
|
|
1315
|
-
font-size: var(--bsi-font-size
|
|
1316
|
-
line-height: var(--bsi-
|
|
1411
|
+
font-size: var(--bsi-card-text-font-size);
|
|
1412
|
+
line-height: var(--bsi-body-leading);
|
|
1317
1413
|
}
|
|
1318
1414
|
.it-card .it-card-body .it-card-text:last-child {
|
|
1319
1415
|
margin-bottom: 0;
|
|
@@ -1332,8 +1428,6 @@ var styles = css`@charset "UTF-8";
|
|
|
1332
1428
|
}
|
|
1333
1429
|
.it-card.it-card-image.it-card-inline {
|
|
1334
1430
|
padding-left: 0;
|
|
1335
|
-
}
|
|
1336
|
-
.it-card.it-card-image.it-card-inline-reverse {
|
|
1337
1431
|
padding-right: 0;
|
|
1338
1432
|
}
|
|
1339
1433
|
.it-card.it-card-height-full {
|
|
@@ -1470,6 +1564,9 @@ var styles = css`@charset "UTF-8";
|
|
|
1470
1564
|
flex-wrap: wrap-reverse;
|
|
1471
1565
|
justify-content: space-between;
|
|
1472
1566
|
align-items: center;
|
|
1567
|
+
margin-top: calc(2 * var(--bsi-card-title-spacer-y));
|
|
1568
|
+
margin-bottom: var(--bsi-card-title-spacer-y);
|
|
1569
|
+
padding: 0 var(--bsi-card-spacer-x);
|
|
1473
1570
|
}
|
|
1474
1571
|
.it-card.it-card-profile .it-card-profile-header > * {
|
|
1475
1572
|
margin: 0.5rem;
|
|
@@ -1482,11 +1579,6 @@ var styles = css`@charset "UTF-8";
|
|
|
1482
1579
|
margin: 0;
|
|
1483
1580
|
}
|
|
1484
1581
|
}
|
|
1485
|
-
.it-card.it-card-profile .it-card-profile-header {
|
|
1486
|
-
margin-top: calc(2 * var(--bsi-card-title-spacer-y));
|
|
1487
|
-
margin-bottom: var(--bsi-card-title-spacer-y);
|
|
1488
|
-
padding: 0 var(--bsi-card-spacer-x);
|
|
1489
|
-
}
|
|
1490
1582
|
.it-card.it-card-profile .it-card-profile-header .it-card-profile {
|
|
1491
1583
|
flex: 1;
|
|
1492
1584
|
max-width: 100%;
|
|
@@ -1737,6 +1829,299 @@ ul.it-card-list > li[class*=col-] {
|
|
|
1737
1829
|
justify-content: flex-end;
|
|
1738
1830
|
}
|
|
1739
1831
|
|
|
1832
|
+
*,
|
|
1833
|
+
*::before,
|
|
1834
|
+
*::after {
|
|
1835
|
+
box-sizing: border-box;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1839
|
+
:root {
|
|
1840
|
+
scroll-behavior: smooth;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
body {
|
|
1845
|
+
margin: 0;
|
|
1846
|
+
-webkit-text-size-adjust: 100%;
|
|
1847
|
+
-webkit-tap-highlight-color: hsla(0, 0%, 0%, 0);
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
hr {
|
|
1851
|
+
margin: 1rem 0;
|
|
1852
|
+
color: inherit;
|
|
1853
|
+
border: 0;
|
|
1854
|
+
border-top: 1px solid;
|
|
1855
|
+
opacity: 0.25;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
p {
|
|
1859
|
+
margin-top: 0;
|
|
1860
|
+
margin-bottom: var(--bsi-paragraph-spacing);
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
abbr[title] {
|
|
1864
|
+
text-decoration: underline dotted;
|
|
1865
|
+
cursor: help;
|
|
1866
|
+
text-decoration-skip-ink: none;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
address {
|
|
1870
|
+
margin-bottom: var(--bsi-spacing-s);
|
|
1871
|
+
font-style: normal;
|
|
1872
|
+
line-height: inherit;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
ol,
|
|
1876
|
+
ul {
|
|
1877
|
+
padding-left: var(--bsi-spacing-l);
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
ol,
|
|
1881
|
+
ul,
|
|
1882
|
+
dl {
|
|
1883
|
+
margin-top: 0;
|
|
1884
|
+
margin-bottom: var(--bsi-spacing-s);
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
ol ol,
|
|
1888
|
+
ul ul,
|
|
1889
|
+
ol ul,
|
|
1890
|
+
ul ol {
|
|
1891
|
+
margin-bottom: 0;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
dt {
|
|
1895
|
+
font-weight: var(--bsi-font-weight-strong);
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
dd {
|
|
1899
|
+
margin-bottom: var(--bsi-spacing-xxs);
|
|
1900
|
+
margin-left: 0;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
blockquote {
|
|
1904
|
+
margin: 0 0 var(--bsi-spacing-s);
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
sub,
|
|
1908
|
+
sup {
|
|
1909
|
+
position: relative;
|
|
1910
|
+
font-size: var(--bsi-font-size-1);
|
|
1911
|
+
line-height: 0;
|
|
1912
|
+
vertical-align: baseline;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
sub {
|
|
1916
|
+
bottom: -0.25em;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
sup {
|
|
1920
|
+
top: -0.5em;
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
a {
|
|
1924
|
+
color: var(--bsi-color-link);
|
|
1925
|
+
text-decoration: underline;
|
|
1926
|
+
text-decoration-skip-ink: auto;
|
|
1927
|
+
text-underline-offset: 2px;
|
|
1928
|
+
}
|
|
1929
|
+
a:hover {
|
|
1930
|
+
color: var(--bsi-color-link-hover);
|
|
1931
|
+
cursor: pointer;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
pre,
|
|
1935
|
+
code,
|
|
1936
|
+
kbd,
|
|
1937
|
+
samp {
|
|
1938
|
+
font-size: 1em;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
pre {
|
|
1942
|
+
display: block;
|
|
1943
|
+
margin-top: 0;
|
|
1944
|
+
margin-bottom: var(--bsi-paragraph-spacing);
|
|
1945
|
+
overflow: auto;
|
|
1946
|
+
}
|
|
1947
|
+
pre code {
|
|
1948
|
+
word-break: normal;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
a > code {
|
|
1952
|
+
color: inherit;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
figure {
|
|
1956
|
+
margin: 0 0 1rem;
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
img,
|
|
1960
|
+
svg {
|
|
1961
|
+
vertical-align: middle;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
table {
|
|
1965
|
+
caption-side: bottom;
|
|
1966
|
+
border-collapse: collapse;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
caption {
|
|
1970
|
+
padding-top: 0.5rem;
|
|
1971
|
+
padding-bottom: 0.5rem;
|
|
1972
|
+
color: hsl(210, 17%, 44%);
|
|
1973
|
+
text-align: left;
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
th {
|
|
1977
|
+
text-align: inherit;
|
|
1978
|
+
text-align: -webkit-match-parent;
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
thead,
|
|
1982
|
+
tbody,
|
|
1983
|
+
tfoot,
|
|
1984
|
+
tr,
|
|
1985
|
+
td,
|
|
1986
|
+
th {
|
|
1987
|
+
border-color: inherit;
|
|
1988
|
+
border-style: solid;
|
|
1989
|
+
border-width: 0;
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
label {
|
|
1993
|
+
display: inline-block;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
button {
|
|
1997
|
+
border-radius: 0;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
button:focus:not(:focus-visible) {
|
|
2001
|
+
outline: 0;
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
input,
|
|
2005
|
+
button,
|
|
2006
|
+
select,
|
|
2007
|
+
optgroup,
|
|
2008
|
+
textarea {
|
|
2009
|
+
margin: 0;
|
|
2010
|
+
font-family: inherit;
|
|
2011
|
+
font-size: inherit;
|
|
2012
|
+
line-height: inherit;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
button,
|
|
2016
|
+
select {
|
|
2017
|
+
text-transform: none;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
[role=button] {
|
|
2021
|
+
cursor: pointer;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
select {
|
|
2025
|
+
word-wrap: normal;
|
|
2026
|
+
}
|
|
2027
|
+
select:disabled {
|
|
2028
|
+
opacity: 1;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator {
|
|
2032
|
+
display: none !important;
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
button,
|
|
2036
|
+
[type=button],
|
|
2037
|
+
[type=reset],
|
|
2038
|
+
[type=submit] {
|
|
2039
|
+
-webkit-appearance: button;
|
|
2040
|
+
}
|
|
2041
|
+
button:not(:disabled),
|
|
2042
|
+
[type=button]:not(:disabled),
|
|
2043
|
+
[type=reset]:not(:disabled),
|
|
2044
|
+
[type=submit]:not(:disabled) {
|
|
2045
|
+
cursor: pointer;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
::-moz-focus-inner {
|
|
2049
|
+
padding: 0;
|
|
2050
|
+
border-style: none;
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
textarea {
|
|
2054
|
+
resize: vertical;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
fieldset {
|
|
2058
|
+
min-width: 0;
|
|
2059
|
+
padding: 0;
|
|
2060
|
+
margin: 0;
|
|
2061
|
+
border: 0;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
::-webkit-datetime-edit-fields-wrapper,
|
|
2065
|
+
::-webkit-datetime-edit-text,
|
|
2066
|
+
::-webkit-datetime-edit-minute,
|
|
2067
|
+
::-webkit-datetime-edit-hour-field,
|
|
2068
|
+
::-webkit-datetime-edit-day-field,
|
|
2069
|
+
::-webkit-datetime-edit-month-field,
|
|
2070
|
+
::-webkit-datetime-edit-year-field {
|
|
2071
|
+
padding: 0;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
::-webkit-inner-spin-button {
|
|
2075
|
+
height: auto;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
[type=search] {
|
|
2079
|
+
outline-offset: -2px;
|
|
2080
|
+
-webkit-appearance: textfield;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/* rtl:raw:
|
|
2084
|
+
[type="tel"],
|
|
2085
|
+
[type="url"],
|
|
2086
|
+
[type="email"],
|
|
2087
|
+
[type="number"] {
|
|
2088
|
+
direction: ltr;
|
|
2089
|
+
}
|
|
2090
|
+
*/
|
|
2091
|
+
::-webkit-search-decoration {
|
|
2092
|
+
-webkit-appearance: none;
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
::-webkit-color-swatch-wrapper {
|
|
2096
|
+
padding: 0;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
::file-selector-button {
|
|
2100
|
+
font: inherit;
|
|
2101
|
+
-webkit-appearance: button;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
output {
|
|
2105
|
+
display: inline-block;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
iframe {
|
|
2109
|
+
border: 0;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
summary {
|
|
2113
|
+
display: list-item;
|
|
2114
|
+
cursor: pointer;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
progress {
|
|
2118
|
+
vertical-align: baseline;
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
[hidden] {
|
|
2122
|
+
display: none !important;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
1740
2125
|
body {
|
|
1741
2126
|
font-family: var(--bsi-font-sans);
|
|
1742
2127
|
}
|
|
@@ -1879,7 +2264,7 @@ h6,
|
|
|
1879
2264
|
.h6 {
|
|
1880
2265
|
margin-top: 0;
|
|
1881
2266
|
margin-bottom: var(--bsi-heading-spacing);
|
|
1882
|
-
line-height: var(--bsi-heading-
|
|
2267
|
+
line-height: var(--bsi-heading-leading);
|
|
1883
2268
|
}
|
|
1884
2269
|
:is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) + h1, p + h1,
|
|
1885
2270
|
:is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) + .h1,
|
|
@@ -1946,13 +2331,13 @@ h1,
|
|
|
1946
2331
|
.display-1 {
|
|
1947
2332
|
font-size: var(--bsi-display-font-size);
|
|
1948
2333
|
font-weight: var(--bsi-heading-font-weight);
|
|
1949
|
-
line-height: var(--bsi-heading-
|
|
2334
|
+
line-height: var(--bsi-heading-leading);
|
|
1950
2335
|
}
|
|
1951
2336
|
|
|
1952
2337
|
.lead {
|
|
1953
2338
|
font-size: var(--bsi-lead-font-size);
|
|
1954
2339
|
font-weight: var(--bsi-lead-font-weight);
|
|
1955
|
-
line-height: var(--bsi-lead-
|
|
2340
|
+
line-height: var(--bsi-lead-leading);
|
|
1956
2341
|
}
|
|
1957
2342
|
|
|
1958
2343
|
blockquote,
|
|
@@ -2034,6 +2419,604 @@ blockquote.blockquote-card.dark .blockquote-footer,
|
|
|
2034
2419
|
text-transform: uppercase;
|
|
2035
2420
|
}
|
|
2036
2421
|
|
|
2422
|
+
.rounded {
|
|
2423
|
+
border-radius: var(--bsi-radius-smooth) !important;
|
|
2424
|
+
}
|
|
2425
|
+
|
|
2426
|
+
.d-none {
|
|
2427
|
+
display: none !important;
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
.shadow-sm {
|
|
2431
|
+
box-shadow: var(--bsi-elevation-low) !important;
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
.shadow-md {
|
|
2435
|
+
box-shadow: var(--bsi-elevation-medium) !important;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
.shadow-lg {
|
|
2439
|
+
box-shadow: var(--bsi-elevation-high) !important;
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
.shadow-none {
|
|
2443
|
+
box-shadow: none !important;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
.border {
|
|
2447
|
+
border: var(--bsi-border-base) var(--bsi-border-style) var(--bsi-border-color) !important;
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
.border-0 {
|
|
2451
|
+
border: 0 !important;
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
.border-top {
|
|
2455
|
+
border-top: var(--bsi-border-base) var(--bsi-border-style) var(--bsi-border-color) !important;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
.border-top-0 {
|
|
2459
|
+
border-top: 0 !important;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
.p-0 {
|
|
2463
|
+
padding: 0 !important;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
.p-1 {
|
|
2467
|
+
padding: 0.25rem !important;
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
.p-2 {
|
|
2471
|
+
padding: 0.5rem !important;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
.p-3 {
|
|
2475
|
+
padding: 1rem !important;
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
.p-4 {
|
|
2479
|
+
padding: 1.5rem !important;
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
.p-5 {
|
|
2483
|
+
padding: 3rem !important;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
.px-0 {
|
|
2487
|
+
padding-right: 0 !important;
|
|
2488
|
+
padding-left: 0 !important;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
.px-1 {
|
|
2492
|
+
padding-right: 0.25rem !important;
|
|
2493
|
+
padding-left: 0.25rem !important;
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
.px-2 {
|
|
2497
|
+
padding-right: 0.5rem !important;
|
|
2498
|
+
padding-left: 0.5rem !important;
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
.px-3 {
|
|
2502
|
+
padding-right: 1rem !important;
|
|
2503
|
+
padding-left: 1rem !important;
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
.px-4 {
|
|
2507
|
+
padding-right: 1.5rem !important;
|
|
2508
|
+
padding-left: 1.5rem !important;
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
.px-5 {
|
|
2512
|
+
padding-right: 3rem !important;
|
|
2513
|
+
padding-left: 3rem !important;
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
.py-0 {
|
|
2517
|
+
padding-top: 0 !important;
|
|
2518
|
+
padding-bottom: 0 !important;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.py-1 {
|
|
2522
|
+
padding-top: 0.25rem !important;
|
|
2523
|
+
padding-bottom: 0.25rem !important;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
.py-2 {
|
|
2527
|
+
padding-top: 0.5rem !important;
|
|
2528
|
+
padding-bottom: 0.5rem !important;
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
.py-3 {
|
|
2532
|
+
padding-top: 1rem !important;
|
|
2533
|
+
padding-bottom: 1rem !important;
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
.py-4 {
|
|
2537
|
+
padding-top: 1.5rem !important;
|
|
2538
|
+
padding-bottom: 1.5rem !important;
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
.py-5 {
|
|
2542
|
+
padding-top: 3rem !important;
|
|
2543
|
+
padding-bottom: 3rem !important;
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
.pt-0 {
|
|
2547
|
+
padding-top: 0 !important;
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
.pt-1 {
|
|
2551
|
+
padding-top: 0.25rem !important;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
.pt-2 {
|
|
2555
|
+
padding-top: 0.5rem !important;
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
.pt-3 {
|
|
2559
|
+
padding-top: 1rem !important;
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
.pt-4 {
|
|
2563
|
+
padding-top: 1.5rem !important;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
.pt-5 {
|
|
2567
|
+
padding-top: 3rem !important;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
@media (min-width: 576px) {
|
|
2571
|
+
.d-sm-none {
|
|
2572
|
+
display: none !important;
|
|
2573
|
+
}
|
|
2574
|
+
.p-sm-0 {
|
|
2575
|
+
padding: 0 !important;
|
|
2576
|
+
}
|
|
2577
|
+
.p-sm-1 {
|
|
2578
|
+
padding: 0.25rem !important;
|
|
2579
|
+
}
|
|
2580
|
+
.p-sm-2 {
|
|
2581
|
+
padding: 0.5rem !important;
|
|
2582
|
+
}
|
|
2583
|
+
.p-sm-3 {
|
|
2584
|
+
padding: 1rem !important;
|
|
2585
|
+
}
|
|
2586
|
+
.p-sm-4 {
|
|
2587
|
+
padding: 1.5rem !important;
|
|
2588
|
+
}
|
|
2589
|
+
.p-sm-5 {
|
|
2590
|
+
padding: 3rem !important;
|
|
2591
|
+
}
|
|
2592
|
+
.px-sm-0 {
|
|
2593
|
+
padding-right: 0 !important;
|
|
2594
|
+
padding-left: 0 !important;
|
|
2595
|
+
}
|
|
2596
|
+
.px-sm-1 {
|
|
2597
|
+
padding-right: 0.25rem !important;
|
|
2598
|
+
padding-left: 0.25rem !important;
|
|
2599
|
+
}
|
|
2600
|
+
.px-sm-2 {
|
|
2601
|
+
padding-right: 0.5rem !important;
|
|
2602
|
+
padding-left: 0.5rem !important;
|
|
2603
|
+
}
|
|
2604
|
+
.px-sm-3 {
|
|
2605
|
+
padding-right: 1rem !important;
|
|
2606
|
+
padding-left: 1rem !important;
|
|
2607
|
+
}
|
|
2608
|
+
.px-sm-4 {
|
|
2609
|
+
padding-right: 1.5rem !important;
|
|
2610
|
+
padding-left: 1.5rem !important;
|
|
2611
|
+
}
|
|
2612
|
+
.px-sm-5 {
|
|
2613
|
+
padding-right: 3rem !important;
|
|
2614
|
+
padding-left: 3rem !important;
|
|
2615
|
+
}
|
|
2616
|
+
.py-sm-0 {
|
|
2617
|
+
padding-top: 0 !important;
|
|
2618
|
+
padding-bottom: 0 !important;
|
|
2619
|
+
}
|
|
2620
|
+
.py-sm-1 {
|
|
2621
|
+
padding-top: 0.25rem !important;
|
|
2622
|
+
padding-bottom: 0.25rem !important;
|
|
2623
|
+
}
|
|
2624
|
+
.py-sm-2 {
|
|
2625
|
+
padding-top: 0.5rem !important;
|
|
2626
|
+
padding-bottom: 0.5rem !important;
|
|
2627
|
+
}
|
|
2628
|
+
.py-sm-3 {
|
|
2629
|
+
padding-top: 1rem !important;
|
|
2630
|
+
padding-bottom: 1rem !important;
|
|
2631
|
+
}
|
|
2632
|
+
.py-sm-4 {
|
|
2633
|
+
padding-top: 1.5rem !important;
|
|
2634
|
+
padding-bottom: 1.5rem !important;
|
|
2635
|
+
}
|
|
2636
|
+
.py-sm-5 {
|
|
2637
|
+
padding-top: 3rem !important;
|
|
2638
|
+
padding-bottom: 3rem !important;
|
|
2639
|
+
}
|
|
2640
|
+
.pt-sm-0 {
|
|
2641
|
+
padding-top: 0 !important;
|
|
2642
|
+
}
|
|
2643
|
+
.pt-sm-1 {
|
|
2644
|
+
padding-top: 0.25rem !important;
|
|
2645
|
+
}
|
|
2646
|
+
.pt-sm-2 {
|
|
2647
|
+
padding-top: 0.5rem !important;
|
|
2648
|
+
}
|
|
2649
|
+
.pt-sm-3 {
|
|
2650
|
+
padding-top: 1rem !important;
|
|
2651
|
+
}
|
|
2652
|
+
.pt-sm-4 {
|
|
2653
|
+
padding-top: 1.5rem !important;
|
|
2654
|
+
}
|
|
2655
|
+
.pt-sm-5 {
|
|
2656
|
+
padding-top: 3rem !important;
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
@media (min-width: 768px) {
|
|
2660
|
+
.d-md-none {
|
|
2661
|
+
display: none !important;
|
|
2662
|
+
}
|
|
2663
|
+
.p-md-0 {
|
|
2664
|
+
padding: 0 !important;
|
|
2665
|
+
}
|
|
2666
|
+
.p-md-1 {
|
|
2667
|
+
padding: 0.25rem !important;
|
|
2668
|
+
}
|
|
2669
|
+
.p-md-2 {
|
|
2670
|
+
padding: 0.5rem !important;
|
|
2671
|
+
}
|
|
2672
|
+
.p-md-3 {
|
|
2673
|
+
padding: 1rem !important;
|
|
2674
|
+
}
|
|
2675
|
+
.p-md-4 {
|
|
2676
|
+
padding: 1.5rem !important;
|
|
2677
|
+
}
|
|
2678
|
+
.p-md-5 {
|
|
2679
|
+
padding: 3rem !important;
|
|
2680
|
+
}
|
|
2681
|
+
.px-md-0 {
|
|
2682
|
+
padding-right: 0 !important;
|
|
2683
|
+
padding-left: 0 !important;
|
|
2684
|
+
}
|
|
2685
|
+
.px-md-1 {
|
|
2686
|
+
padding-right: 0.25rem !important;
|
|
2687
|
+
padding-left: 0.25rem !important;
|
|
2688
|
+
}
|
|
2689
|
+
.px-md-2 {
|
|
2690
|
+
padding-right: 0.5rem !important;
|
|
2691
|
+
padding-left: 0.5rem !important;
|
|
2692
|
+
}
|
|
2693
|
+
.px-md-3 {
|
|
2694
|
+
padding-right: 1rem !important;
|
|
2695
|
+
padding-left: 1rem !important;
|
|
2696
|
+
}
|
|
2697
|
+
.px-md-4 {
|
|
2698
|
+
padding-right: 1.5rem !important;
|
|
2699
|
+
padding-left: 1.5rem !important;
|
|
2700
|
+
}
|
|
2701
|
+
.px-md-5 {
|
|
2702
|
+
padding-right: 3rem !important;
|
|
2703
|
+
padding-left: 3rem !important;
|
|
2704
|
+
}
|
|
2705
|
+
.py-md-0 {
|
|
2706
|
+
padding-top: 0 !important;
|
|
2707
|
+
padding-bottom: 0 !important;
|
|
2708
|
+
}
|
|
2709
|
+
.py-md-1 {
|
|
2710
|
+
padding-top: 0.25rem !important;
|
|
2711
|
+
padding-bottom: 0.25rem !important;
|
|
2712
|
+
}
|
|
2713
|
+
.py-md-2 {
|
|
2714
|
+
padding-top: 0.5rem !important;
|
|
2715
|
+
padding-bottom: 0.5rem !important;
|
|
2716
|
+
}
|
|
2717
|
+
.py-md-3 {
|
|
2718
|
+
padding-top: 1rem !important;
|
|
2719
|
+
padding-bottom: 1rem !important;
|
|
2720
|
+
}
|
|
2721
|
+
.py-md-4 {
|
|
2722
|
+
padding-top: 1.5rem !important;
|
|
2723
|
+
padding-bottom: 1.5rem !important;
|
|
2724
|
+
}
|
|
2725
|
+
.py-md-5 {
|
|
2726
|
+
padding-top: 3rem !important;
|
|
2727
|
+
padding-bottom: 3rem !important;
|
|
2728
|
+
}
|
|
2729
|
+
.pt-md-0 {
|
|
2730
|
+
padding-top: 0 !important;
|
|
2731
|
+
}
|
|
2732
|
+
.pt-md-1 {
|
|
2733
|
+
padding-top: 0.25rem !important;
|
|
2734
|
+
}
|
|
2735
|
+
.pt-md-2 {
|
|
2736
|
+
padding-top: 0.5rem !important;
|
|
2737
|
+
}
|
|
2738
|
+
.pt-md-3 {
|
|
2739
|
+
padding-top: 1rem !important;
|
|
2740
|
+
}
|
|
2741
|
+
.pt-md-4 {
|
|
2742
|
+
padding-top: 1.5rem !important;
|
|
2743
|
+
}
|
|
2744
|
+
.pt-md-5 {
|
|
2745
|
+
padding-top: 3rem !important;
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
@media (min-width: 992px) {
|
|
2749
|
+
.d-lg-none {
|
|
2750
|
+
display: none !important;
|
|
2751
|
+
}
|
|
2752
|
+
.p-lg-0 {
|
|
2753
|
+
padding: 0 !important;
|
|
2754
|
+
}
|
|
2755
|
+
.p-lg-1 {
|
|
2756
|
+
padding: 0.25rem !important;
|
|
2757
|
+
}
|
|
2758
|
+
.p-lg-2 {
|
|
2759
|
+
padding: 0.5rem !important;
|
|
2760
|
+
}
|
|
2761
|
+
.p-lg-3 {
|
|
2762
|
+
padding: 1rem !important;
|
|
2763
|
+
}
|
|
2764
|
+
.p-lg-4 {
|
|
2765
|
+
padding: 1.5rem !important;
|
|
2766
|
+
}
|
|
2767
|
+
.p-lg-5 {
|
|
2768
|
+
padding: 3rem !important;
|
|
2769
|
+
}
|
|
2770
|
+
.px-lg-0 {
|
|
2771
|
+
padding-right: 0 !important;
|
|
2772
|
+
padding-left: 0 !important;
|
|
2773
|
+
}
|
|
2774
|
+
.px-lg-1 {
|
|
2775
|
+
padding-right: 0.25rem !important;
|
|
2776
|
+
padding-left: 0.25rem !important;
|
|
2777
|
+
}
|
|
2778
|
+
.px-lg-2 {
|
|
2779
|
+
padding-right: 0.5rem !important;
|
|
2780
|
+
padding-left: 0.5rem !important;
|
|
2781
|
+
}
|
|
2782
|
+
.px-lg-3 {
|
|
2783
|
+
padding-right: 1rem !important;
|
|
2784
|
+
padding-left: 1rem !important;
|
|
2785
|
+
}
|
|
2786
|
+
.px-lg-4 {
|
|
2787
|
+
padding-right: 1.5rem !important;
|
|
2788
|
+
padding-left: 1.5rem !important;
|
|
2789
|
+
}
|
|
2790
|
+
.px-lg-5 {
|
|
2791
|
+
padding-right: 3rem !important;
|
|
2792
|
+
padding-left: 3rem !important;
|
|
2793
|
+
}
|
|
2794
|
+
.py-lg-0 {
|
|
2795
|
+
padding-top: 0 !important;
|
|
2796
|
+
padding-bottom: 0 !important;
|
|
2797
|
+
}
|
|
2798
|
+
.py-lg-1 {
|
|
2799
|
+
padding-top: 0.25rem !important;
|
|
2800
|
+
padding-bottom: 0.25rem !important;
|
|
2801
|
+
}
|
|
2802
|
+
.py-lg-2 {
|
|
2803
|
+
padding-top: 0.5rem !important;
|
|
2804
|
+
padding-bottom: 0.5rem !important;
|
|
2805
|
+
}
|
|
2806
|
+
.py-lg-3 {
|
|
2807
|
+
padding-top: 1rem !important;
|
|
2808
|
+
padding-bottom: 1rem !important;
|
|
2809
|
+
}
|
|
2810
|
+
.py-lg-4 {
|
|
2811
|
+
padding-top: 1.5rem !important;
|
|
2812
|
+
padding-bottom: 1.5rem !important;
|
|
2813
|
+
}
|
|
2814
|
+
.py-lg-5 {
|
|
2815
|
+
padding-top: 3rem !important;
|
|
2816
|
+
padding-bottom: 3rem !important;
|
|
2817
|
+
}
|
|
2818
|
+
.pt-lg-0 {
|
|
2819
|
+
padding-top: 0 !important;
|
|
2820
|
+
}
|
|
2821
|
+
.pt-lg-1 {
|
|
2822
|
+
padding-top: 0.25rem !important;
|
|
2823
|
+
}
|
|
2824
|
+
.pt-lg-2 {
|
|
2825
|
+
padding-top: 0.5rem !important;
|
|
2826
|
+
}
|
|
2827
|
+
.pt-lg-3 {
|
|
2828
|
+
padding-top: 1rem !important;
|
|
2829
|
+
}
|
|
2830
|
+
.pt-lg-4 {
|
|
2831
|
+
padding-top: 1.5rem !important;
|
|
2832
|
+
}
|
|
2833
|
+
.pt-lg-5 {
|
|
2834
|
+
padding-top: 3rem !important;
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
@media (min-width: 1200px) {
|
|
2838
|
+
.d-xl-none {
|
|
2839
|
+
display: none !important;
|
|
2840
|
+
}
|
|
2841
|
+
.p-xl-0 {
|
|
2842
|
+
padding: 0 !important;
|
|
2843
|
+
}
|
|
2844
|
+
.p-xl-1 {
|
|
2845
|
+
padding: 0.25rem !important;
|
|
2846
|
+
}
|
|
2847
|
+
.p-xl-2 {
|
|
2848
|
+
padding: 0.5rem !important;
|
|
2849
|
+
}
|
|
2850
|
+
.p-xl-3 {
|
|
2851
|
+
padding: 1rem !important;
|
|
2852
|
+
}
|
|
2853
|
+
.p-xl-4 {
|
|
2854
|
+
padding: 1.5rem !important;
|
|
2855
|
+
}
|
|
2856
|
+
.p-xl-5 {
|
|
2857
|
+
padding: 3rem !important;
|
|
2858
|
+
}
|
|
2859
|
+
.px-xl-0 {
|
|
2860
|
+
padding-right: 0 !important;
|
|
2861
|
+
padding-left: 0 !important;
|
|
2862
|
+
}
|
|
2863
|
+
.px-xl-1 {
|
|
2864
|
+
padding-right: 0.25rem !important;
|
|
2865
|
+
padding-left: 0.25rem !important;
|
|
2866
|
+
}
|
|
2867
|
+
.px-xl-2 {
|
|
2868
|
+
padding-right: 0.5rem !important;
|
|
2869
|
+
padding-left: 0.5rem !important;
|
|
2870
|
+
}
|
|
2871
|
+
.px-xl-3 {
|
|
2872
|
+
padding-right: 1rem !important;
|
|
2873
|
+
padding-left: 1rem !important;
|
|
2874
|
+
}
|
|
2875
|
+
.px-xl-4 {
|
|
2876
|
+
padding-right: 1.5rem !important;
|
|
2877
|
+
padding-left: 1.5rem !important;
|
|
2878
|
+
}
|
|
2879
|
+
.px-xl-5 {
|
|
2880
|
+
padding-right: 3rem !important;
|
|
2881
|
+
padding-left: 3rem !important;
|
|
2882
|
+
}
|
|
2883
|
+
.py-xl-0 {
|
|
2884
|
+
padding-top: 0 !important;
|
|
2885
|
+
padding-bottom: 0 !important;
|
|
2886
|
+
}
|
|
2887
|
+
.py-xl-1 {
|
|
2888
|
+
padding-top: 0.25rem !important;
|
|
2889
|
+
padding-bottom: 0.25rem !important;
|
|
2890
|
+
}
|
|
2891
|
+
.py-xl-2 {
|
|
2892
|
+
padding-top: 0.5rem !important;
|
|
2893
|
+
padding-bottom: 0.5rem !important;
|
|
2894
|
+
}
|
|
2895
|
+
.py-xl-3 {
|
|
2896
|
+
padding-top: 1rem !important;
|
|
2897
|
+
padding-bottom: 1rem !important;
|
|
2898
|
+
}
|
|
2899
|
+
.py-xl-4 {
|
|
2900
|
+
padding-top: 1.5rem !important;
|
|
2901
|
+
padding-bottom: 1.5rem !important;
|
|
2902
|
+
}
|
|
2903
|
+
.py-xl-5 {
|
|
2904
|
+
padding-top: 3rem !important;
|
|
2905
|
+
padding-bottom: 3rem !important;
|
|
2906
|
+
}
|
|
2907
|
+
.pt-xl-0 {
|
|
2908
|
+
padding-top: 0 !important;
|
|
2909
|
+
}
|
|
2910
|
+
.pt-xl-1 {
|
|
2911
|
+
padding-top: 0.25rem !important;
|
|
2912
|
+
}
|
|
2913
|
+
.pt-xl-2 {
|
|
2914
|
+
padding-top: 0.5rem !important;
|
|
2915
|
+
}
|
|
2916
|
+
.pt-xl-3 {
|
|
2917
|
+
padding-top: 1rem !important;
|
|
2918
|
+
}
|
|
2919
|
+
.pt-xl-4 {
|
|
2920
|
+
padding-top: 1.5rem !important;
|
|
2921
|
+
}
|
|
2922
|
+
.pt-xl-5 {
|
|
2923
|
+
padding-top: 3rem !important;
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
@media (min-width: 1400px) {
|
|
2927
|
+
.d-xxl-none {
|
|
2928
|
+
display: none !important;
|
|
2929
|
+
}
|
|
2930
|
+
.p-xxl-0 {
|
|
2931
|
+
padding: 0 !important;
|
|
2932
|
+
}
|
|
2933
|
+
.p-xxl-1 {
|
|
2934
|
+
padding: 0.25rem !important;
|
|
2935
|
+
}
|
|
2936
|
+
.p-xxl-2 {
|
|
2937
|
+
padding: 0.5rem !important;
|
|
2938
|
+
}
|
|
2939
|
+
.p-xxl-3 {
|
|
2940
|
+
padding: 1rem !important;
|
|
2941
|
+
}
|
|
2942
|
+
.p-xxl-4 {
|
|
2943
|
+
padding: 1.5rem !important;
|
|
2944
|
+
}
|
|
2945
|
+
.p-xxl-5 {
|
|
2946
|
+
padding: 3rem !important;
|
|
2947
|
+
}
|
|
2948
|
+
.px-xxl-0 {
|
|
2949
|
+
padding-right: 0 !important;
|
|
2950
|
+
padding-left: 0 !important;
|
|
2951
|
+
}
|
|
2952
|
+
.px-xxl-1 {
|
|
2953
|
+
padding-right: 0.25rem !important;
|
|
2954
|
+
padding-left: 0.25rem !important;
|
|
2955
|
+
}
|
|
2956
|
+
.px-xxl-2 {
|
|
2957
|
+
padding-right: 0.5rem !important;
|
|
2958
|
+
padding-left: 0.5rem !important;
|
|
2959
|
+
}
|
|
2960
|
+
.px-xxl-3 {
|
|
2961
|
+
padding-right: 1rem !important;
|
|
2962
|
+
padding-left: 1rem !important;
|
|
2963
|
+
}
|
|
2964
|
+
.px-xxl-4 {
|
|
2965
|
+
padding-right: 1.5rem !important;
|
|
2966
|
+
padding-left: 1.5rem !important;
|
|
2967
|
+
}
|
|
2968
|
+
.px-xxl-5 {
|
|
2969
|
+
padding-right: 3rem !important;
|
|
2970
|
+
padding-left: 3rem !important;
|
|
2971
|
+
}
|
|
2972
|
+
.py-xxl-0 {
|
|
2973
|
+
padding-top: 0 !important;
|
|
2974
|
+
padding-bottom: 0 !important;
|
|
2975
|
+
}
|
|
2976
|
+
.py-xxl-1 {
|
|
2977
|
+
padding-top: 0.25rem !important;
|
|
2978
|
+
padding-bottom: 0.25rem !important;
|
|
2979
|
+
}
|
|
2980
|
+
.py-xxl-2 {
|
|
2981
|
+
padding-top: 0.5rem !important;
|
|
2982
|
+
padding-bottom: 0.5rem !important;
|
|
2983
|
+
}
|
|
2984
|
+
.py-xxl-3 {
|
|
2985
|
+
padding-top: 1rem !important;
|
|
2986
|
+
padding-bottom: 1rem !important;
|
|
2987
|
+
}
|
|
2988
|
+
.py-xxl-4 {
|
|
2989
|
+
padding-top: 1.5rem !important;
|
|
2990
|
+
padding-bottom: 1.5rem !important;
|
|
2991
|
+
}
|
|
2992
|
+
.py-xxl-5 {
|
|
2993
|
+
padding-top: 3rem !important;
|
|
2994
|
+
padding-bottom: 3rem !important;
|
|
2995
|
+
}
|
|
2996
|
+
.pt-xxl-0 {
|
|
2997
|
+
padding-top: 0 !important;
|
|
2998
|
+
}
|
|
2999
|
+
.pt-xxl-1 {
|
|
3000
|
+
padding-top: 0.25rem !important;
|
|
3001
|
+
}
|
|
3002
|
+
.pt-xxl-2 {
|
|
3003
|
+
padding-top: 0.5rem !important;
|
|
3004
|
+
}
|
|
3005
|
+
.pt-xxl-3 {
|
|
3006
|
+
padding-top: 1rem !important;
|
|
3007
|
+
}
|
|
3008
|
+
.pt-xxl-4 {
|
|
3009
|
+
padding-top: 1.5rem !important;
|
|
3010
|
+
}
|
|
3011
|
+
.pt-xxl-5 {
|
|
3012
|
+
padding-top: 3rem !important;
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
@media print {
|
|
3016
|
+
.d-print-none {
|
|
3017
|
+
display: none !important;
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
2037
3020
|
/**
|
|
2038
3021
|
* Copied from bsi reboot
|
|
2039
3022
|
*/
|
|
@@ -2047,6 +3030,9 @@ p {
|
|
|
2047
3030
|
margin-top: 0;
|
|
2048
3031
|
margin-bottom: var(--bsi-paragraph-spacing);
|
|
2049
3032
|
}
|
|
3033
|
+
p:last-of-type {
|
|
3034
|
+
margin-bottom: 0;
|
|
3035
|
+
}
|
|
2050
3036
|
|
|
2051
3037
|
address {
|
|
2052
3038
|
margin-bottom: var(--bsi-spacing-s);
|
|
@@ -2088,6 +3074,9 @@ dl {
|
|
|
2088
3074
|
width: 100%;
|
|
2089
3075
|
justify-content: space-between;
|
|
2090
3076
|
}
|
|
3077
|
+
.it-card .it-card-title.it-card-title-icon ::slotted(a):focus-visible {
|
|
3078
|
+
display: inline-block;
|
|
3079
|
+
}
|
|
2091
3080
|
.it-card .it-card-footer {
|
|
2092
3081
|
display: block;
|
|
2093
3082
|
}
|
|
@@ -2097,7 +3086,6 @@ dl {
|
|
|
2097
3086
|
flex-wrap: wrap;
|
|
2098
3087
|
align-items: flex-end;
|
|
2099
3088
|
justify-content: flex-end;
|
|
2100
|
-
margin-top: var(--bsi-card-spacing-y);
|
|
2101
3089
|
color: var(--bsi-card-footer-text-color);
|
|
2102
3090
|
gap: var(--bsi-card-spacing-y);
|
|
2103
3091
|
}
|
|
@@ -2106,67 +3094,15 @@ dl {
|
|
|
2106
3094
|
flex-grow: 1;
|
|
2107
3095
|
}
|
|
2108
3096
|
|
|
2109
|
-
.
|
|
2110
|
-
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
.d-none {
|
|
2114
|
-
display: none !important;
|
|
2115
|
-
}
|
|
2116
|
-
|
|
2117
|
-
.shadow-sm {
|
|
2118
|
-
box-shadow: var(--bsi-elevation-low) !important;
|
|
3097
|
+
.it-card-place-type {
|
|
3098
|
+
margin-top: 0.25rem;
|
|
2119
3099
|
}
|
|
2120
3100
|
|
|
2121
|
-
.
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
box-shadow: var(--bsi-elevation-high) !important;
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
.shadow-none {
|
|
2130
|
-
box-shadow: none !important;
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
.border {
|
|
2134
|
-
border: var(--bsi-border-base) var(--bsi-border-style) var(--bsi-color-border-subtle) !important;
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
.border-0 {
|
|
2138
|
-
border: 0 !important;
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
@media (min-width: 576px) {
|
|
2142
|
-
.d-sm-none {
|
|
2143
|
-
display: none !important;
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
@media (min-width: 768px) {
|
|
2147
|
-
.d-md-none {
|
|
2148
|
-
display: none !important;
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
@media (min-width: 992px) {
|
|
2152
|
-
.d-lg-none {
|
|
2153
|
-
display: none !important;
|
|
2154
|
-
}
|
|
2155
|
-
}
|
|
2156
|
-
@media (min-width: 1200px) {
|
|
2157
|
-
.d-xl-none {
|
|
2158
|
-
display: none !important;
|
|
2159
|
-
}
|
|
2160
|
-
}
|
|
2161
|
-
@media (min-width: 1400px) {
|
|
2162
|
-
.d-xxl-none {
|
|
2163
|
-
display: none !important;
|
|
2164
|
-
}
|
|
2165
|
-
}
|
|
2166
|
-
@media print {
|
|
2167
|
-
.d-print-none {
|
|
2168
|
-
display: none !important;
|
|
2169
|
-
}
|
|
3101
|
+
.it-card-place-address {
|
|
3102
|
+
margin-top: 0.25rem;
|
|
3103
|
+
margin-bottom: 0;
|
|
3104
|
+
font-size: 1rem;
|
|
3105
|
+
line-height: 1.5rem;
|
|
2170
3106
|
}`;
|
|
2171
3107
|
|
|
2172
3108
|
let ItCard = class ItCard extends BaseComponent {
|
|
@@ -2203,6 +3139,9 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2203
3139
|
if (this.headingLevel && !CARD_HEADING_LEVELS.includes(this.headingLevel)) {
|
|
2204
3140
|
this.logger.warn(`Invalid heading-level value, falling back to default. Expected one of: ${CARD_HEADING_LEVELS.join(', ')}`);
|
|
2205
3141
|
}
|
|
3142
|
+
if (this.headingSize && !CARD_HEADING_SIZES.includes(this.headingSize)) {
|
|
3143
|
+
this.logger.warn(`Invalid heading-size value, falling back to default. Expected one of: ${CARD_HEADING_SIZES.join(', ')}`);
|
|
3144
|
+
}
|
|
2206
3145
|
}
|
|
2207
3146
|
getHeadingLevel() {
|
|
2208
3147
|
if (CARD_HEADING_LEVELS.includes(this.headingLevel)) {
|
|
@@ -2248,6 +3187,7 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2248
3187
|
const shadowClass = CARD_SHADOWS.includes(this.shadow) ? `shadow-${this.shadow}` : 'shadow-sm';
|
|
2249
3188
|
const borderClass = this.border === '0' ? 'border-0' : 'border';
|
|
2250
3189
|
const hasSubtitle = this._subtitleElements.length > 0;
|
|
3190
|
+
const hasAddress = this._addressElements.length > 0;
|
|
2251
3191
|
const hasSignature = this._signatureElements.length > 0;
|
|
2252
3192
|
const hasText = this._textElements.length > 0;
|
|
2253
3193
|
const hasBody = this._bodyElements.length > 0 || hasText || hasSubtitle || hasSignature;
|
|
@@ -2256,7 +3196,7 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2256
3196
|
const hasActions = this._actionsElements.length > 0;
|
|
2257
3197
|
const hasTitleIcon = this._titleElements.some((el) => el.querySelector('.it-card-title-icon-wrapper') !== null);
|
|
2258
3198
|
const isInline = this.variant.startsWith('inline');
|
|
2259
|
-
const classes = this.composeClass('it-card', 'rounded', shadowClass, borderClass, {
|
|
3199
|
+
const classes = this.composeClass('it-card', 'rounded', shadowClass, borderClass, this.itClass, {
|
|
2260
3200
|
'it-card-inline': isInline,
|
|
2261
3201
|
'it-card-inline-reverse': this.variant.endsWith('reverse'),
|
|
2262
3202
|
'it-card-inline-mini': this.variant.includes('mini'),
|
|
@@ -2270,15 +3210,19 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2270
3210
|
'it-card-title': this.variant !== 'profile' && this.variant !== 'location',
|
|
2271
3211
|
'it-card-profile-name': this.variant === 'profile' || this.variant === 'location',
|
|
2272
3212
|
'it-card-title-icon': hasTitleIcon,
|
|
2273
|
-
h4: this.
|
|
2274
|
-
this.
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
this.
|
|
3213
|
+
h4: this.headingSize === 'sm' ||
|
|
3214
|
+
(this.headingSize === undefined &&
|
|
3215
|
+
(this.variant === 'inline-mini' ||
|
|
3216
|
+
this.variant === 'inline-mini-reverse' ||
|
|
3217
|
+
this.variant === 'profile' ||
|
|
3218
|
+
this.variant === 'location')),
|
|
3219
|
+
h3: this.headingSize === 'md' ||
|
|
3220
|
+
(this.headingSize === undefined &&
|
|
3221
|
+
this.headingLevel !== 'h3' &&
|
|
3222
|
+
!(this.variant === 'inline-mini' ||
|
|
3223
|
+
this.variant === 'inline-mini-reverse' ||
|
|
3224
|
+
this.variant === 'profile' ||
|
|
3225
|
+
this.variant === 'location')),
|
|
2282
3226
|
});
|
|
2283
3227
|
const headingTag = unsafeStatic(this.getHeadingLevel());
|
|
2284
3228
|
const cardTitle = html `
|
|
@@ -2324,21 +3268,26 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2324
3268
|
`;
|
|
2325
3269
|
const cardFooter = hasFooter
|
|
2326
3270
|
? html `
|
|
2327
|
-
<footer class="it-card-footer" part="footer">
|
|
3271
|
+
<footer class="it-card-footer ${this.variant === 'location' ? 'border-top pt-3' : ''}" part="footer">
|
|
2328
3272
|
<slot name="footer" @slotchange=${this.handleSlotChange}></slot>
|
|
2329
3273
|
</footer>
|
|
2330
3274
|
`
|
|
2331
3275
|
: html `<slot name="footer" @slotchange=${this.handleSlotChange}></slot>`;
|
|
2332
3276
|
const cardActions = hasActions
|
|
2333
3277
|
? html `
|
|
2334
|
-
<div
|
|
3278
|
+
<div
|
|
3279
|
+
class="it-card-actions"
|
|
3280
|
+
role="group"
|
|
3281
|
+
part="actions"
|
|
3282
|
+
aria-label=${this.actionsAriaLabel ? this.actionsAriaLabel : 'Link correlati:'}
|
|
3283
|
+
>
|
|
2335
3284
|
<slot name="actions" @slotchange=${this.handleSlotChange}></slot>
|
|
2336
3285
|
</div>
|
|
2337
3286
|
`
|
|
2338
3287
|
: html `<slot name="actions" @slotchange=${this.handleSlotChange}></slot>`;
|
|
2339
3288
|
if (this.variant === 'profile') {
|
|
2340
3289
|
return html `
|
|
2341
|
-
<article class="${classes}">
|
|
3290
|
+
<article class="${classes}" part="card">
|
|
2342
3291
|
<div class="it-card-profile-header">
|
|
2343
3292
|
<div class="it-card-profile-content">
|
|
2344
3293
|
${cardTitle}
|
|
@@ -2358,7 +3307,7 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2358
3307
|
}
|
|
2359
3308
|
if (this.variant === 'location') {
|
|
2360
3309
|
return html `
|
|
2361
|
-
<article class="${classes}">
|
|
3310
|
+
<article class="${classes}" part="card">
|
|
2362
3311
|
<div class="it-card-profile-header">
|
|
2363
3312
|
<div class="it-card-profile">
|
|
2364
3313
|
${cardTitle}
|
|
@@ -2369,6 +3318,13 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2369
3318
|
</p>
|
|
2370
3319
|
`
|
|
2371
3320
|
: html `<slot name="subtitle" @slotchange=${this.handleSlotChange}></slot>`}
|
|
3321
|
+
${hasAddress
|
|
3322
|
+
? html `
|
|
3323
|
+
<p class="it-card-place-address" part="address">
|
|
3324
|
+
<slot name="address" @slotchange=${this.handleSlotChange}></slot>
|
|
3325
|
+
</p>
|
|
3326
|
+
`
|
|
3327
|
+
: html `<slot name="address" @slotchange=${this.handleSlotChange}></slot>`}
|
|
2372
3328
|
</div>
|
|
2373
3329
|
${cardImage}
|
|
2374
3330
|
</div>
|
|
@@ -2378,13 +3334,15 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2378
3334
|
}
|
|
2379
3335
|
if (isInline) {
|
|
2380
3336
|
return html `
|
|
2381
|
-
<article class="${classes}">
|
|
3337
|
+
<article class="${classes}" part="card">
|
|
2382
3338
|
<div class="it-card-inline-content">${cardTitle}${cardBody}${cardFooter}${cardActions}</div>
|
|
2383
3339
|
${cardImage}
|
|
2384
3340
|
</article>
|
|
2385
3341
|
`;
|
|
2386
3342
|
}
|
|
2387
|
-
return html `
|
|
3343
|
+
return html `
|
|
3344
|
+
<article class="${classes}" part="card">${cardTitle}${cardImage}${cardBody}${cardFooter}${cardActions}</article>
|
|
3345
|
+
`;
|
|
2388
3346
|
}
|
|
2389
3347
|
};
|
|
2390
3348
|
ItCard.styles = styles;
|
|
@@ -2416,6 +3374,18 @@ __decorate([
|
|
|
2416
3374
|
property({ type: String, attribute: 'heading-level' }),
|
|
2417
3375
|
__metadata("design:type", String)
|
|
2418
3376
|
], ItCard.prototype, "headingLevel", void 0);
|
|
3377
|
+
__decorate([
|
|
3378
|
+
property({ type: String, attribute: 'heading-size' }),
|
|
3379
|
+
__metadata("design:type", String)
|
|
3380
|
+
], ItCard.prototype, "headingSize", void 0);
|
|
3381
|
+
__decorate([
|
|
3382
|
+
property({ type: String, attribute: 'it-class' }),
|
|
3383
|
+
__metadata("design:type", Object)
|
|
3384
|
+
], ItCard.prototype, "itClass", void 0);
|
|
3385
|
+
__decorate([
|
|
3386
|
+
property({ type: String, attribute: 'actions-aria-label' }),
|
|
3387
|
+
__metadata("design:type", String)
|
|
3388
|
+
], ItCard.prototype, "actionsAriaLabel", void 0);
|
|
2419
3389
|
__decorate([
|
|
2420
3390
|
queryAssignedElements({ slot: 'title' }),
|
|
2421
3391
|
__metadata("design:type", Array)
|
|
@@ -2424,6 +3394,10 @@ __decorate([
|
|
|
2424
3394
|
queryAssignedElements({ slot: 'subtitle' }),
|
|
2425
3395
|
__metadata("design:type", Array)
|
|
2426
3396
|
], ItCard.prototype, "_subtitleElements", void 0);
|
|
3397
|
+
__decorate([
|
|
3398
|
+
queryAssignedElements({ slot: 'address' }),
|
|
3399
|
+
__metadata("design:type", Array)
|
|
3400
|
+
], ItCard.prototype, "_addressElements", void 0);
|
|
2427
3401
|
__decorate([
|
|
2428
3402
|
queryAssignedElements({ slot: 'signature' }),
|
|
2429
3403
|
__metadata("design:type", Array)
|