@oslokommune/punkt-css 13.22.0 → 14.0.1
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 +62 -0
- package/dist/css/components/header-service-mobile.css +185 -0
- package/dist/css/components/header-service-mobile.min.css +1 -0
- package/dist/css/components/header-service.css +413 -0
- package/dist/css/components/header-service.min.css +1 -0
- package/dist/css/components/header-user-menu.css +128 -0
- package/dist/css/components/header-user-menu.min.css +1 -0
- package/dist/css/components/textinput.css +1 -1
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/elements/checkbox-radio.css +3 -3
- package/dist/css/elements/checkbox-radio.min.css +1 -1
- package/dist/css/elements/input.css +1 -1
- package/dist/css/elements/input.min.css +1 -1
- package/dist/css/elements/select.css +1 -1
- package/dist/css/elements/select.min.css +1 -1
- package/dist/css/pkt-base.css +7 -2
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +730 -1
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +740 -6
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-elements.css +4 -4
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +740 -6
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/mixins/_container-queries.scss +37 -0
- package/dist/scss/abstracts/mixins/_index.scss +1 -0
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/base/_typography.scss +4 -1
- package/dist/scss/components/_header-service-mobile.scss +212 -0
- package/dist/scss/components/_header-service.scss +378 -0
- package/dist/scss/components/_header-user-menu.scss +127 -0
- package/dist/scss/components/_index.scss +3 -0
- package/package.json +3 -3
|
@@ -1597,6 +1597,735 @@ 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
|
+
z-index: 100;
|
|
2061
|
+
}
|
|
2062
|
+
.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 {
|
|
2063
|
+
height: 100%;
|
|
2064
|
+
padding: 0 1.5rem;
|
|
2065
|
+
width: 100%;
|
|
2066
|
+
max-width: 100%;
|
|
2067
|
+
border: none;
|
|
2068
|
+
border-top: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
|
|
2069
|
+
border-bottom: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
|
|
2070
|
+
}
|
|
2071
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-button:not(button) {
|
|
2072
|
+
display: contents;
|
|
2073
|
+
}
|
|
2074
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-menu {
|
|
2075
|
+
max-width: 100%;
|
|
2076
|
+
position: unset;
|
|
2077
|
+
}
|
|
2078
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-content {
|
|
2079
|
+
display: none;
|
|
2080
|
+
}
|
|
2081
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content {
|
|
2082
|
+
position: absolute;
|
|
2083
|
+
top: 4rem;
|
|
2084
|
+
left: 0;
|
|
2085
|
+
right: 0;
|
|
2086
|
+
max-width: 100vw;
|
|
2087
|
+
}
|
|
2088
|
+
@media screen and (min-width: 80rem) {
|
|
2089
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content {
|
|
2090
|
+
top: 4.5rem;
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu {
|
|
2094
|
+
position: absolute;
|
|
2095
|
+
top: 4rem;
|
|
2096
|
+
left: 0;
|
|
2097
|
+
right: 0;
|
|
2098
|
+
}
|
|
2099
|
+
@media screen and (min-width: 80rem) {
|
|
2100
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu {
|
|
2101
|
+
top: 4.5rem;
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-input {
|
|
2105
|
+
padding: 1rem;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
.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,
|
|
2109
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
|
|
2110
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu,
|
|
2111
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__mobile-menu.is-open {
|
|
2112
|
+
background-color: var(--pkt-color-background-default);
|
|
2113
|
+
z-index: 100;
|
|
2114
|
+
border-top: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
|
|
2115
|
+
border-bottom: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
|
|
2116
|
+
}
|
|
2117
|
+
.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,
|
|
2118
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content::after,
|
|
2119
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu::after,
|
|
2120
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__mobile-menu.is-open::after {
|
|
2121
|
+
content: "";
|
|
2122
|
+
position: absolute;
|
|
2123
|
+
bottom: 0;
|
|
2124
|
+
left: 0;
|
|
2125
|
+
right: 0;
|
|
2126
|
+
height: 1.25rem;
|
|
2127
|
+
pointer-events: none;
|
|
2128
|
+
background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.06));
|
|
2129
|
+
transform: translateY(100%);
|
|
2130
|
+
z-index: 101;
|
|
2131
|
+
}
|
|
2132
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
|
|
2133
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content {
|
|
2134
|
+
height: max-content;
|
|
2135
|
+
max-height: calc(100dvh - var(--pkt-header-height));
|
|
2136
|
+
overflow: visible;
|
|
2137
|
+
}
|
|
2138
|
+
.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,
|
|
2139
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
|
|
2140
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents {
|
|
2141
|
+
display: flex;
|
|
2142
|
+
flex-direction: column;
|
|
2143
|
+
align-items: stretch;
|
|
2144
|
+
}
|
|
2145
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
|
|
2146
|
+
.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,
|
|
2147
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > ul,
|
|
2148
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
|
|
2149
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > ul,
|
|
2150
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents,
|
|
2151
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > ul {
|
|
2152
|
+
margin-left: 0;
|
|
2153
|
+
gap: 1.5rem;
|
|
2154
|
+
}
|
|
2155
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > *,
|
|
2156
|
+
.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 > *,
|
|
2157
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > ul > *,
|
|
2158
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > *,
|
|
2159
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > ul > *,
|
|
2160
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > *,
|
|
2161
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content > .pkt-contents > ul > * {
|
|
2162
|
+
margin-left: 0;
|
|
2163
|
+
}
|
|
2164
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content .pkt-contents,
|
|
2165
|
+
.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content .pkt-contents {
|
|
2166
|
+
padding: 2rem;
|
|
2167
|
+
overflow-y: auto;
|
|
2168
|
+
-webkit-overflow-scrolling: touch;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-content {
|
|
2172
|
+
display: none;
|
|
2173
|
+
}
|
|
2174
|
+
.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 {
|
|
2175
|
+
position: relative;
|
|
2176
|
+
}
|
|
2177
|
+
.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,
|
|
2178
|
+
.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,
|
|
2179
|
+
.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu {
|
|
2180
|
+
display: block;
|
|
2181
|
+
position: absolute;
|
|
2182
|
+
top: 100%;
|
|
2183
|
+
left: 0;
|
|
2184
|
+
min-width: 19rem;
|
|
2185
|
+
width: fit-content;
|
|
2186
|
+
max-width: 100%;
|
|
2187
|
+
right: auto;
|
|
2188
|
+
border: 2px solid var(--pkt-color-border-subtle);
|
|
2189
|
+
}
|
|
2190
|
+
.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,
|
|
2191
|
+
.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,
|
|
2192
|
+
.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 {
|
|
2193
|
+
left: auto;
|
|
2194
|
+
right: 0;
|
|
2195
|
+
}
|
|
2196
|
+
.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-input {
|
|
2197
|
+
padding: 1rem;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/*
|
|
2201
|
+
* Header User Menu component
|
|
2202
|
+
*/
|
|
2203
|
+
.pkt-header-service__user-menu::after {
|
|
2204
|
+
content: "";
|
|
2205
|
+
position: absolute;
|
|
2206
|
+
bottom: 0;
|
|
2207
|
+
left: 0;
|
|
2208
|
+
right: 0;
|
|
2209
|
+
height: 1.25rem;
|
|
2210
|
+
pointer-events: none;
|
|
2211
|
+
background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.06));
|
|
2212
|
+
transform: translateY(100%);
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
.pkt-user-menu,
|
|
2216
|
+
.pkt-header-service__slot-menu {
|
|
2217
|
+
background-color: var(--pkt-color-background-default);
|
|
2218
|
+
border: 2px solid var(--pkt-color-border-subtle);
|
|
2219
|
+
position: relative;
|
|
2220
|
+
display: flex;
|
|
2221
|
+
flex-direction: column;
|
|
2222
|
+
gap: 1rem;
|
|
2223
|
+
}
|
|
2224
|
+
.pkt-user-menu .pkt-header-service__slot-list,
|
|
2225
|
+
.pkt-header-service__slot-menu .pkt-header-service__slot-list {
|
|
2226
|
+
margin: 2rem;
|
|
2227
|
+
list-style: none;
|
|
2228
|
+
display: flex;
|
|
2229
|
+
flex-direction: column;
|
|
2230
|
+
gap: 2rem;
|
|
2231
|
+
padding: 0;
|
|
2232
|
+
}
|
|
2233
|
+
.pkt-user-menu__list,
|
|
2234
|
+
.pkt-header-service__slot-menu__list {
|
|
2235
|
+
display: flex;
|
|
2236
|
+
flex-direction: column;
|
|
2237
|
+
list-style: none;
|
|
2238
|
+
margin: 0;
|
|
2239
|
+
padding: 0;
|
|
2240
|
+
}
|
|
2241
|
+
.pkt-user-menu__sublist,
|
|
2242
|
+
.pkt-header-service__slot-menu__sublist {
|
|
2243
|
+
display: flex;
|
|
2244
|
+
flex-direction: column;
|
|
2245
|
+
list-style: none;
|
|
2246
|
+
margin: 0;
|
|
2247
|
+
padding: 0;
|
|
2248
|
+
gap: 1.5rem;
|
|
2249
|
+
}
|
|
2250
|
+
.pkt-user-menu__item,
|
|
2251
|
+
.pkt-header-service__slot-menu__item {
|
|
2252
|
+
display: block;
|
|
2253
|
+
padding: 1.5rem 2rem;
|
|
2254
|
+
}
|
|
2255
|
+
.pkt-user-menu__item:nth-child(odd),
|
|
2256
|
+
.pkt-header-service__slot-menu__item:nth-child(odd) {
|
|
2257
|
+
background-color: var(--pkt-color-background-subtle);
|
|
2258
|
+
}
|
|
2259
|
+
[data-mode=dark] .pkt-user-menu__item:not(:last-child),
|
|
2260
|
+
[data-mode=dark] .pkt-header-service__slot-menu__item:not(:last-child) {
|
|
2261
|
+
border-bottom: 1px solid var(--pkt-color-border-gray);
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
.pkt-user-menu__subitem,
|
|
2265
|
+
.pkt-header-service__slot-menu__subitem {
|
|
2266
|
+
display: block;
|
|
2267
|
+
}
|
|
2268
|
+
.pkt-user-menu__subitem:nth-child(odd),
|
|
2269
|
+
.pkt-header-service__slot-menu__subitem:nth-child(odd) {
|
|
2270
|
+
background-color: transparent;
|
|
2271
|
+
}
|
|
2272
|
+
.pkt-user-menu__label,
|
|
2273
|
+
.pkt-header-service__slot-menu__label {
|
|
2274
|
+
letter-spacing: -0.2px;
|
|
2275
|
+
font-weight: 500;
|
|
2276
|
+
font-size: 0.875rem;
|
|
2277
|
+
line-height: 1.375rem;
|
|
2278
|
+
color: var(--pkt-color-text-placeholder);
|
|
2279
|
+
margin-bottom: 0.5rem;
|
|
2280
|
+
}
|
|
2281
|
+
.pkt-user-menu__name,
|
|
2282
|
+
.pkt-header-service__slot-menu__name {
|
|
2283
|
+
letter-spacing: -0.2px;
|
|
2284
|
+
font-weight: 500;
|
|
2285
|
+
font-size: 1.125rem;
|
|
2286
|
+
line-height: 1.75rem;
|
|
2287
|
+
}
|
|
2288
|
+
.pkt-user-menu__description,
|
|
2289
|
+
.pkt-header-service__slot-menu__description {
|
|
2290
|
+
letter-spacing: -0.2px;
|
|
2291
|
+
font-weight: 300;
|
|
2292
|
+
font-size: 1rem;
|
|
2293
|
+
line-height: 1.5rem;
|
|
2294
|
+
}
|
|
2295
|
+
.pkt-user-menu__action,
|
|
2296
|
+
.pkt-header-service__slot-menu__action {
|
|
2297
|
+
margin-top: 1rem;
|
|
2298
|
+
}
|
|
2299
|
+
.pkt-user-menu__button,
|
|
2300
|
+
.pkt-header-service__slot-menu__button {
|
|
2301
|
+
font-weight: normal;
|
|
2302
|
+
}
|
|
2303
|
+
.pkt-user-menu__button:hover,
|
|
2304
|
+
.pkt-header-service__slot-menu__button:hover {
|
|
2305
|
+
background-color: none;
|
|
2306
|
+
}
|
|
2307
|
+
.pkt-user-menu__link,
|
|
2308
|
+
.pkt-header-service__slot-menu__link {
|
|
2309
|
+
letter-spacing: -0.2px;
|
|
2310
|
+
font-weight: 300;
|
|
2311
|
+
font-size: 1.125rem;
|
|
2312
|
+
line-height: 1.75rem;
|
|
2313
|
+
width: 100%;
|
|
2314
|
+
display: flex;
|
|
2315
|
+
align-items: center;
|
|
2316
|
+
text-decoration: none;
|
|
2317
|
+
transition: color 0.2s ease;
|
|
2318
|
+
}
|
|
2319
|
+
.pkt-user-menu__link .pkt-link span,
|
|
2320
|
+
.pkt-header-service__slot-menu__link .pkt-link span {
|
|
2321
|
+
align-self: anchor-center;
|
|
2322
|
+
}
|
|
2323
|
+
.pkt-user-menu__link .pkt-link__icon,
|
|
2324
|
+
.pkt-header-service__slot-menu__link .pkt-link__icon {
|
|
2325
|
+
margin-right: 0.5rem;
|
|
2326
|
+
align-self: baseline;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
1600
2329
|
pkt-heading {
|
|
1601
2330
|
display: block;
|
|
1602
2331
|
}
|
|
@@ -3781,7 +4510,7 @@ pkt-select {
|
|
|
3781
4510
|
padding-right: 3rem;
|
|
3782
4511
|
}
|
|
3783
4512
|
.pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]) {
|
|
3784
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/
|
|
4513
|
+
--svg: url(https://punkt-cdn.oslo.kommune.no/14.0/icons/chevron-thin-down.svg);
|
|
3785
4514
|
background-image: var(--svg);
|
|
3786
4515
|
background-repeat: no-repeat;
|
|
3787
4516
|
background-position: right 0.7rem top 50%;
|