@oslokommune/punkt-css 13.6.15 → 13.9.1

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
@@ -14218,7 +14218,7 @@ a:active, a.pkt-link--active,
14218
14218
  .pkt-link--external::after {
14219
14219
  display: inline-block;
14220
14220
  content: " ";
14221
- --svg: url(https://punkt-cdn.oslo.kommune.no/13.6/icons/new-window-small.svg);
14221
+ --svg: url(https://punkt-cdn.oslo.kommune.no/13.9/icons/new-window-small.svg);
14222
14222
  background-image: var(--svg);
14223
14223
  background-repeat: no-repeat;
14224
14224
  background-size: 18px 18px;
@@ -17402,91 +17402,109 @@ button.pkt-link {
17402
17402
  }
17403
17403
 
17404
17404
  @media screen and (min-width: 0) {
17405
- .pkt-hide-mobile-up {
17405
+ .pkt-hide-mobile-up,
17406
+ .pkt-show.pkt-hide-mobile-up {
17406
17407
  display: none !important;
17407
17408
  }
17408
17409
  }
17409
17410
 
17410
- .pkt-show-mobile-up {
17411
+ .pkt-show-mobile-up,
17412
+ .pkt-hide.pkt-show-mobile-up {
17411
17413
  display: none !important;
17412
17414
  }
17413
17415
  @media screen and (min-width: 0) {
17414
- .pkt-show-mobile-up {
17416
+ .pkt-show-mobile-up,
17417
+ .pkt-hide.pkt-show-mobile-up {
17415
17418
  display: block !important;
17416
17419
  }
17417
17420
  }
17418
17421
 
17419
17422
  @media screen and (min-width: 36rem) {
17420
- .pkt-hide-phablet-up {
17423
+ .pkt-hide-phablet-up,
17424
+ .pkt-show.pkt-hide-phablet-up {
17421
17425
  display: none !important;
17422
17426
  }
17423
17427
  }
17424
17428
 
17425
- .pkt-show-phablet-up {
17429
+ .pkt-show-phablet-up,
17430
+ .pkt-hide.pkt-show-phablet-up {
17426
17431
  display: none !important;
17427
17432
  }
17428
17433
  @media screen and (min-width: 36rem) {
17429
- .pkt-show-phablet-up {
17434
+ .pkt-show-phablet-up,
17435
+ .pkt-hide.pkt-show-phablet-up {
17430
17436
  display: block !important;
17431
17437
  }
17432
17438
  }
17433
17439
 
17434
17440
  @media screen and (min-width: 48rem) {
17435
- .pkt-hide-tablet-up {
17441
+ .pkt-hide-tablet-up,
17442
+ .pkt-show.pkt-hide-tablet-up {
17436
17443
  display: none !important;
17437
17444
  }
17438
17445
  }
17439
17446
 
17440
- .pkt-show-tablet-up {
17447
+ .pkt-show-tablet-up,
17448
+ .pkt-hide.pkt-show-tablet-up {
17441
17449
  display: none !important;
17442
17450
  }
17443
17451
  @media screen and (min-width: 48rem) {
17444
- .pkt-show-tablet-up {
17452
+ .pkt-show-tablet-up,
17453
+ .pkt-hide.pkt-show-tablet-up {
17445
17454
  display: block !important;
17446
17455
  }
17447
17456
  }
17448
17457
 
17449
17458
  @media screen and (min-width: 64rem) {
17450
- .pkt-hide-tablet-big-up {
17459
+ .pkt-hide-tablet-big-up,
17460
+ .pkt-show.pkt-hide-tablet-big-up {
17451
17461
  display: none !important;
17452
17462
  }
17453
17463
  }
17454
17464
 
17455
- .pkt-show-tablet-big-up {
17465
+ .pkt-show-tablet-big-up,
17466
+ .pkt-hide.pkt-show-tablet-big-up {
17456
17467
  display: none !important;
17457
17468
  }
17458
17469
  @media screen and (min-width: 64rem) {
17459
- .pkt-show-tablet-big-up {
17470
+ .pkt-show-tablet-big-up,
17471
+ .pkt-hide.pkt-show-tablet-big-up {
17460
17472
  display: block !important;
17461
17473
  }
17462
17474
  }
17463
17475
 
17464
17476
  @media screen and (min-width: 80rem) {
17465
- .pkt-hide-laptop-up {
17477
+ .pkt-hide-laptop-up,
17478
+ .pkt-show.pkt-hide-laptop-up {
17466
17479
  display: none !important;
17467
17480
  }
17468
17481
  }
17469
17482
 
17470
- .pkt-show-laptop-up {
17483
+ .pkt-show-laptop-up,
17484
+ .pkt-hide.pkt-show-laptop-up {
17471
17485
  display: none !important;
17472
17486
  }
17473
17487
  @media screen and (min-width: 80rem) {
17474
- .pkt-show-laptop-up {
17488
+ .pkt-show-laptop-up,
17489
+ .pkt-hide.pkt-show-laptop-up {
17475
17490
  display: block !important;
17476
17491
  }
17477
17492
  }
17478
17493
 
17479
17494
  @media screen and (min-width: 100rem) {
17480
- .pkt-hide-desktop-up {
17495
+ .pkt-hide-desktop-up,
17496
+ .pkt-show.pkt-hide-desktop-up {
17481
17497
  display: none !important;
17482
17498
  }
17483
17499
  }
17484
17500
 
17485
- .pkt-show-desktop-up {
17501
+ .pkt-show-desktop-up,
17502
+ .pkt-hide.pkt-show-desktop-up {
17486
17503
  display: none !important;
17487
17504
  }
17488
17505
  @media screen and (min-width: 100rem) {
17489
- .pkt-show-desktop-up {
17506
+ .pkt-show-desktop-up,
17507
+ .pkt-hide.pkt-show-desktop-up {
17490
17508
  display: block !important;
17491
17509
  }
17492
17510
  }
@@ -18025,17 +18043,17 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18025
18043
  /* TODO: Contemplate and decide if this should be split up to multiple files or not.
18026
18044
  * button is only one without pkt-form prefix. Is that ok???
18027
18045
  */
18028
- .pkt-form {
18029
- /* EXPLICIT LABEL (recommended for use)
18030
- * - the label is connected to an input via "for" and "id"
18031
- */
18032
- }
18033
18046
  .pkt-form-group {
18034
18047
  margin-bottom: 1.5rem;
18035
18048
  }
18036
18049
  .pkt-form-group:focus-within {
18037
18050
  color: var(--pkt-color-brand-warm-blue-1000);
18038
18051
  }
18052
+ .pkt-form {
18053
+ /* EXPLICIT LABEL (recommended for use)
18054
+ * - the label is connected to an input via "for" and "id"
18055
+ */
18056
+ }
18039
18057
  .pkt-form-label {
18040
18058
  width: 100%;
18041
18059
  }
@@ -18081,9 +18099,6 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18081
18099
  padding: 0.4375rem 0.5rem;
18082
18100
  position: relative;
18083
18101
  width: 100%;
18084
- /* Placeholder
18085
- * 1. Override Firefox's default opacity
18086
- */
18087
18102
  }
18088
18103
  .pkt-form-input:focus, .pkt-form-textarea:focus {
18089
18104
  background-color: var(--pkt-color-brand-neutrals-white);
@@ -18092,6 +18107,11 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18092
18107
  color: var(--pkt-color-brand-warm-blue-1000);
18093
18108
  outline: 2px solid var(--pkt-color-brand-warm-blue-1000);
18094
18109
  }
18110
+ .pkt-form-input, .pkt-form-textarea {
18111
+ /* Placeholder
18112
+ * 1. Override Firefox's default opacity
18113
+ */
18114
+ }
18095
18115
  .pkt-form-input::placeholder, .pkt-form-textarea::placeholder {
18096
18116
  color: var(--pkt-color-grays-gray-300);
18097
18117
  opacity: 1;
@@ -18234,7 +18254,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18234
18254
  outline-color: var(--pkt-color-input-border-hover);
18235
18255
  }
18236
18256
  .pkt-input-check__input-checkbox:checked[type=checkbox] {
18237
- --svg: url(https://punkt-cdn.oslo.kommune.no/13.6/icons/check-medium.svg);
18257
+ --svg: url(https://punkt-cdn.oslo.kommune.no/13.9/icons/check-medium.svg);
18238
18258
  position: relative;
18239
18259
  background-color: var(--pkt-color-input-border-normal);
18240
18260
  }
@@ -18292,7 +18312,7 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18292
18312
  cursor: not-allowed;
18293
18313
  }
18294
18314
  .pkt-input-check__input-checkbox:disabled[type=checkbox][role=switch]:checked:after {
18295
- --svg: url(https://punkt-cdn.oslo.kommune.no/13.6/icons/check-medium.svg);
18315
+ --svg: url(https://punkt-cdn.oslo.kommune.no/13.9/icons/check-medium.svg);
18296
18316
  --pkt-color-input-check-border: var(--pkt-color-input-border-normal);
18297
18317
  filter: grayscale(100%) brightness(400%);
18298
18318
  }
@@ -18338,10 +18358,6 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18338
18358
  border: 2px solid var(--pkt-color-border-subtle);
18339
18359
  width: 21.875rem;
18340
18360
  position: relative;
18341
- /* TODO - Wait on firefox-support!
18342
- &:has(:checked) {
18343
- border-color: var(--choice-checked-rb-bc);
18344
- }*/
18345
18361
  }
18346
18362
  .pkt-input-check__input--tile .pkt-input-check__input-label:before {
18347
18363
  content: "";
@@ -18363,6 +18379,12 @@ div.pkt-btn:not([data-disabled]):active, .pkt-btn:enabled:active, .pkt-btn:activ
18363
18379
  border: 2px solid var(--pkt-color-border-default);
18364
18380
  pointer-events: none;
18365
18381
  }
18382
+ .pkt-input-check__input--tile {
18383
+ /* TODO - Wait on firefox-support!
18384
+ &:has(:checked) {
18385
+ border-color: var(--choice-checked-rb-bc);
18386
+ }*/
18387
+ }
18366
18388
  .pkt-input-check__input--tile:focus-within {
18367
18389
  background-color: var(--pkt-color-input-background-normal);
18368
18390
  border-color: var(--pkt-color-border-states-active);
@@ -18545,7 +18567,7 @@ pkt-select {
18545
18567
  }
18546
18568
  .pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
18547
18569
  .pkt-select:is(select):not([multiple]) {
18548
- --svg: url(https://punkt-cdn.oslo.kommune.no/13.6/icons/chevron-thin-down.svg);
18570
+ --svg: url(https://punkt-cdn.oslo.kommune.no/13.9/icons/chevron-thin-down.svg);
18549
18571
  background-image: var(--svg);
18550
18572
  background-repeat: no-repeat;
18551
18573
  background-position: right 0.7rem top 50%;
@@ -18867,16 +18889,6 @@ pkt-select {
18867
18889
  margin: 1rem 0;
18868
18890
  padding: 0.75rem;
18869
18891
  background-color: #2a2859;
18870
- /*
18871
- @if luminance($backgroundColor) < 0.4 {
18872
- color: white;
18873
-
18874
- a:not([class^='ok-btn']) {
18875
- color: white;
18876
- text-decoration: underline;
18877
- }
18878
- }
18879
- */
18880
18892
  }
18881
18893
  @media screen and (min-width: 35.938rem) {
18882
18894
  .pkt-section--dark {
@@ -18888,15 +18900,7 @@ pkt-select {
18888
18900
  padding: 1.5rem;
18889
18901
  }
18890
18902
  }
18891
- .pkt-section--dark a.pkt-btn--ter {
18892
- color: white;
18893
- }
18894
-
18895
- .pkt-section--danger {
18896
- color: black;
18897
- margin: 1rem 0;
18898
- padding: 0.75rem;
18899
- background-color: #ff8274;
18903
+ .pkt-section--dark {
18900
18904
  /*
18901
18905
  @if luminance($backgroundColor) < 0.4 {
18902
18906
  color: white;
@@ -18908,6 +18912,16 @@ pkt-select {
18908
18912
  }
18909
18913
  */
18910
18914
  }
18915
+ .pkt-section--dark a.pkt-btn--ter {
18916
+ color: white;
18917
+ }
18918
+
18919
+ .pkt-section--danger {
18920
+ color: black;
18921
+ margin: 1rem 0;
18922
+ padding: 0.75rem;
18923
+ background-color: #ff8274;
18924
+ }
18911
18925
  @media screen and (min-width: 35.938rem) {
18912
18926
  .pkt-section--danger {
18913
18927
  padding: 1rem;
@@ -18918,15 +18932,7 @@ pkt-select {
18918
18932
  padding: 1.5rem;
18919
18933
  }
18920
18934
  }
18921
- .pkt-section--danger a.pkt-btn--ter {
18922
- color: black;
18923
- }
18924
-
18925
- .pkt-section--gray,
18926
- .pkt-section--grey {
18927
- margin: 1rem 0;
18928
- padding: 0.75rem;
18929
- background-color: #f2f2f2;
18935
+ .pkt-section--danger {
18930
18936
  /*
18931
18937
  @if luminance($backgroundColor) < 0.4 {
18932
18938
  color: white;
@@ -18938,6 +18944,16 @@ pkt-select {
18938
18944
  }
18939
18945
  */
18940
18946
  }
18947
+ .pkt-section--danger a.pkt-btn--ter {
18948
+ color: black;
18949
+ }
18950
+
18951
+ .pkt-section--gray,
18952
+ .pkt-section--grey {
18953
+ margin: 1rem 0;
18954
+ padding: 0.75rem;
18955
+ background-color: #f2f2f2;
18956
+ }
18941
18957
  @media screen and (min-width: 35.938rem) {
18942
18958
  .pkt-section--gray,
18943
18959
  .pkt-section--grey {
@@ -18950,12 +18966,8 @@ pkt-select {
18950
18966
  padding: 1.5rem;
18951
18967
  }
18952
18968
  }
18953
-
18954
- .pkt-section--success {
18955
- color: black;
18956
- margin: 1rem 0;
18957
- padding: 0.75rem;
18958
- background-color: #43f8b6;
18969
+ .pkt-section--gray,
18970
+ .pkt-section--grey {
18959
18971
  /*
18960
18972
  @if luminance($backgroundColor) < 0.4 {
18961
18973
  color: white;
@@ -18967,6 +18979,13 @@ pkt-select {
18967
18979
  }
18968
18980
  */
18969
18981
  }
18982
+
18983
+ .pkt-section--success {
18984
+ color: black;
18985
+ margin: 1rem 0;
18986
+ padding: 0.75rem;
18987
+ background-color: #43f8b6;
18988
+ }
18970
18989
  @media screen and (min-width: 35.938rem) {
18971
18990
  .pkt-section--success {
18972
18991
  padding: 1rem;
@@ -18977,14 +18996,7 @@ pkt-select {
18977
18996
  padding: 1.5rem;
18978
18997
  }
18979
18998
  }
18980
- .pkt-section--success a.pkt-btn--ter {
18981
- color: black;
18982
- }
18983
-
18984
- .pkt-section--warning {
18985
- margin: 1rem 0;
18986
- padding: 0.75rem;
18987
- background-color: #f9c66b;
18999
+ .pkt-section--success {
18988
19000
  /*
18989
19001
  @if luminance($backgroundColor) < 0.4 {
18990
19002
  color: white;
@@ -18996,6 +19008,15 @@ pkt-select {
18996
19008
  }
18997
19009
  */
18998
19010
  }
19011
+ .pkt-section--success a.pkt-btn--ter {
19012
+ color: black;
19013
+ }
19014
+
19015
+ .pkt-section--warning {
19016
+ margin: 1rem 0;
19017
+ padding: 0.75rem;
19018
+ background-color: #f9c66b;
19019
+ }
18999
19020
  @media screen and (min-width: 35.938rem) {
19000
19021
  .pkt-section--warning {
19001
19022
  padding: 1rem;
@@ -19006,11 +19027,7 @@ pkt-select {
19006
19027
  padding: 1.5rem;
19007
19028
  }
19008
19029
  }
19009
-
19010
- .pkt-section--info {
19011
- margin: 1rem 0;
19012
- padding: 0.75rem;
19013
- background-color: #b3f5ff;
19030
+ .pkt-section--warning {
19014
19031
  /*
19015
19032
  @if luminance($backgroundColor) < 0.4 {
19016
19033
  color: white;
@@ -19022,6 +19039,12 @@ pkt-select {
19022
19039
  }
19023
19040
  */
19024
19041
  }
19042
+
19043
+ .pkt-section--info {
19044
+ margin: 1rem 0;
19045
+ padding: 0.75rem;
19046
+ background-color: #b3f5ff;
19047
+ }
19025
19048
  @media screen and (min-width: 35.938rem) {
19026
19049
  .pkt-section--info {
19027
19050
  padding: 1rem;
@@ -19032,15 +19055,7 @@ pkt-select {
19032
19055
  padding: 1.5rem;
19033
19056
  }
19034
19057
  }
19035
- .pkt-section--info a.pkt-btn--ter {
19036
- color: black;
19037
- }
19038
-
19039
- .pkt-section--frame {
19040
- border: 1px solid #2c2c2c;
19041
- margin: 1rem 0;
19042
- padding: 0.75rem;
19043
- background-color: white;
19058
+ .pkt-section--info {
19044
19059
  /*
19045
19060
  @if luminance($backgroundColor) < 0.4 {
19046
19061
  color: white;
@@ -19052,6 +19067,16 @@ pkt-select {
19052
19067
  }
19053
19068
  */
19054
19069
  }
19070
+ .pkt-section--info a.pkt-btn--ter {
19071
+ color: black;
19072
+ }
19073
+
19074
+ .pkt-section--frame {
19075
+ border: 1px solid #2c2c2c;
19076
+ margin: 1rem 0;
19077
+ padding: 0.75rem;
19078
+ background-color: white;
19079
+ }
19055
19080
  @media screen and (min-width: 35.938rem) {
19056
19081
  .pkt-section--frame {
19057
19082
  padding: 1rem;
@@ -19062,6 +19087,18 @@ pkt-select {
19062
19087
  padding: 1.5rem;
19063
19088
  }
19064
19089
  }
19090
+ .pkt-section--frame {
19091
+ /*
19092
+ @if luminance($backgroundColor) < 0.4 {
19093
+ color: white;
19094
+
19095
+ a:not([class^='ok-btn']) {
19096
+ color: white;
19097
+ text-decoration: underline;
19098
+ }
19099
+ }
19100
+ */
19101
+ }
19065
19102
 
19066
19103
  [class*=ok-section-] > [class^=ok-title-] {
19067
19104
  margin-top: 0;
@@ -22484,6 +22521,11 @@ pkt-messagebox {
22484
22521
  min-width: 2rem;
22485
22522
  }
22486
22523
 
22524
+ pkt-tabs,
22525
+ pkt-tab-item {
22526
+ display: block;
22527
+ }
22528
+
22487
22529
  .pkt-tabs {
22488
22530
  --pkt-tabs-bg: var(--pkt-color-background-default);
22489
22531
  background-color: var(--pkt-tabs-bg);