@oslokommune/punkt-css 17.1.3 → 18.3.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 +18 -0
- package/dist/css/components/calendar.css +2 -2
- package/dist/css/components/calendar.min.css +1 -1
- package/dist/css/components/card.css +3 -3
- package/dist/css/components/card.min.css +1 -1
- package/dist/css/components/fileupload.css +7 -7
- package/dist/css/components/fileupload.min.css +1 -1
- package/dist/css/components/footer.css +1 -1
- package/dist/css/components/footer.min.css +1 -1
- package/dist/css/components/header.css +1 -1
- package/dist/css/components/header.min.css +1 -1
- package/dist/css/components/inputwrapper.css +1 -1
- package/dist/css/components/inputwrapper.min.css +1 -1
- package/dist/css/components/listbox.css +2 -2
- package/dist/css/components/listbox.min.css +1 -1
- package/dist/css/components/loader.css +4 -4
- package/dist/css/components/loader.min.css +1 -1
- package/dist/css/components/modal.css +1 -1
- package/dist/css/components/modal.min.css +1 -1
- package/dist/css/components/progressbar.css +1 -1
- package/dist/css/components/progressbar.min.css +1 -1
- package/dist/css/components/stepper.css +5 -5
- package/dist/css/components/stepper.min.css +1 -1
- package/dist/css/components/tag.css +4 -18
- package/dist/css/components/tag.min.css +1 -1
- package/dist/css/elements/button.css +70 -48
- 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/form.css +4 -4
- package/dist/css/elements/form.min.css +1 -1
- package/dist/css/elements/hr.css +1 -1
- package/dist/css/elements/hr.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/list.css +1 -1
- package/dist/css/elements/list.min.css +1 -1
- package/dist/css/elements/section.css +11 -108
- package/dist/css/elements/section.min.css +1 -1
- package/dist/css/pkt-base.css +708 -75
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +32 -88
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +832 -330
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-elements.css +91 -166
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt-tokens.css +113 -68
- package/dist/css/pkt-tokens.min.css +1 -1
- package/dist/css/pkt-utilities.css +594 -6
- package/dist/css/pkt-utilities.min.css +1 -1
- package/dist/css/pkt.css +831 -329
- package/dist/css/pkt.layer.css +684 -322
- package/dist/css/pkt.layer.min.css +1 -1
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/functions/_index.scss +25 -0
- package/dist/scss/abstracts/variables/_colors.scss +155 -68
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/base/_colors-tokens.scss +9 -75
- package/dist/scss/components/_calendar.scss +2 -2
- package/dist/scss/components/_card.scss +3 -3
- package/dist/scss/components/_fileupload.scss +8 -7
- package/dist/scss/components/_footer.scss +6 -5
- package/dist/scss/components/_header-service-mobile.scss +3 -2
- package/dist/scss/components/_header-shared.scss +3 -2
- package/dist/scss/components/_header.scss +1 -1
- package/dist/scss/components/_index.scss +0 -1
- package/dist/scss/components/_inputwrapper.scss +1 -1
- package/dist/scss/components/_listbox.scss +4 -2
- package/dist/scss/components/_loader.scss +5 -4
- package/dist/scss/components/_modal.scss +2 -1
- package/dist/scss/components/_progressbar.scss +1 -1
- package/dist/scss/components/_stepper.scss +5 -5
- package/dist/scss/components/_tag.scss +5 -17
- package/dist/scss/elements/_button.scss +71 -67
- package/dist/scss/elements/_form.scss +4 -4
- package/dist/scss/elements/_hr.scss +1 -1
- package/dist/scss/elements/_list.scss +3 -3
- package/dist/scss/elements/_section.scss +12 -40
- package/dist/scss/pkt-docs.scss +3 -1
- package/package.json +3 -3
- package/dist/css/components/badge.css +0 -41
- package/dist/css/components/badge.min.css +0 -1
- package/dist/scss/components/_badge.scss +0 -60
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Loader component
|
|
3
3
|
*/
|
|
4
|
+
@use '../abstracts/functions';
|
|
4
5
|
@use 'sass:map';
|
|
5
6
|
@use '../abstracts/variables';
|
|
6
7
|
@use '../abstracts/mixins/breakpoints' as *;
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
width: 5em;
|
|
83
84
|
height: 6.5em;
|
|
84
85
|
left: 0em;
|
|
85
|
-
background: repeating-linear-gradient(#
|
|
86
|
+
background: repeating-linear-gradient(#{functions.color-token('surface-strong-red')}, #{functions.color-token('surface-strong-red')} 1em, #{functions.color-token('surface-strong-yellow')} 1em, #{functions.color-token('surface-strong-yellow')} 2em);
|
|
86
87
|
border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
|
|
87
88
|
transform: translate3d(0, 0, 0);
|
|
88
89
|
animation-name: eggroll;
|
|
@@ -93,15 +94,15 @@
|
|
|
93
94
|
opacity: 0;
|
|
94
95
|
}
|
|
95
96
|
.egg.two {
|
|
96
|
-
background: repeating-linear-gradient(#
|
|
97
|
+
background: repeating-linear-gradient(#{functions.color-token('surface-strong-blue')}, #{functions.color-token('surface-strong-blue')} 1em, #{functions.color-token('surface-strong-red')} 1em, #{functions.color-token('surface-strong-red')} 2em);
|
|
97
98
|
animation-delay: 0.5s;
|
|
98
99
|
}
|
|
99
100
|
.egg.three {
|
|
100
|
-
background: repeating-linear-gradient(#
|
|
101
|
+
background: repeating-linear-gradient(#{functions.color-token('surface-strong-green')}, #{functions.color-token('surface-strong-green')} 1em, #{functions.color-token('surface-strong-yellow')} 1em, #{functions.color-token('surface-strong-yellow')} 2em);
|
|
101
102
|
animation-delay: 1s;
|
|
102
103
|
}
|
|
103
104
|
.egg.four {
|
|
104
|
-
background: repeating-linear-gradient(#
|
|
105
|
+
background: repeating-linear-gradient(#{functions.color-token('surface-strong-green')}, #{functions.color-token('surface-strong-green')} 1em, #{functions.color-token('surface-strong-red')} 1em, #{functions.color-token('surface-strong-red')} 2em);
|
|
105
106
|
animation-delay: 1.5s;
|
|
106
107
|
}
|
|
107
108
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
@use 'sass:map';
|
|
5
5
|
@use '../abstracts/variables';
|
|
6
|
+
@use '../abstracts/functions';
|
|
6
7
|
@use '../abstracts/mixins/breakpoints' as *;
|
|
7
8
|
@use '../abstracts/' as *;
|
|
8
9
|
|
|
@@ -222,7 +223,7 @@ $pkt-modal-padding-sides: map.get(variables.$spacing, 'size-40');
|
|
|
222
223
|
position: relative;
|
|
223
224
|
color: var(--pkt-color-text-body-default);
|
|
224
225
|
background:
|
|
225
|
-
linear-gradient(
|
|
226
|
+
linear-gradient(#{functions.color-token('background-card')} 30%, transparent) top,
|
|
226
227
|
linear-gradient(transparent, var(--pkt-color-border-subtle) 60%) bottom,
|
|
227
228
|
radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.3), transparent) top,
|
|
228
229
|
radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.3), transparent) bottom;
|
|
@@ -194,12 +194,12 @@
|
|
|
194
194
|
// INCOMPLETE STEP
|
|
195
195
|
.pkt-step--incomplete {
|
|
196
196
|
.pkt-step__line {
|
|
197
|
-
background-color: var(--pkt-color-
|
|
197
|
+
background-color: var(--pkt-color-brand-neutrals-300);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
.pkt-step__title,
|
|
201
201
|
.pkt-step__content {
|
|
202
|
-
color: var(--pkt-color-
|
|
202
|
+
color: var(--pkt-color-brand-neutrals-700);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
background-color: var(--pkt-color-brand-dark-blue-1000);
|
|
210
210
|
}
|
|
211
211
|
.pkt-step__line--2 {
|
|
212
|
-
background-color: var(--pkt-color-
|
|
212
|
+
background-color: var(--pkt-color-brand-neutrals-300);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
|
|
@@ -229,14 +229,14 @@
|
|
|
229
229
|
|
|
230
230
|
.pkt-step__line--2,
|
|
231
231
|
.pkt-step__line--3 {
|
|
232
|
-
background-color: var(--pkt-color-
|
|
232
|
+
background-color: var(--pkt-color-brand-neutrals-300);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
// CURRENT STEP + INCOMPLETE STEP
|
|
237
237
|
.pkt-step--current + .pkt-step--incomplete {
|
|
238
238
|
.pkt-step__line--1 {
|
|
239
|
-
background-color: var(--pkt-color-
|
|
239
|
+
background-color: var(--pkt-color-brand-neutrals-300);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
|
|
@@ -6,19 +6,7 @@
|
|
|
6
6
|
@use '../abstracts/variables';
|
|
7
7
|
@use '../abstracts/mixins/typography';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
--pkt-color-tag-text-active: var(--pkt-color-brand-warm-blue-1000);
|
|
11
|
-
--pkt-color-tag-text-focus: var(--pkt-color-brand-warm-blue-1000);
|
|
12
|
-
--pkt-color-tag-text-hover: var(--pkt-color-brand-warm-blue-1000);
|
|
13
|
-
--pkt-color-tag-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
[data-mode='dark'] .pkt-tag {
|
|
17
|
-
--pkt-color-tag-text-active: var(--pkt-color-brand-dark-blue-1000);
|
|
18
|
-
--pkt-color-tag-text-focus: var(--pkt-color-brand-dark-blue-1000);
|
|
19
|
-
--pkt-color-tag-text-hover: var(--pkt-color-brand-dark-blue-1000);
|
|
20
|
-
--pkt-color-tag-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
21
|
-
}
|
|
9
|
+
// tag-text-* er globale semantiske tokens, se abstracts/variables/_colors.scss
|
|
22
10
|
|
|
23
11
|
pkt-tag {
|
|
24
12
|
display: inline-block;
|
|
@@ -341,8 +329,8 @@ button.pkt-tag {
|
|
|
341
329
|
|
|
342
330
|
&.pkt-tag--blue-dark {
|
|
343
331
|
background: var(--pkt-color-brand-dark-blue-1000);
|
|
344
|
-
color: var(--pkt-color-brand-neutrals-
|
|
345
|
-
--fg-color: var(--pkt-color-brand-neutrals-
|
|
332
|
+
color: var(--pkt-color-brand-neutrals-100);
|
|
333
|
+
--fg-color: var(--pkt-color-brand-neutrals-100);
|
|
346
334
|
|
|
347
335
|
&.pkt-btn:hover,
|
|
348
336
|
&:is(button):hover,
|
|
@@ -350,10 +338,10 @@ button.pkt-tag {
|
|
|
350
338
|
&:is(button):focus,
|
|
351
339
|
&.pkt-tag--hover {
|
|
352
340
|
background-color: var(--pkt-color-brand-warm-blue-1000) !important;
|
|
353
|
-
color: var(--pkt-color-brand-neutrals-
|
|
341
|
+
color: var(--pkt-color-brand-neutrals-100) !important;
|
|
354
342
|
&,
|
|
355
343
|
svg {
|
|
356
|
-
--fg-color: var(--pkt-color-brand-neutrals-
|
|
344
|
+
--fg-color: var(--pkt-color-brand-neutrals-100) !important;
|
|
357
345
|
}
|
|
358
346
|
}
|
|
359
347
|
}
|
|
@@ -53,116 +53,120 @@ $-sizes: (
|
|
|
53
53
|
$-skins: (
|
|
54
54
|
'primary': (
|
|
55
55
|
'light': (
|
|
56
|
-
'button-background-normal': --pkt-color-
|
|
56
|
+
'button-background-normal': --pkt-color-button-primary-background-normal,
|
|
57
57
|
'button-border-normal': --pkt-color-brand-dark-blue-1000,
|
|
58
|
-
'button-text-normal': --pkt-color-
|
|
59
|
-
'button-background-focus': --pkt-color-
|
|
60
|
-
'button-border-focus': --pkt-color-
|
|
61
|
-
'button-text-focus': --pkt-color-
|
|
58
|
+
'button-text-normal': --pkt-color-button-primary-text-normal,
|
|
59
|
+
'button-background-focus': --pkt-color-button-primary-background-focus,
|
|
60
|
+
'button-border-focus': --pkt-color-button-primary-border-focus,
|
|
61
|
+
'button-text-focus': --pkt-color-button-primary-text-focus,
|
|
62
62
|
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
63
|
-
'button-background-hover': --pkt-color-
|
|
63
|
+
'button-background-hover': --pkt-color-button-primary-background-hover,
|
|
64
64
|
'button-border-hover': --pkt-color-brand-warm-blue-1000,
|
|
65
|
-
'button-text-hover': --pkt-color-
|
|
66
|
-
'button-background-active': --pkt-color-
|
|
65
|
+
'button-text-hover': --pkt-color-button-primary-text-hover,
|
|
66
|
+
'button-background-active': --pkt-color-button-primary-background-active,
|
|
67
67
|
'button-border-active': --pkt-color-brand-warm-blue-1000,
|
|
68
|
-
'button-text-active': --pkt-color-
|
|
69
|
-
'button-background-disabled': --pkt-color-
|
|
70
|
-
'button-border-disabled': --pkt-color-
|
|
71
|
-
'button-text-disabled': --pkt-color-
|
|
68
|
+
'button-text-active': --pkt-color-button-primary-text-active,
|
|
69
|
+
'button-background-disabled': --pkt-color-button-primary-background-disabled,
|
|
70
|
+
'button-border-disabled': --pkt-color-button-primary-background-disabled,
|
|
71
|
+
'button-text-disabled': --pkt-color-button-primary-text-disabled,
|
|
72
72
|
),
|
|
73
73
|
'dark': (
|
|
74
|
-
'button-background-normal': --pkt-color-
|
|
74
|
+
'button-background-normal': --pkt-color-button-primary-background-normal,
|
|
75
75
|
'button-border-normal': --pkt-color-brand-blue-500,
|
|
76
|
-
'button-text-normal': --pkt-color-
|
|
77
|
-
'button-background-focus': --pkt-color-
|
|
78
|
-
'button-border-focus': --pkt-color-
|
|
79
|
-
'button-text-focus': --pkt-color-
|
|
76
|
+
'button-text-normal': --pkt-color-button-primary-text-normal,
|
|
77
|
+
'button-background-focus': --pkt-color-button-primary-background-focus,
|
|
78
|
+
'button-border-focus': --pkt-color-button-primary-border-focus,
|
|
79
|
+
'button-text-focus': --pkt-color-button-primary-text-focus,
|
|
80
80
|
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
81
|
-
'button-background-hover': --pkt-color-
|
|
81
|
+
'button-background-hover': --pkt-color-button-primary-background-hover,
|
|
82
82
|
'button-border-hover': --pkt-color-brand-blue-1000,
|
|
83
|
-
'button-text-hover': --pkt-color-
|
|
84
|
-
'button-background-active': --pkt-color-
|
|
83
|
+
'button-text-hover': --pkt-color-button-primary-text-hover,
|
|
84
|
+
'button-background-active': --pkt-color-button-primary-background-active,
|
|
85
85
|
'button-border-active': --pkt-color-brand-blue-1000,
|
|
86
|
-
'button-text-active': --pkt-color-
|
|
87
|
-
'button-background-disabled': --pkt-color-
|
|
88
|
-
'button-border-disabled': --pkt-color-
|
|
89
|
-
'button-text-disabled': --pkt-color-
|
|
86
|
+
'button-text-active': --pkt-color-button-primary-text-active,
|
|
87
|
+
'button-background-disabled': --pkt-color-button-primary-background-disabled,
|
|
88
|
+
'button-border-disabled': --pkt-color-button-primary-background-disabled,
|
|
89
|
+
'button-text-disabled': --pkt-color-button-primary-text-disabled,
|
|
90
90
|
),
|
|
91
91
|
),
|
|
92
92
|
'secondary': (
|
|
93
93
|
'light': (
|
|
94
94
|
'button-background-normal': --pkt-color-brand-neutrals-transparent,
|
|
95
|
-
'button-border-normal': --pkt-color-
|
|
96
|
-
'button-text-normal': --pkt-color-
|
|
95
|
+
'button-border-normal': --pkt-color-button-secondary-border-normal,
|
|
96
|
+
'button-text-normal': --pkt-color-button-secondary-text-normal,
|
|
97
97
|
'button-background-focus': --pkt-color-brand-warm-blue-1000,
|
|
98
|
-
'button-border-focus': --pkt-color-
|
|
98
|
+
'button-border-focus': --pkt-color-button-secondary-border-focus,
|
|
99
|
+
// TODO: Figma sier button-secondary-text-focus, men mangler
|
|
100
|
+
// button-secondary-background-focus. Avventer avklaring.
|
|
99
101
|
'button-text-focus': --pkt-color-brand-neutrals-white,
|
|
100
102
|
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
101
|
-
'button-background-hover': --pkt-color-
|
|
103
|
+
'button-background-hover': --pkt-color-button-secondary-background-hover,
|
|
102
104
|
'button-border-hover': --pkt-color-brand-warm-blue-1000,
|
|
103
|
-
'button-text-hover': --pkt-color-
|
|
104
|
-
'button-background-active': --pkt-color-
|
|
105
|
+
'button-text-hover': --pkt-color-button-secondary-text-hover,
|
|
106
|
+
'button-background-active': --pkt-color-button-secondary-background-active,
|
|
105
107
|
'button-border-active': --pkt-color-brand-warm-blue-1000,
|
|
106
|
-
'button-text-active': --pkt-color-
|
|
107
|
-
'button-background-disabled': --pkt-color-
|
|
108
|
-
'button-border-disabled': --pkt-color-
|
|
109
|
-
'button-text-disabled': --pkt-color-
|
|
108
|
+
'button-text-active': --pkt-color-button-secondary-text-active,
|
|
109
|
+
'button-background-disabled': --pkt-color-button-secondary-background-disabled,
|
|
110
|
+
'button-border-disabled': --pkt-color-button-secondary-background-disabled,
|
|
111
|
+
'button-text-disabled': --pkt-color-button-secondary-text-disabled,
|
|
110
112
|
),
|
|
111
113
|
'dark': (
|
|
112
114
|
'button-background-normal': --pkt-color-brand-neutrals-transparent,
|
|
113
|
-
'button-border-normal': --pkt-color-
|
|
114
|
-
'button-text-normal': --pkt-color-
|
|
115
|
+
'button-border-normal': --pkt-color-button-secondary-border-normal,
|
|
116
|
+
'button-text-normal': --pkt-color-button-secondary-text-normal,
|
|
115
117
|
'button-background-focus': --pkt-color-brand-blue-500,
|
|
116
|
-
'button-border-focus': --pkt-color-
|
|
118
|
+
'button-border-focus': --pkt-color-button-secondary-border-focus,
|
|
119
|
+
// TODO: Figma sier button-secondary-text-focus, men mangler
|
|
120
|
+
// button-secondary-background-focus. Avventer avklaring.
|
|
117
121
|
'button-text-focus': --pkt-color-brand-dark-blue-1000,
|
|
118
122
|
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
119
|
-
'button-background-hover': --pkt-color-
|
|
123
|
+
'button-background-hover': --pkt-color-button-secondary-background-hover,
|
|
120
124
|
'button-border-hover': --pkt-color-brand-blue-500,
|
|
121
|
-
'button-text-hover': --pkt-color-
|
|
122
|
-
'button-background-active': --pkt-color-
|
|
125
|
+
'button-text-hover': --pkt-color-button-secondary-text-hover,
|
|
126
|
+
'button-background-active': --pkt-color-button-secondary-background-active,
|
|
123
127
|
'button-border-active': --pkt-color-brand-blue-500,
|
|
124
|
-
'button-text-active': --pkt-color-
|
|
125
|
-
'button-background-disabled': --pkt-color-
|
|
126
|
-
'button-border-disabled': --pkt-color-
|
|
127
|
-
'button-text-disabled': --pkt-color-
|
|
128
|
+
'button-text-active': --pkt-color-button-secondary-text-active,
|
|
129
|
+
'button-background-disabled': --pkt-color-button-secondary-background-disabled,
|
|
130
|
+
'button-border-disabled': --pkt-color-button-secondary-background-disabled,
|
|
131
|
+
'button-text-disabled': --pkt-color-button-secondary-text-disabled,
|
|
128
132
|
),
|
|
129
133
|
),
|
|
130
134
|
'tertiary': (
|
|
131
135
|
'light': (
|
|
132
136
|
'button-background-normal': --pkt-color-brand-neutrals-transparent,
|
|
133
137
|
'button-border-normal': --pkt-color-brand-neutrals-transparent,
|
|
134
|
-
'button-text-normal': --pkt-color-
|
|
135
|
-
'button-background-focus': --pkt-color-
|
|
136
|
-
'button-border-focus': --pkt-color-
|
|
137
|
-
'button-text-focus': --pkt-color-
|
|
138
|
+
'button-text-normal': --pkt-color-button-tertiary-text-normal,
|
|
139
|
+
'button-background-focus': --pkt-color-button-tertiary-background-focus,
|
|
140
|
+
'button-border-focus': --pkt-color-button-tertiary-border-focus,
|
|
141
|
+
'button-text-focus': --pkt-color-button-tertiary-text-focus,
|
|
138
142
|
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
139
|
-
'button-background-hover': --pkt-color-
|
|
140
|
-
'button-border-hover': --pkt-color-brand-neutrals-
|
|
141
|
-
'button-text-hover': --pkt-color-
|
|
142
|
-
'button-background-active': --pkt-color-
|
|
143
|
+
'button-background-hover': --pkt-color-button-tertiary-background-hover,
|
|
144
|
+
'button-border-hover': --pkt-color-brand-neutrals-100,
|
|
145
|
+
'button-text-hover': --pkt-color-button-tertiary-text-hover,
|
|
146
|
+
'button-background-active': --pkt-color-button-tertiary-background-active,
|
|
143
147
|
'button-border-active': --pkt-color-brand-warm-blue-1000,
|
|
144
|
-
'button-text-active': --pkt-color-
|
|
145
|
-
'button-background-disabled': --pkt-color-
|
|
146
|
-
'button-border-disabled': --pkt-color-
|
|
147
|
-
'button-text-disabled': --pkt-color-
|
|
148
|
+
'button-text-active': --pkt-color-button-tertiary-text-active,
|
|
149
|
+
'button-background-disabled': --pkt-color-button-tertiary-background-disabled,
|
|
150
|
+
'button-border-disabled': --pkt-color-button-tertiary-background-disabled,
|
|
151
|
+
'button-text-disabled': --pkt-color-button-tertiary-text-disabled,
|
|
148
152
|
),
|
|
149
153
|
'dark': (
|
|
150
154
|
'button-background-normal': --pkt-color-brand-neutrals-transparent,
|
|
151
155
|
'button-border-normal': --pkt-color-brand-neutrals-transparent,
|
|
152
|
-
'button-text-normal': --pkt-color-
|
|
153
|
-
'button-background-focus': --pkt-color-
|
|
154
|
-
'button-border-focus': --pkt-color-
|
|
156
|
+
'button-text-normal': --pkt-color-button-tertiary-text-normal,
|
|
157
|
+
'button-background-focus': --pkt-color-button-tertiary-background-focus,
|
|
158
|
+
'button-border-focus': --pkt-color-button-tertiary-border-focus,
|
|
155
159
|
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
156
|
-
'button-text-focus': --pkt-color-
|
|
157
|
-
'button-background-hover': --pkt-color-
|
|
160
|
+
'button-text-focus': --pkt-color-button-tertiary-text-focus,
|
|
161
|
+
'button-background-hover': --pkt-color-button-tertiary-background-hover,
|
|
158
162
|
'button-border-hover': --pkt-color-brand-dark-blue-700,
|
|
159
|
-
'button-text-hover': --pkt-color-
|
|
160
|
-
'button-background-active': --pkt-color-
|
|
163
|
+
'button-text-hover': --pkt-color-button-tertiary-text-hover,
|
|
164
|
+
'button-background-active': --pkt-color-button-tertiary-background-active,
|
|
161
165
|
'button-border-active': --pkt-color-brand-dark-blue-700,
|
|
162
|
-
'button-text-active': --pkt-color-
|
|
163
|
-
'button-background-disabled': --pkt-color-
|
|
164
|
-
'button-border-disabled': --pkt-color-
|
|
165
|
-
'button-text-disabled': --pkt-color-
|
|
166
|
+
'button-text-active': --pkt-color-button-tertiary-text-active,
|
|
167
|
+
'button-background-disabled': --pkt-color-button-tertiary-background-disabled,
|
|
168
|
+
'button-border-disabled': --pkt-color-button-tertiary-background-disabled,
|
|
169
|
+
'button-text-disabled': --pkt-color-button-tertiary-text-disabled,
|
|
166
170
|
),
|
|
167
171
|
),
|
|
168
172
|
);
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
* 1. Override Firefox's default opacity
|
|
100
100
|
*/
|
|
101
101
|
&::placeholder {
|
|
102
|
-
color: var(--pkt-color-
|
|
102
|
+
color: var(--pkt-color-brand-neutrals-400);
|
|
103
103
|
opacity: 1;
|
|
104
104
|
/* 1 */
|
|
105
105
|
}
|
|
@@ -118,9 +118,9 @@
|
|
|
118
118
|
|
|
119
119
|
&:disabled,
|
|
120
120
|
&[readonly] {
|
|
121
|
-
background-color: var(--pkt-color-brand-neutrals-
|
|
122
|
-
border-color: var(--pkt-color-
|
|
123
|
-
color: var(--pkt-color-
|
|
121
|
+
background-color: var(--pkt-color-brand-neutrals-100);
|
|
122
|
+
border-color: var(--pkt-color-brand-neutrals-400);
|
|
123
|
+
color: var(--pkt-color-brand-neutrals-400);
|
|
124
124
|
cursor: inherit;
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
&.bordered {
|
|
60
60
|
li+li {
|
|
61
|
-
border-left: 1px solid var(--pkt-color-
|
|
61
|
+
border-left: 1px solid var(--pkt-color-brand-neutrals-700);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
@mixin dd-narrow {
|
|
97
97
|
padding: 0 0 0.5em;
|
|
98
98
|
font-weight: 500;
|
|
99
|
-
border-bottom: 1px solid rgba(
|
|
99
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.pkt-dt {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
@include dd-narrow;
|
|
116
116
|
|
|
117
117
|
@include bp('tablet-up') {
|
|
118
|
-
border-bottom: 1px solid rgba(
|
|
118
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
|
|
119
119
|
|
|
120
120
|
@supports (display: grid) {
|
|
121
121
|
padding: 0.25em 0 0.25em 1.25em;
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
@use '
|
|
7
|
-
@use '../abstracts/variables';
|
|
6
|
+
@use '../abstracts/functions';
|
|
8
7
|
@use '../abstracts/mixins/breakpoints' as *;
|
|
9
8
|
|
|
10
9
|
@mixin -section($backgroundColor: none) {
|
|
@@ -21,17 +20,6 @@
|
|
|
21
20
|
@include bp('tablet-up') {
|
|
22
21
|
padding: 1.5rem;
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
/*
|
|
26
|
-
@if luminance($backgroundColor) < 0.4 {
|
|
27
|
-
color: white;
|
|
28
|
-
|
|
29
|
-
a:not([class^='ok-btn']) {
|
|
30
|
-
color: white;
|
|
31
|
-
text-decoration: underline;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
*/
|
|
35
23
|
}
|
|
36
24
|
}
|
|
37
25
|
|
|
@@ -40,52 +28,36 @@
|
|
|
40
28
|
}
|
|
41
29
|
|
|
42
30
|
.pkt-section--dark {
|
|
43
|
-
color:
|
|
44
|
-
@include -section(
|
|
45
|
-
|
|
46
|
-
a.pkt-btn--ter {
|
|
47
|
-
color: white;
|
|
48
|
-
}
|
|
31
|
+
color: functions.color-token('text-body-light');
|
|
32
|
+
@include -section(functions.color-token('surface-strong-dark-blue'));
|
|
49
33
|
}
|
|
50
34
|
|
|
51
35
|
.pkt-section--danger {
|
|
52
|
-
color:
|
|
53
|
-
@include -section(
|
|
54
|
-
|
|
55
|
-
a.pkt-btn--ter {
|
|
56
|
-
color: black;
|
|
57
|
-
}
|
|
36
|
+
color: functions.color-token('text-body-dark');
|
|
37
|
+
@include -section(functions.color-token('surface-strong-red'));
|
|
58
38
|
}
|
|
59
39
|
|
|
60
40
|
.pkt-section--gray,
|
|
61
41
|
.pkt-section--grey {
|
|
62
|
-
@include -section(
|
|
42
|
+
@include -section(functions.color-token('surface-default-gray'));
|
|
63
43
|
}
|
|
64
44
|
|
|
65
45
|
.pkt-section--success {
|
|
66
|
-
color:
|
|
67
|
-
@include -section(
|
|
68
|
-
|
|
69
|
-
a.pkt-btn--ter {
|
|
70
|
-
color: black;
|
|
71
|
-
}
|
|
46
|
+
color: functions.color-token('text-body-dark');
|
|
47
|
+
@include -section(functions.color-token('surface-strong-green'));
|
|
72
48
|
}
|
|
73
49
|
|
|
74
50
|
.pkt-section--warning {
|
|
75
|
-
@include -section(
|
|
51
|
+
@include -section(functions.color-token('surface-strong-yellow'));
|
|
76
52
|
}
|
|
77
53
|
|
|
78
54
|
.pkt-section--info {
|
|
79
|
-
@include -section(
|
|
80
|
-
|
|
81
|
-
a.pkt-btn--ter {
|
|
82
|
-
color: black;
|
|
83
|
-
}
|
|
55
|
+
@include -section(functions.color-token('surface-default-light-blue'));
|
|
84
56
|
}
|
|
85
57
|
|
|
86
58
|
.pkt-section--frame {
|
|
87
|
-
border: 1px solid
|
|
88
|
-
@include -section(white);
|
|
59
|
+
border: 1px solid functions.color-token('brand-neutrals-1000');
|
|
60
|
+
@include -section(functions.color-token('surface-subtle-white'));
|
|
89
61
|
}
|
|
90
62
|
|
|
91
63
|
[class*='ok-section-'] > [class^='ok-title-'] {
|
package/dist/scss/pkt-docs.scss
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@charset "utf-8";
|
|
2
2
|
|
|
3
|
+
@use 'abstracts/functions';
|
|
4
|
+
|
|
3
5
|
// Normalise
|
|
4
6
|
@forward 'normalise';
|
|
5
7
|
|
|
@@ -81,7 +83,7 @@
|
|
|
81
83
|
list-style: none;
|
|
82
84
|
}
|
|
83
85
|
.pkt-linkcard {
|
|
84
|
-
background-color: white;
|
|
86
|
+
background-color: functions.color-token('surface-subtle-white');
|
|
85
87
|
padding: 2.5rem;
|
|
86
88
|
}
|
|
87
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.3.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",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
]
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@oslokommune/punkt-assets": "^
|
|
28
|
+
"@oslokommune/punkt-assets": "^18.0.0",
|
|
29
29
|
"edit-json-file": "^1.8.1",
|
|
30
30
|
"fs-extra": "^11.3.5",
|
|
31
31
|
"prettier": "^3.8.4",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"astro": "^7.2.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "72a1389ecb1c277a463dfe5d2c020d96dd4c7ded"
|
|
66
66
|
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Badge element
|
|
3
|
-
* DEPRECATED - use tag instead
|
|
4
|
-
*/
|
|
5
|
-
.pkt-badge {
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
height: 1.5em;
|
|
8
|
-
margin-inline-start: 0.4em;
|
|
9
|
-
padding: 0.25em 0.4em;
|
|
10
|
-
color: black;
|
|
11
|
-
font-weight: 500;
|
|
12
|
-
font-size: 0.75em;
|
|
13
|
-
line-height: 1em;
|
|
14
|
-
border-radius: 1px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.pkt-badge.pkt-badge--small,
|
|
18
|
-
.pkt-h1 > .pkt-badge,
|
|
19
|
-
.pkt-h2 > .pkt-badge,
|
|
20
|
-
.pkt-h3 > .pkt-badge {
|
|
21
|
-
font-size: 0.5em;
|
|
22
|
-
transform: translateY(-0.25em);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.pkt-btn:not(.pkt-btn--ter) > .pkt-badge {
|
|
26
|
-
color: inherit;
|
|
27
|
-
background: transparent;
|
|
28
|
-
border: 1px solid;
|
|
29
|
-
border-radius: 4px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.pkt-btn--pri:not(.pkt-btn--neg) > .pkt-badge,
|
|
33
|
-
.pkt-btn--neg.pkt-btn--ter > .pkt-badge,
|
|
34
|
-
.pkt-btn--neg.pkt-btn--ghost > .pkt-badge {
|
|
35
|
-
border-color: white;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.pkt-btn--small > .pkt-badge {
|
|
39
|
-
padding-block-start: 0.28em;
|
|
40
|
-
transform: translateY(-0.1em);
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.pkt-badge{display:inline-flex;height:1.5em;margin-inline-start:.4em;padding:.25em .4em;color:#000;font-weight:500;font-size:.75em;line-height:1em;border-radius:1px}.pkt-badge.pkt-badge--small,.pkt-h1>.pkt-badge,.pkt-h2>.pkt-badge,.pkt-h3>.pkt-badge{font-size:.5em;transform:translateY(-0.25em)}.pkt-btn:not(.pkt-btn--ter)>.pkt-badge{color:inherit;background:rgba(0,0,0,0);border:1px solid;border-radius:4px}.pkt-btn--pri:not(.pkt-btn--neg)>.pkt-badge,.pkt-btn--neg.pkt-btn--ter>.pkt-badge,.pkt-btn--neg.pkt-btn--ghost>.pkt-badge{border-color:#fff}.pkt-btn--small>.pkt-badge{padding-block-start:.28em;transform:translateY(-0.1em)}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Badge element
|
|
3
|
-
* DEPRECATED - use tag instead
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@use 'sass:map';
|
|
7
|
-
@use '../abstracts/variables';
|
|
8
|
-
|
|
9
|
-
.pkt-badge {
|
|
10
|
-
display: inline-flex;
|
|
11
|
-
height: 1.5em;
|
|
12
|
-
margin-inline-start: 0.4em;
|
|
13
|
-
padding: 0.25em 0.4em;
|
|
14
|
-
color: black;
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
font-size: 0.75em;
|
|
17
|
-
line-height: 1em;
|
|
18
|
-
background: map.get(variables.$pkt-colors, 'pkt-color-brand-blue-500');
|
|
19
|
-
border-radius: 1px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.pkt-btn>.pkt-badge.pkt-badge--strong,
|
|
23
|
-
.pkt-badge--strong {
|
|
24
|
-
color: map.get(variables.$pkt-colors, 'pkt-color-brand-blue-500');
|
|
25
|
-
background: map.get(variables.$pkt-colors, 'pkt-color-brand-dark-blue-1000');
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.pkt-btn>.pkt-badge.pkt-badge--info,
|
|
29
|
-
.pkt-badge--info {
|
|
30
|
-
background: map.get(variables.$pkt-colors, 'pkt-color-brand-yellow-1000');
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// Reduce size when used inside headings
|
|
34
|
-
.pkt-badge.pkt-badge--small,
|
|
35
|
-
.pkt-h1>.pkt-badge,
|
|
36
|
-
.pkt-h2>.pkt-badge,
|
|
37
|
-
.pkt-h3>.pkt-badge {
|
|
38
|
-
font-size: 0.5em;
|
|
39
|
-
transform: translateY(-0.25em);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// Badges for buttons
|
|
43
|
-
.pkt-btn:not(.pkt-btn--ter)>.pkt-badge {
|
|
44
|
-
color: inherit;
|
|
45
|
-
background: transparent;
|
|
46
|
-
border: 1px solid map.get(variables.$pkt-colors, 'pkt-color-brand-dark-blue-1000');
|
|
47
|
-
border-radius: 4px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.pkt-btn--pri:not(.pkt-btn--neg)>.pkt-badge,
|
|
51
|
-
.pkt-btn--neg.pkt-btn--ter>.pkt-badge,
|
|
52
|
-
.pkt-btn--neg.pkt-btn--ghost>.pkt-badge {
|
|
53
|
-
border-color: white;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Hack to fix pixel alignment on small buttons
|
|
57
|
-
.pkt-btn--small>.pkt-badge {
|
|
58
|
-
padding-block-start: 0.28em;
|
|
59
|
-
transform: translateY(-0.1em);
|
|
60
|
-
}
|