@oslokommune/punkt-css 12.38.0 → 12.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/dist/css/components/modal.css +134 -44
- package/dist/css/components/modal.min.css +1 -1
- package/dist/css/components/textinput.css +1 -1
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/elements/button.css +1 -1
- package/dist/css/elements/button.min.css +1 -1
- package/dist/css/elements/checkbox-radio.css +2 -2
- 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 +1 -1
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +135 -45
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +139 -49
- 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 +139 -49
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/components/_modal.scss +203 -109
- package/dist/scss/elements/_button.scss +2 -2
- package/package.json +2 -2
|
@@ -10,136 +10,220 @@ $pkt-modal-gap: map.get(variables.$spacing, 'size-32');
|
|
|
10
10
|
$pkt-modal-padding-sides: map.get(variables.$spacing, 'size-40');
|
|
11
11
|
|
|
12
12
|
.pkt-modal {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
border: none;
|
|
14
|
+
padding: 0;
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
opacity: 0;
|
|
17
|
+
transition:
|
|
18
|
+
translate 0.2s ease-in-out,
|
|
19
|
+
opacity 0.2s ease-in-out,
|
|
20
|
+
overlay 0.2s ease-in-out allow-discrete,
|
|
21
|
+
display 0.2s ease-in-out allow-discrete;
|
|
22
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
23
|
+
position: fixed;
|
|
24
|
+
|
|
25
|
+
&:focus {
|
|
26
|
+
outline: none;
|
|
15
27
|
}
|
|
28
|
+
|
|
16
29
|
&[open] {
|
|
17
|
-
|
|
18
|
-
|
|
30
|
+
opacity: 1;
|
|
31
|
+
@starting-style {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
&__wrapper {
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-columns: 1fr;
|
|
38
|
+
grid-template-rows: auto 1fr;
|
|
39
|
+
}
|
|
40
|
+
&__dialog {
|
|
19
41
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
42
|
+
translate: 0 10%;
|
|
43
|
+
&[open] {
|
|
44
|
+
translate: 0 0;
|
|
45
|
+
@starting-style {
|
|
46
|
+
translate: 0 -10%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
.pkt-modal__wrapper {
|
|
50
|
+
max-height: 90vh;
|
|
51
|
+
max-height: 90svh;
|
|
52
|
+
}
|
|
25
53
|
@supports not (selector(::backdrop)) {
|
|
26
|
-
position: fixed;
|
|
27
54
|
top: 50%;
|
|
28
55
|
left: 50%;
|
|
29
56
|
transform: translate(-50%, -50%);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
&__drawer {
|
|
60
|
+
top: 0;
|
|
61
|
+
height: 100vh;
|
|
62
|
+
height: 100dvh;
|
|
63
|
+
max-height: 100vh;
|
|
64
|
+
max-height: 100dvh;
|
|
65
|
+
margin: 0;
|
|
66
|
+
overflow-y: auto;
|
|
67
|
+
.pkt-modal__wrapper {
|
|
68
|
+
min-height: 100vh;
|
|
69
|
+
min-height: 100dvh;
|
|
70
|
+
}
|
|
71
|
+
&[open] {
|
|
72
|
+
translate: 0 0;
|
|
73
|
+
}
|
|
74
|
+
&--right {
|
|
75
|
+
left: auto;
|
|
76
|
+
right: 0;
|
|
77
|
+
margin-right: 0;
|
|
78
|
+
translate: 100% 0;
|
|
79
|
+
@starting-style {
|
|
80
|
+
&[open] {
|
|
81
|
+
translate: 100% 0;
|
|
82
|
+
}
|
|
37
83
|
}
|
|
38
84
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
85
|
+
&--left {
|
|
86
|
+
left: 0;
|
|
87
|
+
right: auto;
|
|
88
|
+
margin-left: 0;
|
|
89
|
+
translate: -100% 0;
|
|
90
|
+
@starting-style {
|
|
91
|
+
&[open] {
|
|
92
|
+
translate: -100% 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
42
95
|
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&::backdrop {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
background-color: rgba(0, 0, 0, 0.55);
|
|
101
|
+
transition:
|
|
102
|
+
opacity 0.2s ease-out,
|
|
103
|
+
overlay 0.2s ease-out allow-discrete,
|
|
104
|
+
display 0.2s allow-discrete;
|
|
105
|
+
}
|
|
43
106
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
max-height: calc(100vh - 4rem);
|
|
107
|
+
&[open]::backdrop {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
@starting-style {
|
|
110
|
+
opacity: 0;
|
|
49
111
|
}
|
|
112
|
+
}
|
|
50
113
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
114
|
+
@supports not (selector(::backdrop)) {
|
|
115
|
+
position: fixed;
|
|
116
|
+
& + .backdrop {
|
|
117
|
+
background-color: rgba(0, 0, 0, 0.55);
|
|
118
|
+
position: fixed;
|
|
119
|
+
top: 0;
|
|
120
|
+
left: 0;
|
|
121
|
+
width: 100vw;
|
|
122
|
+
height: 100vh;
|
|
57
123
|
}
|
|
124
|
+
}
|
|
58
125
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
126
|
+
.pkt-modal__container {
|
|
127
|
+
padding-top: $pkt-modal-gap;
|
|
128
|
+
background: var(--pkt-color-background-default);
|
|
129
|
+
overflow-y: auto;
|
|
130
|
+
}
|
|
63
131
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
132
|
+
.pkt-modal__header {
|
|
133
|
+
display: grid;
|
|
134
|
+
grid-template-columns: 1fr 4rem;
|
|
135
|
+
grid-template-rows: 4rem 1fr;
|
|
136
|
+
grid-template-areas:
|
|
137
|
+
'header close'
|
|
138
|
+
'header empty';
|
|
139
|
+
justify-content: flex-start;
|
|
140
|
+
width: 100%;
|
|
141
|
+
}
|
|
67
142
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
143
|
+
.pkt-modal__header-background {
|
|
144
|
+
background: var(--pkt-color-background-default);
|
|
145
|
+
grid-area: empty;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.pkt-modal__headingText {
|
|
149
|
+
background: var(--pkt-color-background-default);
|
|
150
|
+
grid-area: header;
|
|
151
|
+
padding: $pkt-modal-gap 0 0 $pkt-modal-padding-sides;
|
|
152
|
+
margin: 0;
|
|
153
|
+
color: var(--pkt-color-text-body-default);
|
|
154
|
+
}
|
|
75
155
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
grid-row: 1 / 2;
|
|
156
|
+
.pkt-modal__closeButton {
|
|
157
|
+
grid-area: close;
|
|
79
158
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: row-reverse;
|
|
161
|
+
align-self: flex-start;
|
|
162
|
+
}
|
|
84
163
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
164
|
+
.pkt-modal__closeButton--blue {
|
|
165
|
+
height: 100%;
|
|
166
|
+
background: var(--pkt-color-background-default);
|
|
167
|
+
.pkt-btn {
|
|
168
|
+
margin: map.get(variables.$spacing, 'size-4');
|
|
91
169
|
}
|
|
170
|
+
}
|
|
92
171
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
172
|
+
.pkt-modal__closeButton--yellow-filled {
|
|
173
|
+
.pkt-btn {
|
|
174
|
+
height: 4rem;
|
|
175
|
+
width: 4rem;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
align-items: center;
|
|
178
|
+
border: none;
|
|
179
|
+
border-radius: 50%;
|
|
180
|
+
color: var(--pkt-color-surface-strong-dark-blue);
|
|
181
|
+
background-color: var(--pkt-color-brand-yellow-1000);
|
|
182
|
+
border: 4px solid var(--pkt-color-brand-yellow-1000);
|
|
183
|
+
outline: 0;
|
|
184
|
+
|
|
185
|
+
&:hover,
|
|
186
|
+
&:focus {
|
|
187
|
+
background-color: var(--pkt-color-brand-warm-blue-1000);
|
|
188
|
+
border-color: var(--pkt-color-brand-warm-blue-1000);
|
|
189
|
+
color: var(--pkt-color-background-default);
|
|
190
|
+
.pkt-icon {
|
|
107
191
|
color: var(--pkt-color-background-default);
|
|
108
|
-
.pkt-icon {
|
|
109
|
-
color: var(--pkt-color-background-default);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
.pkt-link__icon {
|
|
113
|
-
width: unset;
|
|
114
|
-
height: 1.75rem;
|
|
115
192
|
}
|
|
116
193
|
}
|
|
194
|
+
&:focus-visible {
|
|
195
|
+
outline: 0;
|
|
196
|
+
border-color: var(--pkt-color-border-states-focus);
|
|
197
|
+
}
|
|
198
|
+
.pkt-btn__icon {
|
|
199
|
+
width: 2rem;
|
|
200
|
+
height: 2rem;
|
|
201
|
+
}
|
|
117
202
|
}
|
|
203
|
+
}
|
|
118
204
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
max-height: calc(100vh - 10rem);
|
|
142
|
-
}
|
|
205
|
+
.pkt-modal__content {
|
|
206
|
+
display: flex;
|
|
207
|
+
flex-direction: column;
|
|
208
|
+
flex-grow: 1;
|
|
209
|
+
gap: map.get(variables.$spacing, 'size-16');
|
|
210
|
+
overflow-y: auto;
|
|
211
|
+
padding: map.get(variables.$spacing, 'size-32') map.get(variables.$spacing, 'size-40');
|
|
212
|
+
padding-top: 0;
|
|
213
|
+
position: relative;
|
|
214
|
+
color: var(--pkt-color-text-body-default);
|
|
215
|
+
background:
|
|
216
|
+
linear-gradient(var(--pkt-color-white) 30%, transparent) top,
|
|
217
|
+
linear-gradient(transparent, var(--pkt-color-border-subtle) 60%) bottom,
|
|
218
|
+
radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.3), transparent) top,
|
|
219
|
+
radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.3), transparent) bottom;
|
|
220
|
+
background-attachment: local, local, scroll, scroll;
|
|
221
|
+
background-repeat: no-repeat;
|
|
222
|
+
background-size:
|
|
223
|
+
100% 40px,
|
|
224
|
+
100% 50px,
|
|
225
|
+
100% 16px,
|
|
226
|
+
100% 16px;
|
|
143
227
|
}
|
|
144
228
|
}
|
|
145
229
|
|
|
@@ -152,7 +236,6 @@ body.pkt-modal--open {
|
|
|
152
236
|
// SIZES
|
|
153
237
|
.pkt-modal--small {
|
|
154
238
|
width: 480px;
|
|
155
|
-
padding: map.get(variables.$spacing, 'size-16') map.get(variables.$spacing, 'size-32');
|
|
156
239
|
}
|
|
157
240
|
|
|
158
241
|
.pkt-modal--medium {
|
|
@@ -177,7 +260,6 @@ body.pkt-modal--open {
|
|
|
177
260
|
@media screen and (max-width: 640px) {
|
|
178
261
|
.pkt-modal {
|
|
179
262
|
&[open] {
|
|
180
|
-
gap: map.get(variables.$spacing, 'size-16') 0;
|
|
181
263
|
line-height: map.get(variables.$line-height, 'lh-24');
|
|
182
264
|
|
|
183
265
|
.pkt-modal__headingText {
|
|
@@ -191,9 +273,7 @@ body.pkt-modal--open {
|
|
|
191
273
|
}
|
|
192
274
|
|
|
193
275
|
&--large {
|
|
194
|
-
position: absolute;
|
|
195
276
|
width: 100vh;
|
|
196
|
-
padding: map.get(variables.$spacing, 'size-16') map.get(variables.$spacing, 'size-24');
|
|
197
277
|
}
|
|
198
278
|
}
|
|
199
279
|
}
|
|
@@ -201,7 +281,6 @@ body.pkt-modal--open {
|
|
|
201
281
|
@media screen and (max-width: 480px) {
|
|
202
282
|
.pkt-modal {
|
|
203
283
|
&--small {
|
|
204
|
-
position: absolute;
|
|
205
284
|
width: 100vh;
|
|
206
285
|
}
|
|
207
286
|
}
|
|
@@ -210,7 +289,6 @@ body.pkt-modal--open {
|
|
|
210
289
|
@media screen and (max-width: map.get(variables.$breakpoints, 'phablet')) {
|
|
211
290
|
.pkt-modal {
|
|
212
291
|
&--medium {
|
|
213
|
-
position: absolute;
|
|
214
292
|
width: 100vh;
|
|
215
293
|
}
|
|
216
294
|
}
|
|
@@ -232,6 +310,22 @@ body.pkt-modal--open {
|
|
|
232
310
|
}
|
|
233
311
|
}
|
|
234
312
|
|
|
313
|
+
.pkt-modal--noShadow {
|
|
314
|
+
box-shadow: none;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.pkt-modal--transparentBackdrop {
|
|
318
|
+
&::backdrop,
|
|
319
|
+
&[open]::backdrop {
|
|
320
|
+
background-color: transparent;
|
|
321
|
+
}
|
|
322
|
+
@supports not (selector(::backdrop)) {
|
|
323
|
+
& + .backdrop {
|
|
324
|
+
background-color: transparent;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
235
329
|
// Adjustments for padding
|
|
236
330
|
|
|
237
331
|
.pkt-modal.pkt-modal--removePadding {
|
|
@@ -420,8 +420,8 @@ $-skins: (
|
|
|
420
420
|
div.pkt-btn:not([data-disabled]):active,
|
|
421
421
|
&:enabled:active,
|
|
422
422
|
&:active:not(:disabled):not([disabled]):not([data-disabled]),
|
|
423
|
-
&.pkt-btn--active,
|
|
424
|
-
&.pkt-btn--active:hover {
|
|
423
|
+
&.pkt-btn--active:not(:disabled):not([disabled]):not([data-disabled]),
|
|
424
|
+
&.pkt-btn--active:not(:disabled):not([disabled]):not([data-disabled]):hover {
|
|
425
425
|
background-color: var(--pkt-color-button-background-active);
|
|
426
426
|
border-color: var(--pkt-color-button-border-active);
|
|
427
427
|
color: var(--pkt-color-button-text-active);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.39.0",
|
|
4
4
|
"description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
58
58
|
},
|
|
59
59
|
"license": "MIT",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "ddb0e674ed86b95519a7a40e5785c05b85047504"
|
|
61
61
|
}
|