@italia/card 1.0.0-alpha.11 → 1.0.0-alpha.13
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 +21 -14
- package/dist/src/it-card.d.ts +1 -0
- package/dist/src/it-card.d.ts.map +1 -1
- package/dist/src/it-card.js +537 -100
- package/dist/src/it-card.js.map +1 -1
- package/package.json +3 -3
- package/styles/_fouc.scss +2 -0
- package/styles/globals.scss +8 -3
package/dist/src/it-card.js
CHANGED
|
@@ -1091,7 +1091,7 @@ if (typeof window !== 'undefined') {
|
|
|
1091
1091
|
window._itAnalytics = window._itAnalytics || {};
|
|
1092
1092
|
window._itAnalytics = {
|
|
1093
1093
|
...window._itAnalytics,
|
|
1094
|
-
version: '1.0.0-alpha.
|
|
1094
|
+
version: '1.0.0-alpha.13',
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
@@ -1115,19 +1115,6 @@ const CARD_SHADOWS = ['none', 'sm', 'md', 'lg'];
|
|
|
1115
1115
|
const CARD_HEADING_LEVELS = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
1116
1116
|
|
|
1117
1117
|
var styles = css`@charset "UTF-8";
|
|
1118
|
-
/***************************** 1 ****************************************/
|
|
1119
|
-
/***************************** 2 ****************************************/
|
|
1120
|
-
/***************************** 1 ****************************************/
|
|
1121
|
-
/***************************** 2 ****************************************/
|
|
1122
|
-
/***************************** 1 ****************************************/
|
|
1123
|
-
/***************************** 2 ****************************************/
|
|
1124
|
-
/***************************** 3 ****************************************/
|
|
1125
|
-
/***************************** 1 ****************************************/
|
|
1126
|
-
/***************************** 2 ****************************************/
|
|
1127
|
-
/***************************** 3 ****************************************/
|
|
1128
|
-
/***************************** NEUTRAL 1 ****************************************/
|
|
1129
|
-
/***************************** NEUTRAL 2 ****************************************/
|
|
1130
|
-
/***************************** NEUTRAL 2 / 3 ****************************************/
|
|
1131
1118
|
.ratio {
|
|
1132
1119
|
position: relative;
|
|
1133
1120
|
width: 100%;
|
|
@@ -1221,6 +1208,17 @@ var styles = css`@charset "UTF-8";
|
|
|
1221
1208
|
display: flex;
|
|
1222
1209
|
justify-content: space-between;
|
|
1223
1210
|
}
|
|
1211
|
+
.it-card .it-card-title.it-card-title-icon > * {
|
|
1212
|
+
margin: 0.25rem;
|
|
1213
|
+
}
|
|
1214
|
+
@supports (gap: 0.5rem) {
|
|
1215
|
+
.it-card .it-card-title.it-card-title-icon {
|
|
1216
|
+
gap: 0.5rem;
|
|
1217
|
+
}
|
|
1218
|
+
.it-card .it-card-title.it-card-title-icon > * {
|
|
1219
|
+
margin: 0;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1224
1222
|
.it-card .it-card-title.it-card-title-icon .it-card-title-icon-wrapper {
|
|
1225
1223
|
margin-left: var(--bsi-icon-spacing);
|
|
1226
1224
|
}
|
|
@@ -1307,7 +1305,7 @@ var styles = css`@charset "UTF-8";
|
|
|
1307
1305
|
color: var(--bsi-card-link-color);
|
|
1308
1306
|
}
|
|
1309
1307
|
.it-card .it-card-link:hover {
|
|
1310
|
-
color:
|
|
1308
|
+
color: color-hover(hsl(210, 33%, 28%));
|
|
1311
1309
|
}
|
|
1312
1310
|
.it-card .it-card-link + .it-card-link {
|
|
1313
1311
|
margin-left: var(--bsi-card-spacing-x);
|
|
@@ -1481,6 +1479,9 @@ var styles = css`@charset "UTF-8";
|
|
|
1481
1479
|
flex-wrap: wrap-reverse;
|
|
1482
1480
|
justify-content: space-between;
|
|
1483
1481
|
align-items: center;
|
|
1482
|
+
margin-top: calc(2 * var(--bsi-card-title-spacer-y));
|
|
1483
|
+
margin-bottom: var(--bsi-card-title-spacer-y);
|
|
1484
|
+
padding: 0 var(--bsi-card-spacer-x);
|
|
1484
1485
|
}
|
|
1485
1486
|
.it-card.it-card-profile .it-card-profile-header > * {
|
|
1486
1487
|
margin: 0.5rem;
|
|
@@ -1493,11 +1494,6 @@ var styles = css`@charset "UTF-8";
|
|
|
1493
1494
|
margin: 0;
|
|
1494
1495
|
}
|
|
1495
1496
|
}
|
|
1496
|
-
.it-card.it-card-profile .it-card-profile-header {
|
|
1497
|
-
margin-top: calc(2 * var(--bsi-card-title-spacer-y));
|
|
1498
|
-
margin-bottom: var(--bsi-card-title-spacer-y);
|
|
1499
|
-
padding: 0 var(--bsi-card-spacer-x);
|
|
1500
|
-
}
|
|
1501
1497
|
.it-card.it-card-profile .it-card-profile-header .it-card-profile {
|
|
1502
1498
|
flex: 1;
|
|
1503
1499
|
max-width: 100%;
|
|
@@ -1748,6 +1744,299 @@ ul.it-card-list > li[class*=col-] {
|
|
|
1748
1744
|
justify-content: flex-end;
|
|
1749
1745
|
}
|
|
1750
1746
|
|
|
1747
|
+
*,
|
|
1748
|
+
*::before,
|
|
1749
|
+
*::after {
|
|
1750
|
+
box-sizing: border-box;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1754
|
+
:root {
|
|
1755
|
+
scroll-behavior: smooth;
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
body {
|
|
1760
|
+
margin: 0;
|
|
1761
|
+
-webkit-text-size-adjust: 100%;
|
|
1762
|
+
-webkit-tap-highlight-color: hsla(0, 0%, 0%, 0);
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
hr {
|
|
1766
|
+
margin: 1rem 0;
|
|
1767
|
+
color: inherit;
|
|
1768
|
+
border: 0;
|
|
1769
|
+
border-top: 1px solid;
|
|
1770
|
+
opacity: 0.25;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
p {
|
|
1774
|
+
margin-top: 0;
|
|
1775
|
+
margin-bottom: var(--bsi-paragraph-spacing);
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
abbr[title] {
|
|
1779
|
+
text-decoration: underline dotted;
|
|
1780
|
+
cursor: help;
|
|
1781
|
+
text-decoration-skip-ink: none;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
address {
|
|
1785
|
+
margin-bottom: var(--bsi-spacing-s);
|
|
1786
|
+
font-style: normal;
|
|
1787
|
+
line-height: inherit;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
ol,
|
|
1791
|
+
ul {
|
|
1792
|
+
padding-left: var(--bsi-spacing-l);
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
ol,
|
|
1796
|
+
ul,
|
|
1797
|
+
dl {
|
|
1798
|
+
margin-top: 0;
|
|
1799
|
+
margin-bottom: var(--bsi-spacing-s);
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
ol ol,
|
|
1803
|
+
ul ul,
|
|
1804
|
+
ol ul,
|
|
1805
|
+
ul ol {
|
|
1806
|
+
margin-bottom: 0;
|
|
1807
|
+
}
|
|
1808
|
+
|
|
1809
|
+
dt {
|
|
1810
|
+
font-weight: var(--bsi-font-weight-strong);
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
dd {
|
|
1814
|
+
margin-bottom: var(--bsi-spacing-xxs);
|
|
1815
|
+
margin-left: 0;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
blockquote {
|
|
1819
|
+
margin: 0 0 var(--bsi-spacing-s);
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
sub,
|
|
1823
|
+
sup {
|
|
1824
|
+
position: relative;
|
|
1825
|
+
font-size: var(--bsi-font-size-1);
|
|
1826
|
+
line-height: 0;
|
|
1827
|
+
vertical-align: baseline;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
sub {
|
|
1831
|
+
bottom: -0.25em;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
sup {
|
|
1835
|
+
top: -0.5em;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
a {
|
|
1839
|
+
color: var(--bsi-color-link);
|
|
1840
|
+
text-decoration: underline;
|
|
1841
|
+
text-decoration-skip-ink: auto;
|
|
1842
|
+
text-underline-offset: 2px;
|
|
1843
|
+
}
|
|
1844
|
+
a:hover {
|
|
1845
|
+
color: var(--bsi-color-link-hover);
|
|
1846
|
+
cursor: pointer;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
pre,
|
|
1850
|
+
code,
|
|
1851
|
+
kbd,
|
|
1852
|
+
samp {
|
|
1853
|
+
font-size: 1em;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
pre {
|
|
1857
|
+
display: block;
|
|
1858
|
+
margin-top: 0;
|
|
1859
|
+
margin-bottom: var(--bsi-paragraph-spacing);
|
|
1860
|
+
overflow: auto;
|
|
1861
|
+
}
|
|
1862
|
+
pre code {
|
|
1863
|
+
word-break: normal;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
a > code {
|
|
1867
|
+
color: inherit;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
figure {
|
|
1871
|
+
margin: 0 0 1rem;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
img,
|
|
1875
|
+
svg {
|
|
1876
|
+
vertical-align: middle;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
table {
|
|
1880
|
+
caption-side: bottom;
|
|
1881
|
+
border-collapse: collapse;
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
caption {
|
|
1885
|
+
padding-top: 0.5rem;
|
|
1886
|
+
padding-bottom: 0.5rem;
|
|
1887
|
+
color: hsl(210, 17%, 44%);
|
|
1888
|
+
text-align: left;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
th {
|
|
1892
|
+
text-align: inherit;
|
|
1893
|
+
text-align: -webkit-match-parent;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
thead,
|
|
1897
|
+
tbody,
|
|
1898
|
+
tfoot,
|
|
1899
|
+
tr,
|
|
1900
|
+
td,
|
|
1901
|
+
th {
|
|
1902
|
+
border-color: inherit;
|
|
1903
|
+
border-style: solid;
|
|
1904
|
+
border-width: 0;
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
label {
|
|
1908
|
+
display: inline-block;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
button {
|
|
1912
|
+
border-radius: 0;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
button:focus:not(:focus-visible) {
|
|
1916
|
+
outline: 0;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
input,
|
|
1920
|
+
button,
|
|
1921
|
+
select,
|
|
1922
|
+
optgroup,
|
|
1923
|
+
textarea {
|
|
1924
|
+
margin: 0;
|
|
1925
|
+
font-family: inherit;
|
|
1926
|
+
font-size: inherit;
|
|
1927
|
+
line-height: inherit;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
button,
|
|
1931
|
+
select {
|
|
1932
|
+
text-transform: none;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
[role=button] {
|
|
1936
|
+
cursor: pointer;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
select {
|
|
1940
|
+
word-wrap: normal;
|
|
1941
|
+
}
|
|
1942
|
+
select:disabled {
|
|
1943
|
+
opacity: 1;
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator {
|
|
1947
|
+
display: none !important;
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
button,
|
|
1951
|
+
[type=button],
|
|
1952
|
+
[type=reset],
|
|
1953
|
+
[type=submit] {
|
|
1954
|
+
-webkit-appearance: button;
|
|
1955
|
+
}
|
|
1956
|
+
button:not(:disabled),
|
|
1957
|
+
[type=button]:not(:disabled),
|
|
1958
|
+
[type=reset]:not(:disabled),
|
|
1959
|
+
[type=submit]:not(:disabled) {
|
|
1960
|
+
cursor: pointer;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
::-moz-focus-inner {
|
|
1964
|
+
padding: 0;
|
|
1965
|
+
border-style: none;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
textarea {
|
|
1969
|
+
resize: vertical;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
fieldset {
|
|
1973
|
+
min-width: 0;
|
|
1974
|
+
padding: 0;
|
|
1975
|
+
margin: 0;
|
|
1976
|
+
border: 0;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
::-webkit-datetime-edit-fields-wrapper,
|
|
1980
|
+
::-webkit-datetime-edit-text,
|
|
1981
|
+
::-webkit-datetime-edit-minute,
|
|
1982
|
+
::-webkit-datetime-edit-hour-field,
|
|
1983
|
+
::-webkit-datetime-edit-day-field,
|
|
1984
|
+
::-webkit-datetime-edit-month-field,
|
|
1985
|
+
::-webkit-datetime-edit-year-field {
|
|
1986
|
+
padding: 0;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
::-webkit-inner-spin-button {
|
|
1990
|
+
height: auto;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
[type=search] {
|
|
1994
|
+
outline-offset: -2px;
|
|
1995
|
+
-webkit-appearance: textfield;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
/* rtl:raw:
|
|
1999
|
+
[type="tel"],
|
|
2000
|
+
[type="url"],
|
|
2001
|
+
[type="email"],
|
|
2002
|
+
[type="number"] {
|
|
2003
|
+
direction: ltr;
|
|
2004
|
+
}
|
|
2005
|
+
*/
|
|
2006
|
+
::-webkit-search-decoration {
|
|
2007
|
+
-webkit-appearance: none;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
::-webkit-color-swatch-wrapper {
|
|
2011
|
+
padding: 0;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
::file-selector-button {
|
|
2015
|
+
font: inherit;
|
|
2016
|
+
-webkit-appearance: button;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
output {
|
|
2020
|
+
display: inline-block;
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
iframe {
|
|
2024
|
+
border: 0;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
summary {
|
|
2028
|
+
display: list-item;
|
|
2029
|
+
cursor: pointer;
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
progress {
|
|
2033
|
+
vertical-align: baseline;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
[hidden] {
|
|
2037
|
+
display: none !important;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
1751
2040
|
body {
|
|
1752
2041
|
font-family: var(--bsi-font-sans);
|
|
1753
2042
|
}
|
|
@@ -2045,81 +2334,6 @@ blockquote.blockquote-card.dark .blockquote-footer,
|
|
|
2045
2334
|
text-transform: uppercase;
|
|
2046
2335
|
}
|
|
2047
2336
|
|
|
2048
|
-
/**
|
|
2049
|
-
* Copied from bsi reboot
|
|
2050
|
-
*/
|
|
2051
|
-
*,
|
|
2052
|
-
*::before,
|
|
2053
|
-
*::after {
|
|
2054
|
-
box-sizing: border-box;
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
p {
|
|
2058
|
-
margin-top: 0;
|
|
2059
|
-
margin-bottom: var(--bsi-paragraph-spacing);
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
address {
|
|
2063
|
-
margin-bottom: var(--bsi-spacing-s);
|
|
2064
|
-
font-style: normal;
|
|
2065
|
-
line-height: inherit;
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
ol,
|
|
2069
|
-
ul {
|
|
2070
|
-
padding-left: var(--bsi-spacing-l);
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
-
ol,
|
|
2074
|
-
ul,
|
|
2075
|
-
dl {
|
|
2076
|
-
margin-top: 0;
|
|
2077
|
-
margin-bottom: var(--bsi-spacing-s);
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
-
/* END copied from bsi reboot */
|
|
2081
|
-
::slotted(figure),
|
|
2082
|
-
::slotted(.it-card-profile-image-icon-wrapper) {
|
|
2083
|
-
position: absolute;
|
|
2084
|
-
top: 0;
|
|
2085
|
-
left: 0;
|
|
2086
|
-
width: 100%;
|
|
2087
|
-
height: 100%;
|
|
2088
|
-
}
|
|
2089
|
-
|
|
2090
|
-
.it-card .it-card-title.it-card-title-icon {
|
|
2091
|
-
display: block;
|
|
2092
|
-
}
|
|
2093
|
-
.it-card .it-card-title.it-card-title-icon slot[name=title] {
|
|
2094
|
-
display: flex;
|
|
2095
|
-
justify-content: space-between;
|
|
2096
|
-
}
|
|
2097
|
-
.it-card .it-card-title.it-card-title-icon ::slotted(a) {
|
|
2098
|
-
display: flex;
|
|
2099
|
-
width: 100%;
|
|
2100
|
-
justify-content: space-between;
|
|
2101
|
-
}
|
|
2102
|
-
.it-card .it-card-title.it-card-title-icon ::slotted(a):focus-visible {
|
|
2103
|
-
display: inline-block;
|
|
2104
|
-
}
|
|
2105
|
-
.it-card .it-card-footer {
|
|
2106
|
-
display: block;
|
|
2107
|
-
}
|
|
2108
|
-
|
|
2109
|
-
.it-card-footer slot[name=footer] {
|
|
2110
|
-
display: flex;
|
|
2111
|
-
flex-wrap: wrap;
|
|
2112
|
-
align-items: flex-end;
|
|
2113
|
-
justify-content: flex-end;
|
|
2114
|
-
margin-top: var(--bsi-card-spacing-y);
|
|
2115
|
-
color: var(--bsi-card-footer-text-color);
|
|
2116
|
-
gap: var(--bsi-card-spacing-y);
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
-
::slotted(.it-card-taxonomy) {
|
|
2120
|
-
flex-grow: 1;
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
2337
|
.rounded {
|
|
2124
2338
|
border-radius: var(--bsi-radius-smooth) !important;
|
|
2125
2339
|
}
|
|
@@ -2152,6 +2366,14 @@ dl {
|
|
|
2152
2366
|
border: 0 !important;
|
|
2153
2367
|
}
|
|
2154
2368
|
|
|
2369
|
+
.border-top {
|
|
2370
|
+
border-top: var(--bsi-border-base) var(--bsi-border-style) var(--bsi-border-color) !important;
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
.border-top-0 {
|
|
2374
|
+
border-top: 0 !important;
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2155
2377
|
.p-0 {
|
|
2156
2378
|
padding: 0 !important;
|
|
2157
2379
|
}
|
|
@@ -2236,6 +2458,30 @@ dl {
|
|
|
2236
2458
|
padding-bottom: 3rem !important;
|
|
2237
2459
|
}
|
|
2238
2460
|
|
|
2461
|
+
.pt-0 {
|
|
2462
|
+
padding-top: 0 !important;
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
.pt-1 {
|
|
2466
|
+
padding-top: 0.25rem !important;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
.pt-2 {
|
|
2470
|
+
padding-top: 0.5rem !important;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
.pt-3 {
|
|
2474
|
+
padding-top: 1rem !important;
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
.pt-4 {
|
|
2478
|
+
padding-top: 1.5rem !important;
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
.pt-5 {
|
|
2482
|
+
padding-top: 3rem !important;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2239
2485
|
@media (min-width: 576px) {
|
|
2240
2486
|
.d-sm-none {
|
|
2241
2487
|
display: none !important;
|
|
@@ -2306,6 +2552,24 @@ dl {
|
|
|
2306
2552
|
padding-top: 3rem !important;
|
|
2307
2553
|
padding-bottom: 3rem !important;
|
|
2308
2554
|
}
|
|
2555
|
+
.pt-sm-0 {
|
|
2556
|
+
padding-top: 0 !important;
|
|
2557
|
+
}
|
|
2558
|
+
.pt-sm-1 {
|
|
2559
|
+
padding-top: 0.25rem !important;
|
|
2560
|
+
}
|
|
2561
|
+
.pt-sm-2 {
|
|
2562
|
+
padding-top: 0.5rem !important;
|
|
2563
|
+
}
|
|
2564
|
+
.pt-sm-3 {
|
|
2565
|
+
padding-top: 1rem !important;
|
|
2566
|
+
}
|
|
2567
|
+
.pt-sm-4 {
|
|
2568
|
+
padding-top: 1.5rem !important;
|
|
2569
|
+
}
|
|
2570
|
+
.pt-sm-5 {
|
|
2571
|
+
padding-top: 3rem !important;
|
|
2572
|
+
}
|
|
2309
2573
|
}
|
|
2310
2574
|
@media (min-width: 768px) {
|
|
2311
2575
|
.d-md-none {
|
|
@@ -2377,6 +2641,24 @@ dl {
|
|
|
2377
2641
|
padding-top: 3rem !important;
|
|
2378
2642
|
padding-bottom: 3rem !important;
|
|
2379
2643
|
}
|
|
2644
|
+
.pt-md-0 {
|
|
2645
|
+
padding-top: 0 !important;
|
|
2646
|
+
}
|
|
2647
|
+
.pt-md-1 {
|
|
2648
|
+
padding-top: 0.25rem !important;
|
|
2649
|
+
}
|
|
2650
|
+
.pt-md-2 {
|
|
2651
|
+
padding-top: 0.5rem !important;
|
|
2652
|
+
}
|
|
2653
|
+
.pt-md-3 {
|
|
2654
|
+
padding-top: 1rem !important;
|
|
2655
|
+
}
|
|
2656
|
+
.pt-md-4 {
|
|
2657
|
+
padding-top: 1.5rem !important;
|
|
2658
|
+
}
|
|
2659
|
+
.pt-md-5 {
|
|
2660
|
+
padding-top: 3rem !important;
|
|
2661
|
+
}
|
|
2380
2662
|
}
|
|
2381
2663
|
@media (min-width: 992px) {
|
|
2382
2664
|
.d-lg-none {
|
|
@@ -2448,6 +2730,24 @@ dl {
|
|
|
2448
2730
|
padding-top: 3rem !important;
|
|
2449
2731
|
padding-bottom: 3rem !important;
|
|
2450
2732
|
}
|
|
2733
|
+
.pt-lg-0 {
|
|
2734
|
+
padding-top: 0 !important;
|
|
2735
|
+
}
|
|
2736
|
+
.pt-lg-1 {
|
|
2737
|
+
padding-top: 0.25rem !important;
|
|
2738
|
+
}
|
|
2739
|
+
.pt-lg-2 {
|
|
2740
|
+
padding-top: 0.5rem !important;
|
|
2741
|
+
}
|
|
2742
|
+
.pt-lg-3 {
|
|
2743
|
+
padding-top: 1rem !important;
|
|
2744
|
+
}
|
|
2745
|
+
.pt-lg-4 {
|
|
2746
|
+
padding-top: 1.5rem !important;
|
|
2747
|
+
}
|
|
2748
|
+
.pt-lg-5 {
|
|
2749
|
+
padding-top: 3rem !important;
|
|
2750
|
+
}
|
|
2451
2751
|
}
|
|
2452
2752
|
@media (min-width: 1200px) {
|
|
2453
2753
|
.d-xl-none {
|
|
@@ -2519,6 +2819,24 @@ dl {
|
|
|
2519
2819
|
padding-top: 3rem !important;
|
|
2520
2820
|
padding-bottom: 3rem !important;
|
|
2521
2821
|
}
|
|
2822
|
+
.pt-xl-0 {
|
|
2823
|
+
padding-top: 0 !important;
|
|
2824
|
+
}
|
|
2825
|
+
.pt-xl-1 {
|
|
2826
|
+
padding-top: 0.25rem !important;
|
|
2827
|
+
}
|
|
2828
|
+
.pt-xl-2 {
|
|
2829
|
+
padding-top: 0.5rem !important;
|
|
2830
|
+
}
|
|
2831
|
+
.pt-xl-3 {
|
|
2832
|
+
padding-top: 1rem !important;
|
|
2833
|
+
}
|
|
2834
|
+
.pt-xl-4 {
|
|
2835
|
+
padding-top: 1.5rem !important;
|
|
2836
|
+
}
|
|
2837
|
+
.pt-xl-5 {
|
|
2838
|
+
padding-top: 3rem !important;
|
|
2839
|
+
}
|
|
2522
2840
|
}
|
|
2523
2841
|
@media (min-width: 1400px) {
|
|
2524
2842
|
.d-xxl-none {
|
|
@@ -2590,11 +2908,116 @@ dl {
|
|
|
2590
2908
|
padding-top: 3rem !important;
|
|
2591
2909
|
padding-bottom: 3rem !important;
|
|
2592
2910
|
}
|
|
2911
|
+
.pt-xxl-0 {
|
|
2912
|
+
padding-top: 0 !important;
|
|
2913
|
+
}
|
|
2914
|
+
.pt-xxl-1 {
|
|
2915
|
+
padding-top: 0.25rem !important;
|
|
2916
|
+
}
|
|
2917
|
+
.pt-xxl-2 {
|
|
2918
|
+
padding-top: 0.5rem !important;
|
|
2919
|
+
}
|
|
2920
|
+
.pt-xxl-3 {
|
|
2921
|
+
padding-top: 1rem !important;
|
|
2922
|
+
}
|
|
2923
|
+
.pt-xxl-4 {
|
|
2924
|
+
padding-top: 1.5rem !important;
|
|
2925
|
+
}
|
|
2926
|
+
.pt-xxl-5 {
|
|
2927
|
+
padding-top: 3rem !important;
|
|
2928
|
+
}
|
|
2593
2929
|
}
|
|
2594
2930
|
@media print {
|
|
2595
2931
|
.d-print-none {
|
|
2596
2932
|
display: none !important;
|
|
2597
2933
|
}
|
|
2934
|
+
}
|
|
2935
|
+
/**
|
|
2936
|
+
* Copied from bsi reboot
|
|
2937
|
+
*/
|
|
2938
|
+
*,
|
|
2939
|
+
*::before,
|
|
2940
|
+
*::after {
|
|
2941
|
+
box-sizing: border-box;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
p {
|
|
2945
|
+
margin-top: 0;
|
|
2946
|
+
margin-bottom: var(--bsi-paragraph-spacing);
|
|
2947
|
+
}
|
|
2948
|
+
p:last-of-type {
|
|
2949
|
+
margin-bottom: 0;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
address {
|
|
2953
|
+
margin-bottom: var(--bsi-spacing-s);
|
|
2954
|
+
font-style: normal;
|
|
2955
|
+
line-height: inherit;
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
ol,
|
|
2959
|
+
ul {
|
|
2960
|
+
padding-left: var(--bsi-spacing-l);
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2963
|
+
ol,
|
|
2964
|
+
ul,
|
|
2965
|
+
dl {
|
|
2966
|
+
margin-top: 0;
|
|
2967
|
+
margin-bottom: var(--bsi-spacing-s);
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
/* END copied from bsi reboot */
|
|
2971
|
+
::slotted(figure),
|
|
2972
|
+
::slotted(.it-card-profile-image-icon-wrapper) {
|
|
2973
|
+
position: absolute;
|
|
2974
|
+
top: 0;
|
|
2975
|
+
left: 0;
|
|
2976
|
+
width: 100%;
|
|
2977
|
+
height: 100%;
|
|
2978
|
+
}
|
|
2979
|
+
|
|
2980
|
+
.it-card .it-card-title.it-card-title-icon {
|
|
2981
|
+
display: block;
|
|
2982
|
+
}
|
|
2983
|
+
.it-card .it-card-title.it-card-title-icon slot[name=title] {
|
|
2984
|
+
display: flex;
|
|
2985
|
+
justify-content: space-between;
|
|
2986
|
+
}
|
|
2987
|
+
.it-card .it-card-title.it-card-title-icon ::slotted(a) {
|
|
2988
|
+
display: flex;
|
|
2989
|
+
width: 100%;
|
|
2990
|
+
justify-content: space-between;
|
|
2991
|
+
}
|
|
2992
|
+
.it-card .it-card-title.it-card-title-icon ::slotted(a):focus-visible {
|
|
2993
|
+
display: inline-block;
|
|
2994
|
+
}
|
|
2995
|
+
.it-card .it-card-footer {
|
|
2996
|
+
display: block;
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
.it-card-footer slot[name=footer] {
|
|
3000
|
+
display: flex;
|
|
3001
|
+
flex-wrap: wrap;
|
|
3002
|
+
align-items: flex-end;
|
|
3003
|
+
justify-content: flex-end;
|
|
3004
|
+
color: var(--bsi-card-footer-text-color);
|
|
3005
|
+
gap: var(--bsi-card-spacing-y);
|
|
3006
|
+
}
|
|
3007
|
+
|
|
3008
|
+
::slotted(.it-card-taxonomy) {
|
|
3009
|
+
flex-grow: 1;
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
.it-card-place-type {
|
|
3013
|
+
margin-top: 0.25rem;
|
|
3014
|
+
}
|
|
3015
|
+
|
|
3016
|
+
.it-card-place-address {
|
|
3017
|
+
margin-top: 0.25rem;
|
|
3018
|
+
margin-bottom: 0;
|
|
3019
|
+
font-size: 1rem;
|
|
3020
|
+
line-height: 1.5rem;
|
|
2598
3021
|
}`;
|
|
2599
3022
|
|
|
2600
3023
|
let ItCard = class ItCard extends BaseComponent {
|
|
@@ -2676,6 +3099,7 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2676
3099
|
const shadowClass = CARD_SHADOWS.includes(this.shadow) ? `shadow-${this.shadow}` : 'shadow-sm';
|
|
2677
3100
|
const borderClass = this.border === '0' ? 'border-0' : 'border';
|
|
2678
3101
|
const hasSubtitle = this._subtitleElements.length > 0;
|
|
3102
|
+
const hasAddress = this._addressElements.length > 0;
|
|
2679
3103
|
const hasSignature = this._signatureElements.length > 0;
|
|
2680
3104
|
const hasText = this._textElements.length > 0;
|
|
2681
3105
|
const hasBody = this._bodyElements.length > 0 || hasText || hasSubtitle || hasSignature;
|
|
@@ -2752,7 +3176,7 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2752
3176
|
`;
|
|
2753
3177
|
const cardFooter = hasFooter
|
|
2754
3178
|
? html `
|
|
2755
|
-
<footer class="it-card-footer" part="footer">
|
|
3179
|
+
<footer class="it-card-footer ${this.variant === 'location' ? 'border-top pt-3' : ''}" part="footer">
|
|
2756
3180
|
<slot name="footer" @slotchange=${this.handleSlotChange}></slot>
|
|
2757
3181
|
</footer>
|
|
2758
3182
|
`
|
|
@@ -2771,7 +3195,7 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2771
3195
|
: html `<slot name="actions" @slotchange=${this.handleSlotChange}></slot>`;
|
|
2772
3196
|
if (this.variant === 'profile') {
|
|
2773
3197
|
return html `
|
|
2774
|
-
<article class="${classes}">
|
|
3198
|
+
<article class="${classes}" part="card">
|
|
2775
3199
|
<div class="it-card-profile-header">
|
|
2776
3200
|
<div class="it-card-profile-content">
|
|
2777
3201
|
${cardTitle}
|
|
@@ -2791,7 +3215,7 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2791
3215
|
}
|
|
2792
3216
|
if (this.variant === 'location') {
|
|
2793
3217
|
return html `
|
|
2794
|
-
<article class="${classes}">
|
|
3218
|
+
<article class="${classes}" part="card">
|
|
2795
3219
|
<div class="it-card-profile-header">
|
|
2796
3220
|
<div class="it-card-profile">
|
|
2797
3221
|
${cardTitle}
|
|
@@ -2802,6 +3226,13 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2802
3226
|
</p>
|
|
2803
3227
|
`
|
|
2804
3228
|
: html `<slot name="subtitle" @slotchange=${this.handleSlotChange}></slot>`}
|
|
3229
|
+
${hasAddress
|
|
3230
|
+
? html `
|
|
3231
|
+
<p class="it-card-place-address" part="address">
|
|
3232
|
+
<slot name="address" @slotchange=${this.handleSlotChange}></slot>
|
|
3233
|
+
</p>
|
|
3234
|
+
`
|
|
3235
|
+
: html `<slot name="address" @slotchange=${this.handleSlotChange}></slot>`}
|
|
2805
3236
|
</div>
|
|
2806
3237
|
${cardImage}
|
|
2807
3238
|
</div>
|
|
@@ -2811,13 +3242,15 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2811
3242
|
}
|
|
2812
3243
|
if (isInline) {
|
|
2813
3244
|
return html `
|
|
2814
|
-
<article class="${classes}">
|
|
3245
|
+
<article class="${classes}" part="card">
|
|
2815
3246
|
<div class="it-card-inline-content">${cardTitle}${cardBody}${cardFooter}${cardActions}</div>
|
|
2816
3247
|
${cardImage}
|
|
2817
3248
|
</article>
|
|
2818
3249
|
`;
|
|
2819
3250
|
}
|
|
2820
|
-
return html `
|
|
3251
|
+
return html `
|
|
3252
|
+
<article class="${classes}" part="card">${cardTitle}${cardImage}${cardBody}${cardFooter}${cardActions}</article>
|
|
3253
|
+
`;
|
|
2821
3254
|
}
|
|
2822
3255
|
};
|
|
2823
3256
|
ItCard.styles = styles;
|
|
@@ -2865,6 +3298,10 @@ __decorate([
|
|
|
2865
3298
|
queryAssignedElements({ slot: 'subtitle' }),
|
|
2866
3299
|
__metadata("design:type", Array)
|
|
2867
3300
|
], ItCard.prototype, "_subtitleElements", void 0);
|
|
3301
|
+
__decorate([
|
|
3302
|
+
queryAssignedElements({ slot: 'address' }),
|
|
3303
|
+
__metadata("design:type", Array)
|
|
3304
|
+
], ItCard.prototype, "_addressElements", void 0);
|
|
2868
3305
|
__decorate([
|
|
2869
3306
|
queryAssignedElements({ slot: 'signature' }),
|
|
2870
3307
|
__metadata("design:type", Array)
|