@oslokommune/punkt-css 13.21.0 → 14.0.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/css/components/card.css +3 -3
  3. package/dist/css/components/card.min.css +1 -1
  4. package/dist/css/components/header-service-mobile.css +184 -0
  5. package/dist/css/components/header-service-mobile.min.css +1 -0
  6. package/dist/css/components/header-service.css +413 -0
  7. package/dist/css/components/header-service.min.css +1 -0
  8. package/dist/css/components/header-user-menu.css +128 -0
  9. package/dist/css/components/header-user-menu.min.css +1 -0
  10. package/dist/css/components/textinput.css +1 -1
  11. package/dist/css/components/textinput.min.css +1 -1
  12. package/dist/css/elements/checkbox-radio.css +3 -3
  13. package/dist/css/elements/checkbox-radio.min.css +1 -1
  14. package/dist/css/elements/input.css +1 -1
  15. package/dist/css/elements/input.min.css +1 -1
  16. package/dist/css/elements/select.css +1 -1
  17. package/dist/css/elements/select.min.css +1 -1
  18. package/dist/css/pkt-base.css +7 -2
  19. package/dist/css/pkt-base.min.css +1 -1
  20. package/dist/css/pkt-components.css +732 -4
  21. package/dist/css/pkt-components.min.css +1 -1
  22. package/dist/css/pkt-docs.css +742 -9
  23. package/dist/css/pkt-docs.min.css +1 -1
  24. package/dist/css/pkt-elements.css +4 -4
  25. package/dist/css/pkt-elements.min.css +1 -1
  26. package/dist/css/pkt.css +742 -9
  27. package/dist/css/pkt.min.css +1 -1
  28. package/dist/scss/abstracts/mixins/_container-queries.scss +37 -0
  29. package/dist/scss/abstracts/mixins/_index.scss +1 -0
  30. package/dist/scss/abstracts/variables/_index.scss +1 -1
  31. package/dist/scss/base/_typography.scss +4 -1
  32. package/dist/scss/components/_card.scss +3 -3
  33. package/dist/scss/components/_header-service-mobile.scss +211 -0
  34. package/dist/scss/components/_header-service.scss +378 -0
  35. package/dist/scss/components/_header-user-menu.scss +127 -0
  36. package/dist/scss/components/_index.scss +3 -0
  37. package/package.json +3 -3
@@ -1010,13 +1010,13 @@ pkt-card {
1010
1010
  }
1011
1011
  .pkt-card--outlined, .pkt-card--outlined-beige {
1012
1012
  background-color: var(--pkt-color-background-default);
1013
- outline-offset: -4px;
1013
+ outline-offset: -2px;
1014
1014
  }
1015
1015
  .pkt-card--outlined {
1016
- outline: 4px solid var(--pkt-color-grays-gray-100);
1016
+ outline: 2px solid var(--pkt-color-grays-gray-100);
1017
1017
  }
1018
1018
  .pkt-card--outlined-beige {
1019
- outline: 4px solid var(--pkt-color-brand-light-beige-1000);
1019
+ outline: 2px solid var(--pkt-color-brand-light-beige-1000);
1020
1020
  }
1021
1021
  .pkt-card--gray {
1022
1022
  background-color: var(--pkt-color-brand-neutrals-100);
@@ -1597,6 +1597,734 @@ pkt-combobox[fullwidth] {
1597
1597
  color: var(--pkt-color-text-body-dark);
1598
1598
  }
1599
1599
 
1600
+ /*
1601
+ * HeaderService component
1602
+ * Uses container queries with media query fallback for responsive behavior
1603
+ */
1604
+ .pkt-header-service-spacer {
1605
+ height: 80px;
1606
+ }
1607
+ @media screen and (min-width: 48rem) {
1608
+ .pkt-header-service-spacer {
1609
+ height: 5.5rem;
1610
+ }
1611
+ }
1612
+ @container header-service (min-width: 48rem) {
1613
+ .pkt-header-service-spacer {
1614
+ height: 5.5rem;
1615
+ }
1616
+ }
1617
+ @media screen and (min-width: 80rem) {
1618
+ .pkt-header-service-spacer {
1619
+ height: 6.5rem;
1620
+ }
1621
+ }
1622
+ @container header-service (min-width: 80rem) {
1623
+ .pkt-header-service-spacer {
1624
+ height: 6.5rem;
1625
+ }
1626
+ }
1627
+ .pkt-header-service-spacer--mobile {
1628
+ height: 80px;
1629
+ }
1630
+ .pkt-header-service-spacer--has-user {
1631
+ height: 128px;
1632
+ }
1633
+ @media screen and (min-width: 48rem) {
1634
+ .pkt-header-service-spacer--has-user {
1635
+ height: 5.5rem;
1636
+ }
1637
+ }
1638
+ @container header-service (min-width: 48rem) {
1639
+ .pkt-header-service-spacer--has-user {
1640
+ height: 5.5rem;
1641
+ }
1642
+ }
1643
+ @media screen and (min-width: 80rem) {
1644
+ .pkt-header-service-spacer--has-user {
1645
+ height: 6.5rem;
1646
+ }
1647
+ }
1648
+ @container header-service (min-width: 80rem) {
1649
+ .pkt-header-service-spacer--has-user {
1650
+ height: 6.5rem;
1651
+ }
1652
+ }
1653
+ .pkt-header-service-spacer--has-user.pkt-header-service-spacer--mobile {
1654
+ height: 128px;
1655
+ }
1656
+ .pkt-header-service-spacer--compact {
1657
+ height: 4rem;
1658
+ }
1659
+ @media screen and (min-width: 48rem) {
1660
+ .pkt-header-service-spacer--compact {
1661
+ height: 4rem;
1662
+ }
1663
+ }
1664
+ @container header-service (min-width: 48rem) {
1665
+ .pkt-header-service-spacer--compact {
1666
+ height: 4rem;
1667
+ }
1668
+ }
1669
+ @media screen and (min-width: 80rem) {
1670
+ .pkt-header-service-spacer--compact {
1671
+ height: 4.5rem;
1672
+ }
1673
+ }
1674
+ @container header-service (min-width: 80rem) {
1675
+ .pkt-header-service-spacer--compact {
1676
+ height: 4.5rem;
1677
+ }
1678
+ }
1679
+ .pkt-header-service-spacer--compact.pkt-header-service-spacer--mobile {
1680
+ height: 4rem;
1681
+ }
1682
+ .pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user {
1683
+ height: 104px;
1684
+ }
1685
+ @media screen and (min-width: 48rem) {
1686
+ .pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user {
1687
+ height: 4rem;
1688
+ }
1689
+ }
1690
+ @container header-service (min-width: 48rem) {
1691
+ .pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user {
1692
+ height: 4rem;
1693
+ }
1694
+ }
1695
+ @media screen and (min-width: 80rem) {
1696
+ .pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user {
1697
+ height: 4.5rem;
1698
+ }
1699
+ }
1700
+ @container header-service (min-width: 80rem) {
1701
+ .pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user {
1702
+ height: 4.5rem;
1703
+ }
1704
+ }
1705
+ .pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user.pkt-header-service-spacer--mobile {
1706
+ height: 104px;
1707
+ }
1708
+
1709
+ .pkt-header-service {
1710
+ --pkt-header-height: 4.5rem;
1711
+ position: relative;
1712
+ }
1713
+ @media screen and (min-width: 48rem) {
1714
+ .pkt-header-service {
1715
+ --pkt-header-height: 5.5rem;
1716
+ }
1717
+ }
1718
+ @container header-service (min-width: 48rem) {
1719
+ .pkt-header-service {
1720
+ --pkt-header-height: 5.5rem;
1721
+ }
1722
+ }
1723
+ @media screen and (min-width: 80rem) {
1724
+ .pkt-header-service {
1725
+ --pkt-header-height: 6.5rem;
1726
+ }
1727
+ }
1728
+ @container header-service (min-width: 80rem) {
1729
+ .pkt-header-service {
1730
+ --pkt-header-height: 6.5rem;
1731
+ }
1732
+ }
1733
+ .pkt-header-service--compact {
1734
+ --pkt-header-height: 4rem;
1735
+ }
1736
+ @media screen and (min-width: 80rem) {
1737
+ .pkt-header-service--compact {
1738
+ --pkt-header-height: 4.5rem;
1739
+ }
1740
+ }
1741
+ @container header-service (min-width: 80rem) {
1742
+ .pkt-header-service--compact {
1743
+ --pkt-header-height: 4.5rem;
1744
+ }
1745
+ }
1746
+ .pkt-header-service--mobile {
1747
+ --pkt-header-height: 4rem;
1748
+ }
1749
+ @media screen and (min-width: 80rem) {
1750
+ .pkt-header-service--mobile {
1751
+ --pkt-header-height: 4.5rem;
1752
+ }
1753
+ }
1754
+ .pkt-header-service {
1755
+ background-color: var(--pkt-color-background-default);
1756
+ container-type: inline-size;
1757
+ container-name: header-service;
1758
+ display: grid;
1759
+ align-items: center;
1760
+ grid-template-columns: 1fr auto auto;
1761
+ grid-template-rows: 4.5rem auto;
1762
+ column-gap: 1rem;
1763
+ }
1764
+ @media screen and (min-width: 48rem) {
1765
+ .pkt-header-service {
1766
+ grid-template-rows: 5.5rem auto;
1767
+ column-gap: 1.5rem;
1768
+ }
1769
+ }
1770
+ @container header-service (min-width: 48rem) {
1771
+ .pkt-header-service {
1772
+ grid-template-rows: 5.5rem auto;
1773
+ column-gap: 1.5rem;
1774
+ }
1775
+ }
1776
+ @media screen and (min-width: 80rem) {
1777
+ .pkt-header-service {
1778
+ grid-template-rows: 6.5rem auto;
1779
+ column-gap: 2rem;
1780
+ }
1781
+ }
1782
+ @container header-service (min-width: 80rem) {
1783
+ .pkt-header-service {
1784
+ grid-template-rows: 6.5rem auto;
1785
+ column-gap: 2rem;
1786
+ }
1787
+ }
1788
+ .pkt-header-service--compact {
1789
+ grid-template-rows: 4.5rem auto;
1790
+ }
1791
+ .pkt-header-service--fixed {
1792
+ width: 100vw;
1793
+ position: fixed;
1794
+ top: 0;
1795
+ left: 0;
1796
+ z-index: 10;
1797
+ }
1798
+ .pkt-header-service--scroll-to-hide {
1799
+ transform: translate3d(0, 0, 0);
1800
+ transition: 0.5s transform ease-in-out;
1801
+ }
1802
+ .pkt-header-service--hidden {
1803
+ transform: translate3d(0, -100%, 0);
1804
+ }
1805
+ .pkt-header-service__logo-area, .pkt-header-service__content, .pkt-header-service__user {
1806
+ display: inline-flex;
1807
+ column-gap: 1.5rem;
1808
+ min-width: 0;
1809
+ }
1810
+ @media screen and (min-width: 80rem) {
1811
+ .pkt-header-service__logo-area, .pkt-header-service__content, .pkt-header-service__user {
1812
+ column-gap: 2rem;
1813
+ }
1814
+ }
1815
+ @container header-service (min-width: 80rem) {
1816
+ .pkt-header-service__logo-area, .pkt-header-service__content, .pkt-header-service__user {
1817
+ column-gap: 2rem;
1818
+ }
1819
+ }
1820
+ .pkt-header-service__logo-area {
1821
+ grid-column: 1;
1822
+ grid-row: 1;
1823
+ align-items: center;
1824
+ display: inline-flex;
1825
+ padding-left: 1rem;
1826
+ }
1827
+ @media screen and (min-width: 80rem) {
1828
+ .pkt-header-service__logo-area {
1829
+ padding-left: 2rem;
1830
+ }
1831
+ }
1832
+ @container header-service (min-width: 80rem) {
1833
+ .pkt-header-service__logo-area {
1834
+ padding-left: 2rem;
1835
+ }
1836
+ }
1837
+ .pkt-header-service__content, .pkt-header-service__user {
1838
+ grid-row: 1;
1839
+ align-items: center;
1840
+ }
1841
+ .pkt-header-service__content .pkt-header-service__user-button .pkt-btn__text, .pkt-header-service__user .pkt-header-service__user-button .pkt-btn__text {
1842
+ min-width: 0;
1843
+ overflow: hidden;
1844
+ text-overflow: ellipsis;
1845
+ white-space: nowrap;
1846
+ }
1847
+ .pkt-header-service__content .pkt-link, .pkt-header-service__user .pkt-link {
1848
+ letter-spacing: -0.2px;
1849
+ font-weight: 500;
1850
+ font-size: 1.125rem;
1851
+ line-height: 1.75rem;
1852
+ }
1853
+ .pkt-header-service__content {
1854
+ grid-column: 2;
1855
+ }
1856
+ .pkt-header-service__user {
1857
+ grid-column: 3;
1858
+ justify-self: end;
1859
+ padding-right: 1rem;
1860
+ }
1861
+ @media screen and (min-width: 80rem) {
1862
+ .pkt-header-service__user {
1863
+ padding-right: 2rem;
1864
+ }
1865
+ }
1866
+ @container header-service (min-width: 80rem) {
1867
+ .pkt-header-service__user {
1868
+ padding-right: 2rem;
1869
+ }
1870
+ }
1871
+ .pkt-header-service__logo {
1872
+ --fg-color: var(--pkt-color-text-body-default);
1873
+ flex: 0 0 auto;
1874
+ display: flex;
1875
+ align-items: center;
1876
+ gap: 0.5rem;
1877
+ }
1878
+ .pkt-header-service__logo a,
1879
+ .pkt-header-service__logo button {
1880
+ display: flex;
1881
+ align-items: center;
1882
+ }
1883
+ .pkt-header-service__logo svg {
1884
+ height: 2.5rem;
1885
+ }
1886
+ .pkt-header-service__logo-area--without-service .pkt-header-service__logo svg {
1887
+ height: 4rem;
1888
+ }
1889
+ .pkt-header-service__service-name {
1890
+ letter-spacing: -0.2px;
1891
+ font-weight: 500;
1892
+ font-size: 1.375rem;
1893
+ line-height: 2.125rem;
1894
+ padding-top: 4px;
1895
+ white-space: normal;
1896
+ display: -webkit-box;
1897
+ -webkit-box-orient: vertical;
1898
+ -webkit-line-clamp: 2;
1899
+ overflow: hidden;
1900
+ text-overflow: ellipsis;
1901
+ min-width: 0;
1902
+ text-wrap: balance;
1903
+ }
1904
+ .pkt-header-service__service-link {
1905
+ color: var(--pkt-color-text-body-default);
1906
+ }
1907
+ .pkt-header-service__service-link .pkt-link {
1908
+ text-decoration: none;
1909
+ }
1910
+ .pkt-header-service .pkt-link {
1911
+ text-decoration: none;
1912
+ }
1913
+ .pkt-header-service .pkt-link--active {
1914
+ text-decoration: underline;
1915
+ text-underline-position: from-font;
1916
+ }
1917
+ .pkt-header-service .pkt-link:active {
1918
+ text-decoration: underline;
1919
+ text-underline-position: from-font;
1920
+ }
1921
+ .pkt-header-service .pkt-link:hover {
1922
+ text-decoration: underline;
1923
+ text-underline-position: from-font;
1924
+ }
1925
+ .pkt-header-service .pkt-link.pkt-header-service--mobile {
1926
+ letter-spacing: -0.2px;
1927
+ font-weight: 500;
1928
+ font-size: 1rem;
1929
+ line-height: 1.5rem;
1930
+ }
1931
+ .pkt-header-service__search-input {
1932
+ background-color: var(--pkt-color-background-default);
1933
+ }
1934
+ .pkt-header-service__search-input .pkt-input-icon:not(button) svg {
1935
+ margin-left: 0;
1936
+ }
1937
+ .pkt-header-service__slot-container, .pkt-header-service__search-container {
1938
+ display: flex;
1939
+ flex-direction: row;
1940
+ align-items: baseline;
1941
+ }
1942
+ .pkt-header-service__slot-container, .pkt-header-service__slot-container .pkt-contents {
1943
+ display: flex;
1944
+ flex-direction: row;
1945
+ align-items: center;
1946
+ }
1947
+ .pkt-header-service__slot-container > * + *, .pkt-header-service__slot-container .pkt-contents > * + * {
1948
+ margin-left: 2rem;
1949
+ }
1950
+ .pkt-header-service__slot-container > .pkt-link + .pkt-link,
1951
+ .pkt-header-service__slot-container > pkt-link + pkt-link,
1952
+ .pkt-header-service__slot-container > a + a, .pkt-header-service__slot-container .pkt-contents > .pkt-link + .pkt-link,
1953
+ .pkt-header-service__slot-container .pkt-contents > pkt-link + pkt-link,
1954
+ .pkt-header-service__slot-container .pkt-contents > a + a {
1955
+ margin-left: 1.5rem;
1956
+ }
1957
+ .pkt-header-service__user-container.is-open, .pkt-header-service__search-container.is-open, .pkt-header-service__slot-container.is-open, .pkt-header-service__user-menu.is-open, .pkt-header-service__mobile-menu.is-open {
1958
+ z-index: 100;
1959
+ }
1960
+ .pkt-header-service__user-container {
1961
+ position: relative;
1962
+ }
1963
+ .pkt-header-service__user-button {
1964
+ max-width: 28.5rem;
1965
+ }
1966
+ .pkt-header-service__user-button .pkt-btn__text {
1967
+ overflow: hidden;
1968
+ text-overflow: ellipsis;
1969
+ white-space: nowrap;
1970
+ min-width: 0;
1971
+ flex: 1 1 auto;
1972
+ }
1973
+ .pkt-header-service__user-menu, .pkt-header-service__slot-menu {
1974
+ position: absolute;
1975
+ right: 0;
1976
+ width: max(15.5rem, 100%);
1977
+ max-width: min(32rem, 90vw);
1978
+ }
1979
+ .pkt-header-service__logout-button {
1980
+ flex: 0 0 auto;
1981
+ }
1982
+ .pkt-header-service__mobile-menu-container {
1983
+ grid-column: 1/-1;
1984
+ grid-row: 2;
1985
+ }
1986
+ .pkt-header-service__mobile-menu {
1987
+ overflow: hidden;
1988
+ max-height: 0;
1989
+ opacity: 0;
1990
+ transform: translateY(-6px);
1991
+ transition: max-height 200ms ease, opacity 150ms ease, transform 200ms ease;
1992
+ will-change: max-height, transform;
1993
+ pointer-events: none;
1994
+ }
1995
+ .pkt-header-service__mobile-menu.is-open {
1996
+ max-height: calc(100dvh - var(--pkt-header-height) - 3.5rem);
1997
+ opacity: 1;
1998
+ overflow: visible;
1999
+ pointer-events: auto;
2000
+ transform: translateY(0);
2001
+ }
2002
+ .pkt-header-service__mobile-menu.is-open > * {
2003
+ max-height: calc(100dvh - var(--pkt-header-height) - 3.5rem);
2004
+ overflow-y: auto;
2005
+ -webkit-overflow-scrolling: touch;
2006
+ }
2007
+ @media (prefers-reduced-motion: reduce) {
2008
+ .pkt-header-service__mobile-menu {
2009
+ transition: none;
2010
+ transform: none;
2011
+ }
2012
+ }
2013
+
2014
+ .pkt-header-service.pkt-header-service--mobile {
2015
+ grid-template-rows: 4rem auto;
2016
+ grid-template-columns: 1fr auto;
2017
+ }
2018
+ @media screen and (min-width: 80rem) {
2019
+ .pkt-header-service.pkt-header-service--mobile {
2020
+ grid-template-rows: 4.5rem auto;
2021
+ }
2022
+ }
2023
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service--compact {
2024
+ grid-template-rows: 4rem auto;
2025
+ }
2026
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__logo-area, .pkt-header-service.pkt-header-service--mobile .pkt-header-service__content, .pkt-header-service.pkt-header-service--mobile .pkt-header-service__user {
2027
+ column-gap: 1rem;
2028
+ }
2029
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__logo-area {
2030
+ grid-column: 1;
2031
+ grid-row: 1;
2032
+ }
2033
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__content {
2034
+ grid-column: 2;
2035
+ grid-row: 1;
2036
+ padding-right: 1rem;
2037
+ }
2038
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__user {
2039
+ grid-column: 1/-1;
2040
+ grid-row: 2;
2041
+ justify-self: stretch;
2042
+ padding: 0;
2043
+ }
2044
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__logo svg {
2045
+ height: 2rem;
2046
+ }
2047
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__service-name {
2048
+ letter-spacing: -0.2px;
2049
+ font-weight: 500;
2050
+ font-size: 1rem;
2051
+ line-height: 1.5rem;
2052
+ }
2053
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__mobile-menu {
2054
+ background-color: var(--pkt-color-background-default);
2055
+ }
2056
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-container {
2057
+ background-color: var(--pkt-color-background-default);
2058
+ height: 3.5rem;
2059
+ width: 100%;
2060
+ }
2061
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-button:is(button), .pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-button button {
2062
+ height: 100%;
2063
+ padding: 0 1.5rem;
2064
+ width: 100%;
2065
+ max-width: 100%;
2066
+ border: none;
2067
+ border-top: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
2068
+ border-bottom: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
2069
+ }
2070
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-button:not(button) {
2071
+ display: contents;
2072
+ }
2073
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-menu {
2074
+ max-width: 100%;
2075
+ position: unset;
2076
+ }
2077
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-content {
2078
+ display: none;
2079
+ }
2080
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content {
2081
+ position: absolute;
2082
+ top: 4rem;
2083
+ left: 0;
2084
+ right: 0;
2085
+ max-width: 100vw;
2086
+ }
2087
+ @media screen and (min-width: 80rem) {
2088
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content {
2089
+ top: 4.5rem;
2090
+ }
2091
+ }
2092
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu {
2093
+ position: absolute;
2094
+ top: 4rem;
2095
+ left: 0;
2096
+ right: 0;
2097
+ }
2098
+ @media screen and (min-width: 80rem) {
2099
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu {
2100
+ top: 4.5rem;
2101
+ }
2102
+ }
2103
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-input {
2104
+ padding: 1rem;
2105
+ }
2106
+
2107
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content, .pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu, .pkt-header-service.pkt-header-service--mobile .pkt-header-service__mobile-menu.is-open,
2108
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
2109
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu,
2110
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__mobile-menu.is-open {
2111
+ background-color: var(--pkt-color-background-default);
2112
+ z-index: 100;
2113
+ border-top: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
2114
+ border-bottom: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
2115
+ }
2116
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content::after, .pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu::after, .pkt-header-service.pkt-header-service--mobile .pkt-header-service__mobile-menu.is-open::after,
2117
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content::after,
2118
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu::after,
2119
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__mobile-menu.is-open::after {
2120
+ content: "";
2121
+ position: absolute;
2122
+ bottom: 0;
2123
+ left: 0;
2124
+ right: 0;
2125
+ height: 1.25rem;
2126
+ pointer-events: none;
2127
+ background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.06));
2128
+ transform: translateY(100%);
2129
+ z-index: 101;
2130
+ }
2131
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
2132
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content {
2133
+ height: max-content;
2134
+ max-height: calc(100dvh - var(--pkt-header-height));
2135
+ overflow: visible;
2136
+ }
2137
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content, .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents,
2138
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
2139
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents {
2140
+ display: flex;
2141
+ flex-direction: column;
2142
+ align-items: stretch;
2143
+ }
2144
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
2145
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > ul, .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents,
2146
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > ul,
2147
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
2148
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > ul,
2149
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents,
2150
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > ul {
2151
+ margin-left: 0;
2152
+ gap: 1.5rem;
2153
+ }
2154
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > *,
2155
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > ul > *, .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > *,
2156
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > ul > *,
2157
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > *,
2158
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > ul > *,
2159
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > *,
2160
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > ul > * {
2161
+ margin-left: 0;
2162
+ }
2163
+ .pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content .pkt-contents,
2164
+ .pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content .pkt-contents {
2165
+ padding: 2rem;
2166
+ overflow-y: auto;
2167
+ -webkit-overflow-scrolling: touch;
2168
+ }
2169
+
2170
+ .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-content {
2171
+ display: none;
2172
+ }
2173
+ .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-container, .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-container {
2174
+ position: relative;
2175
+ }
2176
+ .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
2177
+ .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-container.is-open .pkt-header-service__mobile-menu, .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-container.is-open .pkt-header-service__slot-content,
2178
+ .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu {
2179
+ display: block;
2180
+ position: absolute;
2181
+ top: 100%;
2182
+ left: 0;
2183
+ min-width: 19rem;
2184
+ width: fit-content;
2185
+ max-width: 100%;
2186
+ right: auto;
2187
+ border: 2px solid var(--pkt-color-border-subtle);
2188
+ }
2189
+ .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content.align-right,
2190
+ .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-container.is-open .pkt-header-service__mobile-menu.align-right, .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-container.is-open .pkt-header-service__slot-content.align-right,
2191
+ .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu.align-right {
2192
+ left: auto;
2193
+ right: 0;
2194
+ }
2195
+ .pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-input {
2196
+ padding: 1rem;
2197
+ }
2198
+
2199
+ /*
2200
+ * Header User Menu component
2201
+ */
2202
+ .pkt-header-service__user-menu::after {
2203
+ content: "";
2204
+ position: absolute;
2205
+ bottom: 0;
2206
+ left: 0;
2207
+ right: 0;
2208
+ height: 1.25rem;
2209
+ pointer-events: none;
2210
+ background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.06));
2211
+ transform: translateY(100%);
2212
+ }
2213
+
2214
+ .pkt-user-menu,
2215
+ .pkt-header-service__slot-menu {
2216
+ background-color: var(--pkt-color-background-default);
2217
+ border: 2px solid var(--pkt-color-border-subtle);
2218
+ position: relative;
2219
+ display: flex;
2220
+ flex-direction: column;
2221
+ gap: 1rem;
2222
+ }
2223
+ .pkt-user-menu .pkt-header-service__slot-list,
2224
+ .pkt-header-service__slot-menu .pkt-header-service__slot-list {
2225
+ margin: 2rem;
2226
+ list-style: none;
2227
+ display: flex;
2228
+ flex-direction: column;
2229
+ gap: 2rem;
2230
+ padding: 0;
2231
+ }
2232
+ .pkt-user-menu__list,
2233
+ .pkt-header-service__slot-menu__list {
2234
+ display: flex;
2235
+ flex-direction: column;
2236
+ list-style: none;
2237
+ margin: 0;
2238
+ padding: 0;
2239
+ }
2240
+ .pkt-user-menu__sublist,
2241
+ .pkt-header-service__slot-menu__sublist {
2242
+ display: flex;
2243
+ flex-direction: column;
2244
+ list-style: none;
2245
+ margin: 0;
2246
+ padding: 0;
2247
+ gap: 1.5rem;
2248
+ }
2249
+ .pkt-user-menu__item,
2250
+ .pkt-header-service__slot-menu__item {
2251
+ display: block;
2252
+ padding: 1.5rem 2rem;
2253
+ }
2254
+ .pkt-user-menu__item:nth-child(odd),
2255
+ .pkt-header-service__slot-menu__item:nth-child(odd) {
2256
+ background-color: var(--pkt-color-background-subtle);
2257
+ }
2258
+ [data-mode=dark] .pkt-user-menu__item:not(:last-child),
2259
+ [data-mode=dark] .pkt-header-service__slot-menu__item:not(:last-child) {
2260
+ border-bottom: 1px solid var(--pkt-color-border-gray);
2261
+ }
2262
+
2263
+ .pkt-user-menu__subitem,
2264
+ .pkt-header-service__slot-menu__subitem {
2265
+ display: block;
2266
+ }
2267
+ .pkt-user-menu__subitem:nth-child(odd),
2268
+ .pkt-header-service__slot-menu__subitem:nth-child(odd) {
2269
+ background-color: transparent;
2270
+ }
2271
+ .pkt-user-menu__label,
2272
+ .pkt-header-service__slot-menu__label {
2273
+ letter-spacing: -0.2px;
2274
+ font-weight: 500;
2275
+ font-size: 0.875rem;
2276
+ line-height: 1.375rem;
2277
+ color: var(--pkt-color-text-placeholder);
2278
+ margin-bottom: 0.5rem;
2279
+ }
2280
+ .pkt-user-menu__name,
2281
+ .pkt-header-service__slot-menu__name {
2282
+ letter-spacing: -0.2px;
2283
+ font-weight: 500;
2284
+ font-size: 1.125rem;
2285
+ line-height: 1.75rem;
2286
+ }
2287
+ .pkt-user-menu__description,
2288
+ .pkt-header-service__slot-menu__description {
2289
+ letter-spacing: -0.2px;
2290
+ font-weight: 300;
2291
+ font-size: 1rem;
2292
+ line-height: 1.5rem;
2293
+ }
2294
+ .pkt-user-menu__action,
2295
+ .pkt-header-service__slot-menu__action {
2296
+ margin-top: 1rem;
2297
+ }
2298
+ .pkt-user-menu__button,
2299
+ .pkt-header-service__slot-menu__button {
2300
+ font-weight: normal;
2301
+ }
2302
+ .pkt-user-menu__button:hover,
2303
+ .pkt-header-service__slot-menu__button:hover {
2304
+ background-color: none;
2305
+ }
2306
+ .pkt-user-menu__link,
2307
+ .pkt-header-service__slot-menu__link {
2308
+ letter-spacing: -0.2px;
2309
+ font-weight: 300;
2310
+ font-size: 1.125rem;
2311
+ line-height: 1.75rem;
2312
+ width: 100%;
2313
+ display: flex;
2314
+ align-items: center;
2315
+ text-decoration: none;
2316
+ transition: color 0.2s ease;
2317
+ }
2318
+ .pkt-user-menu__link .pkt-link span,
2319
+ .pkt-header-service__slot-menu__link .pkt-link span {
2320
+ align-self: anchor-center;
2321
+ }
2322
+ .pkt-user-menu__link .pkt-link__icon,
2323
+ .pkt-header-service__slot-menu__link .pkt-link__icon {
2324
+ margin-right: 0.5rem;
2325
+ align-self: baseline;
2326
+ }
2327
+
1600
2328
  pkt-heading {
1601
2329
  display: block;
1602
2330
  }
@@ -3781,7 +4509,7 @@ pkt-select {
3781
4509
  padding-right: 3rem;
3782
4510
  }
3783
4511
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]) {
3784
- --svg: url(https://punkt-cdn.oslo.kommune.no/13.21/icons/chevron-thin-down.svg);
4512
+ --svg: url(https://punkt-cdn.oslo.kommune.no/14.0/icons/chevron-thin-down.svg);
3785
4513
  background-image: var(--svg);
3786
4514
  background-repeat: no-repeat;
3787
4515
  background-position: right 0.7rem top 50%;