@oslokommune/punkt-css 12.37.2 → 12.38.2

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.
@@ -14209,7 +14209,7 @@ a:active, a.pkt-link--active,
14209
14209
  .pkt-link--external::after {
14210
14210
  display: inline-block;
14211
14211
  content: " ";
14212
- --svg: url(https://punkt-cdn.oslo.kommune.no/12.37/icons/new-window-small.svg);
14212
+ --svg: url(https://punkt-cdn.oslo.kommune.no/12.38/icons/new-window-small.svg);
14213
14213
  background-image: var(--svg);
14214
14214
  background-repeat: no-repeat;
14215
14215
  background-size: 18px 18px;
@@ -17808,6 +17808,7 @@ button.pkt-link {
17808
17808
  column-gap: 0.5rem;
17809
17809
  -webkit-appearance: none;
17810
17810
  appearance: none;
17811
+ width: fit-content;
17811
17812
  }
17812
17813
  @media screen and (max-width: 36rem) {
17813
17814
  .pkt-btn--full-small {
@@ -17909,7 +17910,7 @@ div.pkt-btn:not([data-disabled]):hover, .pkt-btn:enabled:hover, .pkt-btn:hover:n
17909
17910
  }
17910
17911
 
17911
17912
  a.pkt-btn:active,
17912
- div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:active:not(:disabled):not([disabled]):not([data-disabled]), .pkt-btn.pkt-btn--active, .pkt-btn.pkt-btn--active:hover {
17913
+ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:active:not(:disabled):not([disabled]):not([data-disabled]), .pkt-btn.pkt-btn--active:not(:disabled):not([disabled]):not([data-disabled]), .pkt-btn.pkt-btn--active:not(:disabled):not([disabled]):not([data-disabled]):hover {
17913
17914
  background-color: var(--pkt-color-button-background-active);
17914
17915
  border-color: var(--pkt-color-button-border-active);
17915
17916
  color: var(--pkt-color-button-text-active);
@@ -18213,7 +18214,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18213
18214
  outline-color: var(--pkt-color-input-border-hover);
18214
18215
  }
18215
18216
  .pkt-input-check__input-checkbox:checked[type=checkbox] {
18216
- --svg: url(https://punkt-cdn.oslo.kommune.no/12.37/icons/check-medium.svg);
18217
+ --svg: url(https://punkt-cdn.oslo.kommune.no/12.38/icons/check-medium.svg);
18217
18218
  position: relative;
18218
18219
  background-color: var(--pkt-color-input-border-normal);
18219
18220
  }
@@ -18271,7 +18272,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18271
18272
  cursor: not-allowed;
18272
18273
  }
18273
18274
  .pkt-input-check__input-checkbox:disabled[type=checkbox][role=switch]:checked:after {
18274
- --svg: url(https://punkt-cdn.oslo.kommune.no/12.37/icons/check-medium.svg);
18275
+ --svg: url(https://punkt-cdn.oslo.kommune.no/12.38/icons/check-medium.svg);
18275
18276
  --pkt-color-input-check-border: var(--pkt-color-input-border-normal);
18276
18277
  filter: grayscale(100%) brightness(400%);
18277
18278
  }
@@ -18523,7 +18524,7 @@ pkt-select {
18523
18524
  }
18524
18525
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
18525
18526
  .pkt-select:is(select):not([multiple]) {
18526
- --svg: url(https://punkt-cdn.oslo.kommune.no/12.37/icons/chevron-thin-down.svg);
18527
+ --svg: url(https://punkt-cdn.oslo.kommune.no/12.38/icons/chevron-thin-down.svg);
18527
18528
  background-image: var(--svg);
18528
18529
  background-repeat: no-repeat;
18529
18530
  background-position: right 0.7rem top 50%;
@@ -19896,59 +19897,183 @@ pkt-datepicker .pkt-datepicker__tags .pkt-tag {
19896
19897
  */
19897
19898
  pkt-card {
19898
19899
  display: block;
19900
+ width: 100%;
19899
19901
  }
19900
19902
 
19901
19903
  .pkt-card {
19902
- padding: 1.5rem;
19904
+ position: relative;
19903
19905
  display: flex;
19904
- gap: 2rem;
19906
+ align-items: center;
19907
+ width: 100%;
19908
+ min-width: 12.5rem;
19909
+ padding: 2rem;
19905
19910
  }
19906
- .pkt-card__wrapper {
19911
+ .pkt-card .pkt-card__wrapper {
19907
19912
  display: flex;
19908
19913
  flex-direction: column;
19909
- gap: 1rem;
19914
+ flex: 1 1 53%;
19915
+ width: 100%;
19916
+ overflow: hidden;
19917
+ }
19918
+ .pkt-card.pkt-card--padding-none {
19919
+ padding: 0;
19920
+ background-color: transparent;
19921
+ }
19922
+ .pkt-card .pkt-card__heading h1,
19923
+ .pkt-card .pkt-card__heading h2,
19924
+ .pkt-card .pkt-card__heading h3,
19925
+ .pkt-card .pkt-card__heading h4,
19926
+ .pkt-card .pkt-card__heading h5 {
19927
+ padding: 0;
19928
+ margin: 0;
19929
+ font-size: 1.875rem;
19930
+ font-weight: 400;
19931
+ margin-bottom: 0.5rem;
19932
+ hyphens: auto;
19933
+ overflow-wrap: break-word;
19934
+ }
19935
+ .pkt-card .pkt-card__link {
19936
+ text-decoration-thickness: 0.12rem;
19937
+ text-underline-offset: 0.15em;
19938
+ }
19939
+ .pkt-card p.pkt-card__subheading {
19940
+ padding: 0;
19941
+ margin: 0;
19942
+ line-height: unset;
19943
+ margin-bottom: 1rem;
19944
+ font-size: 1.25rem;
19945
+ font-weight: 300;
19946
+ hyphens: auto;
19947
+ overflow-wrap: break-word;
19910
19948
  }
19911
- .pkt-card__tags {
19949
+ .pkt-card .pkt-card__creditline {
19950
+ margin-top: 1rem;
19951
+ margin-bottom: 0;
19952
+ line-height: unset;
19953
+ gap: 0.5rem;
19954
+ }
19955
+ .pkt-card .pkt-card__creditline-author {
19956
+ font-weight: 500;
19957
+ }
19958
+ .pkt-card .pkt-card__tags {
19912
19959
  display: flex;
19913
- gap: 1rem;
19960
+ flex-wrap: wrap;
19961
+ gap: 6px;
19962
+ margin-bottom: 0.5rem;
19963
+ margin-top: 0;
19914
19964
  }
19915
- .pkt-card--landscape {
19916
- flex-direction: row;
19917
- max-width: 950px;
19965
+ .pkt-card .pkt-card__tags-bottom {
19966
+ margin-top: 0.5rem;
19967
+ margin-bottom: 0;
19918
19968
  }
19919
- .pkt-card--landscape .pkt-card__image {
19920
- min-width: 320px;
19921
- overflow: hidden;
19969
+ .pkt-card.pkt-card--landscape {
19970
+ flex-direction: row;
19922
19971
  }
19923
- .pkt-card--landscape .pkt-card__image img {
19924
- height: 100%;
19925
- width: 100%;
19926
- object-fit: cover;
19927
- object-position: center;
19972
+ @media screen and (max-width: 36rem) {
19973
+ .pkt-card.pkt-card--landscape {
19974
+ flex-direction: column;
19975
+ }
19928
19976
  }
19929
- .pkt-card--portrait {
19977
+ .pkt-card.pkt-card--portrait {
19930
19978
  flex-direction: column;
19931
- max-width: 500px;
19979
+ min-width: 12.5rem;
19932
19980
  }
19933
- .pkt-card--portrait .pkt-card__image {
19934
- max-height: 400px;
19981
+ .pkt-card .pkt-card__image {
19982
+ aspect-ratio: 1;
19983
+ flex: 1 1 47%;
19984
+ width: 100%;
19935
19985
  overflow: hidden;
19936
19986
  }
19937
- .pkt-card--portrait .pkt-card__image img {
19987
+ .pkt-card .pkt-card__image img {
19988
+ display: block;
19938
19989
  width: 100%;
19939
19990
  height: 100%;
19940
19991
  object-fit: cover;
19941
19992
  object-position: center;
19942
19993
  }
19943
- .pkt-card--outlined {
19944
- border: 3px solid var(--pkt-color-grays-gray-100);
19994
+ .pkt-card .pkt-card__image.pkt-card__image-round {
19995
+ border-radius: 50%;
19996
+ align-self: unset;
19997
+ max-height: 400px;
19998
+ max-width: 400px;
19999
+ }
20000
+ .pkt-card.pkt-card--landscape .pkt-card__image {
20001
+ max-width: 400px;
20002
+ margin-right: 2rem;
20003
+ }
20004
+ .pkt-card.pkt-card--landscape .pkt-card__image-square {
20005
+ align-self: stretch;
20006
+ }
20007
+ @media screen and (max-width: 36rem) {
20008
+ .pkt-card.pkt-card--landscape .pkt-card__image {
20009
+ margin-right: 0;
20010
+ margin-bottom: 2rem;
20011
+ max-height: 400px;
20012
+ }
20013
+ .pkt-card.pkt-card--landscape .pkt-card__image-square {
20014
+ max-width: unset;
20015
+ }
20016
+ }
20017
+ .pkt-card.pkt-card--portrait .pkt-card__image {
20018
+ margin-bottom: 2rem;
20019
+ max-height: 400px;
20020
+ }
20021
+ .pkt-card.pkt-card--padding-none.pkt-card--portrait .pkt-card__image-square {
20022
+ aspect-ratio: 19/10;
20023
+ }
20024
+ @media screen and (max-width: 36rem) {
20025
+ .pkt-card.pkt-card--padding-none.pkt-card--landscape .pkt-card__image-square {
20026
+ aspect-ratio: 19/10;
20027
+ }
20028
+ }
20029
+ .pkt-card .pkt-card__wrapper .pkt-card__link::before {
20030
+ content: "";
20031
+ position: absolute;
20032
+ inset: 0;
20033
+ z-index: 1;
20034
+ box-shadow: 0px 0px 0px 0px transparent;
20035
+ outline: 2px solid var(--pkt-color-brand-warm-blue-1000);
20036
+ outline-offset: -2px;
20037
+ outline-color: transparent;
20038
+ transition: all 0.3s ease-in-out;
20039
+ }
20040
+ .pkt-card .pkt-card__link-heading {
20041
+ transition: color 0.2s ease-in-out, text-decoration-color 0.2s ease-in-out;
20042
+ }
20043
+ .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 {
20044
+ cursor: pointer;
20045
+ outline-color: var(--pkt-color-brand-warm-blue-1000);
20046
+ }
20047
+ .pkt-card:hover .pkt-card__link-heading, .pkt-card:focus-visible .pkt-card__link-heading, .pkt-card:focus-within .pkt-card__link-heading {
20048
+ color: var(--pkt-color-brand-warm-blue-1000);
20049
+ text-decoration-color: var(--pkt-color-brand-warm-blue-1000);
20050
+ }
20051
+ .pkt-card .pkt-card__link:focus {
20052
+ outline: none;
20053
+ box-shadow: none;
20054
+ }
20055
+ .pkt-card .pkt-card__link-heading:focus-within {
20056
+ color: var(--pkt-color-brand-warm-blue-1000);
20057
+ text-decoration-color: var(--pkt-color-brand-warm-blue-1000);
20058
+ }
20059
+ .pkt-card .pkt-card__wrapper .pkt-card__link:focus-visible::before {
20060
+ box-shadow: 0px 0px 0px 4px var(--pkt-color-brand-purple-1000);
20061
+ }
20062
+ .pkt-card--outlined, .pkt-card--outlined-beige {
19945
20063
  background-color: var(--pkt-color-background-default);
20064
+ outline-offset: -4px;
20065
+ }
20066
+ .pkt-card--outlined {
20067
+ outline: 4px solid var(--pkt-color-grays-gray-100);
20068
+ }
20069
+ .pkt-card--outlined-beige {
20070
+ outline: 4px solid var(--pkt-color-brand-light-beige-1000);
19946
20071
  }
19947
20072
  .pkt-card--gray {
19948
- background-color: var(--pkt-color-background-subtle);
20073
+ background-color: var(--pkt-color-brand-neutrals-100);
19949
20074
  }
19950
20075
  .pkt-card--blue {
19951
- background-color: var(--pkt-color-brand-blue-300);
20076
+ background-color: var(--pkt-color-brand-blue-200);
19952
20077
  }
19953
20078
  .pkt-card--green {
19954
20079
  background-color: var(--pkt-color-brand-light-green-400);
@@ -19956,14 +20081,9 @@ pkt-card {
19956
20081
  .pkt-card--beige {
19957
20082
  background-color: var(--pkt-color-brand-light-beige-1000);
19958
20083
  }
19959
- .pkt-card h1,
19960
- .pkt-card h2,
19961
- .pkt-card h3,
19962
- .pkt-card h4,
19963
- .pkt-card h5,
19964
- .pkt-card p {
19965
- padding: 0;
19966
- margin: 0;
20084
+ .pkt-card--padding-none {
20085
+ background-color: transparent;
20086
+ outline: none;
19967
20087
  }
19968
20088
 
19969
20089
  pkt-combobox {