vanilla-framework 4.15.0 → 4.17.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/package.json +17 -13
- package/scss/_base_button.scss +1 -1
- package/scss/_base_details.scss +1 -1
- package/scss/_base_forms.scss +8 -2
- package/scss/_base_hr.scss +2 -3
- package/scss/_base_icon-definitions.scss +629 -0
- package/scss/_base_links.scss +1 -1
- package/scss/_base_placeholders.scss +2 -0
- package/scss/_base_typography-definitions.scss +1 -1
- package/scss/_global_functions.scss +21 -8
- package/scss/_layouts_fluid-breakout.scss +2 -2
- package/scss/_patterns_accordion.scss +1 -1
- package/scss/_patterns_article-pagination.scss +2 -2
- package/scss/_patterns_buttons.scss +1 -1
- package/scss/_patterns_chip.scss +68 -68
- package/scss/_patterns_code-snippet.scss +1 -1
- package/scss/_patterns_contextual-menu.scss +1 -1
- package/scss/_patterns_cta.scss +7 -0
- package/scss/_patterns_equal-height-row.scss +87 -43
- package/scss/_patterns_icons.scss +340 -0
- package/scss/_patterns_image.scss +53 -16
- package/scss/_patterns_links.scss +6 -5
- package/scss/_patterns_list-tree.scss +49 -43
- package/scss/_patterns_lists.scss +58 -17
- package/scss/_patterns_matrix.scss +2 -2
- package/scss/_patterns_navigation.scss +4 -4
- package/scss/_patterns_pull-quotes.scss +1 -1
- package/scss/_patterns_rule.scss +6 -2
- package/scss/_patterns_search-and-filter.scss +11 -12
- package/scss/_patterns_separator.scss +1 -0
- package/scss/_patterns_side-navigation.scss +1 -1
- package/scss/_patterns_status-label.scss +5 -0
- package/scss/_patterns_strip.scss +3 -2
- package/scss/_patterns_switch.scss +2 -1
- package/scss/_patterns_table-mobile-card.scss +1 -1
- package/scss/_patterns_tooltips.scss +26 -8
- package/scss/_settings_breakpoints.scss +16 -0
- package/scss/_settings_colors.scss +20 -15
- package/scss/_settings_placeholders.scss +4 -3
- package/scss/_utilities_baseline-grid.scss +3 -2
- package/scss/_utilities_content-align.scss +9 -0
- package/scss/_utilities_floats.scss +6 -6
- package/scss/_utilities_font-metrics.scss +4 -3
- package/scss/_utilities_hide.scss +9 -9
- package/scss/_utilities_show.scss +3 -3
- package/templates/_macros/vf_hero.jinja +186 -0
- package/templates/_macros/vf_tiered-list.jinja +115 -0
|
@@ -1699,3 +1699,343 @@
|
|
|
1699
1699
|
}
|
|
1700
1700
|
|
|
1701
1701
|
// stylelint-enable selector-max-type
|
|
1702
|
+
|
|
1703
|
+
// ICONS ADDED IN OCTOBER 2024
|
|
1704
|
+
|
|
1705
|
+
@mixin vf-p-icon-archive {
|
|
1706
|
+
.p-icon--archive {
|
|
1707
|
+
@extend %icon;
|
|
1708
|
+
@include vf-icon-archive-themed;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
@mixin vf-p-icon-arrow-bottom-left {
|
|
1713
|
+
.p-icon--arrow-bottom-left {
|
|
1714
|
+
@extend %icon;
|
|
1715
|
+
@include vf-icon-arrow-bottom-left-themed;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
@mixin vf-p-icon-arrow-bottom-right {
|
|
1720
|
+
.p-icon--arrow-bottom-right {
|
|
1721
|
+
@extend %icon;
|
|
1722
|
+
@include vf-icon-arrow-bottom-right-themed;
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
@mixin vf-p-icon-arrow-down {
|
|
1727
|
+
.p-icon--arrow-down {
|
|
1728
|
+
@extend %icon;
|
|
1729
|
+
@include vf-icon-arrow-down-themed;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
@mixin vf-p-icon-arrow-left {
|
|
1734
|
+
.p-icon--arrow-left {
|
|
1735
|
+
@extend %icon;
|
|
1736
|
+
@include vf-icon-arrow-left-themed;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
@mixin vf-p-icon-arrow-right {
|
|
1741
|
+
.p-icon--arrow-right {
|
|
1742
|
+
@extend %icon;
|
|
1743
|
+
@include vf-icon-arrow-right-themed;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
@mixin vf-p-icon-arrow-top-left {
|
|
1748
|
+
.p-icon--arrow-top-left {
|
|
1749
|
+
@extend %icon;
|
|
1750
|
+
@include vf-icon-arrow-top-left-themed;
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
@mixin vf-p-icon-arrow-top-right {
|
|
1755
|
+
.p-icon--arrow-top-right {
|
|
1756
|
+
@extend %icon;
|
|
1757
|
+
@include vf-icon-arrow-top-right-themed;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
@mixin vf-p-icon-arrow-up {
|
|
1762
|
+
.p-icon--arrow-up {
|
|
1763
|
+
@extend %icon;
|
|
1764
|
+
@include vf-icon-arrow-up-themed;
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
@mixin vf-p-icon-blueprint {
|
|
1769
|
+
.p-icon--blueprint {
|
|
1770
|
+
@extend %icon;
|
|
1771
|
+
@include vf-icon-blueprint-themed;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
@mixin vf-p-icon-book {
|
|
1776
|
+
.p-icon--book {
|
|
1777
|
+
@extend %icon;
|
|
1778
|
+
@include vf-icon-book-themed;
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
@mixin vf-p-icon-certificate {
|
|
1783
|
+
.p-icon--certificate {
|
|
1784
|
+
@extend %icon;
|
|
1785
|
+
@include vf-icon-certificate-themed;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
@mixin vf-p-icon-certification {
|
|
1790
|
+
.p-icon--certification {
|
|
1791
|
+
@extend %icon;
|
|
1792
|
+
@include vf-icon-certification-themed;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
@mixin vf-p-icon-cluster-host {
|
|
1797
|
+
.p-icon--cluster-host {
|
|
1798
|
+
@extend %icon;
|
|
1799
|
+
@include vf-icon-cluster-host-themed;
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
@mixin vf-p-icon-contact {
|
|
1804
|
+
.p-icon--contact {
|
|
1805
|
+
@extend %icon;
|
|
1806
|
+
@include vf-icon-contact-themed;
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
@mixin vf-p-icon-contextual-menu {
|
|
1811
|
+
.p-icon--contextual-menu {
|
|
1812
|
+
@extend %icon;
|
|
1813
|
+
@include vf-icon-contextual-menu-themed;
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
@mixin vf-p-icon-cursor {
|
|
1818
|
+
.p-icon--cursor {
|
|
1819
|
+
@extend %icon;
|
|
1820
|
+
@include vf-icon-cursor-themed;
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
@mixin vf-p-icon-file-blank {
|
|
1825
|
+
.p-icon--file-blank {
|
|
1826
|
+
@extend %icon;
|
|
1827
|
+
@include vf-icon-file-blank-themed;
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
@mixin vf-p-icon-file {
|
|
1832
|
+
.p-icon--file {
|
|
1833
|
+
@extend %icon;
|
|
1834
|
+
@include vf-icon-file-themed;
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
@mixin vf-p-icon-folder {
|
|
1839
|
+
.p-icon--folder {
|
|
1840
|
+
@extend %icon;
|
|
1841
|
+
@include vf-icon-folder-themed;
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
@mixin vf-p-icon-gift {
|
|
1846
|
+
.p-icon--gift {
|
|
1847
|
+
@extend %icon;
|
|
1848
|
+
@include vf-icon-gift-themed;
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
@mixin vf-p-icon-image {
|
|
1853
|
+
.p-icon--image {
|
|
1854
|
+
@extend %icon;
|
|
1855
|
+
@include vf-icon-image-themed;
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
@mixin vf-p-icon-iso {
|
|
1860
|
+
.p-icon--iso {
|
|
1861
|
+
@extend %icon;
|
|
1862
|
+
@include vf-icon-iso-themed;
|
|
1863
|
+
}
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
@mixin vf-p-icon-location {
|
|
1867
|
+
.p-icon--location {
|
|
1868
|
+
@extend %icon;
|
|
1869
|
+
@include vf-icon-location-themed;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
@mixin vf-p-icon-log-out {
|
|
1874
|
+
.p-icon--log-out {
|
|
1875
|
+
@extend %icon;
|
|
1876
|
+
@include vf-icon-log-out-themed;
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
@mixin vf-p-icon-map {
|
|
1881
|
+
.p-icon--map {
|
|
1882
|
+
@extend %icon;
|
|
1883
|
+
@include vf-icon-map-themed;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
@mixin vf-p-icon-notifications {
|
|
1888
|
+
.p-icon--notifications {
|
|
1889
|
+
@extend %icon;
|
|
1890
|
+
@include vf-icon-notifications-themed;
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
@mixin vf-p-icon-private-key {
|
|
1895
|
+
.p-icon--private-key {
|
|
1896
|
+
@extend %icon;
|
|
1897
|
+
@include vf-icon-private-key-themed;
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1901
|
+
@mixin vf-p-icon-profiles {
|
|
1902
|
+
.p-icon--profiles {
|
|
1903
|
+
@extend %icon;
|
|
1904
|
+
@include vf-icon-profiles-themed;
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
@mixin vf-p-icon-repository {
|
|
1909
|
+
.p-icon--repository {
|
|
1910
|
+
@extend %icon;
|
|
1911
|
+
@include vf-icon-repository-themed;
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
@mixin vf-p-icon-security-error {
|
|
1916
|
+
.p-icon--security-error {
|
|
1917
|
+
@extend %icon;
|
|
1918
|
+
@include vf-icon-security-error-themed;
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
@mixin vf-p-icon-security-tick {
|
|
1923
|
+
.p-icon--security-tick {
|
|
1924
|
+
@extend %icon;
|
|
1925
|
+
@include vf-icon-security-tick-themed;
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
@mixin vf-p-icon-security-warning {
|
|
1930
|
+
.p-icon--security-warning {
|
|
1931
|
+
@extend %icon;
|
|
1932
|
+
@include vf-icon-security-warning-themed;
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
@mixin vf-p-icon-select-add {
|
|
1937
|
+
.p-icon--select-add {
|
|
1938
|
+
@extend %icon;
|
|
1939
|
+
@include vf-icon-select-add-themed;
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
@mixin vf-p-icon-select-remove {
|
|
1944
|
+
.p-icon--select-remove {
|
|
1945
|
+
@extend %icon;
|
|
1946
|
+
@include vf-icon-select-remove-themed;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
@mixin vf-p-icon-select {
|
|
1951
|
+
.p-icon--select {
|
|
1952
|
+
@extend %icon;
|
|
1953
|
+
@include vf-icon-select-themed;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
@mixin vf-p-icon-single-host {
|
|
1958
|
+
.p-icon--single-host {
|
|
1959
|
+
@extend %icon;
|
|
1960
|
+
@include vf-icon-single-host-themed;
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
@mixin vf-p-icon-snapshot {
|
|
1965
|
+
.p-icon--snapshot {
|
|
1966
|
+
@extend %icon;
|
|
1967
|
+
@include vf-icon-snapshot-themed;
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
@mixin vf-p-icon-snooze {
|
|
1972
|
+
.p-icon--snooze {
|
|
1973
|
+
@extend %icon;
|
|
1974
|
+
@include vf-icon-snooze-themed;
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
@mixin vf-p-icon-statistics {
|
|
1979
|
+
.p-icon--statistics {
|
|
1980
|
+
@extend %icon;
|
|
1981
|
+
@include vf-icon-statistics-themed;
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
@mixin vf-p-icon-thumbs-down {
|
|
1986
|
+
.p-icon--thumbs-down {
|
|
1987
|
+
@extend %icon;
|
|
1988
|
+
@include vf-icon-thumbs-down-themed;
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
@mixin vf-p-icon-thumbs-up {
|
|
1993
|
+
.p-icon--thumbs-up {
|
|
1994
|
+
@extend %icon;
|
|
1995
|
+
@include vf-icon-thumbs-up-themed;
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
@mixin vf-p-icon-tidy {
|
|
2000
|
+
.p-icon--tidy {
|
|
2001
|
+
@extend %icon;
|
|
2002
|
+
@include vf-icon-tidy-themed;
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
@mixin vf-p-icon-toggle-side-nav {
|
|
2007
|
+
.p-icon--toggle-side-nav {
|
|
2008
|
+
@extend %icon;
|
|
2009
|
+
@include vf-icon-toggle-side-nav-themed;
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
@mixin vf-p-icon-turn-off-notification {
|
|
2014
|
+
.p-icon--turn-off-notification {
|
|
2015
|
+
@extend %icon;
|
|
2016
|
+
@include vf-icon-turn-off-notification-themed;
|
|
2017
|
+
}
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
@mixin vf-p-icon-upload {
|
|
2021
|
+
.p-icon--upload {
|
|
2022
|
+
@extend %icon;
|
|
2023
|
+
@include vf-icon-upload-themed;
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
@mixin vf-p-icon-usb {
|
|
2028
|
+
.p-icon--usb {
|
|
2029
|
+
@extend %icon;
|
|
2030
|
+
@include vf-icon-usb-themed;
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
@mixin vf-p-icon-website {
|
|
2035
|
+
.p-icon--website {
|
|
2036
|
+
@extend %icon;
|
|
2037
|
+
@include vf-icon-website-themed;
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
// **Base and Pattern mixins accurate as of October 2024**
|
|
@@ -18,13 +18,64 @@
|
|
|
18
18
|
Wraps contents in a container with an aspect ratio of 2.4:1.
|
|
19
19
|
.p-image-container--square:
|
|
20
20
|
Wraps contents in a container with an aspect ratio of 1:1.
|
|
21
|
+
.p-image-container--(16-9|3-2|2-3|cinematic|square)-on-(small|medium|large):
|
|
22
|
+
Wraps contents in a container with the specified aspect ratio on the specified breakpoint.
|
|
21
23
|
Image:
|
|
22
24
|
.p-image-container__image:
|
|
23
25
|
Image element within an image container.
|
|
24
26
|
*/
|
|
25
27
|
|
|
28
|
+
@use 'sass:color';
|
|
26
29
|
@import 'settings';
|
|
27
30
|
|
|
31
|
+
// Mapping of aspect ratio class names to their `aspect-ratio` values (width / height).
|
|
32
|
+
$aspect-ratios: (
|
|
33
|
+
'16-9': calc(16 / 9),
|
|
34
|
+
'3-2': calc(3 / 2),
|
|
35
|
+
'2-3': calc(2 / 3),
|
|
36
|
+
'cinematic': 2.4,
|
|
37
|
+
'square': 1,
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
@mixin aspect-ratio-classes {
|
|
41
|
+
@each $aspect-ratio, $aspect-ratio-value in $aspect-ratios {
|
|
42
|
+
.p-image-container--#{$aspect-ratio} {
|
|
43
|
+
aspect-ratio: $aspect-ratio-value;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@each $breakpoint-name, $breakpoint-bounds-pair in $breakpoint-bounds {
|
|
48
|
+
$min-width: map-get($breakpoint-bounds-pair, min);
|
|
49
|
+
$max-width: map-get($breakpoint-bounds-pair, max);
|
|
50
|
+
|
|
51
|
+
@if $min-width and $max-width {
|
|
52
|
+
@media ($min-width <= width < $max-width) {
|
|
53
|
+
@each $aspect-ratio, $aspect-ratio-value in $aspect-ratios {
|
|
54
|
+
.p-image-container--#{$aspect-ratio}-on-#{$breakpoint-name} {
|
|
55
|
+
aspect-ratio: $aspect-ratio-value;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
} @else if $min-width {
|
|
60
|
+
@media (width >= $min-width) {
|
|
61
|
+
@each $aspect-ratio, $aspect-ratio-value in $aspect-ratios {
|
|
62
|
+
.p-image-container--#{$aspect-ratio}-on-#{$breakpoint-name} {
|
|
63
|
+
aspect-ratio: $aspect-ratio-value;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
} @else if $max-width {
|
|
68
|
+
@media (width < $max-width) {
|
|
69
|
+
@each $aspect-ratio, $aspect-ratio-value in $aspect-ratios {
|
|
70
|
+
.p-image-container--#{$aspect-ratio}-on-#{$breakpoint-name} {
|
|
71
|
+
aspect-ratio: $aspect-ratio-value;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
28
79
|
@mixin vf-p-image {
|
|
29
80
|
.p-image-container,
|
|
30
81
|
[class^='p-image-container--'] {
|
|
@@ -54,21 +105,7 @@
|
|
|
54
105
|
}
|
|
55
106
|
}
|
|
56
107
|
|
|
57
|
-
|
|
58
|
-
aspect-ratio: 16/9;
|
|
59
|
-
}
|
|
60
|
-
.p-image-container--3-2 {
|
|
61
|
-
aspect-ratio: 3/2;
|
|
62
|
-
}
|
|
63
|
-
.p-image-container--2-3 {
|
|
64
|
-
aspect-ratio: 2/3;
|
|
65
|
-
}
|
|
66
|
-
.p-image-container--cinematic {
|
|
67
|
-
aspect-ratio: 2.4/1;
|
|
68
|
-
}
|
|
69
|
-
.p-image-container--square {
|
|
70
|
-
aspect-ratio: 1/1;
|
|
71
|
-
}
|
|
108
|
+
@include aspect-ratio-classes;
|
|
72
109
|
|
|
73
110
|
// Deprecated; will be removed in v5
|
|
74
111
|
.p-image--bordered {
|
|
@@ -81,6 +118,6 @@
|
|
|
81
118
|
|
|
82
119
|
// Deprecated; will be removed in v5
|
|
83
120
|
.p-image--shadowed {
|
|
84
|
-
box-shadow: 0 1px 5px 1px
|
|
121
|
+
box-shadow: 0 1px 5px 1px color.scale($color-mid-light, $alpha: -80%);
|
|
85
122
|
}
|
|
86
123
|
}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.p-link--skip {
|
|
37
|
+
background: $colors--theme--background-alt;
|
|
37
38
|
color: $colors--theme--link-default;
|
|
38
39
|
display: block;
|
|
39
40
|
left: -999px;
|
|
@@ -41,12 +42,12 @@
|
|
|
41
42
|
top: -999px;
|
|
42
43
|
|
|
43
44
|
&:focus {
|
|
44
|
-
@include vf-focus;
|
|
45
|
+
@include vf-focus-themed;
|
|
45
46
|
|
|
46
|
-
left:
|
|
47
|
-
padding: $spv--
|
|
48
|
-
position:
|
|
49
|
-
top:
|
|
47
|
+
left: $sph--small;
|
|
48
|
+
padding: $spv--large $sph--large;
|
|
49
|
+
position: fixed;
|
|
50
|
+
top: $spv--small;
|
|
50
51
|
z-index: 999999;
|
|
51
52
|
}
|
|
52
53
|
}
|
|
@@ -1,87 +1,93 @@
|
|
|
1
1
|
@import 'settings';
|
|
2
2
|
|
|
3
3
|
@mixin vf-p-list-tree {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
background: {
|
|
7
|
-
position: center;
|
|
8
|
-
repeat: no-repeat;
|
|
9
|
-
}
|
|
4
|
+
$list-tree-toggle-icon-size: 1rem;
|
|
5
|
+
$list-tree-item-indent-size: calc($sph--x-large + map-get($icon-sizes, small) / 2);
|
|
10
6
|
|
|
7
|
+
%list-tree-icon {
|
|
11
8
|
content: ' ';
|
|
12
9
|
display: block;
|
|
13
|
-
height: $icon-size;
|
|
14
|
-
left:
|
|
10
|
+
height: $list-tree-toggle-icon-size;
|
|
11
|
+
left: 0;
|
|
15
12
|
pointer-events: none;
|
|
16
13
|
position: absolute;
|
|
17
|
-
top: 0.
|
|
18
|
-
width: $icon-size;
|
|
14
|
+
top: 0.3rem;
|
|
15
|
+
width: $list-tree-toggle-icon-size;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
%list-tree-expand-icon {
|
|
19
|
+
@extend %list-tree-icon;
|
|
20
|
+
@include vf-icon-chevron-right-themed;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
%list-tree-collapse-icon {
|
|
24
|
+
@extend %list-tree-icon;
|
|
25
|
+
@include vf-icon-chevron-down-themed;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.p-list-tree__link,
|
|
29
|
+
.p-list-tree__toggle {
|
|
30
|
+
color: $colors--theme--text-default;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
|
|
33
|
+
&:hover {
|
|
34
|
+
color: $colors--theme--link-default;
|
|
35
|
+
text-decoration: underline;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.is-active {
|
|
39
|
+
color: $colors--theme--link-default;
|
|
40
|
+
}
|
|
19
41
|
}
|
|
20
42
|
|
|
21
43
|
.p-list-tree {
|
|
22
|
-
border-left: 1px solid $color-mid-light;
|
|
23
44
|
list-style-type: none;
|
|
24
|
-
margin-left: $sp-
|
|
25
|
-
padding:
|
|
45
|
+
margin-left: $sp-x-small;
|
|
46
|
+
padding-left: $sph--small;
|
|
26
47
|
|
|
27
48
|
.p-list-tree {
|
|
28
49
|
display: none;
|
|
29
|
-
margin
|
|
50
|
+
margin: 0;
|
|
51
|
+
padding: 0;
|
|
30
52
|
|
|
31
53
|
&[aria-hidden='false'] {
|
|
32
54
|
display: block;
|
|
33
55
|
}
|
|
34
56
|
|
|
35
|
-
&[aria-hidden='false']::
|
|
36
|
-
@extend %list-tree-icon;
|
|
37
|
-
|
|
38
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='15' width='15' viewBox='0 0 15 15'%3E%3Cdefs%3E%3Cpath id='a' d='M0 0h15v15H0z'/%3E%3C/defs%3E%3Cg fill-rule='evenodd' fill='none'%3E%3Cuse xlink:href='%23a' fill='%23FFF'/%3E%3Cpath stroke='%23888' d='M.5.5h14v14H.5z'/%3E%3Cpath fill='%23888' d='M4 8V7h7v1z'/%3E%3C/g%3E%3C/svg%3E");
|
|
39
|
-
// At this point we need to push this icon above the --group icon.
|
|
40
|
-
z-index: 1;
|
|
57
|
+
&[aria-hidden='false']::before {
|
|
58
|
+
@extend %list-tree-collapse-icon;
|
|
41
59
|
}
|
|
42
60
|
}
|
|
43
61
|
}
|
|
44
62
|
|
|
45
63
|
.p-list-tree__item {
|
|
46
|
-
@include vf-focus;
|
|
64
|
+
@include vf-focus-themed;
|
|
47
65
|
|
|
48
66
|
margin-top: $sp-xx-small;
|
|
49
|
-
padding-left:
|
|
67
|
+
padding-left: $list-tree-item-indent-size;
|
|
50
68
|
position: relative;
|
|
69
|
+
}
|
|
51
70
|
|
|
71
|
+
.p-list-tree__toggle[aria-expanded='false'] {
|
|
52
72
|
&::before {
|
|
53
|
-
|
|
54
|
-
content: ' ';
|
|
55
|
-
display: block;
|
|
56
|
-
height: 1px;
|
|
57
|
-
left: -$sp-x-small;
|
|
58
|
-
pointer-events: none;
|
|
59
|
-
position: absolute;
|
|
60
|
-
top: 0.8rem;
|
|
61
|
-
width: 0.625rem;
|
|
73
|
+
@extend %list-tree-expand-icon;
|
|
62
74
|
}
|
|
63
75
|
}
|
|
64
76
|
|
|
65
|
-
.p-list-tree__item--group::after {
|
|
66
|
-
@extend %list-tree-icon;
|
|
67
|
-
|
|
68
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='15' width='15' viewBox='0 0 15 15'%3E%3Cdefs%3E%3Cpath id='a' d='M0 0h15v15H0z'/%3E%3C/defs%3E%3Cg fill-rule='evenodd' fill='none'%3E%3Cuse xlink:href='%23a' fill='%23FFF'/%3E%3Cpath stroke='%23888' d='M.5.5h14v14H.5z'/%3E%3Cpath fill='%23888' d='M7 4h1v7H7z'/%3E%3Cpath fill='%23888' d='M4 8V7h7v1z'/%3E%3C/g%3E%3C/svg%3E");
|
|
69
|
-
}
|
|
70
|
-
|
|
71
77
|
.p-list-tree__toggle {
|
|
72
|
-
@include vf-focus;
|
|
78
|
+
@include vf-focus-themed;
|
|
73
79
|
|
|
74
80
|
background: transparent;
|
|
75
81
|
border: 0;
|
|
76
82
|
font-weight: normal;
|
|
77
|
-
margin: 0 0
|
|
78
|
-
padding: 0
|
|
83
|
+
margin: 0 0 0 (-$list-tree-item-indent-size);
|
|
84
|
+
padding: 0 $sph--small 0 $list-tree-item-indent-size;
|
|
79
85
|
transition-duration: 0s;
|
|
80
86
|
|
|
87
|
+
// Hide the default button styling for toggles
|
|
88
|
+
&[aria-expanded='true'],
|
|
81
89
|
&:hover {
|
|
82
|
-
background:
|
|
83
|
-
color: $color-link;
|
|
84
|
-
text-decoration: underline;
|
|
90
|
+
background: $colors--theme--background-default;
|
|
85
91
|
}
|
|
86
92
|
}
|
|
87
93
|
}
|