@oslokommune/punkt-css 9.3.2 → 9.4.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 +46 -0
- package/README.md +1 -1
- package/dist/css/components/alert.css +18 -16
- package/dist/css/components/alert.min.css +1 -1
- package/dist/css/components/badge.css +2 -13
- package/dist/css/components/badge.min.css +1 -1
- package/dist/css/components/footer.css +5 -5
- package/dist/css/components/footer.min.css +1 -1
- package/dist/css/components/header.css +20 -11
- package/dist/css/components/header.min.css +1 -1
- package/dist/css/components/inputwrapper.css +21 -16
- package/dist/css/components/inputwrapper.min.css +1 -1
- package/dist/css/components/linkcard.css +21 -12
- package/dist/css/components/linkcard.min.css +1 -1
- package/dist/css/components/messagebox.css +12 -12
- package/dist/css/components/messagebox.min.css +1 -1
- package/dist/css/components/tag.css +126 -40
- package/dist/css/components/tag.min.css +1 -1
- package/dist/css/components/textinput.css +61 -35
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/pkt-base.css +1418 -243
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +286 -160
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-elements.css +547 -344
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +2190 -712
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_colors.scss +108 -0
- package/dist/scss/abstracts/variables/_spacing.scss +12 -10
- package/dist/scss/base/_colors.scss +111 -9
- package/dist/scss/base/_typography.scss +15 -58
- package/dist/scss/components/_alert.scss +28 -25
- package/dist/scss/components/_badge.scss +56 -55
- package/dist/scss/components/_footer.scss +5 -8
- package/dist/scss/components/_header.scss +30 -16
- package/dist/scss/components/_inputwrapper.scss +27 -20
- package/dist/scss/components/_linkcard.scss +41 -16
- package/dist/scss/components/_messagebox.scss +16 -14
- package/dist/scss/components/_tag.scss +150 -41
- package/dist/scss/elements/_button.scss +285 -183
- package/dist/scss/elements/_checkbox-radio.scss +86 -150
- package/dist/scss/elements/_form.scss +26 -24
- package/dist/scss/elements/_hr.scss +1 -1
- package/dist/scss/elements/_input.scss +63 -41
- package/dist/scss/elements/_list.scss +11 -6
- package/dist/scss/elements/_section.scss +8 -8
- package/dist/scss/elements/_table.scss +8 -8
- package/package.json +2 -2
|
@@ -15,21 +15,24 @@
|
|
|
15
15
|
|
|
16
16
|
$-module-name: 'pkt-btn';
|
|
17
17
|
$-sizes: (
|
|
18
|
-
'small': (
|
|
18
|
+
'small': (
|
|
19
|
+
'text-class': 'pkt-txt-14-medium',
|
|
19
20
|
'padding': 0 0.5rem,
|
|
20
21
|
'padding-icon-only': 0 0.5625rem,
|
|
21
22
|
'icon-size': 1.25rem,
|
|
22
23
|
'height': 2.625rem,
|
|
23
24
|
'line-height': 1.1,
|
|
24
25
|
),
|
|
25
|
-
'medium': (
|
|
26
|
+
'medium': (
|
|
27
|
+
'text-class': 'pkt-txt-18-medium',
|
|
26
28
|
'padding': 0 1rem,
|
|
27
29
|
'padding-icon-only': 0 0.625rem,
|
|
28
30
|
'icon-size': 1.5rem,
|
|
29
31
|
'height': 3rem,
|
|
30
32
|
'line-height': 1.1,
|
|
31
33
|
),
|
|
32
|
-
'large': (
|
|
34
|
+
'large': (
|
|
35
|
+
'text-class': 'pkt-txt-24-medium',
|
|
33
36
|
'padding': 0 1rem,
|
|
34
37
|
'padding-icon-only': 0 0.875rem,
|
|
35
38
|
'icon-size': 2rem,
|
|
@@ -39,120 +42,128 @@ $-sizes: (
|
|
|
39
42
|
);
|
|
40
43
|
|
|
41
44
|
$-skins: (
|
|
42
|
-
'primary': (
|
|
43
|
-
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'focus
|
|
48
|
-
'focus
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'hover
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'active
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'disabled
|
|
45
|
+
'primary': (
|
|
46
|
+
'light': (
|
|
47
|
+
'button-background-normal': --pkt-color-brand-dark-blue-1000,
|
|
48
|
+
'button-border-normal': --pkt-color-brand-dark-blue-1000,
|
|
49
|
+
'button-text-normal': --pkt-color-brand-neutrals-white,
|
|
50
|
+
'button-background-focus': --pkt-color-brand-warm-blue-1000,
|
|
51
|
+
'button-border-focus': --pkt-color-brand-warm-blue-1000,
|
|
52
|
+
'button-text-focus': --pkt-color-brand-neutrals-white,
|
|
53
|
+
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
54
|
+
'button-background-hover': --pkt-color-brand-warm-blue-1000,
|
|
55
|
+
'button-border-hover': --pkt-color-brand-warm-blue-1000,
|
|
56
|
+
'button-text-hover': --pkt-color-brand-neutrals-white,
|
|
57
|
+
'button-background-active': --pkt-color-brand-warm-blue-1000,
|
|
58
|
+
'button-border-active': --pkt-color-brand-warm-blue-1000,
|
|
59
|
+
'button-text-active': --pkt-color-brand-neutrals-white,
|
|
60
|
+
'button-background-disabled': --pkt-color-brand-neutrals-100,
|
|
61
|
+
'button-border-disabled': --pkt-color-brand-neutrals-100,
|
|
62
|
+
'button-text-disabled': --pkt-color-grays-gray-500,
|
|
58
63
|
),
|
|
59
|
-
'dark': (
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'focus
|
|
64
|
-
'focus
|
|
65
|
-
'focus
|
|
66
|
-
'
|
|
67
|
-
'hover
|
|
68
|
-
'hover
|
|
69
|
-
'
|
|
70
|
-
'active
|
|
71
|
-
'active
|
|
72
|
-
'
|
|
73
|
-
'disabled
|
|
74
|
-
'disabled
|
|
64
|
+
'dark': (
|
|
65
|
+
'button-background-normal': --pkt-color-brand-blue-500,
|
|
66
|
+
'button-border-normal': --pkt-color-brand-blue-500,
|
|
67
|
+
'button-text-normal': --pkt-color-brand-dark-blue-1000,
|
|
68
|
+
'button-background-focus': --pkt-color-brand-blue-1000,
|
|
69
|
+
'button-border-focus': --pkt-color-brand-blue-1000,
|
|
70
|
+
'button-text-focus': --pkt-color-brand-dark-blue-1000,
|
|
71
|
+
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
72
|
+
'button-background-hover': --pkt-color-brand-blue-1000,
|
|
73
|
+
'button-border-hover': --pkt-color-brand-blue-1000,
|
|
74
|
+
'button-text-hover': --pkt-color-brand-dark-blue-1000,
|
|
75
|
+
'button-background-active': --pkt-color-brand-blue-1000,
|
|
76
|
+
'button-border-active': --pkt-color-brand-blue-1000,
|
|
77
|
+
'button-text-active': --pkt-color-brand-dark-blue-1000,
|
|
78
|
+
'button-background-disabled': --pkt-color-brand-neutrals-100,
|
|
79
|
+
'button-border-disabled': --pkt-color-brand-neutrals-100,
|
|
80
|
+
'button-text-disabled': --pkt-color-grays-gray-600,
|
|
75
81
|
),
|
|
76
82
|
),
|
|
77
|
-
'secondary': (
|
|
78
|
-
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'focus
|
|
83
|
-
'focus
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'hover
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'active
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'disabled
|
|
83
|
+
'secondary': (
|
|
84
|
+
'light': (
|
|
85
|
+
'button-background-normal': --pkt-color-brand-neutrals-transparent,
|
|
86
|
+
'button-border-normal': --pkt-color-brand-dark-blue-1000,
|
|
87
|
+
'button-text-normal': --pkt-color-brand-dark-blue-1000,
|
|
88
|
+
'button-background-focus': --pkt-color-brand-warm-blue-1000,
|
|
89
|
+
'button-border-focus': --pkt-color-brand-warm-blue-1000,
|
|
90
|
+
'button-text-focus': --pkt-color-brand-neutrals-white,
|
|
91
|
+
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
92
|
+
'button-background-hover': --pkt-color-brand-warm-blue-1000,
|
|
93
|
+
'button-border-hover': --pkt-color-brand-warm-blue-1000,
|
|
94
|
+
'button-text-hover': --pkt-color-brand-neutrals-white,
|
|
95
|
+
'button-background-active': --pkt-color-brand-warm-blue-1000,
|
|
96
|
+
'button-border-active': --pkt-color-brand-warm-blue-1000,
|
|
97
|
+
'button-text-active': --pkt-color-brand-neutrals-white,
|
|
98
|
+
'button-background-disabled': --pkt-color-brand-neutrals-100,
|
|
99
|
+
'button-border-disabled': --pkt-color-brand-neutrals-100,
|
|
100
|
+
'button-text-disabled': --pkt-color-grays-gray-600,
|
|
93
101
|
),
|
|
94
|
-
'dark': (
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'focus
|
|
99
|
-
'focus
|
|
100
|
-
'focus
|
|
101
|
-
'
|
|
102
|
-
'hover
|
|
103
|
-
'hover
|
|
104
|
-
'
|
|
105
|
-
'active
|
|
106
|
-
'active
|
|
107
|
-
'
|
|
108
|
-
'disabled
|
|
109
|
-
'disabled
|
|
102
|
+
'dark': (
|
|
103
|
+
'button-background-normal': --pkt-color-brand-neutrals-transparent,
|
|
104
|
+
'button-border-normal': --pkt-color-brand-neutrals-white,
|
|
105
|
+
'button-text-normal': --pkt-color-brand-neutrals-white,
|
|
106
|
+
'button-background-focus': --pkt-color-brand-blue-500,
|
|
107
|
+
'button-border-focus': --pkt-color-brand-blue-500,
|
|
108
|
+
'button-text-focus': --pkt-color-brand-dark-blue-1000,
|
|
109
|
+
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
110
|
+
'button-background-hover': --pkt-color-brand-blue-500,
|
|
111
|
+
'button-border-hover': --pkt-color-brand-blue-500,
|
|
112
|
+
'button-text-hover': --pkt-color-brand-dark-blue-1000,
|
|
113
|
+
'button-background-active': --pkt-color-brand-blue-500,
|
|
114
|
+
'button-border-active': --pkt-color-brand-blue-500,
|
|
115
|
+
'button-text-active': --pkt-color-brand-dark-blue-1000,
|
|
116
|
+
'button-background-disabled': --pkt-color-grays-gray-100,
|
|
117
|
+
'button-border-disabled': --pkt-color-grays-gray-100,
|
|
118
|
+
'button-text-disabled': --pkt-color-grays-gray-600,
|
|
110
119
|
),
|
|
111
120
|
),
|
|
112
|
-
'tertiary': (
|
|
113
|
-
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
117
|
-
'focus
|
|
118
|
-
'
|
|
119
|
-
'
|
|
120
|
-
'
|
|
121
|
-
'
|
|
122
|
-
'
|
|
123
|
-
'
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
'
|
|
121
|
+
'tertiary': (
|
|
122
|
+
'light': (
|
|
123
|
+
'button-background-normal': --pkt-color-brand-neutrals-transparent,
|
|
124
|
+
'button-border-normal': --pkt-color-brand-neutrals-transparent,
|
|
125
|
+
'button-text-normal': --pkt-color-brand-dark-blue-1000,
|
|
126
|
+
'button-background-focus': --pkt-color-brand-neutrals-200,
|
|
127
|
+
'button-border-focus': --pkt-color-brand-warm-blue-1000,
|
|
128
|
+
'button-text-focus': --pkt-color-brand-warm-blue-1000,
|
|
129
|
+
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
130
|
+
'button-background-hover': --pkt-color-brand-neutrals-200,
|
|
131
|
+
'button-border-hover': --pkt-color-brand-neutrals-200,
|
|
132
|
+
'button-text-hover': --pkt-color-brand-warm-blue-1000,
|
|
133
|
+
'button-background-active': --pkt-color-brand-warm-blue-1000,
|
|
134
|
+
'button-border-active': --pkt-color-brand-warm-blue-1000,
|
|
135
|
+
'button-text-active': --pkt-color-brand-neutrals-white,
|
|
136
|
+
'button-background-disabled': --pkt-color-brand-neutrals-100,
|
|
137
|
+
'button-border-disabled': --pkt-color-brand-neutrals-100,
|
|
138
|
+
'button-text-disabled': --pkt-color-grays-gray-600,
|
|
127
139
|
),
|
|
128
|
-
'dark': (
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'focus
|
|
133
|
-
'focus
|
|
134
|
-
'focus
|
|
135
|
-
'
|
|
136
|
-
'hover
|
|
137
|
-
'hover
|
|
138
|
-
'
|
|
139
|
-
'active
|
|
140
|
-
'active
|
|
141
|
-
'
|
|
142
|
-
'disabled
|
|
143
|
-
'disabled
|
|
140
|
+
'dark': (
|
|
141
|
+
'button-background-normal': --pkt-color-brand-neutrals-transparent,
|
|
142
|
+
'button-border-normal': --pkt-color-brand-neutrals-transparent,
|
|
143
|
+
'button-text-normal': --pkt-color-brand-neutrals-white,
|
|
144
|
+
'button-background-focus': --pkt-color-brand-dark-blue-700,
|
|
145
|
+
'button-border-focus': --pkt-color-brand-dark-blue-700,
|
|
146
|
+
'border-states-focus': --pkt-color-brand-purple-1000,
|
|
147
|
+
'button-text-focus': --pkt-color-brand-neutrals-white,
|
|
148
|
+
'button-background-hover': --pkt-color-brand-dark-blue-700,
|
|
149
|
+
'button-border-hover': --pkt-color-brand-dark-blue-700,
|
|
150
|
+
'button-text-hover': --pkt-color-brand-neutrals-white,
|
|
151
|
+
'button-background-active': --pkt-color-brand-dark-blue-700,
|
|
152
|
+
'button-border-active': --pkt-color-brand-dark-blue-700,
|
|
153
|
+
'button-text-active': --pkt-color-brand-neutrals-white,
|
|
154
|
+
'button-background-disabled': --pkt-color-brand-neutrals-100,
|
|
155
|
+
'button-border-disabled': --pkt-color-brand-neutrals-100,
|
|
156
|
+
'button-text-disabled': --pkt-color-grays-gray-600,
|
|
144
157
|
),
|
|
145
158
|
),
|
|
146
159
|
);
|
|
147
160
|
|
|
148
161
|
@mixin -print-skin-as-css-vars($name, $o, $mode) {
|
|
149
|
-
|
|
150
|
-
@each $key,
|
|
151
|
-
$value in $o {
|
|
152
|
-
|
|
162
|
+
@each $key, $value in $o {
|
|
153
163
|
// Only print primary skin and css vars that differ from primary
|
|
154
|
-
@if $name =='primary' or $value !=map.get($-skins, 'primary', $mode, $key)
|
|
155
|
-
|
|
164
|
+
@if $name == 'primary' or $value !=map.get($-skins, 'primary', $mode, $key)
|
|
165
|
+
{
|
|
166
|
+
--pkt-color-#{$key}: var(#{$value});
|
|
156
167
|
}
|
|
157
168
|
}
|
|
158
169
|
}
|
|
@@ -196,9 +207,7 @@ $-skins: (
|
|
|
196
207
|
@extend %sr-only;
|
|
197
208
|
}
|
|
198
209
|
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
@else {
|
|
210
|
+
} @else {
|
|
202
211
|
&--#{$name} {
|
|
203
212
|
@include typography.get-text(map.get($o, 'text-class'));
|
|
204
213
|
height: map.get($o, 'height');
|
|
@@ -226,33 +235,113 @@ $-skins: (
|
|
|
226
235
|
}
|
|
227
236
|
|
|
228
237
|
.#{$-module-name}#{$css-skin} {
|
|
229
|
-
@include -print-skin-as-css-vars(
|
|
238
|
+
@include -print-skin-as-css-vars(
|
|
239
|
+
$name,
|
|
230
240
|
map.get($-skins, $name, 'light'),
|
|
231
241
|
'light'
|
|
232
242
|
);
|
|
233
243
|
}
|
|
234
244
|
|
|
235
245
|
@at-root [data-mode='dark'] .#{$-module-name}#{$css-skin} {
|
|
236
|
-
@include -print-skin-as-css-vars(
|
|
246
|
+
@include -print-skin-as-css-vars(
|
|
247
|
+
$name,
|
|
237
248
|
map.get($-skins, $name, 'dark'),
|
|
238
249
|
'dark'
|
|
239
250
|
);
|
|
240
251
|
|
|
241
252
|
// Dark mode
|
|
242
|
-
&--green-dark
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
253
|
+
&--green-dark {
|
|
254
|
+
--pkt-color-button-background-normal: var(
|
|
255
|
+
--pkt-color-brand-dark-green-1000
|
|
256
|
+
);
|
|
257
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-dark-green-1000);
|
|
258
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&--green-dark-outline {
|
|
262
|
+
--pkt-color-button-background-normal: var(
|
|
263
|
+
--pkt-color-brand-neutrals-transparent
|
|
264
|
+
);
|
|
265
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-dark-green-1000);
|
|
266
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&--green {
|
|
270
|
+
--pkt-color-button-background-normal: var(--pkt-color-brand-green-1000);
|
|
271
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-green-1000);
|
|
272
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&--green-outline {
|
|
276
|
+
--pkt-color-button-background-normal: var(
|
|
277
|
+
--pkt-color-brand-neutrals-transparent
|
|
278
|
+
);
|
|
279
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-green-1000);
|
|
280
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
&--blue {
|
|
284
|
+
--pkt-color-button-background-normal: var(--pkt-color-brand-blue-1000);
|
|
285
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-blue-1000);
|
|
286
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
&--blue-outline {
|
|
290
|
+
--pkt-color-button-background-normal: var(
|
|
291
|
+
--pkt-color-brand-neutrals-transparent
|
|
292
|
+
);
|
|
293
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-blue-1000);
|
|
294
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
&--beige-light {
|
|
298
|
+
--pkt-color-button-background-normal: var(
|
|
299
|
+
--pkt-color-brand-light-beige-1000
|
|
300
|
+
);
|
|
301
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-light-beige-1000);
|
|
302
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&--beige-dark-outline {
|
|
306
|
+
--pkt-color-button-background-normal: var(
|
|
307
|
+
--pkt-color-brand-neutrals-transparent
|
|
308
|
+
);
|
|
309
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-dark-beige-1000);
|
|
310
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&--yellow {
|
|
314
|
+
--pkt-color-button-background-normal: var(--pkt-color-brand-yellow-1000);
|
|
315
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-yellow-1000);
|
|
316
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&--yellow-outline {
|
|
320
|
+
--pkt-color-button-background-normal: var(
|
|
321
|
+
--pkt-color-brand-neutrals-transparent
|
|
322
|
+
);
|
|
323
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-yellow-1000);
|
|
324
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&--red {
|
|
328
|
+
--pkt-color-button-background-normal: var(--pkt-color-brand-red-1000);
|
|
329
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-red-1000);
|
|
330
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
331
|
+
}
|
|
332
|
+
|
|
247
333
|
&--red-outline {
|
|
248
|
-
color: var(
|
|
334
|
+
--pkt-color-button-background-normal: var(
|
|
335
|
+
--pkt-color-brand-neutrals-transparent
|
|
336
|
+
);
|
|
337
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-red-1000);
|
|
338
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
|
|
249
339
|
}
|
|
250
340
|
}
|
|
251
341
|
}
|
|
252
342
|
|
|
253
343
|
// Print css vars for hvert skin
|
|
254
|
-
@each $key,
|
|
255
|
-
$value in $-skins {
|
|
344
|
+
@each $key, $value in $-skins {
|
|
256
345
|
@include -skin($key, map.get($value, 'light'));
|
|
257
346
|
}
|
|
258
347
|
|
|
@@ -269,9 +358,9 @@ $value in $-skins {
|
|
|
269
358
|
-ms-user-select: none;
|
|
270
359
|
user-select: none;
|
|
271
360
|
vertical-align: top;
|
|
272
|
-
background-color: var(--
|
|
273
|
-
border: 2px solid var(--
|
|
274
|
-
color: var(--
|
|
361
|
+
background-color: var(--pkt-color-button-background-normal);
|
|
362
|
+
border: 2px solid var(--pkt-color-button-border-normal);
|
|
363
|
+
color: var(--pkt-color-button-text-normal);
|
|
275
364
|
text-decoration: none;
|
|
276
365
|
text-decoration-thickness: 1px;
|
|
277
366
|
text-underline-offset: 0.3em;
|
|
@@ -279,7 +368,7 @@ $value in $-skins {
|
|
|
279
368
|
align-items: center;
|
|
280
369
|
column-gap: 0.5rem;
|
|
281
370
|
|
|
282
|
-
&[class*='pkt-btn--icon']
|
|
371
|
+
&[class*='pkt-btn--icon'] > .pkt-btn__icon {
|
|
283
372
|
display: flex;
|
|
284
373
|
}
|
|
285
374
|
|
|
@@ -291,51 +380,49 @@ $value in $-skins {
|
|
|
291
380
|
|
|
292
381
|
&:link,
|
|
293
382
|
&:visited {
|
|
294
|
-
color: var(--
|
|
383
|
+
color: var(--pkt-color-button-text-normal);
|
|
295
384
|
}
|
|
296
385
|
|
|
297
386
|
@at-root a.#{$-module-name}:focus,
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
background-color: var(--
|
|
301
|
-
color: var(--
|
|
302
|
-
border-color: var(--
|
|
303
|
-
outline: 4px solid var(--
|
|
387
|
+
&:enabled:focus,
|
|
388
|
+
&.#{$-module-name}--focus {
|
|
389
|
+
background-color: var(--pkt-color-button-background-focus);
|
|
390
|
+
color: var(--pkt-color-button-text-focus);
|
|
391
|
+
border-color: var(--pkt-color-button-border-focus);
|
|
392
|
+
outline: 4px solid var(--pkt-color-border-states-focus);
|
|
304
393
|
text-decoration: none;
|
|
305
394
|
}
|
|
306
395
|
|
|
307
396
|
@at-root a.#{$-module-name}:hover,
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
background-color: var(--
|
|
311
|
-
border-color: var(--
|
|
312
|
-
color: var(--
|
|
397
|
+
&:enabled:hover,
|
|
398
|
+
&.#{$-module-name}--hover {
|
|
399
|
+
background-color: var(--pkt-color-button-background-hover);
|
|
400
|
+
border-color: var(--pkt-color-button-border-hover);
|
|
401
|
+
color: var(--pkt-color-button-text-hover);
|
|
313
402
|
outline: 0;
|
|
314
403
|
text-decoration: underline;
|
|
315
404
|
}
|
|
316
405
|
|
|
317
406
|
@at-root a.#{$-module-name}:active,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
background-color: var(--
|
|
322
|
-
border-color: var(--
|
|
323
|
-
color: var(--
|
|
407
|
+
&:enabled:active,
|
|
408
|
+
&.#{$-module-name}--active,
|
|
409
|
+
&.#{$-module-name}--active:hover {
|
|
410
|
+
background-color: var(--pkt-color-button-background-active);
|
|
411
|
+
border-color: var(--pkt-color-button-border-active);
|
|
412
|
+
color: var(--pkt-color-button-text-active);
|
|
324
413
|
outline: 0;
|
|
325
414
|
text-decoration: none;
|
|
326
415
|
}
|
|
327
416
|
|
|
328
417
|
&:disabled {
|
|
329
|
-
background-color: var(--
|
|
330
|
-
border-color: var(--
|
|
331
|
-
color: var(--
|
|
418
|
+
background-color: var(--pkt-color-button-background-disabled);
|
|
419
|
+
border-color: var(--pkt-color-button-border-disabled);
|
|
420
|
+
color: var(--pkt-color-button-text-disabled);
|
|
332
421
|
cursor: inherit;
|
|
333
422
|
}
|
|
334
423
|
|
|
335
|
-
|
|
336
424
|
// button sizes & variants
|
|
337
|
-
@each $key,
|
|
338
|
-
$value in $-sizes {
|
|
425
|
+
@each $key, $value in $-sizes {
|
|
339
426
|
@include -size($key, $value);
|
|
340
427
|
}
|
|
341
428
|
|
|
@@ -344,77 +431,92 @@ $value in $-skins {
|
|
|
344
431
|
border: 0;
|
|
345
432
|
}
|
|
346
433
|
|
|
347
|
-
|
|
348
|
-
// button colors
|
|
434
|
+
// button colors modifiers
|
|
349
435
|
&--green-dark {
|
|
350
|
-
--
|
|
351
|
-
|
|
352
|
-
|
|
436
|
+
--pkt-color-button-background-normal: var(
|
|
437
|
+
--pkt-color-brand-dark-green-1000
|
|
438
|
+
);
|
|
439
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-dark-green-1000);
|
|
440
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-neutrals-white);
|
|
353
441
|
}
|
|
354
442
|
|
|
355
443
|
&--green-dark-outline {
|
|
356
|
-
--
|
|
357
|
-
|
|
358
|
-
|
|
444
|
+
--pkt-color-button-background-normal: var(
|
|
445
|
+
--pkt-color-brand-neutrals-transparent
|
|
446
|
+
);
|
|
447
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-dark-green-1000);
|
|
448
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
359
449
|
}
|
|
360
450
|
|
|
361
451
|
&--green {
|
|
362
|
-
--
|
|
363
|
-
--
|
|
364
|
-
--
|
|
452
|
+
--pkt-color-button-background-normal: var(--pkt-color-brand-green-1000);
|
|
453
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-green-1000);
|
|
454
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
365
455
|
}
|
|
366
456
|
|
|
367
457
|
&--green-outline {
|
|
368
|
-
--
|
|
369
|
-
|
|
370
|
-
|
|
458
|
+
--pkt-color-button-background-normal: var(
|
|
459
|
+
--pkt-color-brand-neutrals-transparent
|
|
460
|
+
);
|
|
461
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-green-1000);
|
|
462
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
371
463
|
}
|
|
372
464
|
|
|
373
465
|
&--blue {
|
|
374
|
-
--
|
|
375
|
-
--
|
|
376
|
-
--
|
|
466
|
+
--pkt-color-button-background-normal: var(--pkt-color-brand-blue-1000);
|
|
467
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-blue-1000);
|
|
468
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
377
469
|
}
|
|
378
470
|
|
|
379
471
|
&--blue-outline {
|
|
380
|
-
--
|
|
381
|
-
|
|
382
|
-
|
|
472
|
+
--pkt-color-button-background-normal: var(
|
|
473
|
+
--pkt-color-brand-neutrals-transparent
|
|
474
|
+
);
|
|
475
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-blue-1000);
|
|
476
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
383
477
|
}
|
|
384
478
|
|
|
385
479
|
&--beige-light {
|
|
386
|
-
--
|
|
387
|
-
|
|
388
|
-
|
|
480
|
+
--pkt-color-button-background-normal: var(
|
|
481
|
+
--pkt-color-brand-light-beige-1000
|
|
482
|
+
);
|
|
483
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-light-beige-1000);
|
|
484
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
389
485
|
}
|
|
390
486
|
|
|
391
487
|
&--beige-dark-outline {
|
|
392
|
-
--
|
|
393
|
-
|
|
394
|
-
|
|
488
|
+
--pkt-color-button-background-normal: var(
|
|
489
|
+
--pkt-color-brand-neutrals-transparent
|
|
490
|
+
);
|
|
491
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-dark-beige-1000);
|
|
492
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
395
493
|
}
|
|
396
494
|
|
|
397
495
|
&--yellow {
|
|
398
|
-
--
|
|
399
|
-
--
|
|
400
|
-
--
|
|
496
|
+
--pkt-color-button-background-normal: var(--pkt-color-brand-yellow-1000);
|
|
497
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-yellow-1000);
|
|
498
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
401
499
|
}
|
|
402
500
|
|
|
403
501
|
&--yellow-outline {
|
|
404
|
-
--
|
|
405
|
-
|
|
406
|
-
|
|
502
|
+
--pkt-color-button-background-normal: var(
|
|
503
|
+
--pkt-color-brand-neutrals-transparent
|
|
504
|
+
);
|
|
505
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-yellow-1000);
|
|
506
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
407
507
|
}
|
|
408
508
|
|
|
409
509
|
&--red {
|
|
410
|
-
--
|
|
411
|
-
--
|
|
412
|
-
--
|
|
510
|
+
--pkt-color-button-background-normal: var(--pkt-color-brand-red-1000);
|
|
511
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-red-1000);
|
|
512
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
413
513
|
}
|
|
414
514
|
|
|
415
515
|
&--red-outline {
|
|
416
|
-
--
|
|
417
|
-
|
|
418
|
-
|
|
516
|
+
--pkt-color-button-background-normal: var(
|
|
517
|
+
--pkt-color-brand-neutrals-transparent
|
|
518
|
+
);
|
|
519
|
+
--pkt-color-button-border-normal: var(--pkt-color-brand-red-1000);
|
|
520
|
+
--pkt-color-button-text-normal: var(--pkt-color-brand-dark-blue-1000);
|
|
419
521
|
}
|
|
420
522
|
}
|