@navikt/ds-css 7.2.0 → 7.3.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/CHANGELOG.md +16 -0
- package/action-menu.css +227 -0
- package/baseline/_inline-reset.css +3 -1
- package/config/_mappings.js +5 -0
- package/darkside/README.md +25 -0
- package/darkside/baseline/fonts.darkside.css +129 -0
- package/darkside/baseline/print.darkside.css +75 -0
- package/darkside/baseline/reset.darkside.css +148 -0
- package/darkside/baseline/theme.darkside.css +10 -0
- package/darkside/baseline/utilities.darkside.css +65 -0
- package/darkside/button.darkside.css +6 -0
- package/darkside/index.css +17 -0
- package/darkside/typography.darkside.css +6 -0
- package/dist/component/actionmenu.css +228 -0
- package/dist/component/actionmenu.min.css +1 -0
- package/dist/component/form.css +1 -0
- package/dist/component/form.min.css +1 -1
- package/dist/component/index.css +200 -2
- package/dist/component/index.min.css +4 -4
- package/dist/component/list.css +1 -0
- package/dist/component/list.min.css +1 -1
- package/dist/components.css +231 -0
- package/dist/components.min.css +2 -2
- package/dist/global/baseline.css +3 -1
- package/dist/global/baseline.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +200 -2
- package/dist/index.min.css +4 -4
- package/form/combobox.css +1 -0
- package/index.css +1 -0
- package/list.css +1 -0
- package/package.json +4 -3
package/dist/component/list.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.navds-list ol,.navds-list ul{margin-block:var(--a-spacing-4);padding:0}.navds-list--small ol,.navds-list--small ul{margin-block:var(--a-spacing-3)}.navds-list .navds-list :where(ul,ol){margin-block:var(--a-spacing-2) 0}.navds-list ol{list-style:decimal;padding-left:1.7rem}.navds-list ol>.navds-list__item{padding-left:.3rem}:root .navds-list ol,_::-webkit-full-page-media,_:future{padding-left:2.1rem}:root .navds-list ol .navds-list__item,_::-webkit-full-page-media,_:future{padding-left:0}.navds-list__item{margin-block-end:var(--a-spacing-2)}.navds-list__item:last-child{margin-block-end:0}.navds-list ul>.navds-list__item{display:grid;gap:var(--a-spacing-2);grid-template-columns:auto 1fr}.navds-list ol li::marker{color:var(--ac-list-marker-ol-color,var(--ac-list-marker-color,var(--a-icon-default)));font-weight:var(--a-font-weight-bold)}.navds-list__item-marker{width:1.5rem}.navds-list ul>li>.navds-list__item-marker{align-items:center;display:flex;height:var(--a-font-line-height-xlarge)}.navds-list--small ul>li>.navds-list__item-marker{height:var(--a-font-line-height-large)}.navds-list__item-marker--bullet{color:var(--ac-list-marker-ul-color,var(--ac-list-marker-color,var(--a-icon-default)));padding-left:.8rem}.navds-list__item-marker--icon{color:var(--ac-list-marker-icon-color,var(--ac-list-marker-color,var(--a-icon-default)));font-size:1.5rem}
|
|
1
|
+
.navds-list ol,.navds-list ul{margin-block:var(--a-spacing-4);padding:0}.navds-list--small ol,.navds-list--small ul{margin-block:var(--a-spacing-3)}.navds-list .navds-list :where(ul,ol){margin-block:var(--a-spacing-2) 0}.navds-list ol{list-style:decimal;padding-left:1.7rem}.navds-list ol>.navds-list__item{padding-left:.3rem}:root .navds-list ol,_::-webkit-full-page-media,_:future{padding-left:2.1rem}:root .navds-list ol .navds-list__item,_::-webkit-full-page-media,_:future{padding-left:0}.navds-list__item{margin-block-end:var(--a-spacing-2)}.navds-list__item:last-child{margin-block-end:0}.navds-list ul>.navds-list__item{display:grid;gap:var(--a-spacing-2);grid-template-columns:auto 1fr}.navds-list ol li::marker{color:var(--ac-list-marker-ol-color,var(--ac-list-marker-color,var(--a-icon-default)));font-weight:var(--a-font-weight-bold)}.navds-list__item-marker{width:1.5rem}.navds-list ul>li>.navds-list__item-marker{align-items:center;display:flex;height:var(--a-font-line-height-xlarge)}.navds-list--small ul>li>.navds-list__item-marker{height:var(--a-font-line-height-large)}.navds-list__item-marker--bullet{color:var(--ac-list-marker-ul-color,var(--ac-list-marker-color,var(--a-icon-default)));padding-left:.8rem}.navds-list__item-marker--icon{color:var(--ac-list-marker-icon-color,var(--ac-list-marker-color,var(--a-icon-default)));font-size:1.5rem;justify-content:center}
|
package/dist/components.css
CHANGED
|
@@ -1829,6 +1829,235 @@
|
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
|
|
1832
|
+
.navds-action-menu__content {
|
|
1833
|
+
overflow: hidden;
|
|
1834
|
+
box-shadow: var(--a-shadow-medium);
|
|
1835
|
+
border-radius: var(--a-border-radius-large);
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
/* stylelint-disable csstools/value-no-unknown-custom-properties */
|
|
1839
|
+
|
|
1840
|
+
.navds-action-menu__content > .navds-action-menu__content-inner {
|
|
1841
|
+
--__ac-action-menu-content-p: var(--a-spacing-2);
|
|
1842
|
+
--__ac-action-menu-item-pr: var(--a-spacing-3);
|
|
1843
|
+
--__ac-action-menu-item-pl: var(--a-spacing-2);
|
|
1844
|
+
--__ac-action-menu-item-height: 2rem;
|
|
1845
|
+
|
|
1846
|
+
border-radius: var(--a-border-radius-large);
|
|
1847
|
+
background-color: var(--a-surface-default);
|
|
1848
|
+
min-width: 128px;
|
|
1849
|
+
max-width: min(95vw, 640px);
|
|
1850
|
+
transform-origin: var(--__ac-action-menu-content-transform-origin);
|
|
1851
|
+
animation-duration: 160ms;
|
|
1852
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
1853
|
+
padding: var(--__ac-action-menu-content-p);
|
|
1854
|
+
overflow: auto;
|
|
1855
|
+
max-height: var(--__ac-action-menu-content-available-height);
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="bottom"]) {
|
|
1859
|
+
animation-name: aksel-action-from-bottom, aksel-action-fade-in;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="top"]) {
|
|
1863
|
+
animation-name: aksel-action-from-top, aksel-action-fade-in;
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="left"]) {
|
|
1867
|
+
animation-name: aksel-action-from-left, aksel-action-fade-in;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
.navds-action-menu__content:where([data-state="open"]):where([data-side="right"]) {
|
|
1871
|
+
animation-name: aksel-action-from-right, aksel-action-fade-in;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
@keyframes aksel-action-from-bottom {
|
|
1875
|
+
from {
|
|
1876
|
+
transform: translateY(-4px);
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
to {
|
|
1880
|
+
transform: translateY(0);
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
@keyframes aksel-action-from-top {
|
|
1885
|
+
from {
|
|
1886
|
+
transform: translateY(4px);
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
to {
|
|
1890
|
+
transform: translateY(0);
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
@keyframes aksel-action-from-left {
|
|
1895
|
+
from {
|
|
1896
|
+
transform: translateX(4px);
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
to {
|
|
1900
|
+
transform: translateY(0);
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
@keyframes aksel-action-from-right {
|
|
1905
|
+
from {
|
|
1906
|
+
transform: translateX(-4px);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
to {
|
|
1910
|
+
transform: translateY(0);
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
@keyframes aksel-action-fade-in {
|
|
1915
|
+
from {
|
|
1916
|
+
opacity: 0.01;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
to {
|
|
1920
|
+
opacity: 1;
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
.navds-action-menu__item {
|
|
1925
|
+
display: flex;
|
|
1926
|
+
align-items: center;
|
|
1927
|
+
gap: var(--a-spacing-2);
|
|
1928
|
+
min-height: var(--__ac-action-menu-item-height);
|
|
1929
|
+
cursor: default;
|
|
1930
|
+
border-radius: var(--a-border-radius-medium);
|
|
1931
|
+
position: relative;
|
|
1932
|
+
padding-left: var(--__ac-action-menu-item-pl);
|
|
1933
|
+
padding-right: var(--__ac-action-menu-item-pr);
|
|
1934
|
+
font-size: var(--a-font-size-medium);
|
|
1935
|
+
scroll-margin-block: var(--__ac-action-menu-content-p);
|
|
1936
|
+
line-height: 1.5;
|
|
1937
|
+
color: var(--a-text-default);
|
|
1938
|
+
text-decoration: none;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
.navds-action-menu__item svg {
|
|
1942
|
+
flex-shrink: 0;
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
.navds-action-menu__item--has-icon {
|
|
1946
|
+
--__ac-action-menu-item-pl: var(--a-spacing-6);
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
.navds-action-menu__sub-trigger {
|
|
1950
|
+
--__ac-action-menu-item-pr: var(--a-spacing-05);
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
.navds-action-menu__item:focus {
|
|
1954
|
+
outline: none;
|
|
1955
|
+
background-color: var(--a-surface-action-subtle-hover);
|
|
1956
|
+
color: var(--a-text-default);
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
.navds-action-menu__item--danger {
|
|
1960
|
+
color: var(--a-text-danger);
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
.navds-action-menu__item--danger:focus {
|
|
1964
|
+
background-color: var(--a-surface-danger-subtle);
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
.navds-action-menu__marker {
|
|
1968
|
+
display: flex;
|
|
1969
|
+
align-items: center;
|
|
1970
|
+
gap: var(--a-spacing-1);
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
.navds-action-menu__marker--right {
|
|
1974
|
+
margin-left: auto;
|
|
1975
|
+
padding-left: var(--a-spacing-4);
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
.navds-action-menu__marker--left {
|
|
1979
|
+
position: absolute;
|
|
1980
|
+
left: 0;
|
|
1981
|
+
width: var(--__ac-action-menu-item-pl);
|
|
1982
|
+
display: inline-flex;
|
|
1983
|
+
justify-content: center;
|
|
1984
|
+
}
|
|
1985
|
+
|
|
1986
|
+
.navds-action-menu__marker-icon svg {
|
|
1987
|
+
font-size: 18px;
|
|
1988
|
+
flex-shrink: 0;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
.navds-action-menu__shortcut {
|
|
1992
|
+
background-color: var(--a-surface-neutral-subtle);
|
|
1993
|
+
color: var(--a-text-default);
|
|
1994
|
+
border-radius: var(--a-border-radius-small);
|
|
1995
|
+
padding: 0 var(--a-spacing-1);
|
|
1996
|
+
min-width: 1.125rem;
|
|
1997
|
+
height: 1.125rem;
|
|
1998
|
+
line-height: 1;
|
|
1999
|
+
display: inline-flex;
|
|
2000
|
+
align-items: center;
|
|
2001
|
+
justify-content: center;
|
|
2002
|
+
font-size: var(--a-font-size-small);
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
.navds-action-menu__label {
|
|
2006
|
+
display: flex;
|
|
2007
|
+
align-items: center;
|
|
2008
|
+
min-height: calc(var(--__ac-action-menu-item-height) - 6px);
|
|
2009
|
+
padding-right: var(--__ac-action-menu-item-pr);
|
|
2010
|
+
padding-left: var(--__ac-action-menu-item-pl);
|
|
2011
|
+
color: var(--a-text-subtle);
|
|
2012
|
+
border-radius: var(--a-border-radius-medium);
|
|
2013
|
+
user-select: none;
|
|
2014
|
+
cursor: default;
|
|
2015
|
+
font-size: var(--a-font-size-small);
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
.navds-action-menu__divider {
|
|
2019
|
+
height: 1px;
|
|
2020
|
+
margin-block: var(--a-spacing-2);
|
|
2021
|
+
background-color: var(--a-border-divider);
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
.navds-action-menu__indicator {
|
|
2025
|
+
display: grid;
|
|
2026
|
+
place-content: center;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
.navds-action-menu__indicator-icon {
|
|
2030
|
+
font-size: 14px;
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
.navds-action-menu__indicator-icon--unchecked,
|
|
2034
|
+
.navds-action-menu__indicator-icon--checked,
|
|
2035
|
+
.navds-action-menu__indicator-icon--indeterminate {
|
|
2036
|
+
display: none;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
.navds-action-menu__indicator[data-state="unchecked"] .navds-action-menu__indicator-icon--unchecked {
|
|
2040
|
+
display: block;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
.navds-action-menu__indicator:where([data-state="checked"]) .navds-action-menu__indicator-icon--checked {
|
|
2044
|
+
display: block;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
.navds-action-menu__indicator:where([data-state="indeterminate"]) .navds-action-menu__indicator-icon--indeterminate {
|
|
2048
|
+
display: block;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
.navds-action-menu__item:where([aria-disabled="true"]) {
|
|
2052
|
+
color: var(--a-text-subtle);
|
|
2053
|
+
opacity: 0.5;
|
|
2054
|
+
pointer-events: none;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
.navds-action-menu__sub-trigger:where([data-state="open"]) {
|
|
2058
|
+
background-color: var(--a-surface-neutral-subtle);
|
|
2059
|
+
}
|
|
2060
|
+
|
|
1832
2061
|
.navds-expansioncard {
|
|
1833
2062
|
--__ac-expansioncard-border-color: var(--ac-expansioncard-border-color, var(--a-border-default));
|
|
1834
2063
|
--__ac-expansioncard-border-radius: var(--ac-expansioncard-border-radius, var(--a-border-radius-large));
|
|
@@ -4073,6 +4302,7 @@
|
|
|
4073
4302
|
border-radius: var(--a-border-radius-medium);
|
|
4074
4303
|
background-color: var(--ac-combobox-list-bg, var(--a-surface-default));
|
|
4075
4304
|
color: var(--ac-combobox-list-text, var(--a-text-default));
|
|
4305
|
+
overscroll-behavior: contain;
|
|
4076
4306
|
}
|
|
4077
4307
|
|
|
4078
4308
|
.navds-combobox__list--closed {
|
|
@@ -7560,6 +7790,7 @@ _:future,
|
|
|
7560
7790
|
|
|
7561
7791
|
.navds-list__item-marker--icon {
|
|
7562
7792
|
font-size: 1.5rem;
|
|
7793
|
+
justify-content: center;
|
|
7563
7794
|
color: var(--ac-list-marker-icon-color, var(--ac-list-marker-color, var(--a-icon-default)));
|
|
7564
7795
|
}
|
|
7565
7796
|
|