@oslokommune/punkt-css 6.0.5 → 7.1.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
@@ -11539,7 +11539,7 @@ a:active, a.pkt-link--active,
11539
11539
  }
11540
11540
  .pkt-link--external::after {
11541
11541
  content: " ";
11542
- --svg: url(https://punkt-cdn.oslo.kommune.no/6.0/icons/new-window-small.svg);
11542
+ --svg: url(https://punkt-cdn.oslo.kommune.no/7.1/icons/new-window-small.svg);
11543
11543
  background-image: var(--svg);
11544
11544
  background-repeat: no-repeat;
11545
11545
  background-size: 18px 18px;
@@ -12555,7 +12555,7 @@ a.pkt-btn:active, .pkt-btn:enabled:active, .pkt-btn.pkt-btn--active, .pkt-btn.pk
12555
12555
  border: 6px solid var(--choice-checked-rb-bc);
12556
12556
  }
12557
12557
  .pkt-form-check-input:checked[type=checkbox] {
12558
- --svg: url(https://punkt-cdn.oslo.kommune.no/6.0/icons/check-medium.svg);
12558
+ --svg: url(https://punkt-cdn.oslo.kommune.no/7.1/icons/check-medium.svg);
12559
12559
  position: relative;
12560
12560
  background-color: blue;
12561
12561
  }
@@ -12986,7 +12986,7 @@ Therefore, this is removed from the reset here, and images who need to be fluid
12986
12986
  * så dette må refaktoreres ved anledning.
12987
12987
  */
12988
12988
  .pkt-select {
12989
- --svg: url(https://punkt-cdn.oslo.kommune.no/6.0/icons/chevron-thin-down.svg);
12989
+ --svg: url(https://punkt-cdn.oslo.kommune.no/7.1/icons/chevron-thin-down.svg);
12990
12990
  display: block;
12991
12991
  background-color: var(--color-white);
12992
12992
  background-image: var(--svg);
@@ -13337,41 +13337,14 @@ Therefore, this is removed from the reset here, and images who need to be fluid
13337
13337
  /*
13338
13338
  * Back link component
13339
13339
  */
13340
- .pkt-back-link {
13341
- position: relative;
13342
- font-size: 0.875rem;
13343
- font-weight: 300;
13344
- letter-spacing: -0.2px;
13345
- line-height: 1.375rem;
13346
- padding: 0.75rem 1rem;
13347
- }
13348
- @media screen and (min-width: 80rem) {
13349
- .pkt-back-link {
13350
- padding: 0.75rem 4rem;
13351
- }
13352
- }
13353
- .pkt-back-link__list {
13354
- list-style-type: none;
13355
- }
13356
- .pkt-back-link__link {
13357
- display: flex;
13358
- align-items: center;
13359
- justify-content: flex-start;
13360
- gap: 0.75rem;
13361
- text-decoration: none;
13362
- color: var(--color-blue-dark);
13363
- }
13364
- .pkt-back-link__link:visited, .pkt-back-link__link:focus, .pkt-back-link__link:hover, .pkt-back-link__link:active {
13365
- color: var(--color-blue-dark);
13366
- }
13367
- .pkt-back-link__link:hover {
13368
- text-decoration: underline;
13369
- }
13370
13340
  .pkt-back-link__icon {
13371
13341
  flex-basis: 1rem;
13372
- flex-shrink: 0;
13373
13342
  }
13374
13343
  .pkt-back-link__text {
13344
+ font-size: 0.875rem;
13345
+ font-weight: 300;
13346
+ letter-spacing: -0.2px;
13347
+ line-height: 1.375rem;
13375
13348
  flex-grow: 1;
13376
13349
  }
13377
13350
 
@@ -14000,6 +13973,127 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14000
13973
  width: 4rem;
14001
13974
  }
14002
13975
 
13976
+ /* inputwrapper */
13977
+ .pkt-inputwrapper__label {
13978
+ font-size: 1.125rem;
13979
+ font-weight: 500;
13980
+ letter-spacing: -0.2px;
13981
+ line-height: 1.75rem;
13982
+ display: flex;
13983
+ flex-direction: column;
13984
+ align-items: flex-start;
13985
+ gap: 0.5rem;
13986
+ }
13987
+ .pkt-inputwrapper__label > h2 {
13988
+ font-size: inherit;
13989
+ font-weight: inherit;
13990
+ letter-spacing: inherit;
13991
+ line-height: inherit;
13992
+ display: inline;
13993
+ margin-bottom: 0;
13994
+ }
13995
+ .pkt-inputwrapper__helptext {
13996
+ display: flex;
13997
+ flex-direction: column;
13998
+ align-items: flex-start;
13999
+ gap: 0.25rem;
14000
+ font-size: 0.875rem;
14001
+ font-weight: 300;
14002
+ letter-spacing: -0.2px;
14003
+ line-height: 1.375rem;
14004
+ }
14005
+ .pkt-inputwrapper__helptext-expandable {
14006
+ display: inline-flex;
14007
+ text-align: left;
14008
+ align-items: center;
14009
+ }
14010
+ .pkt-inputwrapper__helptext-expandable-heading {
14011
+ font-size: 1.125rem;
14012
+ font-weight: 500;
14013
+ letter-spacing: -0.2px;
14014
+ line-height: 1.75rem;
14015
+ margin: 0;
14016
+ }
14017
+ .pkt-inputwrapper__helptext-expandable-open {
14018
+ width: 100%;
14019
+ display: block;
14020
+ }
14021
+ .pkt-inputwrapper__helptext-expandable-closed {
14022
+ display: none;
14023
+ }
14024
+ .pkt-inputwrapper--disabled {
14025
+ color: var(--color-disabled);
14026
+ cursor: inherit;
14027
+ }
14028
+ .pkt-inputwrapper--disabled .pkt-tag {
14029
+ background-color: var(--color-disabled-light);
14030
+ }
14031
+ .pkt-inputwrapper--disabled .pkt-alert {
14032
+ background-color: var(--color-disabled-light);
14033
+ border-color: var(--color-disabled);
14034
+ }
14035
+ .pkt-inputwrapper--inline {
14036
+ display: inline-block;
14037
+ vertical-align: middle;
14038
+ margin-right: 8px;
14039
+ }
14040
+ .pkt-inputwrapper .pkt-alert {
14041
+ width: 100%;
14042
+ padding: 0.75rem 1rem 0.75rem 4px;
14043
+ margin: 0 0 0.5rem 0;
14044
+ }
14045
+ .pkt-inputwrapper .pkt-alert--error {
14046
+ margin: 0.5rem 0 0.5rem 0;
14047
+ }
14048
+ .pkt-inputwrapper .pkt-alert__icon {
14049
+ width: 1.375rem;
14050
+ height: 1.375rem;
14051
+ top: 0.81rem;
14052
+ left: 1.25rem;
14053
+ }
14054
+ .pkt-inputwrapper .pkt-alert__text {
14055
+ font-size: 1rem;
14056
+ font-weight: 300;
14057
+ letter-spacing: -0.2px;
14058
+ line-height: 1.5rem;
14059
+ margin: 0 0 0 2.875rem;
14060
+ }
14061
+ .pkt-inputwrapper .pkt-tag {
14062
+ margin-left: 8px;
14063
+ }
14064
+ .pkt-inputwrapper .pkt-btn {
14065
+ font-size: 0.875rem;
14066
+ font-weight: 300;
14067
+ letter-spacing: -0.2px;
14068
+ line-height: 1.375rem;
14069
+ padding: 0;
14070
+ }
14071
+ .pkt-inputwrapper--error .pkt-textinput__input,
14072
+ .pkt-inputwrapper--error .pkt-textinput__input-prefix,
14073
+ .pkt-inputwrapper--error .pkt-textinput__input-suffix,
14074
+ .pkt-inputwrapper--error .pkt-textinput__input-icon {
14075
+ border-color: var(--color-red);
14076
+ }
14077
+ .pkt-inputwrapper--error .pkt-textinput__input:hover,
14078
+ .pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,
14079
+ .pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,
14080
+ .pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,
14081
+ .pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,
14082
+ .pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
14083
+ border-color: var(--color-red);
14084
+ }
14085
+ .pkt-inputwrapper--error .pkt-textinput__input:focus-within,
14086
+ .pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,
14087
+ .pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input,
14088
+ .pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-prefix,
14089
+ .pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,
14090
+ .pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon,
14091
+ .pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input,
14092
+ .pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-suffix,
14093
+ .pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon {
14094
+ border-color: var(--color-red);
14095
+ }
14096
+
14003
14097
  /*
14004
14098
  * Header element
14005
14099
  */
@@ -14197,53 +14291,6 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14197
14291
  }
14198
14292
 
14199
14293
  /* textinput */
14200
- .pkt-textinput__label {
14201
- font-size: 1.125rem;
14202
- font-weight: 500;
14203
- letter-spacing: -0.2px;
14204
- line-height: 1.75rem;
14205
- display: flex;
14206
- flex-direction: column;
14207
- align-items: flex-start;
14208
- gap: 0.5rem;
14209
- }
14210
- .pkt-textinput__label > h2 {
14211
- font-size: inherit;
14212
- font-weight: inherit;
14213
- letter-spacing: inherit;
14214
- line-height: inherit;
14215
- display: inline;
14216
- margin-bottom: 0;
14217
- }
14218
- .pkt-textinput__helptext {
14219
- display: flex;
14220
- flex-direction: column;
14221
- align-items: flex-start;
14222
- gap: 0.25rem;
14223
- font-size: 0.875rem;
14224
- font-weight: 300;
14225
- letter-spacing: -0.2px;
14226
- line-height: 1.375rem;
14227
- }
14228
- .pkt-textinput__helptext-expandable {
14229
- display: inline-flex;
14230
- text-align: left;
14231
- align-items: center;
14232
- }
14233
- .pkt-textinput__helptext-expandable-heading {
14234
- font-size: 1.125rem;
14235
- font-weight: 500;
14236
- letter-spacing: -0.2px;
14237
- line-height: 1.75rem;
14238
- margin: 0;
14239
- }
14240
- .pkt-textinput__helptext-expandable-open {
14241
- width: 100%;
14242
- display: block;
14243
- }
14244
- .pkt-textinput__helptext-expandable-closed {
14245
- display: none;
14246
- }
14247
14294
  .pkt-textinput__input {
14248
14295
  font-size: 1.125rem;
14249
14296
  font-weight: 300;
@@ -14260,6 +14307,9 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14260
14307
  padding: 0.5rem 1rem;
14261
14308
  width: 100%;
14262
14309
  }
14310
+ .pkt-textinput__input:is(textarea) {
14311
+ min-height: 8rem;
14312
+ }
14263
14313
  .pkt-textinput__input::placeholder {
14264
14314
  color: var(--color-grayscale-50);
14265
14315
  opacity: 1;
@@ -14393,110 +14443,64 @@ Therefore, this is removed from the reset here, and images who need to be fluid
14393
14443
  height: 1.5rem;
14394
14444
  margin-left: 0.5rem;
14395
14445
  }
14396
- .pkt-textinput--disabled {
14397
- color: var(--color-disabled);
14398
- cursor: inherit;
14446
+ .pkt-textinput__input--counter-error, .pkt-textinput__input--counter-error:focus {
14447
+ border-color: var(--color-red);
14448
+ background-color: var(--color-red-30);
14399
14449
  }
14400
- .pkt-textinput--disabled .pkt-tag {
14401
- background-color: var(--color-disabled-light);
14450
+ .pkt-textinput__input--counter-error:focus {
14451
+ box-shadow: 0 0 0 2px var(--color-red);
14402
14452
  }
14403
- .pkt-textinput--disabled .pkt-alert {
14404
- background-color: var(--color-disabled-light);
14405
- border-color: var(--color-disabled);
14453
+ .pkt-textinput__counter {
14454
+ font-size: 0.875rem;
14455
+ font-weight: 300;
14456
+ letter-spacing: -0.2px;
14457
+ line-height: 1.375rem;
14458
+ width: 100%;
14459
+ text-align: right;
14460
+ }
14461
+ .pkt-textinput__counter--error {
14462
+ font-size: 0.875rem;
14463
+ font-weight: 500;
14464
+ letter-spacing: -0.2px;
14465
+ line-height: 1.375rem;
14466
+ color: var(--color-red);
14467
+ }
14468
+ .pkt-inputwrapper--disabled {
14469
+ color: var(--color-disabled);
14470
+ cursor: inherit;
14406
14471
  }
14407
- .pkt-textinput--disabled .pkt-textinput__input,
14408
- .pkt-textinput--disabled .pkt-textinput__input-prefix,
14409
- .pkt-textinput--disabled .pkt-textinput__input-suffix,
14410
- .pkt-textinput--disabled .pkt-textinput__input-icon {
14472
+ .pkt-inputwrapper--disabled .pkt-textinput__input,
14473
+ .pkt-inputwrapper--disabled .pkt-textinput__input-prefix,
14474
+ .pkt-inputwrapper--disabled .pkt-textinput__input-suffix,
14475
+ .pkt-inputwrapper--disabled .pkt-textinput__input-icon {
14411
14476
  border-color: var(--color-disabled);
14412
14477
  background-color: var(--color-disabled-light);
14413
14478
  }
14414
- .pkt-textinput--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,
14415
- .pkt-textinput--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,
14416
- .pkt-textinput--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,
14417
- .pkt-textinput--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,
14418
- .pkt-textinput--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
14479
+ .pkt-inputwrapper--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,
14480
+ .pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,
14481
+ .pkt-inputwrapper--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,
14482
+ .pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,
14483
+ .pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
14419
14484
  border-color: var(--color-disabled);
14420
14485
  }
14421
- .pkt-textinput--disabled .pkt-textinput__input:hover {
14486
+ .pkt-inputwrapper--disabled .pkt-textinput__input:hover {
14422
14487
  border-color: var(--color-disabled);
14423
14488
  box-shadow: none;
14424
14489
  }
14425
- .pkt-textinput--disabled .pkt-textinput__input:focus {
14490
+ .pkt-inputwrapper--disabled .pkt-textinput__input:focus {
14426
14491
  border-color: var(--color-disabled);
14427
14492
  box-shadow: none;
14428
14493
  outline: none;
14429
14494
  }
14430
- .pkt-textinput--disabled .pkt-textinput__input-suffix-wrapper:active .pkt-textinput__input {
14495
+ .pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:active .pkt-textinput__input {
14431
14496
  border-right: none;
14432
14497
  box-shadow: none;
14433
14498
  outline: none;
14434
14499
  }
14435
- .pkt-textinput--error .pkt-textinput__input,
14436
- .pkt-textinput--error .pkt-textinput__input-prefix,
14437
- .pkt-textinput--error .pkt-textinput__input-suffix,
14438
- .pkt-textinput--error .pkt-textinput__input-icon {
14439
- border-color: var(--color-red);
14440
- }
14441
- .pkt-textinput--error .pkt-textinput__input:hover,
14442
- .pkt-textinput--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,
14443
- .pkt-textinput--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,
14444
- .pkt-textinput--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,
14445
- .pkt-textinput--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,
14446
- .pkt-textinput--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
14447
- border-color: var(--color-red);
14448
- }
14449
- .pkt-textinput--error .pkt-textinput__input:focus-within,
14450
- .pkt-textinput--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,
14451
- .pkt-textinput--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input,
14452
- .pkt-textinput--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-prefix,
14453
- .pkt-textinput--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,
14454
- .pkt-textinput--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon,
14455
- .pkt-textinput--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input,
14456
- .pkt-textinput--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-suffix,
14457
- .pkt-textinput--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon {
14458
- border-color: var(--color-red);
14459
- }
14460
- .pkt-textinput--inline {
14461
- display: inline-block;
14462
- vertical-align: middle;
14463
- margin-right: 8px;
14464
- }
14500
+
14465
14501
  [data-mode=dark] .pkt-textinput__input-prefix,
14466
14502
  [data-mode=dark] .pkt-textinput__input-suffix,
14467
14503
  [data-mode=dark] .pkt-textinput__input-icon {
14468
14504
  background-color: var(--color-white);
14469
14505
  color: var(--color-blue-dark);
14470
- }
14471
-
14472
- .pkt-textinput .pkt-alert {
14473
- width: 100%;
14474
- padding: 0.75rem 1rem 0.75rem 4px;
14475
- margin: 0 0 0.5rem 0;
14476
- }
14477
- .pkt-textinput .pkt-alert--error {
14478
- margin: 0.5rem 0 0.5rem 0;
14479
- }
14480
- .pkt-textinput .pkt-alert__icon {
14481
- width: 1.375rem;
14482
- height: 1.375rem;
14483
- top: 0.81rem;
14484
- left: 1.25rem;
14485
- }
14486
- .pkt-textinput .pkt-alert__text {
14487
- font-size: 1rem;
14488
- font-weight: 300;
14489
- letter-spacing: -0.2px;
14490
- line-height: 1.5rem;
14491
- margin: 0 0 0 2.875rem;
14492
- }
14493
- .pkt-textinput .pkt-tag {
14494
- margin-left: 8px;
14495
- }
14496
- .pkt-textinput .pkt-btn {
14497
- font-size: 0.875rem;
14498
- font-weight: 300;
14499
- letter-spacing: -0.2px;
14500
- line-height: 1.375rem;
14501
- padding: 0;
14502
14506
  }