@oslokommune/punkt-css 17.0.7 → 17.0.10
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 +39 -0
- package/dist/css/components/combobox.css +12 -18
- package/dist/css/components/combobox.min.css +1 -1
- package/dist/css/components/tag.css +61 -45
- package/dist/css/components/tag.min.css +1 -1
- package/dist/css/pkt-base.css +106 -107
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +73 -629
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +207 -441
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-elements.css +26 -72
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +207 -441
- package/dist/css/pkt.layer.css +24474 -0
- package/dist/css/pkt.layer.min.css +1 -0
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/base/_defaults.scss +5 -0
- package/dist/scss/base/_index.scss +1 -0
- package/dist/scss/base/_link.scss +136 -0
- package/dist/scss/base/_typography.scss +0 -139
- package/dist/scss/components/_combobox.scss +40 -41
- package/dist/scss/components/_index.scss +0 -2
- package/dist/scss/components/_tag.scss +37 -0
- package/dist/scss/elements/_index.scss +0 -1
- package/dist/scss/pkt.layer.scss +8 -0
- package/package.json +2 -2
- package/dist/css/components/preview.css +0 -180
- package/dist/css/components/preview.min.css +0 -1
- package/dist/css/components/textinput.css +0 -385
- package/dist/css/components/textinput.min.css +0 -1
- package/dist/css/elements/select.css +0 -419
- package/dist/css/elements/select.min.css +0 -1
- package/dist/scss/components/_preview.scss +0 -191
- package/dist/scss/components/_textinput.scss +0 -13
- package/dist/scss/elements/_select.scss +0 -13
package/dist/css/pkt-base.css
CHANGED
|
@@ -314,6 +314,10 @@ body {
|
|
|
314
314
|
scroll-behavior: smooth;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
.pkt-contents {
|
|
318
|
+
display: contents;
|
|
319
|
+
}
|
|
320
|
+
|
|
317
321
|
/*
|
|
318
322
|
* Typografi
|
|
319
323
|
*
|
|
@@ -346,109 +350,6 @@ strong {
|
|
|
346
350
|
font-weight: 500;
|
|
347
351
|
}
|
|
348
352
|
|
|
349
|
-
a,
|
|
350
|
-
.pkt-link-button {
|
|
351
|
-
color: var(--pkt-color-text-action-normal);
|
|
352
|
-
text-decoration: underline;
|
|
353
|
-
word-wrap: break-word;
|
|
354
|
-
cursor: pointer;
|
|
355
|
-
}
|
|
356
|
-
a span,
|
|
357
|
-
.pkt-link-button span {
|
|
358
|
-
color: inherit;
|
|
359
|
-
text-decoration: inherit;
|
|
360
|
-
}
|
|
361
|
-
a:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover),
|
|
362
|
-
.pkt-link-button:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover) {
|
|
363
|
-
color: inherit;
|
|
364
|
-
}
|
|
365
|
-
a:hover, a.pkt-link--hover,
|
|
366
|
-
.pkt-link-button:hover,
|
|
367
|
-
.pkt-link-button.pkt-link--hover {
|
|
368
|
-
color: var(--pkt-color-text-action-active);
|
|
369
|
-
text-decoration: underline;
|
|
370
|
-
}
|
|
371
|
-
a:hover svg, a.pkt-link--hover svg,
|
|
372
|
-
.pkt-link-button:hover svg,
|
|
373
|
-
.pkt-link-button.pkt-link--hover svg {
|
|
374
|
-
--fg-color: currentColor;
|
|
375
|
-
}
|
|
376
|
-
a:focus-visible, a.pkt-link--focus,
|
|
377
|
-
.pkt-link-button:focus-visible,
|
|
378
|
-
.pkt-link-button.pkt-link--focus {
|
|
379
|
-
box-shadow: 0px 0px 0px 0.125rem var(--pkt-color-text-action-active), 0px 0px 0px 0.375rem var(--pkt-color-border-states-focus);
|
|
380
|
-
outline: none;
|
|
381
|
-
color: var(--pkt-color-text-action-active);
|
|
382
|
-
}
|
|
383
|
-
a:focus:not(:focus-visible),
|
|
384
|
-
.pkt-link-button:focus:not(:focus-visible) {
|
|
385
|
-
box-shadow: none;
|
|
386
|
-
outline: 0.125rem solid var(--pkt-color-text-action-active);
|
|
387
|
-
color: var(--pkt-color-text-action-active);
|
|
388
|
-
}
|
|
389
|
-
a:active, a.pkt-link--active,
|
|
390
|
-
.pkt-link-button:active,
|
|
391
|
-
.pkt-link-button.pkt-link--active {
|
|
392
|
-
color: var(--pkt-color-text-action-active);
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.pkt-link {
|
|
396
|
-
display: inline;
|
|
397
|
-
text-align: left;
|
|
398
|
-
align-items: baseline;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.pkt-link__icon {
|
|
402
|
-
--fg-color: currentColor;
|
|
403
|
-
width: 1.5rem;
|
|
404
|
-
height: 1.5rem;
|
|
405
|
-
flex-shrink: 0;
|
|
406
|
-
margin-inline: 0.25rem;
|
|
407
|
-
align-self: center;
|
|
408
|
-
}
|
|
409
|
-
.pkt-link--icon-left, .pkt-link--icon-right {
|
|
410
|
-
display: inline-flex;
|
|
411
|
-
text-decoration: none;
|
|
412
|
-
align-items: baseline;
|
|
413
|
-
}
|
|
414
|
-
.pkt-link--icon-left {
|
|
415
|
-
flex-direction: row;
|
|
416
|
-
}
|
|
417
|
-
.pkt-link--icon-right {
|
|
418
|
-
flex-direction: row-reverse;
|
|
419
|
-
}
|
|
420
|
-
.pkt-link--external::after {
|
|
421
|
-
display: inline-block;
|
|
422
|
-
content: " ";
|
|
423
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/17.0/icons/new-window-small.svg);
|
|
424
|
-
background-image: var(--svg);
|
|
425
|
-
background-repeat: no-repeat;
|
|
426
|
-
background-size: 18px 18px;
|
|
427
|
-
width: 1.125rem;
|
|
428
|
-
height: 1.125rem;
|
|
429
|
-
vertical-align: middle;
|
|
430
|
-
align-self: center;
|
|
431
|
-
}
|
|
432
|
-
.pkt-link--external:hover::after {
|
|
433
|
-
filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%) contrast(90%);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
button.pkt-link {
|
|
437
|
-
background: none;
|
|
438
|
-
border: none;
|
|
439
|
-
padding: 0;
|
|
440
|
-
font-family: inherit;
|
|
441
|
-
cursor: pointer;
|
|
442
|
-
font-weight: inherit;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
[data-mode=dark] .pkt-link--external::after {
|
|
446
|
-
filter: brightness(0) saturate(100%) invert(100%);
|
|
447
|
-
}
|
|
448
|
-
[data-mode=dark] .pkt-link--external:hover::after, [data-mode=dark] .pkt-link:hover:not(.pkt-btn) pkt-icon, [data-mode=dark] .pkt-link:hover:not(.pkt-btn) .pkt-icon {
|
|
449
|
-
filter: brightness(0) saturate(100%) invert(80%) sepia(54%) saturate(502%) hue-rotate(173deg) brightness(109%) contrast(105%);
|
|
450
|
-
}
|
|
451
|
-
|
|
452
353
|
/*
|
|
453
354
|
* origo typography
|
|
454
355
|
* prefix pkt
|
|
@@ -2901,11 +2802,109 @@ button.pkt-link {
|
|
|
2901
2802
|
}
|
|
2902
2803
|
|
|
2903
2804
|
/*
|
|
2904
|
-
*
|
|
2805
|
+
* Link
|
|
2905
2806
|
*/
|
|
2906
|
-
|
|
2907
|
-
.pkt-
|
|
2908
|
-
|
|
2807
|
+
a,
|
|
2808
|
+
.pkt-link-button {
|
|
2809
|
+
color: var(--pkt-color-text-action-normal);
|
|
2810
|
+
text-decoration: underline;
|
|
2811
|
+
word-wrap: break-word;
|
|
2812
|
+
cursor: pointer;
|
|
2813
|
+
}
|
|
2814
|
+
a span,
|
|
2815
|
+
.pkt-link-button span {
|
|
2816
|
+
color: inherit;
|
|
2817
|
+
text-decoration: inherit;
|
|
2818
|
+
}
|
|
2819
|
+
a:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover),
|
|
2820
|
+
.pkt-link-button:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover) {
|
|
2821
|
+
color: inherit;
|
|
2822
|
+
}
|
|
2823
|
+
a:hover, a.pkt-link--hover,
|
|
2824
|
+
.pkt-link-button:hover,
|
|
2825
|
+
.pkt-link-button.pkt-link--hover {
|
|
2826
|
+
color: var(--pkt-color-text-action-active);
|
|
2827
|
+
text-decoration: underline;
|
|
2828
|
+
}
|
|
2829
|
+
a:hover svg, a.pkt-link--hover svg,
|
|
2830
|
+
.pkt-link-button:hover svg,
|
|
2831
|
+
.pkt-link-button.pkt-link--hover svg {
|
|
2832
|
+
--fg-color: currentColor;
|
|
2833
|
+
}
|
|
2834
|
+
a:focus-visible, a.pkt-link--focus,
|
|
2835
|
+
.pkt-link-button:focus-visible,
|
|
2836
|
+
.pkt-link-button.pkt-link--focus {
|
|
2837
|
+
box-shadow: 0px 0px 0px 0.125rem var(--pkt-color-text-action-active), 0px 0px 0px 0.375rem var(--pkt-color-border-states-focus);
|
|
2838
|
+
outline: none;
|
|
2839
|
+
color: var(--pkt-color-text-action-active);
|
|
2840
|
+
}
|
|
2841
|
+
a:focus:not(:focus-visible),
|
|
2842
|
+
.pkt-link-button:focus:not(:focus-visible) {
|
|
2843
|
+
box-shadow: none;
|
|
2844
|
+
outline: 0.125rem solid var(--pkt-color-text-action-active);
|
|
2845
|
+
color: var(--pkt-color-text-action-active);
|
|
2846
|
+
}
|
|
2847
|
+
a:active, a.pkt-link--active,
|
|
2848
|
+
.pkt-link-button:active,
|
|
2849
|
+
.pkt-link-button.pkt-link--active {
|
|
2850
|
+
color: var(--pkt-color-text-action-active);
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
.pkt-link {
|
|
2854
|
+
display: inline;
|
|
2855
|
+
text-align: left;
|
|
2856
|
+
align-items: baseline;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
.pkt-link__icon {
|
|
2860
|
+
--fg-color: currentColor;
|
|
2861
|
+
width: 1.5rem;
|
|
2862
|
+
height: 1.5rem;
|
|
2863
|
+
flex-shrink: 0;
|
|
2864
|
+
margin-inline: 0.25rem;
|
|
2865
|
+
align-self: center;
|
|
2866
|
+
}
|
|
2867
|
+
.pkt-link--icon-left, .pkt-link--icon-right {
|
|
2868
|
+
display: inline-flex;
|
|
2869
|
+
text-decoration: none;
|
|
2870
|
+
align-items: baseline;
|
|
2871
|
+
}
|
|
2872
|
+
.pkt-link--icon-left {
|
|
2873
|
+
flex-direction: row;
|
|
2874
|
+
}
|
|
2875
|
+
.pkt-link--icon-right {
|
|
2876
|
+
flex-direction: row-reverse;
|
|
2877
|
+
}
|
|
2878
|
+
.pkt-link--external::after {
|
|
2879
|
+
display: inline-block;
|
|
2880
|
+
content: " ";
|
|
2881
|
+
--svg: url(https://punkt-cdn.oslo.kommune.no/17.0/icons/new-window-small.svg);
|
|
2882
|
+
background-image: var(--svg);
|
|
2883
|
+
background-repeat: no-repeat;
|
|
2884
|
+
background-size: 18px 18px;
|
|
2885
|
+
width: 1.125rem;
|
|
2886
|
+
height: 1.125rem;
|
|
2887
|
+
vertical-align: middle;
|
|
2888
|
+
align-self: center;
|
|
2889
|
+
}
|
|
2890
|
+
.pkt-link--external:hover::after {
|
|
2891
|
+
filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%) contrast(90%);
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
button.pkt-link {
|
|
2895
|
+
background: none;
|
|
2896
|
+
border: none;
|
|
2897
|
+
padding: 0;
|
|
2898
|
+
font-family: inherit;
|
|
2899
|
+
cursor: pointer;
|
|
2900
|
+
font-weight: inherit;
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
[data-mode=dark] .pkt-link--external::after {
|
|
2904
|
+
filter: brightness(0) saturate(100%) invert(100%);
|
|
2905
|
+
}
|
|
2906
|
+
[data-mode=dark] .pkt-link--external:hover::after, [data-mode=dark] .pkt-link:hover:not(.pkt-btn) pkt-icon, [data-mode=dark] .pkt-link:hover:not(.pkt-btn) .pkt-icon {
|
|
2907
|
+
filter: brightness(0) saturate(100%) invert(80%) sepia(54%) saturate(502%) hue-rotate(173deg) brightness(109%) contrast(105%);
|
|
2909
2908
|
}
|
|
2910
2909
|
|
|
2911
2910
|
/*
|