@oslokommune/punkt-css 9.4.1 → 9.5.2
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 +37 -0
- package/dist/css/components/header.css +2 -2
- package/dist/css/components/header.min.css +1 -1
- package/dist/css/components/searchinput.css +94 -0
- package/dist/css/components/searchinput.min.css +1 -0
- package/dist/css/components/textinput.css +9 -2
- package/dist/css/components/textinput.min.css +1 -1
- package/dist/css/pkt-base.css +3 -3
- package/dist/css/pkt-base.min.css +1 -1
- package/dist/css/pkt-components.css +106 -5
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-elements.css +11 -3
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +111 -9
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/base/_typography.scss +6 -4
- package/dist/scss/components/_header.scss +7 -7
- package/dist/scss/components/_index.scss +1 -0
- package/dist/scss/components/_searchinput.scss +109 -0
- package/dist/scss/elements/_checkbox-radio.scss +1 -1
- package/dist/scss/elements/_input.scss +12 -3
- package/package.json +2 -2
package/dist/css/pkt.css
CHANGED
|
@@ -13485,8 +13485,8 @@ a,
|
|
|
13485
13485
|
word-wrap: break-word;
|
|
13486
13486
|
cursor: pointer;
|
|
13487
13487
|
}
|
|
13488
|
-
a:visited:not(.pkt-linkcard),
|
|
13489
|
-
.pkt-link-button:visited:not(.pkt-linkcard) {
|
|
13488
|
+
a:visited:not(.pkt-linkcard):not(.pkt-btn),
|
|
13489
|
+
.pkt-link-button:visited:not(.pkt-linkcard):not(.pkt-btn) {
|
|
13490
13490
|
color: inherit;
|
|
13491
13491
|
}
|
|
13492
13492
|
a:hover, a.pkt-link--hover,
|
|
@@ -13536,7 +13536,7 @@ a:active, a.pkt-link--active,
|
|
|
13536
13536
|
}
|
|
13537
13537
|
.pkt-link--external::after {
|
|
13538
13538
|
content: " ";
|
|
13539
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/9.
|
|
13539
|
+
--svg: url(https://punkt-cdn.oslo.kommune.no/9.5/icons/new-window-small.svg);
|
|
13540
13540
|
background-image: var(--svg);
|
|
13541
13541
|
background-repeat: no-repeat;
|
|
13542
13542
|
background-size: 18px 18px;
|
|
@@ -14818,7 +14818,7 @@ a.pkt-btn:active, .pkt-btn:enabled:active, .pkt-btn.pkt-btn--active, .pkt-btn.pk
|
|
|
14818
14818
|
outline-color: var(--pkt-color-input-border-hover);
|
|
14819
14819
|
}
|
|
14820
14820
|
.pkt-input-check__input-checkbox:checked[type=checkbox] {
|
|
14821
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/9.
|
|
14821
|
+
--svg: url(https://punkt-cdn.oslo.kommune.no/9.5/icons/check-medium.svg);
|
|
14822
14822
|
position: relative;
|
|
14823
14823
|
background-color: var(--pkt-color-input-border-normal);
|
|
14824
14824
|
}
|
|
@@ -15016,7 +15016,11 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
15016
15016
|
}
|
|
15017
15017
|
|
|
15018
15018
|
[data-mode=dark] .pkt-input, [data-mode=dark] .pkt-textinput__input, [data-mode=dark] .pkt-select select, .pkt-select [data-mode=dark] select,
|
|
15019
|
-
[data-mode=dark] .pkt-select:is(select),
|
|
15019
|
+
[data-mode=dark] .pkt-select:is(select),
|
|
15020
|
+
[data-mode=dark] .pkt-input-prefix,
|
|
15021
|
+
[data-mode=dark] .pkt-input-suffix,
|
|
15022
|
+
[data-mode=dark] .pkt-input-icon,
|
|
15023
|
+
[data-mode=dark] .pkt-input__container {
|
|
15020
15024
|
--pkt-color-input-background-normal: var(--pkt-color-brand-neutrals-white);
|
|
15021
15025
|
--pkt-color-input-border-active: var(--pkt-color-brand-blue-500);
|
|
15022
15026
|
--pkt-color-input-border-disabled: var(--pkt-color-grays-gray-200);
|
|
@@ -15067,7 +15071,7 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
15067
15071
|
}
|
|
15068
15072
|
.pkt-input:is(select):not([multiple]), .pkt-textinput__input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
|
|
15069
15073
|
.pkt-select:is(select):not([multiple]) {
|
|
15070
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/9.
|
|
15074
|
+
--svg: url(https://punkt-cdn.oslo.kommune.no/9.5/icons/chevron-thin-down.svg);
|
|
15071
15075
|
background-image: var(--svg);
|
|
15072
15076
|
background-repeat: no-repeat;
|
|
15073
15077
|
background-position: right 0.7rem top 50%;
|
|
@@ -15198,6 +15202,10 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
15198
15202
|
.pkt-input__container:hover .pkt-select:is(select), .pkt-input__container:hover .pkt-input-prefix, .pkt-input__container:hover .pkt-input-suffix, .pkt-input__container:hover .pkt-input-icon {
|
|
15199
15203
|
border-color: var(--pkt-color-input-border-active);
|
|
15200
15204
|
}
|
|
15205
|
+
.pkt-input__container:hover .pkt-input:disabled, .pkt-input__container:hover .pkt-textinput__input:disabled, .pkt-input__container:hover .pkt-select select:disabled, .pkt-select .pkt-input__container:hover select:disabled,
|
|
15206
|
+
.pkt-input__container:hover .pkt-select:disabled:is(select), .pkt-input__container:hover .pkt-input-prefix:disabled, .pkt-input__container:hover .pkt-input-suffix:disabled, .pkt-input__container:hover .pkt-input-icon:disabled {
|
|
15207
|
+
border-color: var(--pkt-color-input-border-disabled);
|
|
15208
|
+
}
|
|
15201
15209
|
.pkt-input__container:focus-within {
|
|
15202
15210
|
outline: 2px solid var(--pkt-color-input-border-active);
|
|
15203
15211
|
}
|
|
@@ -16338,7 +16346,7 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
16338
16346
|
--fg-color: var(--pkt-color-text-body-default);
|
|
16339
16347
|
}
|
|
16340
16348
|
.pkt-header__logo-service {
|
|
16341
|
-
padding-top: 0.
|
|
16349
|
+
padding-top: 0.3rem;
|
|
16342
16350
|
display: none;
|
|
16343
16351
|
white-space: nowrap;
|
|
16344
16352
|
text-overflow: ellipsis;
|
|
@@ -16355,7 +16363,7 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
16355
16363
|
}
|
|
16356
16364
|
@media screen and (min-width: 80rem) {
|
|
16357
16365
|
.pkt-header__logo-service {
|
|
16358
|
-
padding-top: 0.
|
|
16366
|
+
padding-top: 0.6rem;
|
|
16359
16367
|
font-size: 1.5rem;
|
|
16360
16368
|
font-weight: 300;
|
|
16361
16369
|
letter-spacing: -0.2px;
|
|
@@ -16948,4 +16956,98 @@ Therefore, this is removed from the reset here, and images who need to be fluid
|
|
|
16948
16956
|
*
|
|
16949
16957
|
* Denne blir stilsatt av .pkt-input
|
|
16950
16958
|
* Ikke bruk klassen .pkt-textinput
|
|
16951
|
-
*/
|
|
16959
|
+
*/
|
|
16960
|
+
/* Common styles for all inputs */
|
|
16961
|
+
.pkt-searchinput {
|
|
16962
|
+
position: relative;
|
|
16963
|
+
font-size: 1.125rem;
|
|
16964
|
+
font-weight: 300;
|
|
16965
|
+
letter-spacing: -0.2px;
|
|
16966
|
+
line-height: 1.75rem;
|
|
16967
|
+
}
|
|
16968
|
+
.pkt-searchinput__field {
|
|
16969
|
+
width: min(100%, 31rem);
|
|
16970
|
+
display: flex;
|
|
16971
|
+
}
|
|
16972
|
+
.pkt-searchinput--fullwidth .pkt-searchinput__field {
|
|
16973
|
+
width: 100%;
|
|
16974
|
+
}
|
|
16975
|
+
.pkt-searchinput--global .pkt-input:not(:disabled) {
|
|
16976
|
+
border-color: var(--pkt-color-border-yellow);
|
|
16977
|
+
}
|
|
16978
|
+
.pkt-searchinput--global .pkt-input:not(:disabled):hover, .pkt-searchinput--global .pkt-input:not(:disabled):active, .pkt-searchinput--global .pkt-input:not(:disabled):focus {
|
|
16979
|
+
border-color: var(--pkt-color-input-border-active);
|
|
16980
|
+
}
|
|
16981
|
+
.pkt-searchinput--global .pkt-searchinput__button {
|
|
16982
|
+
border-radius: 50%;
|
|
16983
|
+
}
|
|
16984
|
+
.pkt-searchinput--local-with-button .pkt-searchinput__field {
|
|
16985
|
+
gap: 0.5rem;
|
|
16986
|
+
}
|
|
16987
|
+
.pkt-searchinput--local .pkt-input {
|
|
16988
|
+
padding: 0.5rem 0 0.5rem 1rem;
|
|
16989
|
+
}
|
|
16990
|
+
.pkt-searchinput--local .pkt-searchinput__button:disabled {
|
|
16991
|
+
border-color: var(--pkt-color-input-border-disabled);
|
|
16992
|
+
}
|
|
16993
|
+
.pkt-searchinput--local .pkt-searchinput__button svg {
|
|
16994
|
+
margin-left: 0;
|
|
16995
|
+
}
|
|
16996
|
+
.pkt-searchinput__suggestions {
|
|
16997
|
+
position: absolute;
|
|
16998
|
+
z-index: 2;
|
|
16999
|
+
padding: 0;
|
|
17000
|
+
margin: 2px 0 0;
|
|
17001
|
+
width: min(100%, 31rem);
|
|
17002
|
+
list-style: none;
|
|
17003
|
+
background-color: var(--pkt-color-background-card);
|
|
17004
|
+
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
|
|
17005
|
+
}
|
|
17006
|
+
.pkt-searchinput--global .pkt-searchinput__suggestions {
|
|
17007
|
+
width: min(100% - 3rem, 28rem);
|
|
17008
|
+
}
|
|
17009
|
+
.pkt-searchinput--local-with-button .pkt-searchinput__suggestions {
|
|
17010
|
+
width: min(100% - 3.5rem, 27.5rem);
|
|
17011
|
+
}
|
|
17012
|
+
.pkt-searchinput--fullwidth .pkt-searchinput__suggestions {
|
|
17013
|
+
width: 100%;
|
|
17014
|
+
}
|
|
17015
|
+
.pkt-searchinput__suggestion {
|
|
17016
|
+
display: block;
|
|
17017
|
+
padding: 1rem;
|
|
17018
|
+
text-decoration: none;
|
|
17019
|
+
background-color: transparent;
|
|
17020
|
+
color: var(--pkt-color-text-action-normal);
|
|
17021
|
+
border: none;
|
|
17022
|
+
font: inherit;
|
|
17023
|
+
outline: inherit;
|
|
17024
|
+
text-align: inherit;
|
|
17025
|
+
}
|
|
17026
|
+
.pkt-searchinput__suggestion:hover, .pkt-searchinput__suggestion:focus, .pkt-searchinput__suggestion:active {
|
|
17027
|
+
text-decoration: none;
|
|
17028
|
+
background-color: var(--pkt-color-background-subtle);
|
|
17029
|
+
color: var(--pkt-color-text-action-active);
|
|
17030
|
+
}
|
|
17031
|
+
.pkt-searchinput__suggestion:hover .pkt-searchinput__suggestion-title, .pkt-searchinput__suggestion:focus .pkt-searchinput__suggestion-title, .pkt-searchinput__suggestion:active .pkt-searchinput__suggestion-title {
|
|
17032
|
+
text-decoration: underline;
|
|
17033
|
+
}
|
|
17034
|
+
.pkt-searchinput__suggestion:hover > *, .pkt-searchinput__suggestion:focus > *, .pkt-searchinput__suggestion:active > * {
|
|
17035
|
+
color: inherit;
|
|
17036
|
+
}
|
|
17037
|
+
.pkt-searchinput__suggestion--has-hover {
|
|
17038
|
+
cursor: pointer;
|
|
17039
|
+
}
|
|
17040
|
+
.pkt-searchinput__suggestion-title {
|
|
17041
|
+
font-size: 1.125rem;
|
|
17042
|
+
font-weight: 500;
|
|
17043
|
+
letter-spacing: -0.2px;
|
|
17044
|
+
line-height: 1.75rem;
|
|
17045
|
+
}
|
|
17046
|
+
.pkt-searchinput__suggestion-text {
|
|
17047
|
+
margin: 0;
|
|
17048
|
+
display: -webkit-box;
|
|
17049
|
+
-webkit-line-clamp: 3;
|
|
17050
|
+
-webkit-box-orient: vertical;
|
|
17051
|
+
overflow: hidden;
|
|
17052
|
+
hyphens: auto;
|
|
17053
|
+
}
|