@oslokommune/punkt-css 12.37.0 → 12.38.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 +54 -0
- package/dist/css/components/card.css +153 -34
- package/dist/css/components/card.min.css +1 -1
- package/dist/css/components/modal.css +29 -1
- package/dist/css/components/modal.min.css +1 -1
- package/dist/css/components/textinput.css +1 -1
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/elements/button.css +1 -0
- package/dist/css/elements/button.min.css +1 -1
- package/dist/css/elements/checkbox-radio.css +2 -2
- package/dist/css/elements/checkbox-radio.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/select.css +1 -1
- package/dist/css/elements/select.min.css +1 -1
- package/dist/css/pkt-base.css +1 -1
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +183 -36
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +187 -39
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-elements.css +4 -3
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +187 -39
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/abstracts/variables/_index.scss +1 -1
- package/dist/scss/components/_card.scss +208 -39
- package/dist/scss/components/_modal.scss +29 -2
- package/dist/scss/elements/_button.scss +1 -0
- package/package.json +2 -2
|
@@ -729,59 +729,183 @@ pkt-datepicker .pkt-datepicker__tags .pkt-tag {
|
|
|
729
729
|
*/
|
|
730
730
|
pkt-card {
|
|
731
731
|
display: block;
|
|
732
|
+
width: 100%;
|
|
732
733
|
}
|
|
733
734
|
|
|
734
735
|
.pkt-card {
|
|
735
|
-
|
|
736
|
+
position: relative;
|
|
736
737
|
display: flex;
|
|
737
|
-
|
|
738
|
+
align-items: center;
|
|
739
|
+
width: 100%;
|
|
740
|
+
min-width: 12.5rem;
|
|
741
|
+
padding: 2rem;
|
|
738
742
|
}
|
|
739
|
-
.pkt-card__wrapper {
|
|
743
|
+
.pkt-card .pkt-card__wrapper {
|
|
740
744
|
display: flex;
|
|
741
745
|
flex-direction: column;
|
|
742
|
-
|
|
746
|
+
flex: 1 1 53%;
|
|
747
|
+
width: 100%;
|
|
748
|
+
overflow: hidden;
|
|
743
749
|
}
|
|
744
|
-
.pkt-
|
|
750
|
+
.pkt-card.pkt-card--padding-none {
|
|
751
|
+
padding: 0;
|
|
752
|
+
background-color: transparent;
|
|
753
|
+
}
|
|
754
|
+
.pkt-card .pkt-card__heading h1,
|
|
755
|
+
.pkt-card .pkt-card__heading h2,
|
|
756
|
+
.pkt-card .pkt-card__heading h3,
|
|
757
|
+
.pkt-card .pkt-card__heading h4,
|
|
758
|
+
.pkt-card .pkt-card__heading h5 {
|
|
759
|
+
padding: 0;
|
|
760
|
+
margin: 0;
|
|
761
|
+
font-size: 1.875rem;
|
|
762
|
+
font-weight: 400;
|
|
763
|
+
margin-bottom: 0.5rem;
|
|
764
|
+
hyphens: auto;
|
|
765
|
+
overflow-wrap: break-word;
|
|
766
|
+
}
|
|
767
|
+
.pkt-card .pkt-card__link {
|
|
768
|
+
text-decoration-thickness: 0.12rem;
|
|
769
|
+
text-underline-offset: 0.15em;
|
|
770
|
+
}
|
|
771
|
+
.pkt-card p.pkt-card__subheading {
|
|
772
|
+
padding: 0;
|
|
773
|
+
margin: 0;
|
|
774
|
+
line-height: unset;
|
|
775
|
+
margin-bottom: 1rem;
|
|
776
|
+
font-size: 1.25rem;
|
|
777
|
+
font-weight: 300;
|
|
778
|
+
hyphens: auto;
|
|
779
|
+
overflow-wrap: break-word;
|
|
780
|
+
}
|
|
781
|
+
.pkt-card .pkt-card__creditline {
|
|
782
|
+
margin-top: 1rem;
|
|
783
|
+
margin-bottom: 0;
|
|
784
|
+
line-height: unset;
|
|
785
|
+
gap: 0.5rem;
|
|
786
|
+
}
|
|
787
|
+
.pkt-card .pkt-card__creditline-author {
|
|
788
|
+
font-weight: 500;
|
|
789
|
+
}
|
|
790
|
+
.pkt-card .pkt-card__tags {
|
|
745
791
|
display: flex;
|
|
746
|
-
|
|
792
|
+
flex-wrap: wrap;
|
|
793
|
+
gap: 6px;
|
|
794
|
+
margin-bottom: 0.5rem;
|
|
795
|
+
margin-top: 0;
|
|
747
796
|
}
|
|
748
|
-
.pkt-card
|
|
749
|
-
|
|
750
|
-
|
|
797
|
+
.pkt-card .pkt-card__tags-bottom {
|
|
798
|
+
margin-top: 0.5rem;
|
|
799
|
+
margin-bottom: 0;
|
|
751
800
|
}
|
|
752
|
-
.pkt-card
|
|
753
|
-
|
|
754
|
-
overflow: hidden;
|
|
801
|
+
.pkt-card.pkt-card--landscape {
|
|
802
|
+
flex-direction: row;
|
|
755
803
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
object-position: center;
|
|
804
|
+
@media screen and (max-width: 36rem) {
|
|
805
|
+
.pkt-card.pkt-card--landscape {
|
|
806
|
+
flex-direction: column;
|
|
807
|
+
}
|
|
761
808
|
}
|
|
762
|
-
.pkt-card--portrait {
|
|
809
|
+
.pkt-card.pkt-card--portrait {
|
|
763
810
|
flex-direction: column;
|
|
764
|
-
|
|
811
|
+
min-width: 12.5rem;
|
|
765
812
|
}
|
|
766
|
-
.pkt-card
|
|
767
|
-
|
|
813
|
+
.pkt-card .pkt-card__image {
|
|
814
|
+
aspect-ratio: 1;
|
|
815
|
+
flex: 1 1 47%;
|
|
816
|
+
width: 100%;
|
|
768
817
|
overflow: hidden;
|
|
769
818
|
}
|
|
770
|
-
.pkt-card
|
|
819
|
+
.pkt-card .pkt-card__image img {
|
|
820
|
+
display: block;
|
|
771
821
|
width: 100%;
|
|
772
822
|
height: 100%;
|
|
773
823
|
object-fit: cover;
|
|
774
824
|
object-position: center;
|
|
775
825
|
}
|
|
776
|
-
.pkt-card
|
|
777
|
-
border:
|
|
826
|
+
.pkt-card .pkt-card__image.pkt-card__image-round {
|
|
827
|
+
border-radius: 50%;
|
|
828
|
+
align-self: unset;
|
|
829
|
+
max-height: 400px;
|
|
830
|
+
max-width: 400px;
|
|
831
|
+
}
|
|
832
|
+
.pkt-card.pkt-card--landscape .pkt-card__image {
|
|
833
|
+
max-width: 400px;
|
|
834
|
+
margin-right: 2rem;
|
|
835
|
+
}
|
|
836
|
+
.pkt-card.pkt-card--landscape .pkt-card__image-square {
|
|
837
|
+
align-self: stretch;
|
|
838
|
+
}
|
|
839
|
+
@media screen and (max-width: 36rem) {
|
|
840
|
+
.pkt-card.pkt-card--landscape .pkt-card__image {
|
|
841
|
+
margin-right: 0;
|
|
842
|
+
margin-bottom: 2rem;
|
|
843
|
+
max-height: 400px;
|
|
844
|
+
}
|
|
845
|
+
.pkt-card.pkt-card--landscape .pkt-card__image-square {
|
|
846
|
+
max-width: unset;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
.pkt-card.pkt-card--portrait .pkt-card__image {
|
|
850
|
+
margin-bottom: 2rem;
|
|
851
|
+
max-height: 400px;
|
|
852
|
+
}
|
|
853
|
+
.pkt-card.pkt-card--padding-none.pkt-card--portrait .pkt-card__image-square {
|
|
854
|
+
aspect-ratio: 19/10;
|
|
855
|
+
}
|
|
856
|
+
@media screen and (max-width: 36rem) {
|
|
857
|
+
.pkt-card.pkt-card--padding-none.pkt-card--landscape .pkt-card__image-square {
|
|
858
|
+
aspect-ratio: 19/10;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
.pkt-card .pkt-card__wrapper .pkt-card__link::before {
|
|
862
|
+
content: "";
|
|
863
|
+
position: absolute;
|
|
864
|
+
inset: 0;
|
|
865
|
+
z-index: 1;
|
|
866
|
+
box-shadow: 0px 0px 0px 0px transparent;
|
|
867
|
+
outline: 2px solid var(--pkt-color-brand-warm-blue-1000);
|
|
868
|
+
outline-offset: -2px;
|
|
869
|
+
outline-color: transparent;
|
|
870
|
+
transition: all 0.3s ease-in-out;
|
|
871
|
+
}
|
|
872
|
+
.pkt-card .pkt-card__link-heading {
|
|
873
|
+
transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
|
|
874
|
+
}
|
|
875
|
+
.pkt-card:hover.pkt-card--border-on-hover .pkt-card__link::before, .pkt-card:focus-visible.pkt-card--border-on-hover .pkt-card__link::before, .pkt-card:focus-within.pkt-card--border-on-hover .pkt-card__link::before {
|
|
876
|
+
cursor: pointer;
|
|
877
|
+
outline-color: var(--pkt-color-brand-warm-blue-1000);
|
|
878
|
+
}
|
|
879
|
+
.pkt-card:hover .pkt-card__link-heading, .pkt-card:focus-visible .pkt-card__link-heading, .pkt-card:focus-within .pkt-card__link-heading {
|
|
880
|
+
color: var(--pkt-color-brand-warm-blue-1000);
|
|
881
|
+
text-decoration-color: var(--pkt-color-brand-warm-blue-1000);
|
|
882
|
+
}
|
|
883
|
+
.pkt-card .pkt-card__link:focus {
|
|
884
|
+
outline: none;
|
|
885
|
+
box-shadow: none;
|
|
886
|
+
}
|
|
887
|
+
.pkt-card .pkt-card__link-heading:focus-within {
|
|
888
|
+
color: var(--pkt-color-brand-warm-blue-1000);
|
|
889
|
+
text-decoration-color: var(--pkt-color-brand-warm-blue-1000);
|
|
890
|
+
}
|
|
891
|
+
.pkt-card .pkt-card__wrapper .pkt-card__link:focus-visible::before {
|
|
892
|
+
box-shadow: 0px 0px 0px 4px var(--pkt-color-brand-purple-1000);
|
|
893
|
+
}
|
|
894
|
+
.pkt-card--outlined, .pkt-card--outlined-beige {
|
|
778
895
|
background-color: var(--pkt-color-background-default);
|
|
896
|
+
outline-offset: -4px;
|
|
897
|
+
}
|
|
898
|
+
.pkt-card--outlined {
|
|
899
|
+
outline: 4px solid var(--pkt-color-grays-gray-100);
|
|
900
|
+
}
|
|
901
|
+
.pkt-card--outlined-beige {
|
|
902
|
+
outline: 4px solid var(--pkt-color-brand-light-beige-1000);
|
|
779
903
|
}
|
|
780
904
|
.pkt-card--gray {
|
|
781
|
-
background-color: var(--pkt-color-
|
|
905
|
+
background-color: var(--pkt-color-brand-neutrals-100);
|
|
782
906
|
}
|
|
783
907
|
.pkt-card--blue {
|
|
784
|
-
background-color: var(--pkt-color-brand-blue-
|
|
908
|
+
background-color: var(--pkt-color-brand-blue-200);
|
|
785
909
|
}
|
|
786
910
|
.pkt-card--green {
|
|
787
911
|
background-color: var(--pkt-color-brand-light-green-400);
|
|
@@ -789,14 +913,9 @@ pkt-card {
|
|
|
789
913
|
.pkt-card--beige {
|
|
790
914
|
background-color: var(--pkt-color-brand-light-beige-1000);
|
|
791
915
|
}
|
|
792
|
-
.pkt-card
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
.pkt-card h4,
|
|
796
|
-
.pkt-card h5,
|
|
797
|
-
.pkt-card p {
|
|
798
|
-
padding: 0;
|
|
799
|
-
margin: 0;
|
|
916
|
+
.pkt-card--padding-none {
|
|
917
|
+
background-color: transparent;
|
|
918
|
+
outline: none;
|
|
800
919
|
}
|
|
801
920
|
|
|
802
921
|
pkt-combobox {
|
|
@@ -2046,15 +2165,35 @@ pkt-listbox {
|
|
|
2046
2165
|
/*
|
|
2047
2166
|
* Modal component
|
|
2048
2167
|
*/
|
|
2168
|
+
.pkt-modal:not([open]) {
|
|
2169
|
+
display: none;
|
|
2170
|
+
}
|
|
2049
2171
|
.pkt-modal[open] {
|
|
2050
2172
|
background-color: transparent;
|
|
2051
2173
|
border: none;
|
|
2052
2174
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
2053
2175
|
padding: 0;
|
|
2054
2176
|
max-height: 90vh;
|
|
2177
|
+
max-height: 90svh;
|
|
2055
2178
|
display: block;
|
|
2056
2179
|
}
|
|
2057
|
-
|
|
2180
|
+
@supports not (selector(::backdrop)) {
|
|
2181
|
+
.pkt-modal[open] {
|
|
2182
|
+
position: fixed;
|
|
2183
|
+
top: 50%;
|
|
2184
|
+
left: 50%;
|
|
2185
|
+
transform: translate(-50%, -50%);
|
|
2186
|
+
}
|
|
2187
|
+
.pkt-modal[open] + .backdrop {
|
|
2188
|
+
background-color: rgba(0, 0, 0, 0.55);
|
|
2189
|
+
position: fixed;
|
|
2190
|
+
top: 0;
|
|
2191
|
+
left: 0;
|
|
2192
|
+
width: 100vw;
|
|
2193
|
+
height: 100vh;
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
.pkt-modal[open]::backdrop {
|
|
2058
2197
|
background-color: rgba(0, 0, 0, 0.55);
|
|
2059
2198
|
}
|
|
2060
2199
|
.pkt-modal[open] .pkt-modal__container {
|
|
@@ -2218,6 +2357,14 @@ body.pkt-modal--open {
|
|
|
2218
2357
|
margin: 0;
|
|
2219
2358
|
}
|
|
2220
2359
|
|
|
2360
|
+
._dialog_overlay {
|
|
2361
|
+
position: fixed;
|
|
2362
|
+
top: 0;
|
|
2363
|
+
right: 0;
|
|
2364
|
+
bottom: 0;
|
|
2365
|
+
left: 0;
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2221
2368
|
/*
|
|
2222
2369
|
* Messagebox component
|
|
2223
2370
|
*/
|
|
@@ -3235,7 +3382,7 @@ pkt-select {
|
|
|
3235
3382
|
padding-right: 3rem;
|
|
3236
3383
|
}
|
|
3237
3384
|
.pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]) {
|
|
3238
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/12.
|
|
3385
|
+
--svg: url(https://punkt-cdn.oslo.kommune.no/12.38/icons/chevron-thin-down.svg);
|
|
3239
3386
|
background-image: var(--svg);
|
|
3240
3387
|
background-repeat: no-repeat;
|
|
3241
3388
|
background-position: right 0.7rem top 50%;
|