@oslokommune/punkt-css 12.12.0 → 12.12.3
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 +43 -0
- package/README.md +1 -1
- package/dist/css/components/alert.css +13 -13
- package/dist/css/components/alert.min.css +1 -1
- package/dist/css/components/backlink.css +4 -4
- package/dist/css/components/backlink.min.css +1 -1
- package/dist/css/components/breadcrumbs.css +2 -2
- package/dist/css/components/breadcrumbs.min.css +1 -1
- package/dist/css/components/calendar.css +2 -2
- package/dist/css/components/calendar.min.css +1 -1
- package/dist/css/components/footer.css +12 -12
- package/dist/css/components/footer.min.css +1 -1
- package/dist/css/components/header.css +12 -12
- package/dist/css/components/header.min.css +1 -1
- package/dist/css/components/inputwrapper.css +14 -14
- package/dist/css/components/inputwrapper.min.css +1 -1
- package/dist/css/components/linkcard.css +4 -4
- package/dist/css/components/linkcard.min.css +1 -1
- package/dist/css/components/loader.css +6 -6
- package/dist/css/components/loader.min.css +1 -1
- package/dist/css/components/messagebox.css +10 -10
- package/dist/css/components/messagebox.min.css +1 -1
- package/dist/css/components/searchinput.css +4 -4
- package/dist/css/components/searchinput.min.css +1 -1
- package/dist/css/components/tabs.css +5 -5
- package/dist/css/components/tabs.min.css +1 -1
- package/dist/css/components/tag.css +11 -11
- package/dist/css/components/tag.min.css +1 -1
- package/dist/css/components/textinput.css +22 -14
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/pkt-base.css +175 -175
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +121 -113
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-elements.css +69 -67
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +343 -341
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/functions/_index.scss +9 -9
- package/dist/scss/abstracts/mixins/_typography.scss +9 -12
- package/dist/scss/abstracts/variables/_colors.scss +84 -81
- package/dist/scss/components/_alert.scss +6 -4
- package/dist/scss/components/_backlink.scss +2 -2
- package/dist/scss/components/_footer.scss +3 -3
- package/dist/scss/components/_inputwrapper.scss +4 -4
- package/dist/scss/components/_messagebox.scss +2 -2
- package/dist/scss/components/_stepper.scss +5 -5
- package/dist/scss/components/_tabs.scss +2 -1
- package/dist/scss/components/_tag.scss +245 -250
- package/dist/scss/elements/_button.scss +9 -7
- package/dist/scss/elements/_checkbox-radio.scss +24 -41
- package/dist/scss/elements/_input.scss +26 -14
- package/dist/scss/elements/_section.scss +10 -12
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/*
|
|
2
2
|
* Checkbox and radio
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
@use 'sass:map';
|
|
@@ -30,9 +30,7 @@ $-module-name: 'pkt-input-check';
|
|
|
30
30
|
--pkt-color-input-text-error: var(--pkt-color-brand-red-1000);
|
|
31
31
|
|
|
32
32
|
[data-mode='dark'] & {
|
|
33
|
-
--pkt-color-input-background-normal: var(
|
|
34
|
-
--pkt-color-brand-dark-blue-1000
|
|
35
|
-
);
|
|
33
|
+
--pkt-color-input-background-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
36
34
|
--pkt-color-input-border-active: var(--pkt-color-brand-blue-500);
|
|
37
35
|
--pkt-color-input-border-disabled: var(--pkt-color-grays-gray-200);
|
|
38
36
|
--pkt-color-input-border-error: var(--pkt-color-brand-red-1000);
|
|
@@ -56,22 +54,20 @@ $-module-name: 'pkt-input-check';
|
|
|
56
54
|
display: flex;
|
|
57
55
|
|
|
58
56
|
&-label {
|
|
59
|
-
@include typography.get-text('pkt-txt-16-light');
|
|
60
57
|
color: var(--pkt-color-text-body-default);
|
|
61
58
|
padding-left: 0.5rem;
|
|
59
|
+
@include typography.get-text('pkt-txt-16-light');
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
&-helptext {
|
|
65
|
-
@include typography.get-text('pkt-txt-14-light');
|
|
66
63
|
padding-top: 0.5rem;
|
|
67
|
-
color: var(--pkt-color-text-body-default);
|
|
68
64
|
max-width: 21.875rem;
|
|
65
|
+
color: var(--pkt-color-text-body-default);
|
|
66
|
+
@include typography.get-text('pkt-txt-14-light');
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
// Input states
|
|
72
|
-
&:hover
|
|
73
|
-
> .pkt-input-check__input-checkbox:not(:disabled)
|
|
74
|
-
+ .pkt-input-check__input-label {
|
|
70
|
+
&:hover > .pkt-input-check__input-checkbox:not(:disabled) + .pkt-input-check__input-label {
|
|
75
71
|
color: var(--pkt-color-input-text-hover);
|
|
76
72
|
}
|
|
77
73
|
|
|
@@ -172,8 +168,8 @@ $-module-name: 'pkt-input-check';
|
|
|
172
168
|
height: 24px;
|
|
173
169
|
background-image: var(--svg);
|
|
174
170
|
background-repeat: no-repeat;
|
|
175
|
-
filter: brightness(0) saturate(100%) invert(100%) sepia(0%)
|
|
176
|
-
|
|
171
|
+
filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(271deg) brightness(105%)
|
|
172
|
+
contrast(101%);
|
|
177
173
|
}
|
|
178
174
|
}
|
|
179
175
|
|
|
@@ -207,7 +203,8 @@ $-module-name: 'pkt-input-check';
|
|
|
207
203
|
background-color: var(--pkt-color-input-border-active);
|
|
208
204
|
border: 3px solid var(--pkt-color-input-background-normal);
|
|
209
205
|
outline: none;
|
|
210
|
-
box-shadow:
|
|
206
|
+
box-shadow:
|
|
207
|
+
0px 0px 0px 0.125rem var(--pkt-color-input-border-active),
|
|
211
208
|
0px 0px 0px 0.375rem var(--pkt-color-border-states-focus);
|
|
212
209
|
}
|
|
213
210
|
|
|
@@ -221,22 +218,17 @@ $-module-name: 'pkt-input-check';
|
|
|
221
218
|
&:disabled {
|
|
222
219
|
&[type='checkbox'] {
|
|
223
220
|
background-color: var(--pkt-color-surface-default-gray);
|
|
224
|
-
--pkt-color-input-check-border: var(
|
|
225
|
-
--pkt-color-input-border-disabled
|
|
226
|
-
);
|
|
221
|
+
--pkt-color-input-check-border: var(--pkt-color-input-border-disabled);
|
|
227
222
|
cursor: not-allowed;
|
|
228
223
|
&[role='switch']:checked:after {
|
|
229
224
|
--svg: url(#{variables.$icon-path}/check-medium.svg);
|
|
230
|
-
--pkt-color-input-check-border: var(
|
|
231
|
-
--pkt-color-input-border-normal
|
|
232
|
-
);
|
|
225
|
+
--pkt-color-input-check-border: var(--pkt-color-input-border-normal);
|
|
233
226
|
filter: grayscale(100%) brightness(400%);
|
|
234
227
|
}
|
|
235
228
|
}
|
|
236
229
|
|
|
237
230
|
&[type='radio'] {
|
|
238
|
-
box-shadow: 0px 0px 0px 0.125rem
|
|
239
|
-
var(--pkt-color-input-border-disabled);
|
|
231
|
+
box-shadow: 0px 0px 0px 0.125rem var(--pkt-color-input-border-disabled);
|
|
240
232
|
background-color: var(--pkt-color-surface-default-gray);
|
|
241
233
|
cursor: not-allowed;
|
|
242
234
|
outline-color: var(--pkt-color-input-border-disabled);
|
|
@@ -246,14 +238,11 @@ $-module-name: 'pkt-input-check';
|
|
|
246
238
|
&:disabled:checked {
|
|
247
239
|
&[type='checkbox'] {
|
|
248
240
|
background-color: var(--pkt-color-input-border-disabled);
|
|
249
|
-
--pkt-color-input-check-border: var(
|
|
250
|
-
--pkt-color-input-border-disabled
|
|
251
|
-
);
|
|
241
|
+
--pkt-color-input-check-border: var(--pkt-color-input-border-disabled);
|
|
252
242
|
}
|
|
253
243
|
|
|
254
244
|
&[type='radio'] {
|
|
255
|
-
box-shadow: 0px 0px 0px 0.125rem
|
|
256
|
-
var(--pkt-color-input-border-disabled);
|
|
245
|
+
box-shadow: 0px 0px 0px 0.125rem var(--pkt-color-input-border-disabled);
|
|
257
246
|
background-color: var(--pkt-color-input-border-disabled);
|
|
258
247
|
}
|
|
259
248
|
}
|
|
@@ -267,8 +256,8 @@ $-module-name: 'pkt-input-check';
|
|
|
267
256
|
&--error {
|
|
268
257
|
//Checkmark
|
|
269
258
|
&[type='checkbox']:not([role='switch']):checked:after {
|
|
270
|
-
filter: brightness(0) saturate(100%) invert(15%) sepia(11%)
|
|
271
|
-
|
|
259
|
+
filter: brightness(0) saturate(100%) invert(15%) sepia(11%) saturate(5273%) hue-rotate(212deg) brightness(96%)
|
|
260
|
+
contrast(94%);
|
|
272
261
|
}
|
|
273
262
|
|
|
274
263
|
&[type='checkbox'],
|
|
@@ -328,9 +317,7 @@ $-module-name: 'pkt-input-check';
|
|
|
328
317
|
margin: 1rem 0 1rem 1rem;
|
|
329
318
|
}
|
|
330
319
|
|
|
331
|
-
&
|
|
332
|
-
.pkt-input-check__input-checkbox:checked:not(:disabled)
|
|
333
|
-
+ .pkt-input-check__input-label:before {
|
|
320
|
+
& .pkt-input-check__input-checkbox:checked:not(:disabled) + .pkt-input-check__input-label:before {
|
|
334
321
|
content: '';
|
|
335
322
|
position: absolute;
|
|
336
323
|
left: -2px;
|
|
@@ -356,15 +343,11 @@ $-module-name: 'pkt-input-check';
|
|
|
356
343
|
border-color: var(--pkt-color-border-states-hover);
|
|
357
344
|
}
|
|
358
345
|
|
|
359
|
-
&:hover
|
|
360
|
-
> .pkt-input-check__input-checkbox:checked
|
|
361
|
-
+ .pkt-input-check__input-label:before {
|
|
346
|
+
&:hover > .pkt-input-check__input-checkbox:checked + .pkt-input-check__input-label:before {
|
|
362
347
|
border-color: var(--pkt-color-border-states-hover);
|
|
363
348
|
}
|
|
364
349
|
|
|
365
|
-
&:active:not(:disabled)
|
|
366
|
-
> .pkt-input-check__input-checkbox:checked
|
|
367
|
-
+ .pkt-input-check__input-label:before {
|
|
350
|
+
&:active:not(:disabled) > .pkt-input-check__input-checkbox:checked + .pkt-input-check__input-label:before {
|
|
368
351
|
border-color: var(--pkt-color-border-states-active);
|
|
369
352
|
}
|
|
370
353
|
|
|
@@ -387,8 +370,8 @@ $-module-name: 'pkt-input-check';
|
|
|
387
370
|
|
|
388
371
|
[data-mode='dark'] .#{$-module-name} {
|
|
389
372
|
&__input-checkbox[type='checkbox']:not([role='switch']):after {
|
|
390
|
-
filter: brightness(0) saturate(100%) invert(15%) sepia(11%) saturate(5273%)
|
|
391
|
-
|
|
373
|
+
filter: brightness(0) saturate(100%) invert(15%) sepia(11%) saturate(5273%) hue-rotate(212deg) brightness(96%)
|
|
374
|
+
contrast(94%);
|
|
392
375
|
}
|
|
393
376
|
&__input-checkbox[type='checkbox'][role='switch'] {
|
|
394
377
|
&:checked {
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.pkt-input {
|
|
47
|
-
@include typography.get-text('pkt-txt-18-light');
|
|
48
47
|
display: flex;
|
|
49
48
|
align-items: center;
|
|
50
49
|
appearance: none; // Fix appearance on date inputs in Safari
|
|
@@ -55,6 +54,8 @@
|
|
|
55
54
|
margin: 0;
|
|
56
55
|
padding: 0.5rem 1rem;
|
|
57
56
|
|
|
57
|
+
@include typography.get-text('pkt-txt-18-light');
|
|
58
|
+
|
|
58
59
|
&:not(&-compact) {
|
|
59
60
|
min-height: 3rem;
|
|
60
61
|
}
|
|
@@ -74,7 +75,11 @@
|
|
|
74
75
|
&__container:not(:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple)))):not(:is(:has(textarea[cols]))):not(
|
|
75
76
|
:is(:has(input[size]))
|
|
76
77
|
):not(:is(:has(&--fullwidth))) {
|
|
77
|
-
width: min(100
|
|
78
|
+
width: min(31rem, 100%);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&__container:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple))):not(:is(:has(&--fullwidth))) {
|
|
82
|
+
width: fit-content;
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
&--fullwidth {
|
|
@@ -153,14 +158,16 @@
|
|
|
153
158
|
&-icon,
|
|
154
159
|
&-separator {
|
|
155
160
|
@include typography.get-text('pkt-txt-18-light');
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
& {
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
width: auto;
|
|
165
|
+
height: 3rem;
|
|
166
|
+
border: 2px solid var(--pkt-color-input-border-normal);
|
|
167
|
+
flex-shrink: 0;
|
|
168
|
+
color: var(--pkt-color-brand-dark-blue-1000);
|
|
169
|
+
background-color: var(--pkt-color-input-background-normal);
|
|
170
|
+
}
|
|
164
171
|
}
|
|
165
172
|
|
|
166
173
|
&-prefix {
|
|
@@ -222,7 +229,6 @@
|
|
|
222
229
|
}
|
|
223
230
|
|
|
224
231
|
&__container {
|
|
225
|
-
width: fit-content;
|
|
226
232
|
display: flex;
|
|
227
233
|
align-items: center;
|
|
228
234
|
align-self: stretch;
|
|
@@ -279,12 +285,18 @@
|
|
|
279
285
|
|
|
280
286
|
&__counter {
|
|
281
287
|
@include typography.get-text('pkt-txt-14-light');
|
|
282
|
-
|
|
283
|
-
|
|
288
|
+
|
|
289
|
+
& {
|
|
290
|
+
width: min(100%, 31rem);
|
|
291
|
+
text-align: right;
|
|
292
|
+
}
|
|
284
293
|
|
|
285
294
|
&--error {
|
|
286
295
|
@include typography.get-text('pkt-txt-14-medium');
|
|
287
|
-
|
|
296
|
+
|
|
297
|
+
& {
|
|
298
|
+
color: var(--pkt-color-input-text-error);
|
|
299
|
+
}
|
|
288
300
|
}
|
|
289
301
|
}
|
|
290
302
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/*
|
|
2
2
|
* Section elements
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@use 'sass:map';
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
margin: 1rem 0;
|
|
12
12
|
|
|
13
13
|
@if $backgroundColor !=none {
|
|
14
|
+
padding: 0.75rem;
|
|
15
|
+
background-color: $backgroundColor;
|
|
16
|
+
|
|
14
17
|
@include bp('phablet-up') {
|
|
15
18
|
padding: 1rem;
|
|
16
19
|
}
|
|
@@ -19,9 +22,6 @@
|
|
|
19
22
|
padding: 1.5rem;
|
|
20
23
|
}
|
|
21
24
|
|
|
22
|
-
padding: 0.75rem;
|
|
23
|
-
background-color: $backgroundColor;
|
|
24
|
-
|
|
25
25
|
/*
|
|
26
26
|
@if luminance($backgroundColor) < 0.4 {
|
|
27
27
|
color: white;
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.pkt-section--dark {
|
|
43
|
-
@include -section(map.get(variables.$pkt-colors, 'brand-dark-blue-1000'));
|
|
44
43
|
color: white;
|
|
44
|
+
@include -section(map.get(variables.$pkt-colors, 'brand-dark-blue-1000'));
|
|
45
45
|
|
|
46
46
|
a.pkt-btn--ter {
|
|
47
47
|
color: white;
|
|
@@ -49,9 +49,8 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.pkt-section--danger {
|
|
52
|
-
@include -section(map.get(variables.$pkt-colors, 'brand-red-1000'));
|
|
53
|
-
|
|
54
52
|
color: black;
|
|
53
|
+
@include -section(map.get(variables.$pkt-colors, 'brand-red-1000'));
|
|
55
54
|
|
|
56
55
|
a.pkt-btn--ter {
|
|
57
56
|
color: black;
|
|
@@ -64,9 +63,8 @@
|
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
.pkt-section--success {
|
|
67
|
-
@include -section(map.get(variables.$pkt-colors, 'brand-green-1000'));
|
|
68
|
-
|
|
69
66
|
color: black;
|
|
67
|
+
@include -section(map.get(variables.$pkt-colors, 'brand-green-1000'));
|
|
70
68
|
|
|
71
69
|
a.pkt-btn--ter {
|
|
72
70
|
color: black;
|
|
@@ -86,11 +84,11 @@
|
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
.pkt-section--frame {
|
|
89
|
-
@include -section(white);
|
|
90
87
|
border: 1px solid map.get(variables.$pkt-colors, 'brand-neutrals-1000');
|
|
88
|
+
@include -section(white);
|
|
91
89
|
}
|
|
92
90
|
|
|
93
|
-
[class*='ok-section-']>[class^='ok-title-'] {
|
|
91
|
+
[class*='ok-section-'] > [class^='ok-title-'] {
|
|
94
92
|
margin-top: 0;
|
|
95
93
|
}
|
|
96
94
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "12.12.
|
|
3
|
+
"version": "12.12.3",
|
|
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",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
55
55
|
},
|
|
56
56
|
"license": "MIT",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "0dc3e24d50fb19d8298f7c6912ce7cb815d78cd0"
|
|
58
58
|
}
|