@oslokommune/punkt-css 7.0.0 → 7.1.5
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/CHANGELOG.md +36 -0
- package/dist/css/components/backlink.css +4 -31
- package/dist/css/components/backlink.min.css +1 -1
- package/dist/css/components/inputwrapper.css +45 -13
- package/dist/css/components/inputwrapper.min.css +1 -1
- package/dist/css/components/textinput.css +39 -107
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/pkt-base.css +1 -1
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +88 -151
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-elements.css +2 -2
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +91 -154
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/base/_typography.scss +1 -1
- package/dist/scss/components/_backlink.scss +1 -35
- package/dist/scss/components/_inputwrapper.scss +54 -19
- package/dist/scss/components/_textinput.scss +49 -127
- package/dist/scss/elements/_checkbox-radio.scss +1 -1
- package/dist/scss/elements/_select.scss +1 -1
- package/package.json +2 -2
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/7.
|
|
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/7.
|
|
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/7.
|
|
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
|
|
|
@@ -14102,24 +14075,56 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
14102
14075
|
border-color: var(--color-red);
|
|
14103
14076
|
}
|
|
14104
14077
|
.pkt-inputwrapper--error .pkt-textinput__input:hover,
|
|
14105
|
-
.pkt-inputwrapper--error .pkt-
|
|
14106
|
-
.pkt-inputwrapper--error .pkt-
|
|
14107
|
-
.pkt-inputwrapper--error .pkt-
|
|
14108
|
-
.pkt-inputwrapper--error .pkt-
|
|
14109
|
-
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
|
|
14078
|
+
.pkt-inputwrapper--error .pkt-textinput__container:hover .pkt-textinput__input,
|
|
14079
|
+
.pkt-inputwrapper--error .pkt-textinput__container:hover .pkt-textinput__input-prefix,
|
|
14080
|
+
.pkt-inputwrapper--error .pkt-textinput__container:hover .pkt-textinput__input-suffix,
|
|
14081
|
+
.pkt-inputwrapper--error .pkt-textinput__container:hover .pkt-textinput__input-icon {
|
|
14110
14082
|
border-color: var(--color-red);
|
|
14111
14083
|
}
|
|
14112
14084
|
.pkt-inputwrapper--error .pkt-textinput__input:focus-within,
|
|
14113
|
-
.pkt-inputwrapper--error .pkt-
|
|
14114
|
-
.pkt-inputwrapper--error .pkt-
|
|
14115
|
-
.pkt-inputwrapper--error .pkt-
|
|
14116
|
-
.pkt-inputwrapper--error .pkt-
|
|
14117
|
-
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon,
|
|
14118
|
-
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input,
|
|
14119
|
-
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-suffix,
|
|
14120
|
-
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon {
|
|
14085
|
+
.pkt-inputwrapper--error .pkt-textinput__container:focus-within .pkt-textinput__input,
|
|
14086
|
+
.pkt-inputwrapper--error .pkt-textinput__container:focus-within .pkt-textinput__input-prefix,
|
|
14087
|
+
.pkt-inputwrapper--error .pkt-textinput__container:focus-within .pkt-textinput__input-suffix,
|
|
14088
|
+
.pkt-inputwrapper--error .pkt-textinput__container:focus-within .pkt-textinput__input-icon {
|
|
14121
14089
|
border-color: var(--color-red);
|
|
14122
14090
|
}
|
|
14091
|
+
.pkt-inputwrapper--disabled {
|
|
14092
|
+
color: var(--color-disabled);
|
|
14093
|
+
cursor: inherit;
|
|
14094
|
+
}
|
|
14095
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input,
|
|
14096
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-prefix,
|
|
14097
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix,
|
|
14098
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-icon {
|
|
14099
|
+
border-color: var(--color-disabled);
|
|
14100
|
+
background-color: var(--color-disabled-light);
|
|
14101
|
+
}
|
|
14102
|
+
.pkt-inputwrapper--disabled .pkt-textinput__container:hover .pkt-textinput__input,
|
|
14103
|
+
.pkt-inputwrapper--disabled .pkt-textinput__container:hover .pkt-textinput__input-prefix,
|
|
14104
|
+
.pkt-inputwrapper--disabled .pkt-textinput__container:hover .pkt-textinput__input-suffix,
|
|
14105
|
+
.pkt-inputwrapper--disabled .pkt-textinput__container:hover .pkt-textinput__input-icon {
|
|
14106
|
+
border-color: var(--color-disabled);
|
|
14107
|
+
}
|
|
14108
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input:hover {
|
|
14109
|
+
border-color: var(--color-disabled);
|
|
14110
|
+
box-shadow: none;
|
|
14111
|
+
}
|
|
14112
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input:focus {
|
|
14113
|
+
border-color: var(--color-disabled);
|
|
14114
|
+
box-shadow: none;
|
|
14115
|
+
outline: none;
|
|
14116
|
+
}
|
|
14117
|
+
.pkt-inputwrapper--disabled .pkt-textinput__container:active .pkt-textinput__input {
|
|
14118
|
+
border-right: none;
|
|
14119
|
+
box-shadow: none;
|
|
14120
|
+
outline: none;
|
|
14121
|
+
}
|
|
14122
|
+
[data-mode=dark] .pkt-textinput__input-prefix,
|
|
14123
|
+
[data-mode=dark] .pkt-textinput__input-suffix,
|
|
14124
|
+
[data-mode=dark] .pkt-textinput__input-icon {
|
|
14125
|
+
background-color: var(--color-white);
|
|
14126
|
+
color: var(--color-blue-dark);
|
|
14127
|
+
}
|
|
14123
14128
|
|
|
14124
14129
|
/*
|
|
14125
14130
|
* Header element
|
|
@@ -14354,6 +14359,7 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
14354
14359
|
border-color: var(--color-active);
|
|
14355
14360
|
}
|
|
14356
14361
|
.pkt-textinput__input:disabled, .pkt-textinput__input:disabled::placeholder, .pkt-textinput__input[readonly] {
|
|
14362
|
+
opacity: 1;
|
|
14357
14363
|
background-color: var(--color-disabled-light);
|
|
14358
14364
|
border-color: var(--color-disabled);
|
|
14359
14365
|
cursor: inherit;
|
|
@@ -14361,39 +14367,19 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
14361
14367
|
.pkt-textinput__input:disabled:active {
|
|
14362
14368
|
border: 2px solid var(--color-disabled);
|
|
14363
14369
|
}
|
|
14364
|
-
.pkt-textinput__input-prefix-
|
|
14365
|
-
display: flex;
|
|
14366
|
-
align-items: center;
|
|
14367
|
-
align-self: stretch;
|
|
14368
|
-
}
|
|
14369
|
-
.pkt-textinput__input-prefix-wrapper :not(:first-child) {
|
|
14370
|
-
border-left: none;
|
|
14371
|
-
}
|
|
14372
|
-
.pkt-textinput__input-prefix-wrapper :first-child {
|
|
14373
|
-
border-right: none;
|
|
14374
|
-
}
|
|
14375
|
-
.pkt-textinput__input-prefix-wrapper input:focus {
|
|
14376
|
-
box-shadow: none;
|
|
14377
|
-
}
|
|
14378
|
-
.pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input, .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix {
|
|
14379
|
-
border-color: var(--color-hover);
|
|
14380
|
-
}
|
|
14381
|
-
.pkt-textinput__input-prefix-wrapper:focus-within {
|
|
14382
|
-
outline: 2px solid var(--color-active);
|
|
14383
|
-
}
|
|
14384
|
-
.pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input, .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-prefix {
|
|
14385
|
-
border-color: var(--color-active);
|
|
14386
|
-
}
|
|
14387
|
-
.pkt-textinput__input-prefix {
|
|
14370
|
+
.pkt-textinput__input-prefix, .pkt-textinput__input-suffix, .pkt-textinput__input-icon {
|
|
14388
14371
|
font-size: 1.125rem;
|
|
14389
14372
|
font-weight: 300;
|
|
14390
14373
|
letter-spacing: -0.2px;
|
|
14391
14374
|
line-height: 1.75rem;
|
|
14392
|
-
align-items: center;
|
|
14393
14375
|
display: flex;
|
|
14376
|
+
align-items: center;
|
|
14394
14377
|
width: auto;
|
|
14395
14378
|
height: 3rem;
|
|
14396
14379
|
border: 2px solid var(--color-blue-dark);
|
|
14380
|
+
flex-shrink: 0;
|
|
14381
|
+
}
|
|
14382
|
+
.pkt-textinput__input-prefix {
|
|
14397
14383
|
padding: 0.5rem 0rem 0.5rem 1rem;
|
|
14398
14384
|
}
|
|
14399
14385
|
.pkt-textinput__input-prefix::after {
|
|
@@ -14403,43 +14389,8 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
14403
14389
|
height: 100%;
|
|
14404
14390
|
background-color: var(--color-blue-dark);
|
|
14405
14391
|
}
|
|
14406
|
-
.pkt-textinput__input-suffix-wrapper {
|
|
14407
|
-
display: flex;
|
|
14408
|
-
align-items: center;
|
|
14409
|
-
align-self: stretch;
|
|
14410
|
-
}
|
|
14411
|
-
.pkt-textinput__input-suffix-wrapper :not(:first-child) {
|
|
14412
|
-
border-left: none;
|
|
14413
|
-
}
|
|
14414
|
-
.pkt-textinput__input-suffix-wrapper :first-child {
|
|
14415
|
-
border-right: none;
|
|
14416
|
-
}
|
|
14417
|
-
.pkt-textinput__input-suffix-wrapper p {
|
|
14418
|
-
margin: 0;
|
|
14419
|
-
}
|
|
14420
|
-
.pkt-textinput__input-suffix-wrapper input:focus {
|
|
14421
|
-
box-shadow: none;
|
|
14422
|
-
}
|
|
14423
|
-
.pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input, .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix, .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
|
|
14424
|
-
border-color: var(--color-hover);
|
|
14425
|
-
}
|
|
14426
|
-
.pkt-textinput__input-suffix-wrapper:focus-within {
|
|
14427
|
-
outline: 2px solid var(--color-active);
|
|
14428
|
-
}
|
|
14429
|
-
.pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon, .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input, .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-suffix, .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon {
|
|
14430
|
-
border-color: var(--color-active);
|
|
14431
|
-
}
|
|
14432
14392
|
.pkt-textinput__input-suffix {
|
|
14433
|
-
font-size: 1.125rem;
|
|
14434
|
-
font-weight: 300;
|
|
14435
|
-
letter-spacing: -0.2px;
|
|
14436
|
-
line-height: 1.75rem;
|
|
14437
|
-
display: flex;
|
|
14438
|
-
align-items: center;
|
|
14439
|
-
width: auto;
|
|
14440
|
-
border: 2px solid var(--color-blue-dark);
|
|
14441
14393
|
padding: 0.5rem 1rem 0.5rem 0rem;
|
|
14442
|
-
flex-shrink: 0;
|
|
14443
14394
|
}
|
|
14444
14395
|
.pkt-textinput__input-suffix svg {
|
|
14445
14396
|
width: 1.5rem;
|
|
@@ -14454,16 +14405,8 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
14454
14405
|
background-color: var(--color-blue-dark);
|
|
14455
14406
|
}
|
|
14456
14407
|
.pkt-textinput__input-icon {
|
|
14457
|
-
font-size: 1.125rem;
|
|
14458
|
-
font-weight: 300;
|
|
14459
|
-
letter-spacing: -0.2px;
|
|
14460
|
-
line-height: 1.75rem;
|
|
14461
|
-
display: flex;
|
|
14462
|
-
flex-shrink: 0;
|
|
14463
14408
|
padding: 0.5rem 1rem;
|
|
14464
|
-
align-items: center;
|
|
14465
14409
|
align-self: stretch;
|
|
14466
|
-
border: 2px solid var(--color-blue-dark);
|
|
14467
14410
|
}
|
|
14468
14411
|
.pkt-textinput__input-icon svg {
|
|
14469
14412
|
width: 1.5rem;
|
|
@@ -14477,6 +14420,39 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
14477
14420
|
.pkt-textinput__input--counter-error:focus {
|
|
14478
14421
|
box-shadow: 0 0 0 2px var(--color-red);
|
|
14479
14422
|
}
|
|
14423
|
+
.pkt-textinput__container {
|
|
14424
|
+
display: flex;
|
|
14425
|
+
align-items: center;
|
|
14426
|
+
align-self: stretch;
|
|
14427
|
+
}
|
|
14428
|
+
.pkt-textinput__container :first-child:not(:only-child) {
|
|
14429
|
+
border-right: none;
|
|
14430
|
+
}
|
|
14431
|
+
.pkt-textinput__container :last-child:not(:only-child) {
|
|
14432
|
+
border-left: none;
|
|
14433
|
+
}
|
|
14434
|
+
.pkt-textinput__container :not(:first-child):not(:last-child) {
|
|
14435
|
+
border-left: none;
|
|
14436
|
+
border-right: none;
|
|
14437
|
+
}
|
|
14438
|
+
.pkt-textinput__container p {
|
|
14439
|
+
margin: 0;
|
|
14440
|
+
}
|
|
14441
|
+
.pkt-textinput__container input:focus {
|
|
14442
|
+
box-shadow: none;
|
|
14443
|
+
}
|
|
14444
|
+
.pkt-textinput__container:hover .pkt-textinput__input, .pkt-textinput__container:hover .pkt-textinput__input-prefix, .pkt-textinput__container:hover .pkt-textinput__input-suffix, .pkt-textinput__container:hover .pkt-textinput__input-icon {
|
|
14445
|
+
border-color: var(--color-hover);
|
|
14446
|
+
}
|
|
14447
|
+
.pkt-textinput__container:focus-within {
|
|
14448
|
+
outline: 2px solid var(--color-active);
|
|
14449
|
+
}
|
|
14450
|
+
.pkt-textinput__container:focus-within .pkt-textinput__input,
|
|
14451
|
+
.pkt-textinput__container:focus-within .pkt-textinput__input-prefix,
|
|
14452
|
+
.pkt-textinput__container:focus-within .pkt-textinput__input-suffix,
|
|
14453
|
+
.pkt-textinput__container:focus-within .pkt-textinput__input-icon {
|
|
14454
|
+
border-color: var(--color-active);
|
|
14455
|
+
}
|
|
14480
14456
|
.pkt-textinput__counter {
|
|
14481
14457
|
font-size: 0.875rem;
|
|
14482
14458
|
font-weight: 300;
|
|
@@ -14491,43 +14467,4 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
14491
14467
|
letter-spacing: -0.2px;
|
|
14492
14468
|
line-height: 1.375rem;
|
|
14493
14469
|
color: var(--color-red);
|
|
14494
|
-
}
|
|
14495
|
-
.pkt-inputwrapper--disabled {
|
|
14496
|
-
color: var(--color-disabled);
|
|
14497
|
-
cursor: inherit;
|
|
14498
|
-
}
|
|
14499
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input,
|
|
14500
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input-prefix,
|
|
14501
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix,
|
|
14502
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input-icon {
|
|
14503
|
-
border-color: var(--color-disabled);
|
|
14504
|
-
background-color: var(--color-disabled-light);
|
|
14505
|
-
}
|
|
14506
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,
|
|
14507
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,
|
|
14508
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,
|
|
14509
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,
|
|
14510
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
|
|
14511
|
-
border-color: var(--color-disabled);
|
|
14512
|
-
}
|
|
14513
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input:hover {
|
|
14514
|
-
border-color: var(--color-disabled);
|
|
14515
|
-
box-shadow: none;
|
|
14516
|
-
}
|
|
14517
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input:focus {
|
|
14518
|
-
border-color: var(--color-disabled);
|
|
14519
|
-
box-shadow: none;
|
|
14520
|
-
outline: none;
|
|
14521
|
-
}
|
|
14522
|
-
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:active .pkt-textinput__input {
|
|
14523
|
-
border-right: none;
|
|
14524
|
-
box-shadow: none;
|
|
14525
|
-
outline: none;
|
|
14526
|
-
}
|
|
14527
|
-
|
|
14528
|
-
[data-mode=dark] .pkt-textinput__input-prefix,
|
|
14529
|
-
[data-mode=dark] .pkt-textinput__input-suffix,
|
|
14530
|
-
[data-mode=dark] .pkt-textinput__input-icon {
|
|
14531
|
-
background-color: var(--color-white);
|
|
14532
|
-
color: var(--color-blue-dark);
|
|
14533
14470
|
}
|