@oslokommune/punkt-css 12.32.0 → 12.32.8
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/elements/button.css +9 -11
- package/dist/css/elements/button.min.css +1 -1
- package/dist/css/pkt-elements.css +9 -11
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +9 -11
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/elements/_button.scss +26 -27
- package/dist/scss/pkt-base.scss +0 -2
- package/package.json +2 -2
|
@@ -194,7 +194,7 @@ $-skins: (
|
|
|
194
194
|
|
|
195
195
|
// button variants (base)
|
|
196
196
|
&--label-only {
|
|
197
|
-
|
|
197
|
+
.pkt-btn__icon:not(.pkt-btn__spinner) {
|
|
198
198
|
display: none;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
@@ -214,7 +214,7 @@ $-skins: (
|
|
|
214
214
|
&--icon-only {
|
|
215
215
|
padding: map.get($o, 'padding-icon-only');
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
.pkt-btn__text {
|
|
218
218
|
@extend %sr-only;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
@@ -234,7 +234,7 @@ $-skins: (
|
|
|
234
234
|
width: map.get($o, 'icon-size');
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
&--#{$name}
|
|
237
|
+
&--#{$name}.pkt-btn--icon-only {
|
|
238
238
|
padding: map.get($o, 'padding-icon-only');
|
|
239
239
|
}
|
|
240
240
|
}
|
|
@@ -247,11 +247,11 @@ $-skins: (
|
|
|
247
247
|
$css-skin: --#{$name};
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
.pkt-btn#{$css-skin} {
|
|
251
251
|
@include -print-skin-as-css-vars($name, map.get($-skins, $name, 'light'), 'light');
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
@at-root [data-mode='dark']
|
|
254
|
+
@at-root [data-mode='dark'] .pkt-btn#{$css-skin} {
|
|
255
255
|
@include -print-skin-as-css-vars($name, map.get($-skins, $name, 'dark'), 'dark');
|
|
256
256
|
|
|
257
257
|
// Dark mode
|
|
@@ -335,7 +335,7 @@ $-skins: (
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
// Selve knappe-klassen
|
|
338
|
-
|
|
338
|
+
.pkt-btn {
|
|
339
339
|
border-radius: 0;
|
|
340
340
|
cursor: pointer;
|
|
341
341
|
display: inline-flex;
|
|
@@ -355,16 +355,8 @@ $-skins: (
|
|
|
355
355
|
text-align: left;
|
|
356
356
|
align-items: center;
|
|
357
357
|
column-gap: 0.5rem;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
// diven har fått et eget klassenavn for å kunne style den separat slik at det ikke blir konflikter med de som bruker klassene våre direkte
|
|
361
|
-
.pkt-btn__element-content {
|
|
362
|
-
display: inline-flex;
|
|
363
|
-
flex-direction: row;
|
|
364
|
-
align-items: center;
|
|
365
|
-
justify-content: center;
|
|
366
|
-
gap: 0.5rem;
|
|
367
|
-
}
|
|
358
|
+
-webkit-appearance: none;
|
|
359
|
+
appearance: none;
|
|
368
360
|
|
|
369
361
|
// button sizes & variants
|
|
370
362
|
@each $key, $value in $-sizes {
|
|
@@ -386,10 +378,15 @@ $-skins: (
|
|
|
386
378
|
color: var(--pkt-color-button-text-normal);
|
|
387
379
|
}
|
|
388
380
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
381
|
+
&:focus {
|
|
382
|
+
outline: none;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
@at-root a.pkt-btn:focus-visible,
|
|
386
|
+
div.pkt-btn:not([data-disabled]):focus-visible,
|
|
387
|
+
&:enabled:focus-visible,
|
|
388
|
+
&.pkt-btn:focus-visible,
|
|
389
|
+
&.pkt-btn--focus {
|
|
393
390
|
background-color: var(--pkt-color-button-background-focus);
|
|
394
391
|
color: var(--pkt-color-button-text-focus);
|
|
395
392
|
border-color: var(--pkt-color-button-border-focus);
|
|
@@ -397,10 +394,11 @@ $-skins: (
|
|
|
397
394
|
text-decoration: none;
|
|
398
395
|
}
|
|
399
396
|
|
|
400
|
-
@at-root a
|
|
401
|
-
div
|
|
397
|
+
@at-root a.pkt-btn:hover,
|
|
398
|
+
div.pkt-btn:not([data-disabled]):hover,
|
|
402
399
|
&:enabled:hover,
|
|
403
|
-
|
|
400
|
+
&:hover:not(:disabled):not([disabled]):not([data-disabled]),
|
|
401
|
+
&.pkt-btn--hover {
|
|
404
402
|
background-color: var(--pkt-color-button-background-hover);
|
|
405
403
|
border-color: var(--pkt-color-button-border-hover);
|
|
406
404
|
color: var(--pkt-color-button-text-hover);
|
|
@@ -408,11 +406,12 @@ $-skins: (
|
|
|
408
406
|
text-decoration: underline;
|
|
409
407
|
}
|
|
410
408
|
|
|
411
|
-
@at-root a
|
|
412
|
-
div
|
|
409
|
+
@at-root a.pkt-btn:active,
|
|
410
|
+
div.pkt-btn:not([data-disabled]):active,
|
|
413
411
|
&:enabled:active,
|
|
414
|
-
|
|
415
|
-
|
|
412
|
+
&:active:not(:disabled):not([disabled]):not([data-disabled]),
|
|
413
|
+
&.pkt-btn--active,
|
|
414
|
+
&.pkt-btn--active:hover {
|
|
416
415
|
background-color: var(--pkt-color-button-background-active);
|
|
417
416
|
border-color: var(--pkt-color-button-border-active);
|
|
418
417
|
color: var(--pkt-color-button-text-active);
|
package/dist/scss/pkt-base.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "12.32.
|
|
3
|
+
"version": "12.32.8",
|
|
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": "2be6c93ef32da3656e4c88367201849e772d0017"
|
|
58
58
|
}
|