@oslokommune/punkt-css 11.1.0 → 11.2.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/dist/css/pkt.css CHANGED
@@ -11321,6 +11321,7 @@ body {
11321
11321
  padding-left: 1rem;
11322
11322
  padding-right: 1rem;
11323
11323
  width: 100%;
11324
+ max-width: 100vw;
11324
11325
  }
11325
11326
  @media screen and (min-width: 48rem) {
11326
11327
  .pkt-container {
@@ -13503,8 +13504,8 @@ a,
13503
13504
  word-wrap: break-word;
13504
13505
  cursor: pointer;
13505
13506
  }
13506
- a:visited:not(.pkt-linkcard):not(.pkt-btn),
13507
- .pkt-link-button:visited:not(.pkt-linkcard):not(.pkt-btn) {
13507
+ a:visited:not(.pkt-linkcard):not(.pkt-btn):not(.pkt-tabs__link),
13508
+ .pkt-link-button:visited:not(.pkt-linkcard):not(.pkt-btn):not(.pkt-tabs__link) {
13508
13509
  color: inherit;
13509
13510
  }
13510
13511
  a:hover, a.pkt-link--hover,
@@ -13554,7 +13555,7 @@ a:active, a.pkt-link--active,
13554
13555
  }
13555
13556
  .pkt-link--external::after {
13556
13557
  content: " ";
13557
- --svg: url(https://punkt-cdn.oslo.kommune.no/11.1/icons/new-window-small.svg);
13558
+ --svg: url(https://punkt-cdn.oslo.kommune.no/11.2/icons/new-window-small.svg);
13558
13559
  background-image: var(--svg);
13559
13560
  background-repeat: no-repeat;
13560
13561
  background-size: 18px 18px;
@@ -17452,7 +17453,7 @@ a.pkt-btn:active, .pkt-btn:enabled:active, .pkt-btn.pkt-btn--active, .pkt-btn.pk
17452
17453
  outline-color: var(--pkt-color-input-border-hover);
17453
17454
  }
17454
17455
  .pkt-input-check__input-checkbox:checked[type=checkbox] {
17455
- --svg: url(https://punkt-cdn.oslo.kommune.no/11.1/icons/check-medium.svg);
17456
+ --svg: url(https://punkt-cdn.oslo.kommune.no/11.2/icons/check-medium.svg);
17456
17457
  position: relative;
17457
17458
  background-color: var(--pkt-color-input-border-normal);
17458
17459
  }
@@ -17708,7 +17709,7 @@ Therefore, this is removed from the reset here, and images who need to be fluid
17708
17709
  }
17709
17710
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
17710
17711
  .pkt-select:is(select):not([multiple]) {
17711
- --svg: url(https://punkt-cdn.oslo.kommune.no/11.1/icons/chevron-thin-down.svg);
17712
+ --svg: url(https://punkt-cdn.oslo.kommune.no/11.2/icons/chevron-thin-down.svg);
17712
17713
  background-image: var(--svg);
17713
17714
  background-repeat: no-repeat;
17714
17715
  background-position: right 0.7rem top 50%;
@@ -19383,6 +19384,87 @@ Therefore, this is removed from the reset here, and images who need to be fluid
19383
19384
  color: white;
19384
19385
  }
19385
19386
 
19387
+ .pkt-tabs {
19388
+ --pkt-tabs-bg: var(--pkt-color-background-default);
19389
+ background-color: var(--pkt-tabs-bg);
19390
+ position: relative;
19391
+ border-bottom: 1px solid var(--pkt-color-border-gray);
19392
+ }
19393
+ .pkt-tabs__list {
19394
+ position: relative;
19395
+ width: auto;
19396
+ width: 100%;
19397
+ overflow-x: scroll;
19398
+ scrollbar-width: thin;
19399
+ padding: 0.25rem 4rem 0 0.25rem;
19400
+ margin: 0;
19401
+ display: flex;
19402
+ flex-wrap: nowrap;
19403
+ align-items: flex-start;
19404
+ }
19405
+ .pkt-tabs__button {
19406
+ border: 0;
19407
+ padding: 0;
19408
+ background: none;
19409
+ border-radius: 0;
19410
+ }
19411
+ .pkt-tabs__link, .pkt-tabs__button {
19412
+ cursor: pointer;
19413
+ display: flex;
19414
+ align-items: center;
19415
+ gap: 0.5rem;
19416
+ padding: 0.75rem 1rem;
19417
+ color: var(--pkt-color-text-action-disabled);
19418
+ border-bottom: 0.25rem solid transparent;
19419
+ font-size: 1rem;
19420
+ font-weight: 400;
19421
+ letter-spacing: -0.2px;
19422
+ line-height: 1.5rem;
19423
+ white-space: nowrap;
19424
+ }
19425
+ .pkt-tabs__link .pkt-icon, .pkt-tabs__button .pkt-icon {
19426
+ --fg-color: currentColor;
19427
+ }
19428
+ .pkt-tabs__link, .pkt-tabs__link:hover, .pkt-tabs__link:active, .pkt-tabs__button, .pkt-tabs__button:hover, .pkt-tabs__button:active {
19429
+ text-decoration: none;
19430
+ }
19431
+ .pkt-tabs__link:focus:not(:active), .pkt-tabs__link:focus-visible:not(:active), .pkt-tabs__button:focus:not(:active), .pkt-tabs__button:focus-visible:not(:active) {
19432
+ border: 0;
19433
+ box-shadow: none;
19434
+ background-color: var(--pkt-color-surface-default-gray);
19435
+ outline: 0.25rem solid var(--pkt-color-border-states-focus);
19436
+ outline-offset: 0;
19437
+ }
19438
+ .pkt-tabs__link.active:focus, .pkt-tabs__link.active:focus-visible, .pkt-tabs__button.active:focus, .pkt-tabs__button.active:focus-visible {
19439
+ box-shadow: none;
19440
+ border-bottom: 0.25rem solid var(--pkt-color-border-blue);
19441
+ }
19442
+ .pkt-tabs__link:hover, .pkt-tabs__link:focus, .pkt-tabs__link:focus-visible, .pkt-tabs__link:focus-visible:is(:active), .pkt-tabs__link:focus:is(:active), .pkt-tabs__link:active, .pkt-tabs__button:hover, .pkt-tabs__button:focus, .pkt-tabs__button:focus-visible, .pkt-tabs__button:focus-visible:is(:active), .pkt-tabs__button:focus:is(:active), .pkt-tabs__button:active {
19443
+ outline: 0;
19444
+ color: var(--pkt-color-text-action-active);
19445
+ border-bottom: 0.25rem solid var(--pkt-color-border-states-hover);
19446
+ }
19447
+ .pkt-tabs__link.active, .pkt-tabs__button.active {
19448
+ color: var(--pkt-color-text-action-normal);
19449
+ border-bottom: 0.25rem solid var(--pkt-color-border-blue);
19450
+ font-size: 1rem;
19451
+ font-weight: 500;
19452
+ letter-spacing: -0.2px;
19453
+ line-height: 1.5rem;
19454
+ }
19455
+ .pkt-tabs:after {
19456
+ content: "";
19457
+ display: block;
19458
+ position: absolute;
19459
+ z-index: 3;
19460
+ background: linear-gradient(90deg, transparent 0%, var(--pkt-color-background-default) 100%);
19461
+ top: 0;
19462
+ right: 0;
19463
+ bottom: 0;
19464
+ width: 5rem;
19465
+ pointer-events: none;
19466
+ }
19467
+
19386
19468
  /*
19387
19469
  * Header element
19388
19470
  */