@oslokommune/punkt-css 17.0.8 → 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 +18 -0
- package/dist/css/components/combobox.css +12 -18
- package/dist/css/components/combobox.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 +12 -18
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +118 -125
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt.css +118 -125
- package/dist/css/pkt.layer.css +113 -117
- package/dist/css/pkt.layer.min.css +1 -1
- 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/package.json +2 -2
package/dist/css/pkt-docs.css
CHANGED
|
@@ -555,6 +555,10 @@ body {
|
|
|
555
555
|
scroll-behavior: smooth;
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
+
.pkt-contents {
|
|
559
|
+
display: contents;
|
|
560
|
+
}
|
|
561
|
+
|
|
558
562
|
/*
|
|
559
563
|
* Typografi
|
|
560
564
|
*
|
|
@@ -587,109 +591,6 @@ strong {
|
|
|
587
591
|
font-weight: 500;
|
|
588
592
|
}
|
|
589
593
|
|
|
590
|
-
a,
|
|
591
|
-
.pkt-link-button {
|
|
592
|
-
color: var(--pkt-color-text-action-normal);
|
|
593
|
-
text-decoration: underline;
|
|
594
|
-
word-wrap: break-word;
|
|
595
|
-
cursor: pointer;
|
|
596
|
-
}
|
|
597
|
-
a span,
|
|
598
|
-
.pkt-link-button span {
|
|
599
|
-
color: inherit;
|
|
600
|
-
text-decoration: inherit;
|
|
601
|
-
}
|
|
602
|
-
a:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover),
|
|
603
|
-
.pkt-link-button:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover) {
|
|
604
|
-
color: inherit;
|
|
605
|
-
}
|
|
606
|
-
a:hover, a.pkt-link--hover,
|
|
607
|
-
.pkt-link-button:hover,
|
|
608
|
-
.pkt-link-button.pkt-link--hover {
|
|
609
|
-
color: var(--pkt-color-text-action-active);
|
|
610
|
-
text-decoration: underline;
|
|
611
|
-
}
|
|
612
|
-
a:hover svg, a.pkt-link--hover svg,
|
|
613
|
-
.pkt-link-button:hover svg,
|
|
614
|
-
.pkt-link-button.pkt-link--hover svg {
|
|
615
|
-
--fg-color: currentColor;
|
|
616
|
-
}
|
|
617
|
-
a:focus-visible, a.pkt-link--focus,
|
|
618
|
-
.pkt-link-button:focus-visible,
|
|
619
|
-
.pkt-link-button.pkt-link--focus {
|
|
620
|
-
box-shadow: 0px 0px 0px 0.125rem var(--pkt-color-text-action-active), 0px 0px 0px 0.375rem var(--pkt-color-border-states-focus);
|
|
621
|
-
outline: none;
|
|
622
|
-
color: var(--pkt-color-text-action-active);
|
|
623
|
-
}
|
|
624
|
-
a:focus:not(:focus-visible),
|
|
625
|
-
.pkt-link-button:focus:not(:focus-visible) {
|
|
626
|
-
box-shadow: none;
|
|
627
|
-
outline: 0.125rem solid var(--pkt-color-text-action-active);
|
|
628
|
-
color: var(--pkt-color-text-action-active);
|
|
629
|
-
}
|
|
630
|
-
a:active, a.pkt-link--active,
|
|
631
|
-
.pkt-link-button:active,
|
|
632
|
-
.pkt-link-button.pkt-link--active {
|
|
633
|
-
color: var(--pkt-color-text-action-active);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
.pkt-link {
|
|
637
|
-
display: inline;
|
|
638
|
-
text-align: left;
|
|
639
|
-
align-items: baseline;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
.pkt-link__icon {
|
|
643
|
-
--fg-color: currentColor;
|
|
644
|
-
width: 1.5rem;
|
|
645
|
-
height: 1.5rem;
|
|
646
|
-
flex-shrink: 0;
|
|
647
|
-
margin-inline: 0.25rem;
|
|
648
|
-
align-self: center;
|
|
649
|
-
}
|
|
650
|
-
.pkt-link--icon-left, .pkt-link--icon-right {
|
|
651
|
-
display: inline-flex;
|
|
652
|
-
text-decoration: none;
|
|
653
|
-
align-items: baseline;
|
|
654
|
-
}
|
|
655
|
-
.pkt-link--icon-left {
|
|
656
|
-
flex-direction: row;
|
|
657
|
-
}
|
|
658
|
-
.pkt-link--icon-right {
|
|
659
|
-
flex-direction: row-reverse;
|
|
660
|
-
}
|
|
661
|
-
.pkt-link--external::after {
|
|
662
|
-
display: inline-block;
|
|
663
|
-
content: " ";
|
|
664
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/17.0/icons/new-window-small.svg);
|
|
665
|
-
background-image: var(--svg);
|
|
666
|
-
background-repeat: no-repeat;
|
|
667
|
-
background-size: 18px 18px;
|
|
668
|
-
width: 1.125rem;
|
|
669
|
-
height: 1.125rem;
|
|
670
|
-
vertical-align: middle;
|
|
671
|
-
align-self: center;
|
|
672
|
-
}
|
|
673
|
-
.pkt-link--external:hover::after {
|
|
674
|
-
filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%) contrast(90%);
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
button.pkt-link {
|
|
678
|
-
background: none;
|
|
679
|
-
border: none;
|
|
680
|
-
padding: 0;
|
|
681
|
-
font-family: inherit;
|
|
682
|
-
cursor: pointer;
|
|
683
|
-
font-weight: inherit;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
[data-mode=dark] .pkt-link--external::after {
|
|
687
|
-
filter: brightness(0) saturate(100%) invert(100%);
|
|
688
|
-
}
|
|
689
|
-
[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 {
|
|
690
|
-
filter: brightness(0) saturate(100%) invert(80%) sepia(54%) saturate(502%) hue-rotate(173deg) brightness(109%) contrast(105%);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
594
|
/*
|
|
694
595
|
* origo typography
|
|
695
596
|
* prefix pkt
|
|
@@ -3142,11 +3043,109 @@ button.pkt-link {
|
|
|
3142
3043
|
}
|
|
3143
3044
|
|
|
3144
3045
|
/*
|
|
3145
|
-
*
|
|
3046
|
+
* Link
|
|
3146
3047
|
*/
|
|
3147
|
-
|
|
3148
|
-
.pkt-
|
|
3149
|
-
|
|
3048
|
+
a,
|
|
3049
|
+
.pkt-link-button {
|
|
3050
|
+
color: var(--pkt-color-text-action-normal);
|
|
3051
|
+
text-decoration: underline;
|
|
3052
|
+
word-wrap: break-word;
|
|
3053
|
+
cursor: pointer;
|
|
3054
|
+
}
|
|
3055
|
+
a span,
|
|
3056
|
+
.pkt-link-button span {
|
|
3057
|
+
color: inherit;
|
|
3058
|
+
text-decoration: inherit;
|
|
3059
|
+
}
|
|
3060
|
+
a:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover),
|
|
3061
|
+
.pkt-link-button:visited:not(.pkt-linkcard, .pkt-btn, .pkt-tabs__link):not(:hover) {
|
|
3062
|
+
color: inherit;
|
|
3063
|
+
}
|
|
3064
|
+
a:hover, a.pkt-link--hover,
|
|
3065
|
+
.pkt-link-button:hover,
|
|
3066
|
+
.pkt-link-button.pkt-link--hover {
|
|
3067
|
+
color: var(--pkt-color-text-action-active);
|
|
3068
|
+
text-decoration: underline;
|
|
3069
|
+
}
|
|
3070
|
+
a:hover svg, a.pkt-link--hover svg,
|
|
3071
|
+
.pkt-link-button:hover svg,
|
|
3072
|
+
.pkt-link-button.pkt-link--hover svg {
|
|
3073
|
+
--fg-color: currentColor;
|
|
3074
|
+
}
|
|
3075
|
+
a:focus-visible, a.pkt-link--focus,
|
|
3076
|
+
.pkt-link-button:focus-visible,
|
|
3077
|
+
.pkt-link-button.pkt-link--focus {
|
|
3078
|
+
box-shadow: 0px 0px 0px 0.125rem var(--pkt-color-text-action-active), 0px 0px 0px 0.375rem var(--pkt-color-border-states-focus);
|
|
3079
|
+
outline: none;
|
|
3080
|
+
color: var(--pkt-color-text-action-active);
|
|
3081
|
+
}
|
|
3082
|
+
a:focus:not(:focus-visible),
|
|
3083
|
+
.pkt-link-button:focus:not(:focus-visible) {
|
|
3084
|
+
box-shadow: none;
|
|
3085
|
+
outline: 0.125rem solid var(--pkt-color-text-action-active);
|
|
3086
|
+
color: var(--pkt-color-text-action-active);
|
|
3087
|
+
}
|
|
3088
|
+
a:active, a.pkt-link--active,
|
|
3089
|
+
.pkt-link-button:active,
|
|
3090
|
+
.pkt-link-button.pkt-link--active {
|
|
3091
|
+
color: var(--pkt-color-text-action-active);
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
.pkt-link {
|
|
3095
|
+
display: inline;
|
|
3096
|
+
text-align: left;
|
|
3097
|
+
align-items: baseline;
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
.pkt-link__icon {
|
|
3101
|
+
--fg-color: currentColor;
|
|
3102
|
+
width: 1.5rem;
|
|
3103
|
+
height: 1.5rem;
|
|
3104
|
+
flex-shrink: 0;
|
|
3105
|
+
margin-inline: 0.25rem;
|
|
3106
|
+
align-self: center;
|
|
3107
|
+
}
|
|
3108
|
+
.pkt-link--icon-left, .pkt-link--icon-right {
|
|
3109
|
+
display: inline-flex;
|
|
3110
|
+
text-decoration: none;
|
|
3111
|
+
align-items: baseline;
|
|
3112
|
+
}
|
|
3113
|
+
.pkt-link--icon-left {
|
|
3114
|
+
flex-direction: row;
|
|
3115
|
+
}
|
|
3116
|
+
.pkt-link--icon-right {
|
|
3117
|
+
flex-direction: row-reverse;
|
|
3118
|
+
}
|
|
3119
|
+
.pkt-link--external::after {
|
|
3120
|
+
display: inline-block;
|
|
3121
|
+
content: " ";
|
|
3122
|
+
--svg: url(https://punkt-cdn.oslo.kommune.no/17.0/icons/new-window-small.svg);
|
|
3123
|
+
background-image: var(--svg);
|
|
3124
|
+
background-repeat: no-repeat;
|
|
3125
|
+
background-size: 18px 18px;
|
|
3126
|
+
width: 1.125rem;
|
|
3127
|
+
height: 1.125rem;
|
|
3128
|
+
vertical-align: middle;
|
|
3129
|
+
align-self: center;
|
|
3130
|
+
}
|
|
3131
|
+
.pkt-link--external:hover::after {
|
|
3132
|
+
filter: brightness(0) saturate(100%) invert(16%) sepia(99%) saturate(2420%) hue-rotate(222deg) brightness(93%) contrast(90%);
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3135
|
+
button.pkt-link {
|
|
3136
|
+
background: none;
|
|
3137
|
+
border: none;
|
|
3138
|
+
padding: 0;
|
|
3139
|
+
font-family: inherit;
|
|
3140
|
+
cursor: pointer;
|
|
3141
|
+
font-weight: inherit;
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
[data-mode=dark] .pkt-link--external::after {
|
|
3145
|
+
filter: brightness(0) saturate(100%) invert(100%);
|
|
3146
|
+
}
|
|
3147
|
+
[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 {
|
|
3148
|
+
filter: brightness(0) saturate(100%) invert(80%) sepia(54%) saturate(502%) hue-rotate(173deg) brightness(109%) contrast(105%);
|
|
3150
3149
|
}
|
|
3151
3150
|
|
|
3152
3151
|
/*
|
|
@@ -19830,59 +19829,53 @@ pkt-combobox[fullwidth], pkt-combobox--fullwidth,
|
|
|
19830
19829
|
.pkt-combobox__wrapper .pkt-listbox__open {
|
|
19831
19830
|
margin-block-start: 0.5rem;
|
|
19832
19831
|
}
|
|
19833
|
-
|
|
19834
|
-
.pkt-inputwrapper:not([data-navtype=pointer]) .pkt-combobox__input:focus-within {
|
|
19832
|
+
.pkt-combobox__wrapper.pkt-inputwrapper:not([data-navtype=pointer]) .pkt-combobox__input:focus-within {
|
|
19835
19833
|
outline: 4px solid var(--pkt-color-border-states-focus);
|
|
19836
19834
|
}
|
|
19837
|
-
|
|
19838
|
-
.pkt-inputwrapper--small .pkt-listbox .pkt-listbox__option:not(.pkt-listbox__search),
|
|
19839
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__option:not(.pkt-listbox__search) {
|
|
19835
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--small .pkt-listbox .pkt-listbox__option:not(.pkt-listbox__search), .pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__option:not(.pkt-listbox__search) {
|
|
19840
19836
|
padding: 0.5rem 1rem;
|
|
19841
19837
|
letter-spacing: -0.2px;
|
|
19842
19838
|
font-weight: 300;
|
|
19843
19839
|
font-size: 1rem;
|
|
19844
19840
|
line-height: 1.5rem;
|
|
19845
19841
|
}
|
|
19846
|
-
.pkt-inputwrapper--small .pkt-listbox .pkt-listbox__empty,
|
|
19847
|
-
.pkt-inputwrapper--small .pkt-listbox .pkt-listbox__banner,
|
|
19848
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-
|
|
19849
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__banner {
|
|
19842
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--small .pkt-listbox .pkt-listbox__empty,
|
|
19843
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--small .pkt-listbox .pkt-listbox__banner, .pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__empty,
|
|
19844
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__banner {
|
|
19850
19845
|
padding: 0.5rem 1rem;
|
|
19851
19846
|
letter-spacing: -0.2px;
|
|
19852
19847
|
font-weight: 300;
|
|
19853
19848
|
font-size: 1rem;
|
|
19854
19849
|
line-height: 1.5rem;
|
|
19855
19850
|
}
|
|
19856
|
-
.pkt-inputwrapper--small .pkt-listbox .pkt-listbox__search input,
|
|
19857
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__search input {
|
|
19851
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--small .pkt-listbox .pkt-listbox__search input, .pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__search input {
|
|
19858
19852
|
padding: 0.5rem 0.75rem;
|
|
19859
19853
|
letter-spacing: -0.2px;
|
|
19860
19854
|
font-weight: 300;
|
|
19861
19855
|
font-size: 1rem;
|
|
19862
19856
|
line-height: 1.5rem;
|
|
19863
19857
|
}
|
|
19864
|
-
|
|
19865
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__option:not(.pkt-listbox__search) {
|
|
19858
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__option:not(.pkt-listbox__search) {
|
|
19866
19859
|
padding: 0.375rem 0.75rem;
|
|
19867
19860
|
letter-spacing: -0.2px;
|
|
19868
19861
|
font-weight: 300;
|
|
19869
19862
|
font-size: 0.875rem;
|
|
19870
19863
|
line-height: 1.375rem;
|
|
19871
19864
|
}
|
|
19872
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__empty,
|
|
19873
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__banner {
|
|
19865
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__empty,
|
|
19866
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__banner {
|
|
19874
19867
|
padding: 0.375rem 0.75rem;
|
|
19875
19868
|
letter-spacing: -0.2px;
|
|
19876
19869
|
font-weight: 300;
|
|
19877
19870
|
font-size: 0.875rem;
|
|
19878
19871
|
line-height: 1.375rem;
|
|
19879
19872
|
}
|
|
19880
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__banner-icon,
|
|
19881
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__search-icon .pkt-icon {
|
|
19873
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__banner-icon,
|
|
19874
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__search-icon .pkt-icon {
|
|
19882
19875
|
width: 1.125rem;
|
|
19883
19876
|
height: 1.125rem;
|
|
19884
19877
|
}
|
|
19885
|
-
.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__search input {
|
|
19878
|
+
.pkt-combobox__wrapper.pkt-inputwrapper--xsmall .pkt-listbox .pkt-listbox__search input {
|
|
19886
19879
|
padding: 0.375rem 0.5rem;
|
|
19887
19880
|
letter-spacing: -0.2px;
|
|
19888
19881
|
font-weight: 300;
|