@oslokommune/punkt-css 16.2.0 → 16.4.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.
@@ -14410,7 +14410,7 @@ a:active, a.pkt-link--active,
14410
14410
  .pkt-link--external::after {
14411
14411
  display: inline-block;
14412
14412
  content: " ";
14413
- --svg: url(https://punkt-cdn.oslo.kommune.no/16.2/icons/new-window-small.svg);
14413
+ --svg: url(https://punkt-cdn.oslo.kommune.no/16.4/icons/new-window-small.svg);
14414
14414
  background-image: var(--svg);
14415
14415
  background-repeat: no-repeat;
14416
14416
  background-size: 18px 18px;
@@ -18452,7 +18452,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18452
18452
  outline-color: var(--pkt-color-input-border-hover);
18453
18453
  }
18454
18454
  .pkt-input-check__input-checkbox:indeterminate[type=checkbox]:not([role=switch]) {
18455
- --svg: url(https://punkt-cdn.oslo.kommune.no/16.2/icons/minus-sign.svg);
18455
+ --svg: url(https://punkt-cdn.oslo.kommune.no/16.4/icons/minus-sign.svg);
18456
18456
  position: relative;
18457
18457
  background-color: var(--pkt-color-input-border-normal);
18458
18458
  }
@@ -18478,7 +18478,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18478
18478
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(271deg) brightness(105%) contrast(101%);
18479
18479
  }
18480
18480
  .pkt-input-check__input-checkbox:checked[type=checkbox] {
18481
- --svg: url(https://punkt-cdn.oslo.kommune.no/16.2/icons/check-medium.svg);
18481
+ --svg: url(https://punkt-cdn.oslo.kommune.no/16.4/icons/check-medium.svg);
18482
18482
  position: relative;
18483
18483
  background-color: var(--pkt-color-input-border-normal);
18484
18484
  }
@@ -18536,7 +18536,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18536
18536
  cursor: not-allowed;
18537
18537
  }
18538
18538
  .pkt-input-check__input-checkbox:disabled[type=checkbox][role=switch]:checked:after {
18539
- --svg: url(https://punkt-cdn.oslo.kommune.no/16.2/icons/check-medium.svg);
18539
+ --svg: url(https://punkt-cdn.oslo.kommune.no/16.4/icons/check-medium.svg);
18540
18540
  --pkt-color-input-check-border: var(--pkt-color-input-border-normal);
18541
18541
  filter: grayscale(100%) brightness(400%);
18542
18542
  }
@@ -18754,7 +18754,7 @@ pkt-select {
18754
18754
  }
18755
18755
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
18756
18756
  .pkt-select:is(select):not([multiple]) {
18757
- --svg: url(https://punkt-cdn.oslo.kommune.no/16.2/icons/chevron-thin-down.svg);
18757
+ --svg: url(https://punkt-cdn.oslo.kommune.no/16.4/icons/chevron-thin-down.svg);
18758
18758
  background-image: var(--svg);
18759
18759
  background-repeat: no-repeat;
18760
18760
  background-position: right 0.7rem top 50%;
@@ -19794,6 +19794,10 @@ pkt-alert {
19794
19794
  /*
19795
19795
  * Back link component
19796
19796
  */
19797
+ .pkt-back-link .pkt-link {
19798
+ display: inline-flex;
19799
+ align-items: center;
19800
+ }
19797
19801
  .pkt-back-link__icon {
19798
19802
  flex-basis: 1rem;
19799
19803
  }
@@ -23542,7 +23546,7 @@ pkt-listbox {
23542
23546
  .pkt-modal {
23543
23547
  border: none;
23544
23548
  padding: 0;
23545
- background-color: transparent;
23549
+ background-color: var(--pkt-color-background-default);
23546
23550
  opacity: 0;
23547
23551
  display: none;
23548
23552
  transition: translate 0.2s ease-in-out, opacity 0.2s ease-in-out, overlay 0.2s ease-in-out allow-discrete, display 0.2s ease-in-out allow-discrete;
@@ -23596,11 +23600,10 @@ pkt-listbox {
23596
23600
  max-height: 100vh;
23597
23601
  max-height: 100dvh;
23598
23602
  margin: 0;
23599
- overflow-y: auto;
23600
23603
  }
23601
23604
  .pkt-modal__drawer .pkt-modal__wrapper {
23602
- min-height: 100vh;
23603
- min-height: 100dvh;
23605
+ height: 100vh;
23606
+ height: 100dvh;
23604
23607
  }
23605
23608
  .pkt-modal__drawer[open] {
23606
23609
  translate: 0 0;
@@ -23655,13 +23658,17 @@ pkt-listbox {
23655
23658
  }
23656
23659
  .pkt-modal .pkt-modal__container {
23657
23660
  padding-top: 2rem;
23661
+ margin-top: -1px;
23658
23662
  background: var(--pkt-color-background-default);
23659
- overflow-y: auto;
23663
+ display: flex;
23664
+ flex-direction: column;
23665
+ min-height: 0;
23666
+ overflow: hidden;
23660
23667
  }
23661
23668
  .pkt-modal .pkt-modal__header {
23662
23669
  display: grid;
23663
23670
  grid-template-columns: 1fr 4rem;
23664
- grid-template-rows: 4rem 1fr;
23671
+ grid-template-rows: calc(4rem + 1px) 1fr;
23665
23672
  grid-template-areas: "header close" "header empty";
23666
23673
  justify-content: flex-start;
23667
23674
  width: 100%;
@@ -23728,6 +23735,7 @@ pkt-listbox {
23728
23735
  flex-grow: 1;
23729
23736
  gap: 1rem;
23730
23737
  overflow-y: auto;
23738
+ overscroll-behavior: contain;
23731
23739
  padding: 2rem 2.5rem;
23732
23740
  padding-top: 0;
23733
23741
  position: relative;
@@ -23803,6 +23811,7 @@ body.pkt-modal--open {
23803
23811
  }
23804
23812
  .pkt-modal--noShadow {
23805
23813
  box-shadow: none;
23814
+ background-color: transparent;
23806
23815
  }
23807
23816
 
23808
23817
  .pkt-modal--transparentBackdrop::backdrop, .pkt-modal--transparentBackdrop[open]::backdrop {