@oslokommune/punkt-css 16.26.3 → 17.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 +110 -0
- package/dist/css/components/accordion.css +27 -5
- package/dist/css/components/accordion.min.css +1 -1
- package/dist/css/components/alert.css +37 -3
- package/dist/css/components/alert.min.css +1 -1
- package/dist/css/components/calendar.css +4 -0
- package/dist/css/components/calendar.min.css +1 -1
- package/dist/css/components/combobox.css +82 -0
- package/dist/css/components/combobox.min.css +1 -1
- package/dist/css/components/datepicker.css +82 -3
- package/dist/css/components/datepicker.min.css +1 -1
- package/dist/css/components/footer.css +232 -108
- package/dist/css/components/footer.min.css +1 -1
- package/dist/css/components/header-global.css +287 -0
- package/dist/css/components/header-global.min.css +1 -0
- package/dist/css/components/header-menu.css +364 -123
- package/dist/css/components/header-menu.min.css +1 -1
- package/dist/css/components/header-service-mobile.css +71 -22
- package/dist/css/components/header-service-mobile.min.css +1 -1
- package/dist/css/components/header-service.css +68 -14
- package/dist/css/components/header-service.min.css +1 -1
- package/dist/css/components/header-shared.css +49 -0
- package/dist/css/components/header-shared.min.css +0 -0
- package/dist/css/components/inputwrapper.css +58 -4
- package/dist/css/components/inputwrapper.min.css +1 -1
- package/dist/css/components/modal.css +0 -5
- package/dist/css/components/modal.min.css +1 -1
- package/dist/css/components/searchinput.css +71 -2
- package/dist/css/components/searchinput.min.css +1 -1
- package/dist/css/components/textarea.css +41 -0
- package/dist/css/components/textarea.min.css +1 -0
- package/dist/css/components/textinput.css +126 -6
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/components/timepicker.css +133 -38
- package/dist/css/components/timepicker.min.css +1 -1
- package/dist/css/elements/button.css +20 -4
- package/dist/css/elements/button.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 +121 -6
- package/dist/css/elements/input.min.css +1 -1
- package/dist/css/elements/select.css +137 -9
- package/dist/css/elements/select.min.css +1 -1
- package/dist/css/pkt-base.css +438 -5
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +1595 -342
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +2081 -362
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-elements.css +160 -16
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +2081 -362
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/abstracts/variables/_spacing.scss +1 -0
- package/dist/scss/base/_typography.scss +5 -5
- package/dist/scss/components/_accordion.scss +7 -11
- package/dist/scss/components/_alert.scss +34 -4
- package/dist/scss/components/_calendar.scss +3 -0
- package/dist/scss/components/_combobox.scss +74 -0
- package/dist/scss/components/_datepicker.scss +75 -8
- package/dist/scss/components/_footer.scss +149 -123
- package/dist/scss/components/_header-global.scss +192 -0
- package/dist/scss/components/_header-menu.scss +30 -31
- package/dist/scss/components/_header-service-mobile.scss +4 -28
- package/dist/scss/components/_header-service.scss +4 -21
- package/dist/scss/components/_header-shared.scss +190 -0
- package/dist/scss/components/_index.scss +2 -0
- package/dist/scss/components/_inputwrapper.scss +62 -6
- package/dist/scss/components/_modal.scss +1 -5
- package/dist/scss/components/_searchinput.scss +58 -2
- package/dist/scss/components/_textarea.scss +48 -0
- package/dist/scss/components/_timepicker.scss +95 -34
- package/dist/scss/elements/_button.scss +12 -3
- package/dist/scss/elements/_input.scss +141 -7
- package/package.json +3 -3
|
@@ -1,3 +1,52 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/*
|
|
3
|
+
* Shared header patterns
|
|
4
|
+
*
|
|
5
|
+
* Mixins shared by the header variants (`pkt-header-service` and
|
|
6
|
+
* `pkt-header-global`). The service header is the source of truth — these
|
|
7
|
+
* mixins are extracted from it so the global header stays aligned.
|
|
8
|
+
*
|
|
9
|
+
* This file only defines mixins; it emits no CSS on its own and therefore
|
|
10
|
+
* is not `@forward`ed from the component index.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Header chrome shared by every variant: base positioning plus the
|
|
14
|
+
* `--fixed`, `--sticky`, `--scroll-to-hide` and `--hidden` modifier states.
|
|
15
|
+
*
|
|
16
|
+
* Call inside a header base block; `&` resolves to the calling class
|
|
17
|
+
* (`.pkt-header-service` or `.pkt-header-global`).
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Mobile user area shared by every variant: on small screens the user
|
|
21
|
+
* button becomes a full-width bar with top/bottom borders and the user
|
|
22
|
+
* menu renders in flow directly below it (rather than as a floating
|
|
23
|
+
* dropdown). Placement of the user area into its own row is left to the
|
|
24
|
+
* caller (grid row for the service header, a flex row for the global
|
|
25
|
+
* header).
|
|
26
|
+
*
|
|
27
|
+
* `$base` is the variant's BEM block, e.g. `pkt-header-service`.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Shared header grid. Logo (col 1), a flexible content cell (col 2,
|
|
31
|
+
* right-aligned) and the user cell (col 3). Row height follows
|
|
32
|
+
* `--pkt-header-height`, which steps down at the tablet and mobile
|
|
33
|
+
* breakpoints. On mobile the grid collapses to two columns and the user
|
|
34
|
+
* cell drops to a full-width second row — the same layout the service
|
|
35
|
+
* header uses.
|
|
36
|
+
*
|
|
37
|
+
* Call inside a header base block. `$base` is the variant's BEM block.
|
|
38
|
+
* `$mobile-height` lets a variant keep a taller bar on mobile (the service
|
|
39
|
+
* header drops to 64px, the global header stays at 88px).
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* Standalone Oslo logo sizing shared by header variants: 64px on
|
|
43
|
+
* desktop/tablet, shrinking to 32px on mobile (the same sizes the service
|
|
44
|
+
* header uses for its logo without a service name).
|
|
45
|
+
*
|
|
46
|
+
* Call inside a header base block; `&` resolves to the calling class.
|
|
47
|
+
* `$mobile-height` is the logo height on mobile (the service header drops to
|
|
48
|
+
* 32px, the global header to 3.2rem).
|
|
49
|
+
*/
|
|
1
50
|
.pkt-header-service.pkt-header-service--mobile {
|
|
2
51
|
grid-template-rows: 4rem auto;
|
|
3
52
|
grid-template-columns: 1fr auto;
|
|
@@ -7,6 +56,28 @@
|
|
|
7
56
|
grid-template-rows: 4.5rem auto;
|
|
8
57
|
}
|
|
9
58
|
}
|
|
59
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-container {
|
|
60
|
+
background-color: var(--pkt-color-background-default);
|
|
61
|
+
height: 3.5rem;
|
|
62
|
+
width: 100%;
|
|
63
|
+
z-index: 99;
|
|
64
|
+
}
|
|
65
|
+
.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 {
|
|
66
|
+
height: 100%;
|
|
67
|
+
padding: 0 1.5rem;
|
|
68
|
+
width: 100%;
|
|
69
|
+
max-width: 100%;
|
|
70
|
+
border: none;
|
|
71
|
+
border-top: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
|
|
72
|
+
border-bottom: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
|
|
73
|
+
}
|
|
74
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-button:not(button) {
|
|
75
|
+
display: contents;
|
|
76
|
+
}
|
|
77
|
+
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-menu {
|
|
78
|
+
max-width: 100%;
|
|
79
|
+
position: unset;
|
|
80
|
+
}
|
|
10
81
|
.pkt-header-service.pkt-header-service--mobile .pkt-header-service--compact {
|
|
11
82
|
grid-template-rows: 4rem auto;
|
|
12
83
|
}
|
|
@@ -40,28 +111,6 @@
|
|
|
40
111
|
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__mobile-menu {
|
|
41
112
|
background-color: var(--pkt-color-background-default);
|
|
42
113
|
}
|
|
43
|
-
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-container {
|
|
44
|
-
background-color: var(--pkt-color-background-default);
|
|
45
|
-
height: 3.5rem;
|
|
46
|
-
width: 100%;
|
|
47
|
-
z-index: 99;
|
|
48
|
-
}
|
|
49
|
-
.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 {
|
|
50
|
-
height: 100%;
|
|
51
|
-
padding: 0 1.5rem;
|
|
52
|
-
width: 100%;
|
|
53
|
-
max-width: 100%;
|
|
54
|
-
border: none;
|
|
55
|
-
border-top: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
|
|
56
|
-
border-bottom: 1px solid var(--pkt-color-border-subtle, #f2f2f2);
|
|
57
|
-
}
|
|
58
|
-
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-button:not(button) {
|
|
59
|
-
display: contents;
|
|
60
|
-
}
|
|
61
|
-
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-menu {
|
|
62
|
-
max-width: 100%;
|
|
63
|
-
position: unset;
|
|
64
|
-
}
|
|
65
114
|
.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-content {
|
|
66
115
|
display: none;
|
|
67
116
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkt-header-service.pkt-header-service--mobile{grid-template-rows:4rem auto;grid-template-columns:1fr auto}@media screen and (min-width: 80rem){.pkt-header-service.pkt-header-service--mobile{grid-template-rows:4.5rem auto}}.pkt-header-service.pkt-header-service--mobile .pkt-header-service--compact{grid-template-rows:4rem auto}.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{column-gap:.5rem}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__logo-area{grid-column:1;grid-row:1}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__content{grid-column:2;grid-row:1;padding-right:.5rem}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user{grid-column:1/-1;grid-row:2;justify-self:stretch;padding:0}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__logo svg{height:2rem}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__service-name{letter-spacing:-0.2px;font-weight:500;font-size:1rem;line-height:1.5rem}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__mobile-menu{background-color:var(--pkt-color-background-default)}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-container{background-color:var(--pkt-color-background-default);height:3.5rem;width:100%;z-index:99}.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{height:100%;padding:0 1.5rem;width:100%;max-width:100%;border:none;border-top:1px solid var(--pkt-color-border-subtle, #f2f2f2);border-bottom:1px solid var(--pkt-color-border-subtle, #f2f2f2)}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-button:not(button){display:contents}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-menu{max-width:100%;position:unset}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-content{display:none}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content{position:absolute;top:4rem;left:0;right:0;max-width:100vw}@media screen and (min-width: 80rem){.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content{top:4.5rem}}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu{position:absolute;top:4rem;left:0;right:0}@media screen and (min-width: 80rem){.pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu{top:4.5rem}}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-input{padding:1rem}.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,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__mobile-menu.is-open{background-color:var(--pkt-color-background-default);z-index:100;border-top:1px solid var(--pkt-color-border-subtle, #f2f2f2);border-bottom:1px solid var(--pkt-color-border-subtle, #f2f2f2)}.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,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content::after,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu::after,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__mobile-menu.is-open::after{content:"";position:absolute;bottom:0;left:0;right:0;height:1.25rem;pointer-events:none;background:linear-gradient(to top, transparent, rgba(0, 0, 0, 0.06));transform:translateY(100%);z-index:101}.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--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content{height:max-content;max-height:calc(100dvh - var(--pkt-header-height));overflow:visible}.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,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents{display:flex;flex-direction:column;align-items:stretch}.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>ul,.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents,.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>ul,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>ul,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>ul{margin-left:0;gap:1.5rem}.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>ul>*,.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>*,.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>ul>*,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>*,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>ul>*,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>*,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>ul>*{margin-left:0}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content .pkt-contents,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content .pkt-contents{padding:2rem;overflow-y:auto;-webkit-overflow-scrolling:touch}.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-content{display:none}.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{position:relative}.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,.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,.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu{display:block;position:absolute;top:100%;left:0;min-width:19rem;width:fit-content;max-width:100%;right:auto;border:2px solid var(--pkt-color-border-subtle)}.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,.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,.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{left:auto;right:0}.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-input{padding:1rem}
|
|
1
|
+
.pkt-header-service.pkt-header-service--mobile{grid-template-rows:4rem auto;grid-template-columns:1fr auto}@media screen and (min-width: 80rem){.pkt-header-service.pkt-header-service--mobile{grid-template-rows:4.5rem auto}}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-container{background-color:var(--pkt-color-background-default);height:3.5rem;width:100%;z-index:99}.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{height:100%;padding:0 1.5rem;width:100%;max-width:100%;border:none;border-top:1px solid var(--pkt-color-border-subtle, #f2f2f2);border-bottom:1px solid var(--pkt-color-border-subtle, #f2f2f2)}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-button:not(button){display:contents}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user-menu{max-width:100%;position:unset}.pkt-header-service.pkt-header-service--mobile .pkt-header-service--compact{grid-template-rows:4rem auto}.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{column-gap:.5rem}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__logo-area{grid-column:1;grid-row:1}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__content{grid-column:2;grid-row:1;padding-right:.5rem}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__user{grid-column:1/-1;grid-row:2;justify-self:stretch;padding:0}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__logo svg{height:2rem}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__service-name{letter-spacing:-0.2px;font-weight:500;font-size:1rem;line-height:1.5rem}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__mobile-menu{background-color:var(--pkt-color-background-default)}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-content{display:none}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content{position:absolute;top:4rem;left:0;right:0;max-width:100vw}@media screen and (min-width: 80rem){.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content{top:4.5rem}}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu{position:absolute;top:4rem;left:0;right:0}@media screen and (min-width: 80rem){.pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu{top:4.5rem}}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__search-input{padding:1rem}.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,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__mobile-menu.is-open{background-color:var(--pkt-color-background-default);z-index:100;border-top:1px solid var(--pkt-color-border-subtle, #f2f2f2);border-bottom:1px solid var(--pkt-color-border-subtle, #f2f2f2)}.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,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content::after,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu::after,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__mobile-menu.is-open::after{content:"";position:absolute;bottom:0;left:0;right:0;height:1.25rem;pointer-events:none;background:linear-gradient(to top, transparent, rgba(0, 0, 0, 0.06));transform:translateY(100%);z-index:101}.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--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content{height:max-content;max-height:calc(100dvh - var(--pkt-header-height));overflow:visible}.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,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents{display:flex;flex-direction:column;align-items:stretch}.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>ul,.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents,.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>ul,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>ul,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>ul{margin-left:0;gap:1.5rem}.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>ul>*,.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>*,.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>ul>*,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>*,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>ul>*,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>*,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content>.pkt-contents>ul>*{margin-left:0}.pkt-header-service.pkt-header-service--mobile .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content .pkt-contents,.pkt-header-service.pkt-header-service--tablet .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content .pkt-contents{padding:2rem;overflow-y:auto;-webkit-overflow-scrolling:touch}.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-content{display:none}.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{position:relative}.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__slot-container.is-open .pkt-header-service__slot-content,.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,.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-container.is-open .pkt-header-service__mobile-menu{display:block;position:absolute;top:100%;left:0;min-width:19rem;width:fit-content;max-width:100%;right:auto;border:2px solid var(--pkt-color-border-subtle)}.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,.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,.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{left:auto;right:0}.pkt-header-service.pkt-header-service--tablet:not(.pkt-header-service--mobile) .pkt-header-service__search-input{padding:1rem}
|
|
@@ -19,6 +19,54 @@
|
|
|
19
19
|
* override downward. --mobile blocks come after --tablet so they win on
|
|
20
20
|
* source order when both are present.
|
|
21
21
|
*/
|
|
22
|
+
/*
|
|
23
|
+
* Shared header patterns
|
|
24
|
+
*
|
|
25
|
+
* Mixins shared by the header variants (`pkt-header-service` and
|
|
26
|
+
* `pkt-header-global`). The service header is the source of truth — these
|
|
27
|
+
* mixins are extracted from it so the global header stays aligned.
|
|
28
|
+
*
|
|
29
|
+
* This file only defines mixins; it emits no CSS on its own and therefore
|
|
30
|
+
* is not `@forward`ed from the component index.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Header chrome shared by every variant: base positioning plus the
|
|
34
|
+
* `--fixed`, `--sticky`, `--scroll-to-hide` and `--hidden` modifier states.
|
|
35
|
+
*
|
|
36
|
+
* Call inside a header base block; `&` resolves to the calling class
|
|
37
|
+
* (`.pkt-header-service` or `.pkt-header-global`).
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* Mobile user area shared by every variant: on small screens the user
|
|
41
|
+
* button becomes a full-width bar with top/bottom borders and the user
|
|
42
|
+
* menu renders in flow directly below it (rather than as a floating
|
|
43
|
+
* dropdown). Placement of the user area into its own row is left to the
|
|
44
|
+
* caller (grid row for the service header, a flex row for the global
|
|
45
|
+
* header).
|
|
46
|
+
*
|
|
47
|
+
* `$base` is the variant's BEM block, e.g. `pkt-header-service`.
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* Shared header grid. Logo (col 1), a flexible content cell (col 2,
|
|
51
|
+
* right-aligned) and the user cell (col 3). Row height follows
|
|
52
|
+
* `--pkt-header-height`, which steps down at the tablet and mobile
|
|
53
|
+
* breakpoints. On mobile the grid collapses to two columns and the user
|
|
54
|
+
* cell drops to a full-width second row — the same layout the service
|
|
55
|
+
* header uses.
|
|
56
|
+
*
|
|
57
|
+
* Call inside a header base block. `$base` is the variant's BEM block.
|
|
58
|
+
* `$mobile-height` lets a variant keep a taller bar on mobile (the service
|
|
59
|
+
* header drops to 64px, the global header stays at 88px).
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Standalone Oslo logo sizing shared by header variants: 64px on
|
|
63
|
+
* desktop/tablet, shrinking to 32px on mobile (the same sizes the service
|
|
64
|
+
* header uses for its logo without a service name).
|
|
65
|
+
*
|
|
66
|
+
* Call inside a header base block; `&` resolves to the calling class.
|
|
67
|
+
* `$mobile-height` is the logo height on mobile (the service header drops to
|
|
68
|
+
* 32px, the global header to 3.2rem).
|
|
69
|
+
*/
|
|
22
70
|
.pkt-header-service-spacer {
|
|
23
71
|
height: 6.5rem;
|
|
24
72
|
}
|
|
@@ -81,6 +129,25 @@
|
|
|
81
129
|
z-index: 10;
|
|
82
130
|
background-color: var(--pkt-color-background-default);
|
|
83
131
|
border-bottom: 1px solid var(--pkt-color-border-subtle);
|
|
132
|
+
}
|
|
133
|
+
.pkt-header-service--fixed {
|
|
134
|
+
width: 100vw;
|
|
135
|
+
position: fixed;
|
|
136
|
+
top: 0;
|
|
137
|
+
left: 0;
|
|
138
|
+
}
|
|
139
|
+
.pkt-header-service--sticky {
|
|
140
|
+
position: sticky;
|
|
141
|
+
top: 0;
|
|
142
|
+
}
|
|
143
|
+
.pkt-header-service--scroll-to-hide {
|
|
144
|
+
transform: translate3d(0, 0, 0);
|
|
145
|
+
transition: 0.5s transform ease-in-out;
|
|
146
|
+
}
|
|
147
|
+
.pkt-header-service--hidden {
|
|
148
|
+
transform: translate3d(0, -100%, 0);
|
|
149
|
+
}
|
|
150
|
+
.pkt-header-service {
|
|
84
151
|
display: grid;
|
|
85
152
|
align-items: center;
|
|
86
153
|
grid-template-columns: 1fr auto auto;
|
|
@@ -98,19 +165,6 @@
|
|
|
98
165
|
.pkt-header-service--compact {
|
|
99
166
|
grid-template-rows: 4.5rem auto;
|
|
100
167
|
}
|
|
101
|
-
.pkt-header-service--fixed {
|
|
102
|
-
width: 100vw;
|
|
103
|
-
position: fixed;
|
|
104
|
-
top: 0;
|
|
105
|
-
left: 0;
|
|
106
|
-
}
|
|
107
|
-
.pkt-header-service--scroll-to-hide {
|
|
108
|
-
transform: translate3d(0, 0, 0);
|
|
109
|
-
transition: 0.5s transform ease-in-out;
|
|
110
|
-
}
|
|
111
|
-
.pkt-header-service--hidden {
|
|
112
|
-
transform: translate3d(0, -100%, 0);
|
|
113
|
-
}
|
|
114
168
|
.pkt-header-service__logo-area, .pkt-header-service__content, .pkt-header-service__user {
|
|
115
169
|
display: inline-flex;
|
|
116
170
|
column-gap: 2rem;
|
|
@@ -256,7 +310,7 @@
|
|
|
256
310
|
position: relative;
|
|
257
311
|
}
|
|
258
312
|
.pkt-header-service__user-button {
|
|
259
|
-
max-width:
|
|
313
|
+
max-width: 22.5rem;
|
|
260
314
|
}
|
|
261
315
|
.pkt-header-service__user-button .pkt-btn__text {
|
|
262
316
|
overflow: hidden;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkt-header-service-spacer{height:6.5rem}.pkt-header-service-spacer--tablet{height:5.5rem}.pkt-header-service-spacer--mobile{height:5rem}.pkt-header-service-spacer--has-user{height:6.5rem}.pkt-header-service-spacer--has-user.pkt-header-service-spacer--tablet{height:5.5rem}.pkt-header-service-spacer--has-user.pkt-header-service-spacer--mobile{height:7.5rem}.pkt-header-service-spacer--compact{height:4.5rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--tablet{height:4rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--mobile{height:4rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user{height:4.5rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user.pkt-header-service-spacer--tablet{height:4rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user.pkt-header-service-spacer--mobile{height:104px}.pkt-header-service{--pkt-header-height: 6.5rem}.pkt-header-service--tablet{--pkt-header-height: 5.5rem}.pkt-header-service--mobile{--pkt-header-height: 4rem}@media screen and (min-width: 80rem){.pkt-header-service--mobile{--pkt-header-height: 4.5rem}}.pkt-header-service--compact{--pkt-header-height: 4.5rem}.pkt-header-service--compact.pkt-header-service--tablet{--pkt-header-height: 4rem}.pkt-header-service{position:relative;z-index:10;background-color:var(--pkt-color-background-default);border-bottom:1px solid var(--pkt-color-border-subtle);display:grid;align-items:center;grid-template-columns:1fr auto auto;grid-template-rows:6.5rem auto;column-gap:2rem}.pkt-header-service--tablet{grid-template-rows:5.5rem auto;column-gap:1.5rem}.pkt-header-service--mobile{grid-template-rows:4.5rem auto;column-gap:.5rem}.pkt-header-service--compact{grid-template-rows:4.5rem auto}.pkt-header-
|
|
1
|
+
.pkt-header-service-spacer{height:6.5rem}.pkt-header-service-spacer--tablet{height:5.5rem}.pkt-header-service-spacer--mobile{height:5rem}.pkt-header-service-spacer--has-user{height:6.5rem}.pkt-header-service-spacer--has-user.pkt-header-service-spacer--tablet{height:5.5rem}.pkt-header-service-spacer--has-user.pkt-header-service-spacer--mobile{height:7.5rem}.pkt-header-service-spacer--compact{height:4.5rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--tablet{height:4rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--mobile{height:4rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user{height:4.5rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user.pkt-header-service-spacer--tablet{height:4rem}.pkt-header-service-spacer--compact.pkt-header-service-spacer--has-user.pkt-header-service-spacer--mobile{height:104px}.pkt-header-service{--pkt-header-height: 6.5rem}.pkt-header-service--tablet{--pkt-header-height: 5.5rem}.pkt-header-service--mobile{--pkt-header-height: 4rem}@media screen and (min-width: 80rem){.pkt-header-service--mobile{--pkt-header-height: 4.5rem}}.pkt-header-service--compact{--pkt-header-height: 4.5rem}.pkt-header-service--compact.pkt-header-service--tablet{--pkt-header-height: 4rem}.pkt-header-service{position:relative;z-index:10;background-color:var(--pkt-color-background-default);border-bottom:1px solid var(--pkt-color-border-subtle)}.pkt-header-service--fixed{width:100vw;position:fixed;top:0;left:0}.pkt-header-service--sticky{position:sticky;top:0}.pkt-header-service--scroll-to-hide{transform:translate3d(0, 0, 0);transition:.5s transform ease-in-out}.pkt-header-service--hidden{transform:translate3d(0, -100%, 0)}.pkt-header-service{display:grid;align-items:center;grid-template-columns:1fr auto auto;grid-template-rows:6.5rem auto;column-gap:2rem}.pkt-header-service--tablet{grid-template-rows:5.5rem auto;column-gap:1.5rem}.pkt-header-service--mobile{grid-template-rows:4.5rem auto;column-gap:.5rem}.pkt-header-service--compact{grid-template-rows:4.5rem auto}.pkt-header-service__logo-area,.pkt-header-service__content,.pkt-header-service__user{display:inline-flex;column-gap:2rem;min-width:0}.pkt-header-service--tablet .pkt-header-service__logo-area,.pkt-header-service--tablet .pkt-header-service__content,.pkt-header-service--tablet .pkt-header-service__user{column-gap:1.5rem}.pkt-header-service--mobile .pkt-header-service__logo-area,.pkt-header-service--mobile .pkt-header-service__content,.pkt-header-service--mobile .pkt-header-service__user{column-gap:.25rem}.pkt-header-service__logo-area{grid-column:1;grid-row:1;align-items:center;display:inline-flex;padding-left:2rem}.pkt-header-service--tablet .pkt-header-service__logo-area{padding-left:1rem}.pkt-header-service--mobile .pkt-header-service__logo-area{padding-left:.5rem}.pkt-header-service__content,.pkt-header-service__user{grid-row:1;align-items:center}.pkt-header-service__content .pkt-header-service__user-button .pkt-btn__text,.pkt-header-service__user .pkt-header-service__user-button .pkt-btn__text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pkt-header-service__content .pkt-link,.pkt-header-service__user .pkt-link{letter-spacing:-0.2px;font-weight:500;font-size:1.125rem;line-height:1.75rem}.pkt-header-service__content{grid-column:2}.pkt-header-service__user{grid-column:3;justify-self:end;padding-right:2rem}.pkt-header-service--tablet .pkt-header-service__user{padding-right:1rem}.pkt-header-service__logo{--fg-color: var(--pkt-color-text-body-default);flex:0 0 auto;display:flex;align-items:center;gap:.5rem}.pkt-header-service__logo a,.pkt-header-service__logo button{display:flex;align-items:center}.pkt-header-service__logo svg{aspect-ratio:6/3;height:2.5rem}.pkt-header-service__logo-area--without-service .pkt-header-service__logo svg{height:4rem}.pkt-header-service__service-name{letter-spacing:-0.2px;font-weight:500;font-size:1.375rem;line-height:2.125rem;padding-top:4px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;min-width:0;text-wrap:balance}.pkt-header-service__service-link{color:var(--pkt-color-text-body-default)}.pkt-header-service__service-link .pkt-link{text-decoration:none}.pkt-header-service .pkt-link{text-decoration:none}.pkt-header-service .pkt-link--active{text-decoration:underline;text-underline-position:from-font}.pkt-header-service .pkt-link:active{text-decoration:underline;text-underline-position:from-font}.pkt-header-service .pkt-link:hover{text-decoration:underline;text-underline-position:from-font}.pkt-header-service .pkt-link.pkt-header-service--mobile{letter-spacing:-0.2px;font-weight:500;font-size:1rem;line-height:1.5rem}.pkt-header-service__search-input{background-color:var(--pkt-color-background-default)}.pkt-header-service__search-input .pkt-input-icon:not(button) svg{margin-left:0}.pkt-header-service__slot-container,.pkt-header-service__search-container{display:flex;flex-direction:row;align-items:baseline}.pkt-header-service__slot-container,.pkt-header-service__slot-container .pkt-contents{display:flex;flex-direction:row;align-items:center}.pkt-header-service__slot-container>*+*,.pkt-header-service__slot-container .pkt-contents>*+*{margin-left:2rem}.pkt-header-service__slot-container>.pkt-link+.pkt-link,.pkt-header-service__slot-container>pkt-link+pkt-link,.pkt-header-service__slot-container>a+a,.pkt-header-service__slot-container .pkt-contents>.pkt-link+.pkt-link,.pkt-header-service__slot-container .pkt-contents>pkt-link+pkt-link,.pkt-header-service__slot-container .pkt-contents>a+a{margin-left:1.5rem}.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{z-index:100}.pkt-header-service__user-container{position:relative}.pkt-header-service__user-button{max-width:22.5rem}.pkt-header-service__user-button .pkt-btn__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}.pkt-header-service__user-menu,.pkt-header-service__slot-menu{position:absolute;right:0;width:max(15.5rem,100%);max-width:min(32rem,90vw)}.pkt-header-service__logout-button{flex:0 0 auto}.pkt-header-service__mobile-menu-container{grid-column:1/-1;grid-row:2}.pkt-header-service__mobile-menu{overflow:hidden;max-height:0;opacity:0;transform:translateY(-6px);transition:max-height 200ms ease,opacity 150ms ease,transform 200ms ease;will-change:max-height,transform;pointer-events:none}.pkt-header-service__mobile-menu.is-open{max-height:calc(100dvh - var(--pkt-header-height) - 3.5rem);opacity:1;overflow:visible;pointer-events:auto;transform:translateY(0)}.pkt-header-service__mobile-menu.is-open>*{max-height:calc(100dvh - var(--pkt-header-height) - 3.5rem);overflow-y:auto;-webkit-overflow-scrolling:touch}@media(prefers-reduced-motion: reduce){.pkt-header-service__mobile-menu{transition:none;transform:none}}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/*
|
|
3
|
+
* Shared header patterns
|
|
4
|
+
*
|
|
5
|
+
* Mixins shared by the header variants (`pkt-header-service` and
|
|
6
|
+
* `pkt-header-global`). The service header is the source of truth — these
|
|
7
|
+
* mixins are extracted from it so the global header stays aligned.
|
|
8
|
+
*
|
|
9
|
+
* This file only defines mixins; it emits no CSS on its own and therefore
|
|
10
|
+
* is not `@forward`ed from the component index.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Header chrome shared by every variant: base positioning plus the
|
|
14
|
+
* `--fixed`, `--sticky`, `--scroll-to-hide` and `--hidden` modifier states.
|
|
15
|
+
*
|
|
16
|
+
* Call inside a header base block; `&` resolves to the calling class
|
|
17
|
+
* (`.pkt-header-service` or `.pkt-header-global`).
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Mobile user area shared by every variant: on small screens the user
|
|
21
|
+
* button becomes a full-width bar with top/bottom borders and the user
|
|
22
|
+
* menu renders in flow directly below it (rather than as a floating
|
|
23
|
+
* dropdown). Placement of the user area into its own row is left to the
|
|
24
|
+
* caller (grid row for the service header, a flex row for the global
|
|
25
|
+
* header).
|
|
26
|
+
*
|
|
27
|
+
* `$base` is the variant's BEM block, e.g. `pkt-header-service`.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Shared header grid. Logo (col 1), a flexible content cell (col 2,
|
|
31
|
+
* right-aligned) and the user cell (col 3). Row height follows
|
|
32
|
+
* `--pkt-header-height`, which steps down at the tablet and mobile
|
|
33
|
+
* breakpoints. On mobile the grid collapses to two columns and the user
|
|
34
|
+
* cell drops to a full-width second row — the same layout the service
|
|
35
|
+
* header uses.
|
|
36
|
+
*
|
|
37
|
+
* Call inside a header base block. `$base` is the variant's BEM block.
|
|
38
|
+
* `$mobile-height` lets a variant keep a taller bar on mobile (the service
|
|
39
|
+
* header drops to 64px, the global header stays at 88px).
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* Standalone Oslo logo sizing shared by header variants: 64px on
|
|
43
|
+
* desktop/tablet, shrinking to 32px on mobile (the same sizes the service
|
|
44
|
+
* header uses for its logo without a service name).
|
|
45
|
+
*
|
|
46
|
+
* Call inside a header base block; `&` resolves to the calling class.
|
|
47
|
+
* `$mobile-height` is the logo height on mobile (the service header drops to
|
|
48
|
+
* 32px, the global header to 3.2rem).
|
|
49
|
+
*/
|
|
File without changes
|
|
@@ -30,7 +30,7 @@ pkt-input-wrapper {
|
|
|
30
30
|
.pkt-inputwrapper__helptext-container {
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
|
-
gap: 0.
|
|
33
|
+
gap: 0.5rem;
|
|
34
34
|
}
|
|
35
35
|
.pkt-inputwrapper__helptext {
|
|
36
36
|
width: min(100%, 31rem);
|
|
@@ -57,6 +57,12 @@ pkt-input-wrapper {
|
|
|
57
57
|
.pkt-inputwrapper__helptext > *:last-child {
|
|
58
58
|
margin-bottom: 0;
|
|
59
59
|
}
|
|
60
|
+
.pkt-inputwrapper__helptext-expandable {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
align-items: flex-start;
|
|
64
|
+
gap: 0.25rem;
|
|
65
|
+
}
|
|
60
66
|
.pkt-inputwrapper__helptext-expandable-heading {
|
|
61
67
|
margin: 0;
|
|
62
68
|
letter-spacing: -0.2px;
|
|
@@ -68,7 +74,6 @@ pkt-input-wrapper {
|
|
|
68
74
|
display: block;
|
|
69
75
|
border-left: 2px solid var(--pkt-color-text-body-dark);
|
|
70
76
|
padding: 0.5rem 1rem;
|
|
71
|
-
margin-bottom: 0.25rem;
|
|
72
77
|
}
|
|
73
78
|
.pkt-inputwrapper__helptext-expandable-closed {
|
|
74
79
|
display: none;
|
|
@@ -115,8 +120,21 @@ pkt-input-wrapper {
|
|
|
115
120
|
width: min(100%, 31rem);
|
|
116
121
|
margin: 0 0 0.5rem 0;
|
|
117
122
|
}
|
|
118
|
-
.pkt-
|
|
119
|
-
|
|
123
|
+
.pkt-inputwrapper__alert-wrapper {
|
|
124
|
+
align-self: stretch;
|
|
125
|
+
max-width: min(100%, 31rem);
|
|
126
|
+
}
|
|
127
|
+
.pkt-inputwrapper__alert-wrapper .pkt-alert {
|
|
128
|
+
width: 100%;
|
|
129
|
+
margin: 0;
|
|
130
|
+
}
|
|
131
|
+
.pkt-inputwrapper:has(.pkt-input--fullwidth) .pkt-inputwrapper__alert-wrapper {
|
|
132
|
+
max-width: none;
|
|
133
|
+
}
|
|
134
|
+
.pkt-inputwrapper__fieldset > .pkt-alert {
|
|
135
|
+
align-self: stretch;
|
|
136
|
+
width: auto;
|
|
137
|
+
max-width: min(100%, 31rem);
|
|
120
138
|
}
|
|
121
139
|
.pkt-inputwrapper .pkt-tag {
|
|
122
140
|
margin-left: 8px;
|
|
@@ -173,6 +191,42 @@ pkt-input-wrapper {
|
|
|
173
191
|
box-shadow: none;
|
|
174
192
|
outline: none;
|
|
175
193
|
}
|
|
194
|
+
.pkt-inputwrapper--small .pkt-inputwrapper__helptext-container, .pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext-container {
|
|
195
|
+
gap: 0.25rem;
|
|
196
|
+
}
|
|
197
|
+
.pkt-inputwrapper--small .pkt-inputwrapper__helptext,
|
|
198
|
+
.pkt-inputwrapper--small .pkt-inputwrapper__helptext > .pkt-btn,
|
|
199
|
+
.pkt-inputwrapper--small .pkt-inputwrapper__helptext-expandable .pkt-btn, .pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext,
|
|
200
|
+
.pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext > .pkt-btn,
|
|
201
|
+
.pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext-expandable .pkt-btn {
|
|
202
|
+
letter-spacing: -0.2px;
|
|
203
|
+
font-weight: 300;
|
|
204
|
+
font-size: 0.75rem;
|
|
205
|
+
line-height: 1.25rem;
|
|
206
|
+
}
|
|
207
|
+
.pkt-inputwrapper--small .pkt-inputwrapper__helptext-expandable-heading, .pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext-expandable-heading {
|
|
208
|
+
letter-spacing: -0.2px;
|
|
209
|
+
font-weight: 500;
|
|
210
|
+
font-size: 1rem;
|
|
211
|
+
line-height: 1.5rem;
|
|
212
|
+
}
|
|
213
|
+
.pkt-inputwrapper--small .pkt-inputwrapper__fieldset, .pkt-inputwrapper--xsmall .pkt-inputwrapper__fieldset {
|
|
214
|
+
gap: 0.25rem;
|
|
215
|
+
}
|
|
216
|
+
.pkt-inputwrapper--small .pkt-inputwrapper__label,
|
|
217
|
+
.pkt-inputwrapper--small .pkt-inputwrapper__legend {
|
|
218
|
+
letter-spacing: -0.2px;
|
|
219
|
+
font-weight: 500;
|
|
220
|
+
font-size: 1rem;
|
|
221
|
+
line-height: 1.5rem;
|
|
222
|
+
}
|
|
223
|
+
.pkt-inputwrapper--xsmall .pkt-inputwrapper__label,
|
|
224
|
+
.pkt-inputwrapper--xsmall .pkt-inputwrapper__legend {
|
|
225
|
+
letter-spacing: -0.2px;
|
|
226
|
+
font-weight: 500;
|
|
227
|
+
font-size: 0.875rem;
|
|
228
|
+
line-height: 1.375rem;
|
|
229
|
+
}
|
|
176
230
|
|
|
177
231
|
[data-mode=dark] .pkt-inputwrapper {
|
|
178
232
|
color: white;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
pkt-input-wrapper{display:block}@supports selector(:not(:has(*))){pkt-helptext:not(:has(.pkt-inputwrapper__has-helptext)):not(:has([slot=helptext]:not(:empty)),:has(.pkt-inputwrapper__helptext-expandable .pkt-inputwrapper__helptext:not(:empty))),.pkt-inputwrapper__helptext-container:not(.pkt-inputwrapper__has-helptext):not(:has([slot=helptext]:not(:empty)),:has(.pkt-inputwrapper__helptext-expandable .pkt-inputwrapper__helptext:not(:empty))){display:none}}.pkt-inputwrapper__label{display:flex;flex-direction:row;align-items:center;gap:.5rem;color:var(--pkt-color-text-body-default)}.pkt-inputwrapper__label:empty{display:none}.pkt-inputwrapper__label,.pkt-inputwrapper__legend{letter-spacing:-0.2px;font-weight:500;font-size:1.125rem;line-height:1.75rem}.pkt-inputwrapper__helptext-container{display:flex;flex-direction:column;gap:.
|
|
1
|
+
pkt-input-wrapper{display:block}@supports selector(:not(:has(*))){pkt-helptext:not(:has(.pkt-inputwrapper__has-helptext)):not(:has([slot=helptext]:not(:empty)),:has(.pkt-inputwrapper__helptext-expandable .pkt-inputwrapper__helptext:not(:empty))),.pkt-inputwrapper__helptext-container:not(.pkt-inputwrapper__has-helptext):not(:has([slot=helptext]:not(:empty)),:has(.pkt-inputwrapper__helptext-expandable .pkt-inputwrapper__helptext:not(:empty))){display:none}}.pkt-inputwrapper__label{display:flex;flex-direction:row;align-items:center;gap:.5rem;color:var(--pkt-color-text-body-default)}.pkt-inputwrapper__label:empty{display:none}.pkt-inputwrapper__label,.pkt-inputwrapper__legend{letter-spacing:-0.2px;font-weight:500;font-size:1.125rem;line-height:1.75rem}.pkt-inputwrapper__helptext-container{display:flex;flex-direction:column;gap:.5rem}.pkt-inputwrapper__helptext{width:min(100%,31rem);color:var(--pkt-color-text-body-default);letter-spacing:-0.2px;font-weight:300;font-size:.875rem;line-height:1.375rem}.pkt-inputwrapper__helptext>.pkt-btn,.pkt-inputwrapper__helptext-expandable .pkt-btn{padding:0;height:auto;display:inline-flex;text-align:left;align-items:center;letter-spacing:-0.2px;font-weight:300;font-size:.875rem;line-height:1.375rem}.pkt-inputwrapper__helptext>*:first-child{margin-top:0}.pkt-inputwrapper__helptext>*:last-child{margin-bottom:0}.pkt-inputwrapper__helptext-expandable{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem}.pkt-inputwrapper__helptext-expandable-heading{margin:0;letter-spacing:-0.2px;font-weight:500;font-size:1.125rem;line-height:1.75rem}.pkt-inputwrapper__helptext-expandable-open{display:block;border-left:2px solid var(--pkt-color-text-body-dark);padding:.5rem 1rem}.pkt-inputwrapper__helptext-expandable-closed{display:none}.pkt-inputwrapper__fieldset{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;border:none;padding:0;margin:0}.pkt-inputwrapper__legend{margin-bottom:.5rem}.pkt-inputwrapper--disabled{color:var(--pkt-color-text-action-disabled);cursor:inherit}.pkt-inputwrapper--disabled .pkt-tag{background-color:var(--pkt-color-surface-default-gray)}.pkt-inputwrapper--disabled .pkt-alert{background-color:var(--pkt-color-surface-default-gray);border-color:var(--pkt-color-text-action-disabled);color:var(--pkt-color-text-action-disabled)}.pkt-inputwrapper--disabled .pkt-alert .pkt-alert__icon{--fg-color: var(--pkt-color-text-action-disabled)}.pkt-inputwrapper--disabled .pkt-alert,.pkt-inputwrapper--disabled .pkt-inputwrapper__label,.pkt-inputwrapper--disabled .pkt-inputwrapper__helptext,.pkt-inputwrapper--disabled .pkt-inputwrapper__helptext-expandable .pkt-link{color:var(--pkt-color-text-action-disabled)}.pkt-inputwrapper--inline{display:inline-block;vertical-align:middle;margin-right:8px}.pkt-inputwrapper .pkt-alert{width:min(100%,31rem);margin:0 0 .5rem 0}.pkt-inputwrapper__alert-wrapper{align-self:stretch;max-width:min(100%,31rem)}.pkt-inputwrapper__alert-wrapper .pkt-alert{width:100%;margin:0}.pkt-inputwrapper:has(.pkt-input--fullwidth) .pkt-inputwrapper__alert-wrapper{max-width:none}.pkt-inputwrapper__fieldset>.pkt-alert{align-self:stretch;width:auto;max-width:min(100%,31rem)}.pkt-inputwrapper .pkt-tag{margin-left:8px}.pkt-inputwrapper--error .pkt-input,.pkt-inputwrapper--error .pkt-input-prefix,.pkt-inputwrapper--error .pkt-input-suffix,.pkt-inputwrapper--error .pkt-input-icon{border-color:var(--pkt-color-brand-red-1000)}.pkt-inputwrapper--error .pkt-input:hover,.pkt-inputwrapper--error .pkt-input__container:hover,.pkt-inputwrapper--error .pkt-input__container:hover .pkt-input,.pkt-inputwrapper--error .pkt-input__container:hover .pkt-input-prefix,.pkt-inputwrapper--error .pkt-input__container:hover .pkt-input-suffix,.pkt-inputwrapper--error .pkt-input__container:hover .pkt-input-icon{border-color:var(--pkt-color-brand-red-1000)}.pkt-inputwrapper--error .pkt-input:focus-within,.pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input,.pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input-prefix,.pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input-suffix,.pkt-inputwrapper--error .pkt-input__container:focus-within .pkt-input-icon{border-color:var(--pkt-color-brand-red-1000)}.pkt-inputwrapper--disabled{color:var(--pkt-color-text-action-disabled);cursor:inherit}.pkt-inputwrapper--disabled .pkt-input,.pkt-inputwrapper--disabled .pkt-input-prefix,.pkt-inputwrapper--disabled .pkt-input-suffix,.pkt-inputwrapper--disabled .pkt-input-icon{border-color:var(--pkt-color-border-states-disabled);background-color:var(--pkt-color-surface-default-gray)}.pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input,.pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input-prefix,.pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input-suffix,.pkt-inputwrapper--disabled .pkt-input__container:hover .pkt-input-icon{border-color:var(--pkt-color-border-states-disabled)}.pkt-inputwrapper--disabled .pkt-input:hover{border-color:var(--pkt-color-border-states-disabled);box-shadow:none}.pkt-inputwrapper--disabled .pkt-input:focus{border-color:var(--pkt-color-border-states-disabled);box-shadow:none;outline:none}.pkt-inputwrapper--disabled .pkt-input__container:active .pkt-input{border-right:none;box-shadow:none;outline:none}.pkt-inputwrapper--small .pkt-inputwrapper__helptext-container,.pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext-container{gap:.25rem}.pkt-inputwrapper--small .pkt-inputwrapper__helptext,.pkt-inputwrapper--small .pkt-inputwrapper__helptext>.pkt-btn,.pkt-inputwrapper--small .pkt-inputwrapper__helptext-expandable .pkt-btn,.pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext,.pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext>.pkt-btn,.pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext-expandable .pkt-btn{letter-spacing:-0.2px;font-weight:300;font-size:.75rem;line-height:1.25rem}.pkt-inputwrapper--small .pkt-inputwrapper__helptext-expandable-heading,.pkt-inputwrapper--xsmall .pkt-inputwrapper__helptext-expandable-heading{letter-spacing:-0.2px;font-weight:500;font-size:1rem;line-height:1.5rem}.pkt-inputwrapper--small .pkt-inputwrapper__fieldset,.pkt-inputwrapper--xsmall .pkt-inputwrapper__fieldset{gap:.25rem}.pkt-inputwrapper--small .pkt-inputwrapper__label,.pkt-inputwrapper--small .pkt-inputwrapper__legend{letter-spacing:-0.2px;font-weight:500;font-size:1rem;line-height:1.5rem}.pkt-inputwrapper--xsmall .pkt-inputwrapper__label,.pkt-inputwrapper--xsmall .pkt-inputwrapper__legend{letter-spacing:-0.2px;font-weight:500;font-size:.875rem;line-height:1.375rem}[data-mode=dark] .pkt-inputwrapper{color:#fff}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkt-modal{border:none;padding:0;background-color:var(--pkt-color-background-default);opacity:0;display:none;transition:translate .2s ease-in-out,opacity .2s ease-in-out,overlay .2s ease-in-out allow-discrete,display .2s ease-in-out allow-discrete;box-shadow:0 4px 8px rgba(0,0,0,.2);position:fixed}.pkt-modal:focus{outline:none}.pkt-modal[open]{display:block;opacity:1}@starting-style{.pkt-modal[open]{opacity:0}}.pkt-modal__wrapper{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr}.pkt-modal__dialog{box-shadow:0 4px 8px rgba(0,0,0,.2);translate:0 10%}.pkt-modal__dialog[open]{translate:0 0}@starting-style{.pkt-modal__dialog[open]{translate:0 -10%}}.pkt-modal__dialog .pkt-modal__wrapper{max-height:90vh;max-height:90svh}@supports not (selector(::backdrop)){.pkt-modal__dialog{top:50%;left:50%;transform:translate(-50%, -50%)}}.pkt-modal__drawer{top:0;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0}.pkt-modal__drawer .pkt-modal__wrapper{height:100vh;height:100dvh}.pkt-modal__drawer[open]{translate:0 0}.pkt-modal__drawer--right{left:auto;right:0;margin-right:0;translate:100% 0}@starting-style{.pkt-modal__drawer--right[open]{translate:100% 0}}.pkt-modal__drawer--left{left:0;right:auto;margin-left:0;translate:-100% 0}@starting-style{.pkt-modal__drawer--left[open]{translate:-100% 0}}.pkt-modal::backdrop{opacity:0;background-color:rgba(0,0,0,.55);transition:opacity .2s ease-out,overlay .2s ease-out allow-discrete,display .2s allow-discrete}.pkt-modal[open]::backdrop{opacity:1}@starting-style{.pkt-modal[open]::backdrop{opacity:0}}@supports not (selector(::backdrop)){.pkt-modal{position:fixed}.pkt-modal+.backdrop{background-color:rgba(0,0,0,.55);position:fixed;top:0;left:0;width:100vw;height:100vh}}.pkt-modal .pkt-modal__container{padding-top:2rem;margin-top:-1px;background:var(--pkt-color-background-default);display:flex;flex-direction:column;min-height:0;overflow:hidden}.pkt-modal .pkt-modal__header{display:grid;grid-template-columns:1fr 4rem;grid-template-rows:calc(4rem + 1px) 1fr;grid-template-areas:"header close" "header empty";justify-content:flex-start;width:100%}.pkt-modal .pkt-modal__header-background{background:var(--pkt-color-background-default);grid-area:empty}.pkt-modal .pkt-modal__headingText{background:var(--pkt-color-background-default);grid-area:header;padding:2rem 0 0 2.5rem;margin:0;color:var(--pkt-color-text-body-default)}.pkt-modal .pkt-modal__closeButton{grid-area:close;display:flex;flex-direction:row-reverse;align-self:flex-start}.pkt-modal .pkt-modal__noCloseButton{background:var(--pkt-color-background-default);grid-area:close}.pkt-modal .pkt-modal__closeButton--blue{height:100%;background:var(--pkt-color-background-default)}.pkt-modal .pkt-modal__closeButton--blue .pkt-btn{margin:.25rem}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn{height:4rem;width:4rem;justify-content:center;align-items:center;border:none;border-radius:50%;color:var(--pkt-color-surface-strong-dark-blue);background-color:var(--pkt-color-brand-yellow-1000);border:4px solid var(--pkt-color-brand-yellow-1000);outline:0}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:hover,.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:focus{background-color:var(--pkt-color-brand-warm-blue-1000);border-color:var(--pkt-color-brand-warm-blue-1000);color:var(--pkt-color-background-default)}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:hover .pkt-icon,.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:focus .pkt-icon{color:var(--pkt-color-background-default)}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:focus-visible{outline:0;border-color:var(--pkt-color-border-states-focus)}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn .pkt-btn__icon{width:2rem;height:2rem}.pkt-modal .pkt-modal__content{display:flex;flex-direction:column;flex-grow:1;gap:1rem;overflow-y:auto;overscroll-behavior:contain;padding:2rem 2.5rem;padding-top:0;position:relative;color:var(--pkt-color-text-body-default);background:linear-gradient(var(--pkt-color-white) 30%, transparent) top,linear-gradient(transparent, var(--pkt-color-border-subtle) 60%) bottom,radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.3), transparent) top,radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.3), transparent) bottom;background-attachment:local,local,scroll,scroll;background-repeat:no-repeat;background-size:100% 40px,100% 50px,100% 16px,100% 16px}
|
|
1
|
+
.pkt-modal{border:none;padding:0;background-color:var(--pkt-color-background-default);opacity:0;display:none;transition:translate .2s ease-in-out,opacity .2s ease-in-out,overlay .2s ease-in-out allow-discrete,display .2s ease-in-out allow-discrete;box-shadow:0 4px 8px rgba(0,0,0,.2);position:fixed}.pkt-modal:focus{outline:none}.pkt-modal[open]{display:block;opacity:1}@starting-style{.pkt-modal[open]{opacity:0}}.pkt-modal__wrapper{display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr}.pkt-modal__dialog{box-shadow:0 4px 8px rgba(0,0,0,.2);translate:0 10%}.pkt-modal__dialog[open]{translate:0 0}@starting-style{.pkt-modal__dialog[open]{translate:0 -10%}}.pkt-modal__dialog .pkt-modal__wrapper{max-height:90vh;max-height:90svh}@supports not (selector(::backdrop)){.pkt-modal__dialog{top:50%;left:50%;transform:translate(-50%, -50%)}}.pkt-modal__drawer{top:0;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0}.pkt-modal__drawer .pkt-modal__wrapper{height:100vh;height:100dvh}.pkt-modal__drawer[open]{translate:0 0}.pkt-modal__drawer--right{left:auto;right:0;margin-right:0;translate:100% 0}@starting-style{.pkt-modal__drawer--right[open]{translate:100% 0}}.pkt-modal__drawer--left{left:0;right:auto;margin-left:0;translate:-100% 0}@starting-style{.pkt-modal__drawer--left[open]{translate:-100% 0}}.pkt-modal::backdrop{opacity:0;background-color:rgba(0,0,0,.55);transition:opacity .2s ease-out,overlay .2s ease-out allow-discrete,display .2s allow-discrete}.pkt-modal[open]::backdrop{opacity:1}@starting-style{.pkt-modal[open]::backdrop{opacity:0}}@supports not (selector(::backdrop)){.pkt-modal{position:fixed}.pkt-modal+.backdrop{background-color:rgba(0,0,0,.55);position:fixed;top:0;left:0;width:100vw;height:100vh}}.pkt-modal .pkt-modal__container{padding-top:2rem;margin-top:-1px;background:var(--pkt-color-background-default);display:flex;flex-direction:column;min-height:0;overflow:hidden}.pkt-modal .pkt-modal__header{display:grid;grid-template-columns:1fr 4rem;grid-template-rows:calc(4rem + 1px) 1fr;grid-template-areas:"header close" "header empty";justify-content:flex-start;width:100%}.pkt-modal .pkt-modal__header-background{background:var(--pkt-color-background-default);grid-area:empty}.pkt-modal .pkt-modal__headingText{background:var(--pkt-color-background-default);grid-area:header;padding:2rem 0 0 2.5rem;margin:0;color:var(--pkt-color-text-body-default)}.pkt-modal .pkt-modal__closeButton{grid-area:close;display:flex;flex-direction:row-reverse;align-self:flex-start}.pkt-modal .pkt-modal__noCloseButton{background:var(--pkt-color-background-default);grid-area:close}.pkt-modal .pkt-modal__closeButton--blue{height:100%;background:var(--pkt-color-background-default)}.pkt-modal .pkt-modal__closeButton--blue .pkt-btn{margin:.25rem}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn{height:4rem;width:4rem;justify-content:center;align-items:center;border:none;border-radius:50%;color:var(--pkt-color-surface-strong-dark-blue);background-color:var(--pkt-color-brand-yellow-1000);border:4px solid var(--pkt-color-brand-yellow-1000);outline:0}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:hover,.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:focus{background-color:var(--pkt-color-brand-warm-blue-1000);border-color:var(--pkt-color-brand-warm-blue-1000);color:var(--pkt-color-background-default)}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:hover .pkt-icon,.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:focus .pkt-icon{color:var(--pkt-color-background-default)}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn:focus-visible{outline:0;border-color:var(--pkt-color-border-states-focus)}.pkt-modal .pkt-modal__closeButton--yellow-filled .pkt-btn .pkt-btn__icon{width:2rem;height:2rem}.pkt-modal .pkt-modal__content{display:flex;flex-direction:column;flex-grow:1;gap:1rem;overflow-y:auto;overscroll-behavior:contain;padding:2rem 2.5rem;padding-top:0;position:relative;color:var(--pkt-color-text-body-default);background:linear-gradient(var(--pkt-color-white) 30%, transparent) top,linear-gradient(transparent, var(--pkt-color-border-subtle) 60%) bottom,radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.3), transparent) top,radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.3), transparent) bottom;background-attachment:local,local,scroll,scroll;background-repeat:no-repeat;background-size:100% 40px,100% 50px,100% 16px,100% 16px}.pkt-modal--small{width:480px}.pkt-modal--medium{width:36rem}.pkt-modal--large{width:640px}.pkt-modal--fit-content{width:fit-content}.pkt-modal__btn-wrapper{padding-top:1.5rem;display:flex;justify-content:flex-start;gap:1rem;flex-wrap:wrap;width:100%}@media screen and (max-width: 640px){.pkt-modal[open]{line-height:1.5rem}.pkt-modal[open] .pkt-modal__headingText{font-size:1.375rem}.pkt-modal[open] .pkt-modal__content{letter-spacing:-0.2px;font-size:1rem}.pkt-modal--large{width:100vw}}@media screen and (max-width: 480px){.pkt-modal--small{width:100vw}}@media screen and (max-width: 36rem){.pkt-modal--medium{width:100vw}}@media screen and (max-width: 480px){.pkt-modal__btn-wrapper{display:grid;grid-template-columns:1fr;justify-items:center;align-items:center;gap:.5rem}.pkt-modal__btn-wrapper--buttonsFullWidthOnMobile .pkt-btn{width:100%}}.pkt-modal--noShadow{box-shadow:none;background-color:rgba(0,0,0,0)}.pkt-modal--transparentBackdrop::backdrop,.pkt-modal--transparentBackdrop[open]::backdrop{background-color:rgba(0,0,0,0)}@supports not (selector(::backdrop)){.pkt-modal--transparentBackdrop+.backdrop{background-color:rgba(0,0,0,0)}}.pkt-modal.pkt-modal--removePadding .pkt-modal__headingText,.pkt-modal.pkt-modal--removePadding .pkt-modal__content,.pkt-modal.pkt-modal--removePadding .pkt-modal__container{padding:0}.pkt-modal.pkt-modal--noHeadingText .pkt-modal__container{padding-top:1rem}.pkt-modal .pkt-modal__container .pkt-modal__btn-wrapper button.pkt-btn:not(.pkt-inputwrapper__helptext-expandable>.pkt-btn):not(.pkt-header__user-btn):not(.pkt-searchinput__button){margin:0}._dialog_overlay{position:fixed;top:0;right:0;bottom:0;left:0}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* Common styles for all inputs */
|
|
2
1
|
.pkt-searchinput {
|
|
3
2
|
position: relative;
|
|
4
3
|
letter-spacing: -0.2px;
|
|
@@ -6,9 +5,64 @@
|
|
|
6
5
|
font-size: 1.125rem;
|
|
7
6
|
line-height: 1.75rem;
|
|
8
7
|
}
|
|
8
|
+
.pkt-searchinput--small {
|
|
9
|
+
letter-spacing: -0.2px;
|
|
10
|
+
font-weight: 300;
|
|
11
|
+
font-size: 1rem;
|
|
12
|
+
line-height: 1.5rem;
|
|
13
|
+
}
|
|
14
|
+
.pkt-searchinput--small .pkt-inputwrapper__label {
|
|
15
|
+
letter-spacing: -0.2px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
font-size: 1rem;
|
|
18
|
+
line-height: 1.5rem;
|
|
19
|
+
}
|
|
20
|
+
.pkt-searchinput--small .pkt-searchinput__suggestion {
|
|
21
|
+
padding: 0.75rem;
|
|
22
|
+
letter-spacing: -0.2px;
|
|
23
|
+
font-weight: 300;
|
|
24
|
+
font-size: 1rem;
|
|
25
|
+
line-height: 1.5rem;
|
|
26
|
+
}
|
|
27
|
+
.pkt-searchinput--small .pkt-searchinput__suggestion-title {
|
|
28
|
+
letter-spacing: -0.2px;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
font-size: 1rem;
|
|
31
|
+
line-height: 1.5rem;
|
|
32
|
+
}
|
|
33
|
+
.pkt-searchinput--xsmall {
|
|
34
|
+
letter-spacing: -0.2px;
|
|
35
|
+
font-weight: 300;
|
|
36
|
+
font-size: 0.875rem;
|
|
37
|
+
line-height: 1.375rem;
|
|
38
|
+
}
|
|
39
|
+
.pkt-searchinput--xsmall .pkt-inputwrapper__label {
|
|
40
|
+
letter-spacing: -0.2px;
|
|
41
|
+
font-weight: 500;
|
|
42
|
+
font-size: 0.875rem;
|
|
43
|
+
line-height: 1.375rem;
|
|
44
|
+
}
|
|
45
|
+
.pkt-searchinput--xsmall .pkt-searchinput__suggestion {
|
|
46
|
+
padding: 0.5rem;
|
|
47
|
+
letter-spacing: -0.2px;
|
|
48
|
+
font-weight: 300;
|
|
49
|
+
font-size: 0.875rem;
|
|
50
|
+
line-height: 1.375rem;
|
|
51
|
+
}
|
|
52
|
+
.pkt-searchinput--xsmall .pkt-searchinput__suggestion-title {
|
|
53
|
+
letter-spacing: -0.2px;
|
|
54
|
+
font-weight: 500;
|
|
55
|
+
font-size: 0.875rem;
|
|
56
|
+
line-height: 1.375rem;
|
|
57
|
+
}
|
|
9
58
|
.pkt-searchinput__field {
|
|
10
59
|
width: min(100%, 31rem);
|
|
11
60
|
display: flex;
|
|
61
|
+
align-items: stretch;
|
|
62
|
+
}
|
|
63
|
+
.pkt-searchinput__field .pkt-input {
|
|
64
|
+
flex: 1;
|
|
65
|
+
min-width: 0;
|
|
12
66
|
}
|
|
13
67
|
.pkt-searchinput--fullwidth .pkt-searchinput__field {
|
|
14
68
|
width: 100%;
|
|
@@ -25,9 +79,12 @@
|
|
|
25
79
|
.pkt-searchinput--local-with-button .pkt-searchinput__field {
|
|
26
80
|
gap: 0.5rem;
|
|
27
81
|
}
|
|
28
|
-
.pkt-searchinput--local .pkt-input {
|
|
82
|
+
.pkt-searchinput--local .pkt-input__container--medium .pkt-input {
|
|
29
83
|
padding: 0.5rem 0 0.5rem 1rem;
|
|
30
84
|
}
|
|
85
|
+
.pkt-searchinput--local .pkt-input__container--small .pkt-input, .pkt-searchinput--local .pkt-input__container--xsmall .pkt-input {
|
|
86
|
+
padding-right: 0;
|
|
87
|
+
}
|
|
31
88
|
.pkt-searchinput--local .pkt-searchinput__button:disabled {
|
|
32
89
|
border-color: var(--pkt-color-input-border-disabled);
|
|
33
90
|
}
|
|
@@ -50,9 +107,21 @@
|
|
|
50
107
|
.pkt-searchinput--global .pkt-searchinput__suggestions {
|
|
51
108
|
width: min(100% - 3rem, 28rem);
|
|
52
109
|
}
|
|
110
|
+
.pkt-searchinput--global.pkt-searchinput--small .pkt-searchinput__suggestions {
|
|
111
|
+
width: min(100% - 2.625rem, 28rem);
|
|
112
|
+
}
|
|
113
|
+
.pkt-searchinput--global.pkt-searchinput--xsmall .pkt-searchinput__suggestions {
|
|
114
|
+
width: min(100% - 2.25rem, 28rem);
|
|
115
|
+
}
|
|
53
116
|
.pkt-searchinput--local-with-button .pkt-searchinput__suggestions {
|
|
54
117
|
width: min(100% - 3.5rem, 27.5rem);
|
|
55
118
|
}
|
|
119
|
+
.pkt-searchinput--local-with-button.pkt-searchinput--small .pkt-searchinput__suggestions {
|
|
120
|
+
width: min(100% - 3.125rem, 27.5rem);
|
|
121
|
+
}
|
|
122
|
+
.pkt-searchinput--local-with-button.pkt-searchinput--xsmall .pkt-searchinput__suggestions {
|
|
123
|
+
width: min(100% - 2.75rem, 27.5rem);
|
|
124
|
+
}
|
|
56
125
|
.pkt-searchinput--fullwidth .pkt-searchinput__suggestions {
|
|
57
126
|
width: 100%;
|
|
58
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkt-searchinput{position:relative;letter-spacing:-0.2px;font-weight:300;font-size:1.125rem;line-height:1.75rem}.pkt-searchinput__field{width:min(100%,31rem);display:flex}.pkt-searchinput--fullwidth .pkt-searchinput__field{width:100%}.pkt-searchinput--global .pkt-input:not(:disabled){border-color:var(--pkt-color-border-yellow)}.pkt-searchinput--global .pkt-input:not(:disabled):hover,.pkt-searchinput--global .pkt-input:not(:disabled):active,.pkt-searchinput--global .pkt-input:not(:disabled):focus{border-color:var(--pkt-color-input-border-active)}.pkt-searchinput--global .pkt-searchinput__button{border-radius:50%}.pkt-searchinput--local-with-button .pkt-searchinput__field{gap:.5rem}.pkt-searchinput--local .pkt-input{padding:.5rem 0 .5rem 1rem}.pkt-searchinput--local .pkt-searchinput__button:disabled{border-color:var(--pkt-color-input-border-disabled)}.pkt-searchinput--local .pkt-searchinput__button svg{margin-left:0}.pkt-searchinput--local .pkt-searchinput__button{--pkt-color-button-border-hover: var(--pkt-color-input-border-active)}.pkt-searchinput__suggestions{position:absolute;z-index:2;padding:0;margin:2px 0 0;width:min(100%,31rem);list-style:none;background-color:var(--pkt-color-background-card);box-shadow:0px 4px 6px -1px rgba(0,0,0,.1),0px 2px 4px -2px rgba(0,0,0,.1)}.pkt-searchinput--global .pkt-searchinput__suggestions{width:min(100% - 3rem,28rem)}.pkt-searchinput--local-with-button .pkt-searchinput__suggestions{width:min(100% - 3.5rem,27.5rem)}.pkt-searchinput--fullwidth .pkt-searchinput__suggestions{width:100%}.pkt-searchinput__suggestion{display:block;padding:1rem;background-color:rgba(0,0,0,0);color:var(--pkt-color-text-action-normal);border:none;font:inherit;outline:inherit;text-align:inherit;width:100%}.pkt-searchinput__suggestion:is(a,button){cursor:pointer;text-decoration:none}.pkt-searchinput__suggestion:is(a,button):hover,.pkt-searchinput__suggestion:is(a,button):focus,.pkt-searchinput__suggestion:is(a,button):active{text-decoration:none;background-color:var(--pkt-color-background-subtle);color:var(--pkt-color-text-action-active)}.pkt-searchinput__suggestion:is(a,button):hover .pkt-searchinput__suggestion-title,.pkt-searchinput__suggestion:is(a,button):focus .pkt-searchinput__suggestion-title,.pkt-searchinput__suggestion:is(a,button):active .pkt-searchinput__suggestion-title{text-decoration:underline}.pkt-searchinput__suggestion:is(a,button):hover>*,.pkt-searchinput__suggestion:is(a,button):focus>*,.pkt-searchinput__suggestion:is(a,button):active>*{color:inherit}.pkt-searchinput__suggestion-title{letter-spacing:-0.2px;font-weight:500;font-size:1.125rem;line-height:1.75rem}.pkt-searchinput__suggestion-text{margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;hyphens:auto}
|
|
1
|
+
.pkt-searchinput{position:relative;letter-spacing:-0.2px;font-weight:300;font-size:1.125rem;line-height:1.75rem}.pkt-searchinput--small{letter-spacing:-0.2px;font-weight:300;font-size:1rem;line-height:1.5rem}.pkt-searchinput--small .pkt-inputwrapper__label{letter-spacing:-0.2px;font-weight:500;font-size:1rem;line-height:1.5rem}.pkt-searchinput--small .pkt-searchinput__suggestion{padding:.75rem;letter-spacing:-0.2px;font-weight:300;font-size:1rem;line-height:1.5rem}.pkt-searchinput--small .pkt-searchinput__suggestion-title{letter-spacing:-0.2px;font-weight:500;font-size:1rem;line-height:1.5rem}.pkt-searchinput--xsmall{letter-spacing:-0.2px;font-weight:300;font-size:.875rem;line-height:1.375rem}.pkt-searchinput--xsmall .pkt-inputwrapper__label{letter-spacing:-0.2px;font-weight:500;font-size:.875rem;line-height:1.375rem}.pkt-searchinput--xsmall .pkt-searchinput__suggestion{padding:.5rem;letter-spacing:-0.2px;font-weight:300;font-size:.875rem;line-height:1.375rem}.pkt-searchinput--xsmall .pkt-searchinput__suggestion-title{letter-spacing:-0.2px;font-weight:500;font-size:.875rem;line-height:1.375rem}.pkt-searchinput__field{width:min(100%,31rem);display:flex;align-items:stretch}.pkt-searchinput__field .pkt-input{flex:1;min-width:0}.pkt-searchinput--fullwidth .pkt-searchinput__field{width:100%}.pkt-searchinput--global .pkt-input:not(:disabled){border-color:var(--pkt-color-border-yellow)}.pkt-searchinput--global .pkt-input:not(:disabled):hover,.pkt-searchinput--global .pkt-input:not(:disabled):active,.pkt-searchinput--global .pkt-input:not(:disabled):focus{border-color:var(--pkt-color-input-border-active)}.pkt-searchinput--global .pkt-searchinput__button{border-radius:50%}.pkt-searchinput--local-with-button .pkt-searchinput__field{gap:.5rem}.pkt-searchinput--local .pkt-input__container--medium .pkt-input{padding:.5rem 0 .5rem 1rem}.pkt-searchinput--local .pkt-input__container--small .pkt-input,.pkt-searchinput--local .pkt-input__container--xsmall .pkt-input{padding-right:0}.pkt-searchinput--local .pkt-searchinput__button:disabled{border-color:var(--pkt-color-input-border-disabled)}.pkt-searchinput--local .pkt-searchinput__button svg{margin-left:0}.pkt-searchinput--local .pkt-searchinput__button{--pkt-color-button-border-hover: var(--pkt-color-input-border-active)}.pkt-searchinput__suggestions{position:absolute;z-index:2;padding:0;margin:2px 0 0;width:min(100%,31rem);list-style:none;background-color:var(--pkt-color-background-card);box-shadow:0px 4px 6px -1px rgba(0,0,0,.1),0px 2px 4px -2px rgba(0,0,0,.1)}.pkt-searchinput--global .pkt-searchinput__suggestions{width:min(100% - 3rem,28rem)}.pkt-searchinput--global.pkt-searchinput--small .pkt-searchinput__suggestions{width:min(100% - 2.625rem,28rem)}.pkt-searchinput--global.pkt-searchinput--xsmall .pkt-searchinput__suggestions{width:min(100% - 2.25rem,28rem)}.pkt-searchinput--local-with-button .pkt-searchinput__suggestions{width:min(100% - 3.5rem,27.5rem)}.pkt-searchinput--local-with-button.pkt-searchinput--small .pkt-searchinput__suggestions{width:min(100% - 3.125rem,27.5rem)}.pkt-searchinput--local-with-button.pkt-searchinput--xsmall .pkt-searchinput__suggestions{width:min(100% - 2.75rem,27.5rem)}.pkt-searchinput--fullwidth .pkt-searchinput__suggestions{width:100%}.pkt-searchinput__suggestion{display:block;padding:1rem;background-color:rgba(0,0,0,0);color:var(--pkt-color-text-action-normal);border:none;font:inherit;outline:inherit;text-align:inherit;width:100%}.pkt-searchinput__suggestion:is(a,button){cursor:pointer;text-decoration:none}.pkt-searchinput__suggestion:is(a,button):hover,.pkt-searchinput__suggestion:is(a,button):focus,.pkt-searchinput__suggestion:is(a,button):active{text-decoration:none;background-color:var(--pkt-color-background-subtle);color:var(--pkt-color-text-action-active)}.pkt-searchinput__suggestion:is(a,button):hover .pkt-searchinput__suggestion-title,.pkt-searchinput__suggestion:is(a,button):focus .pkt-searchinput__suggestion-title,.pkt-searchinput__suggestion:is(a,button):active .pkt-searchinput__suggestion-title{text-decoration:underline}.pkt-searchinput__suggestion:is(a,button):hover>*,.pkt-searchinput__suggestion:is(a,button):focus>*,.pkt-searchinput__suggestion:is(a,button):active>*{color:inherit}.pkt-searchinput__suggestion-title{letter-spacing:-0.2px;font-weight:500;font-size:1.125rem;line-height:1.75rem}.pkt-searchinput__suggestion-text{margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;hyphens:auto}
|