@italia/card 1.0.0-alpha.10 → 1.0.0-alpha.12
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 +13 -13
- package/dist/src/it-card.d.ts.map +1 -1
- package/dist/src/it-card.js +391 -99
- package/dist/src/it-card.js.map +1 -1
- package/package.json +3 -3
- package/styles/_fouc.scss +2 -0
- package/styles/globals.scss +7 -2
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.12',
|
|
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
|
}
|
|
@@ -2595,6 +2809,82 @@ dl {
|
|
|
2595
2809
|
.d-print-none {
|
|
2596
2810
|
display: none !important;
|
|
2597
2811
|
}
|
|
2812
|
+
}
|
|
2813
|
+
/**
|
|
2814
|
+
* Copied from bsi reboot
|
|
2815
|
+
*/
|
|
2816
|
+
*,
|
|
2817
|
+
*::before,
|
|
2818
|
+
*::after {
|
|
2819
|
+
box-sizing: border-box;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
p {
|
|
2823
|
+
margin-top: 0;
|
|
2824
|
+
margin-bottom: var(--bsi-paragraph-spacing);
|
|
2825
|
+
}
|
|
2826
|
+
p:last-of-type {
|
|
2827
|
+
margin-bottom: 0;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
address {
|
|
2831
|
+
margin-bottom: var(--bsi-spacing-s);
|
|
2832
|
+
font-style: normal;
|
|
2833
|
+
line-height: inherit;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
ol,
|
|
2837
|
+
ul {
|
|
2838
|
+
padding-left: var(--bsi-spacing-l);
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
ol,
|
|
2842
|
+
ul,
|
|
2843
|
+
dl {
|
|
2844
|
+
margin-top: 0;
|
|
2845
|
+
margin-bottom: var(--bsi-spacing-s);
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
/* END copied from bsi reboot */
|
|
2849
|
+
::slotted(figure),
|
|
2850
|
+
::slotted(.it-card-profile-image-icon-wrapper) {
|
|
2851
|
+
position: absolute;
|
|
2852
|
+
top: 0;
|
|
2853
|
+
left: 0;
|
|
2854
|
+
width: 100%;
|
|
2855
|
+
height: 100%;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
.it-card .it-card-title.it-card-title-icon {
|
|
2859
|
+
display: block;
|
|
2860
|
+
}
|
|
2861
|
+
.it-card .it-card-title.it-card-title-icon slot[name=title] {
|
|
2862
|
+
display: flex;
|
|
2863
|
+
justify-content: space-between;
|
|
2864
|
+
}
|
|
2865
|
+
.it-card .it-card-title.it-card-title-icon ::slotted(a) {
|
|
2866
|
+
display: flex;
|
|
2867
|
+
width: 100%;
|
|
2868
|
+
justify-content: space-between;
|
|
2869
|
+
}
|
|
2870
|
+
.it-card .it-card-title.it-card-title-icon ::slotted(a):focus-visible {
|
|
2871
|
+
display: inline-block;
|
|
2872
|
+
}
|
|
2873
|
+
.it-card .it-card-footer {
|
|
2874
|
+
display: block;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.it-card-footer slot[name=footer] {
|
|
2878
|
+
display: flex;
|
|
2879
|
+
flex-wrap: wrap;
|
|
2880
|
+
align-items: flex-end;
|
|
2881
|
+
justify-content: flex-end;
|
|
2882
|
+
color: var(--bsi-card-footer-text-color);
|
|
2883
|
+
gap: var(--bsi-card-spacing-y);
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
::slotted(.it-card-taxonomy) {
|
|
2887
|
+
flex-grow: 1;
|
|
2598
2888
|
}`;
|
|
2599
2889
|
|
|
2600
2890
|
let ItCard = class ItCard extends BaseComponent {
|
|
@@ -2771,7 +3061,7 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2771
3061
|
: html `<slot name="actions" @slotchange=${this.handleSlotChange}></slot>`;
|
|
2772
3062
|
if (this.variant === 'profile') {
|
|
2773
3063
|
return html `
|
|
2774
|
-
<article class="${classes}">
|
|
3064
|
+
<article class="${classes}" part="card">
|
|
2775
3065
|
<div class="it-card-profile-header">
|
|
2776
3066
|
<div class="it-card-profile-content">
|
|
2777
3067
|
${cardTitle}
|
|
@@ -2791,7 +3081,7 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2791
3081
|
}
|
|
2792
3082
|
if (this.variant === 'location') {
|
|
2793
3083
|
return html `
|
|
2794
|
-
<article class="${classes}">
|
|
3084
|
+
<article class="${classes}" part="card">
|
|
2795
3085
|
<div class="it-card-profile-header">
|
|
2796
3086
|
<div class="it-card-profile">
|
|
2797
3087
|
${cardTitle}
|
|
@@ -2811,13 +3101,15 @@ let ItCard = class ItCard extends BaseComponent {
|
|
|
2811
3101
|
}
|
|
2812
3102
|
if (isInline) {
|
|
2813
3103
|
return html `
|
|
2814
|
-
<article class="${classes}">
|
|
3104
|
+
<article class="${classes}" part="card">
|
|
2815
3105
|
<div class="it-card-inline-content">${cardTitle}${cardBody}${cardFooter}${cardActions}</div>
|
|
2816
3106
|
${cardImage}
|
|
2817
3107
|
</article>
|
|
2818
3108
|
`;
|
|
2819
3109
|
}
|
|
2820
|
-
return html `
|
|
3110
|
+
return html `
|
|
3111
|
+
<article class="${classes}" part="card">${cardTitle}${cardImage}${cardBody}${cardFooter}${cardActions}</article>
|
|
3112
|
+
`;
|
|
2821
3113
|
}
|
|
2822
3114
|
};
|
|
2823
3115
|
ItCard.styles = styles;
|