@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/CHANGELOG.md +36 -0
- package/README.md +3 -3
- package/dist/css/components/backlink.css +4 -31
- package/dist/css/components/backlink.min.css +1 -1
- package/dist/css/components/inputwrapper.css +120 -0
- package/dist/css/components/inputwrapper.min.css +1 -0
- package/dist/css/components/textinput.css +39 -129
- 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 +164 -160
- 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 +167 -163
- 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/_index.scss +1 -0
- package/dist/scss/components/_inputwrapper.scss +140 -0
- package/dist/scss/components/_textinput.scss +23 -130
- package/dist/scss/elements/_checkbox-radio.scss +1 -1
- package/dist/scss/elements/_select.scss +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,42 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [7.1.0](https://github.com/oslokommune/punkt/compare/7.0.0...7.1.0) (2023-09-08)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* [1093](https://github.com/oslokommune/punkt/issues/1093) Backlink. Se dokumentasjonsnettstedet om Backlink
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [7.0.0](https://github.com/oslokommune/punkt/compare/6.0.6...7.0.0) (2023-09-07)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
* PktTextarea #1058, PktInputwrapper, og endringer PktTextinput. BREAKING CHANGE: Textarea er helt ny og erstatter funksjonaliteten til den gamle. Det må regnes med litt endring i implementasjon.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
Ingen
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
Ingen
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [6.0.5](https://github.com/oslokommune/punkt/compare/6.0.4...6.0.5) (2023-08-31)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ touch ./src/main.scss # her eller i en egen css-folder
|
|
|
55
55
|
|
|
56
56
|
```js
|
|
57
57
|
// src/main.js
|
|
58
|
-
import './main.scss'
|
|
58
|
+
import './main.scss'
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
### 4. Importer Punkt
|
|
@@ -154,12 +154,12 @@ Se tilgjengelige filer på [cdn](https://punkt-cdn.oslo.kommune.no/).
|
|
|
154
154
|
<meta charset="utf-8" />
|
|
155
155
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
156
156
|
<title>Punkt</title>
|
|
157
|
-
<link href="https://punkt-cdn.oslo.kommune.no/
|
|
157
|
+
<link href="https://punkt-cdn.oslo.kommune.no/latest/css/pkt.min.css" rel="stylesheet" />
|
|
158
158
|
</head>
|
|
159
159
|
<body>
|
|
160
160
|
<h1>Velkommen til Oslo Origo</h1>
|
|
161
161
|
<img
|
|
162
|
-
src="https://punkt-cdn.oslo.kommune.no/
|
|
162
|
+
src="https://punkt-cdn.oslo.kommune.no/latest/logos/oslologo.svg"
|
|
163
163
|
alt="Oslo kommune logo"
|
|
164
164
|
height="64"
|
|
165
165
|
/>
|
|
@@ -1,40 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Back link component
|
|
3
3
|
*/
|
|
4
|
-
.pkt-back-link {
|
|
5
|
-
position: relative;
|
|
6
|
-
font-size: 0.875rem;
|
|
7
|
-
font-weight: 300;
|
|
8
|
-
letter-spacing: -0.2px;
|
|
9
|
-
line-height: 1.375rem;
|
|
10
|
-
padding: 0.75rem 1rem;
|
|
11
|
-
}
|
|
12
|
-
@media screen and (min-width: 80rem) {
|
|
13
|
-
.pkt-back-link {
|
|
14
|
-
padding: 0.75rem 4rem;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
.pkt-back-link__list {
|
|
18
|
-
list-style-type: none;
|
|
19
|
-
}
|
|
20
|
-
.pkt-back-link__link {
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: flex-start;
|
|
24
|
-
gap: 0.75rem;
|
|
25
|
-
text-decoration: none;
|
|
26
|
-
color: var(--color-blue-dark);
|
|
27
|
-
}
|
|
28
|
-
.pkt-back-link__link:visited, .pkt-back-link__link:focus, .pkt-back-link__link:hover, .pkt-back-link__link:active {
|
|
29
|
-
color: var(--color-blue-dark);
|
|
30
|
-
}
|
|
31
|
-
.pkt-back-link__link:hover {
|
|
32
|
-
text-decoration: underline;
|
|
33
|
-
}
|
|
34
4
|
.pkt-back-link__icon {
|
|
35
5
|
flex-basis: 1rem;
|
|
36
|
-
flex-shrink: 0;
|
|
37
6
|
}
|
|
38
7
|
.pkt-back-link__text {
|
|
8
|
+
font-size: 0.875rem;
|
|
9
|
+
font-weight: 300;
|
|
10
|
+
letter-spacing: -0.2px;
|
|
11
|
+
line-height: 1.375rem;
|
|
39
12
|
flex-grow: 1;
|
|
40
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkt-back-
|
|
1
|
+
.pkt-back-link__icon{flex-basis:1rem}.pkt-back-link__text{font-size:.875rem;font-weight:300;letter-spacing:-0.2px;line-height:1.375rem;flex-grow:1}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* inputwrapper */
|
|
2
|
+
.pkt-inputwrapper__label {
|
|
3
|
+
font-size: 1.125rem;
|
|
4
|
+
font-weight: 500;
|
|
5
|
+
letter-spacing: -0.2px;
|
|
6
|
+
line-height: 1.75rem;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
gap: 0.5rem;
|
|
11
|
+
}
|
|
12
|
+
.pkt-inputwrapper__label > h2 {
|
|
13
|
+
font-size: inherit;
|
|
14
|
+
font-weight: inherit;
|
|
15
|
+
letter-spacing: inherit;
|
|
16
|
+
line-height: inherit;
|
|
17
|
+
display: inline;
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
.pkt-inputwrapper__helptext {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
gap: 0.25rem;
|
|
25
|
+
font-size: 0.875rem;
|
|
26
|
+
font-weight: 300;
|
|
27
|
+
letter-spacing: -0.2px;
|
|
28
|
+
line-height: 1.375rem;
|
|
29
|
+
}
|
|
30
|
+
.pkt-inputwrapper__helptext-expandable {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
text-align: left;
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
.pkt-inputwrapper__helptext-expandable-heading {
|
|
36
|
+
font-size: 1.125rem;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
letter-spacing: -0.2px;
|
|
39
|
+
line-height: 1.75rem;
|
|
40
|
+
margin: 0;
|
|
41
|
+
}
|
|
42
|
+
.pkt-inputwrapper__helptext-expandable-open {
|
|
43
|
+
width: 100%;
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
.pkt-inputwrapper__helptext-expandable-closed {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
.pkt-inputwrapper--disabled {
|
|
50
|
+
color: var(--color-disabled);
|
|
51
|
+
cursor: inherit;
|
|
52
|
+
}
|
|
53
|
+
.pkt-inputwrapper--disabled .pkt-tag {
|
|
54
|
+
background-color: var(--color-disabled-light);
|
|
55
|
+
}
|
|
56
|
+
.pkt-inputwrapper--disabled .pkt-alert {
|
|
57
|
+
background-color: var(--color-disabled-light);
|
|
58
|
+
border-color: var(--color-disabled);
|
|
59
|
+
}
|
|
60
|
+
.pkt-inputwrapper--inline {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
vertical-align: middle;
|
|
63
|
+
margin-right: 8px;
|
|
64
|
+
}
|
|
65
|
+
.pkt-inputwrapper .pkt-alert {
|
|
66
|
+
width: 100%;
|
|
67
|
+
padding: 0.75rem 1rem 0.75rem 4px;
|
|
68
|
+
margin: 0 0 0.5rem 0;
|
|
69
|
+
}
|
|
70
|
+
.pkt-inputwrapper .pkt-alert--error {
|
|
71
|
+
margin: 0.5rem 0 0.5rem 0;
|
|
72
|
+
}
|
|
73
|
+
.pkt-inputwrapper .pkt-alert__icon {
|
|
74
|
+
width: 1.375rem;
|
|
75
|
+
height: 1.375rem;
|
|
76
|
+
top: 0.81rem;
|
|
77
|
+
left: 1.25rem;
|
|
78
|
+
}
|
|
79
|
+
.pkt-inputwrapper .pkt-alert__text {
|
|
80
|
+
font-size: 1rem;
|
|
81
|
+
font-weight: 300;
|
|
82
|
+
letter-spacing: -0.2px;
|
|
83
|
+
line-height: 1.5rem;
|
|
84
|
+
margin: 0 0 0 2.875rem;
|
|
85
|
+
}
|
|
86
|
+
.pkt-inputwrapper .pkt-tag {
|
|
87
|
+
margin-left: 8px;
|
|
88
|
+
}
|
|
89
|
+
.pkt-inputwrapper .pkt-btn {
|
|
90
|
+
font-size: 0.875rem;
|
|
91
|
+
font-weight: 300;
|
|
92
|
+
letter-spacing: -0.2px;
|
|
93
|
+
line-height: 1.375rem;
|
|
94
|
+
padding: 0;
|
|
95
|
+
}
|
|
96
|
+
.pkt-inputwrapper--error .pkt-textinput__input,
|
|
97
|
+
.pkt-inputwrapper--error .pkt-textinput__input-prefix,
|
|
98
|
+
.pkt-inputwrapper--error .pkt-textinput__input-suffix,
|
|
99
|
+
.pkt-inputwrapper--error .pkt-textinput__input-icon {
|
|
100
|
+
border-color: var(--color-red);
|
|
101
|
+
}
|
|
102
|
+
.pkt-inputwrapper--error .pkt-textinput__input:hover,
|
|
103
|
+
.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,
|
|
104
|
+
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,
|
|
105
|
+
.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,
|
|
106
|
+
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,
|
|
107
|
+
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
|
|
108
|
+
border-color: var(--color-red);
|
|
109
|
+
}
|
|
110
|
+
.pkt-inputwrapper--error .pkt-textinput__input:focus-within,
|
|
111
|
+
.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,
|
|
112
|
+
.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input,
|
|
113
|
+
.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-prefix,
|
|
114
|
+
.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,
|
|
115
|
+
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon,
|
|
116
|
+
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input,
|
|
117
|
+
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-suffix,
|
|
118
|
+
.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon {
|
|
119
|
+
border-color: var(--color-red);
|
|
120
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pkt-inputwrapper__label{font-size:1.125rem;font-weight:500;letter-spacing:-0.2px;line-height:1.75rem;display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.pkt-inputwrapper__label>h2{font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;display:inline;margin-bottom:0}.pkt-inputwrapper__helptext{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;font-size:.875rem;font-weight:300;letter-spacing:-0.2px;line-height:1.375rem}.pkt-inputwrapper__helptext-expandable{display:inline-flex;text-align:left;align-items:center}.pkt-inputwrapper__helptext-expandable-heading{font-size:1.125rem;font-weight:500;letter-spacing:-0.2px;line-height:1.75rem;margin:0}.pkt-inputwrapper__helptext-expandable-open{width:100%;display:block}.pkt-inputwrapper__helptext-expandable-closed{display:none}.pkt-inputwrapper--disabled{color:var(--color-disabled);cursor:inherit}.pkt-inputwrapper--disabled .pkt-tag{background-color:var(--color-disabled-light)}.pkt-inputwrapper--disabled .pkt-alert{background-color:var(--color-disabled-light);border-color:var(--color-disabled)}.pkt-inputwrapper--inline{display:inline-block;vertical-align:middle;margin-right:8px}.pkt-inputwrapper .pkt-alert{width:100%;padding:.75rem 1rem .75rem 4px;margin:0 0 .5rem 0}.pkt-inputwrapper .pkt-alert--error{margin:.5rem 0 .5rem 0}.pkt-inputwrapper .pkt-alert__icon{width:1.375rem;height:1.375rem;top:.81rem;left:1.25rem}.pkt-inputwrapper .pkt-alert__text{font-size:1rem;font-weight:300;letter-spacing:-0.2px;line-height:1.5rem;margin:0 0 0 2.875rem}.pkt-inputwrapper .pkt-tag{margin-left:8px}.pkt-inputwrapper .pkt-btn{font-size:.875rem;font-weight:300;letter-spacing:-0.2px;line-height:1.375rem;padding:0}.pkt-inputwrapper--error .pkt-textinput__input,.pkt-inputwrapper--error .pkt-textinput__input-prefix,.pkt-inputwrapper--error .pkt-textinput__input-suffix,.pkt-inputwrapper--error .pkt-textinput__input-icon{border-color:var(--color-red)}.pkt-inputwrapper--error .pkt-textinput__input:hover,.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon{border-color:var(--color-red)}.pkt-inputwrapper--error .pkt-textinput__input:focus-within,.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input,.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-prefix,.pkt-inputwrapper--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon,.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input,.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-suffix,.pkt-inputwrapper--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon{border-color:var(--color-red)}
|
|
@@ -1,51 +1,4 @@
|
|
|
1
1
|
/* textinput */
|
|
2
|
-
.pkt-textinput__label {
|
|
3
|
-
font-size: 1.125rem;
|
|
4
|
-
font-weight: 500;
|
|
5
|
-
letter-spacing: -0.2px;
|
|
6
|
-
line-height: 1.75rem;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: flex-start;
|
|
10
|
-
gap: 0.5rem;
|
|
11
|
-
}
|
|
12
|
-
.pkt-textinput__label > h2 {
|
|
13
|
-
font-size: inherit;
|
|
14
|
-
font-weight: inherit;
|
|
15
|
-
letter-spacing: inherit;
|
|
16
|
-
line-height: inherit;
|
|
17
|
-
display: inline;
|
|
18
|
-
margin-bottom: 0;
|
|
19
|
-
}
|
|
20
|
-
.pkt-textinput__helptext {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: flex-start;
|
|
24
|
-
gap: 0.25rem;
|
|
25
|
-
font-size: 0.875rem;
|
|
26
|
-
font-weight: 300;
|
|
27
|
-
letter-spacing: -0.2px;
|
|
28
|
-
line-height: 1.375rem;
|
|
29
|
-
}
|
|
30
|
-
.pkt-textinput__helptext-expandable {
|
|
31
|
-
display: inline-flex;
|
|
32
|
-
text-align: left;
|
|
33
|
-
align-items: center;
|
|
34
|
-
}
|
|
35
|
-
.pkt-textinput__helptext-expandable-heading {
|
|
36
|
-
font-size: 1.125rem;
|
|
37
|
-
font-weight: 500;
|
|
38
|
-
letter-spacing: -0.2px;
|
|
39
|
-
line-height: 1.75rem;
|
|
40
|
-
margin: 0;
|
|
41
|
-
}
|
|
42
|
-
.pkt-textinput__helptext-expandable-open {
|
|
43
|
-
width: 100%;
|
|
44
|
-
display: block;
|
|
45
|
-
}
|
|
46
|
-
.pkt-textinput__helptext-expandable-closed {
|
|
47
|
-
display: none;
|
|
48
|
-
}
|
|
49
2
|
.pkt-textinput__input {
|
|
50
3
|
font-size: 1.125rem;
|
|
51
4
|
font-weight: 300;
|
|
@@ -62,6 +15,9 @@
|
|
|
62
15
|
padding: 0.5rem 1rem;
|
|
63
16
|
width: 100%;
|
|
64
17
|
}
|
|
18
|
+
.pkt-textinput__input:is(textarea) {
|
|
19
|
+
min-height: 8rem;
|
|
20
|
+
}
|
|
65
21
|
.pkt-textinput__input::placeholder {
|
|
66
22
|
color: var(--color-grayscale-50);
|
|
67
23
|
opacity: 1;
|
|
@@ -195,110 +151,64 @@
|
|
|
195
151
|
height: 1.5rem;
|
|
196
152
|
margin-left: 0.5rem;
|
|
197
153
|
}
|
|
198
|
-
.pkt-
|
|
199
|
-
color: var(--color-
|
|
200
|
-
|
|
154
|
+
.pkt-textinput__input--counter-error, .pkt-textinput__input--counter-error:focus {
|
|
155
|
+
border-color: var(--color-red);
|
|
156
|
+
background-color: var(--color-red-30);
|
|
201
157
|
}
|
|
202
|
-
.pkt-
|
|
203
|
-
|
|
158
|
+
.pkt-textinput__input--counter-error:focus {
|
|
159
|
+
box-shadow: 0 0 0 2px var(--color-red);
|
|
204
160
|
}
|
|
205
|
-
.pkt-
|
|
206
|
-
|
|
207
|
-
|
|
161
|
+
.pkt-textinput__counter {
|
|
162
|
+
font-size: 0.875rem;
|
|
163
|
+
font-weight: 300;
|
|
164
|
+
letter-spacing: -0.2px;
|
|
165
|
+
line-height: 1.375rem;
|
|
166
|
+
width: 100%;
|
|
167
|
+
text-align: right;
|
|
168
|
+
}
|
|
169
|
+
.pkt-textinput__counter--error {
|
|
170
|
+
font-size: 0.875rem;
|
|
171
|
+
font-weight: 500;
|
|
172
|
+
letter-spacing: -0.2px;
|
|
173
|
+
line-height: 1.375rem;
|
|
174
|
+
color: var(--color-red);
|
|
175
|
+
}
|
|
176
|
+
.pkt-inputwrapper--disabled {
|
|
177
|
+
color: var(--color-disabled);
|
|
178
|
+
cursor: inherit;
|
|
208
179
|
}
|
|
209
|
-
.pkt-
|
|
210
|
-
.pkt-
|
|
211
|
-
.pkt-
|
|
212
|
-
.pkt-
|
|
180
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input,
|
|
181
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-prefix,
|
|
182
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix,
|
|
183
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-icon {
|
|
213
184
|
border-color: var(--color-disabled);
|
|
214
185
|
background-color: var(--color-disabled-light);
|
|
215
186
|
}
|
|
216
|
-
.pkt-
|
|
217
|
-
.pkt-
|
|
218
|
-
.pkt-
|
|
219
|
-
.pkt-
|
|
220
|
-
.pkt-
|
|
187
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,
|
|
188
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,
|
|
189
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,
|
|
190
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,
|
|
191
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
|
|
221
192
|
border-color: var(--color-disabled);
|
|
222
193
|
}
|
|
223
|
-
.pkt-
|
|
194
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input:hover {
|
|
224
195
|
border-color: var(--color-disabled);
|
|
225
196
|
box-shadow: none;
|
|
226
197
|
}
|
|
227
|
-
.pkt-
|
|
198
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input:focus {
|
|
228
199
|
border-color: var(--color-disabled);
|
|
229
200
|
box-shadow: none;
|
|
230
201
|
outline: none;
|
|
231
202
|
}
|
|
232
|
-
.pkt-
|
|
203
|
+
.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:active .pkt-textinput__input {
|
|
233
204
|
border-right: none;
|
|
234
205
|
box-shadow: none;
|
|
235
206
|
outline: none;
|
|
236
207
|
}
|
|
237
|
-
|
|
238
|
-
.pkt-textinput--error .pkt-textinput__input-prefix,
|
|
239
|
-
.pkt-textinput--error .pkt-textinput__input-suffix,
|
|
240
|
-
.pkt-textinput--error .pkt-textinput__input-icon {
|
|
241
|
-
border-color: var(--color-red);
|
|
242
|
-
}
|
|
243
|
-
.pkt-textinput--error .pkt-textinput__input:hover,
|
|
244
|
-
.pkt-textinput--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,
|
|
245
|
-
.pkt-textinput--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,
|
|
246
|
-
.pkt-textinput--error .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,
|
|
247
|
-
.pkt-textinput--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,
|
|
248
|
-
.pkt-textinput--error .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon {
|
|
249
|
-
border-color: var(--color-red);
|
|
250
|
-
}
|
|
251
|
-
.pkt-textinput--error .pkt-textinput__input:focus-within,
|
|
252
|
-
.pkt-textinput--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,
|
|
253
|
-
.pkt-textinput--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input,
|
|
254
|
-
.pkt-textinput--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-prefix,
|
|
255
|
-
.pkt-textinput--error .pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-icon,
|
|
256
|
-
.pkt-textinput--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon,
|
|
257
|
-
.pkt-textinput--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input,
|
|
258
|
-
.pkt-textinput--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-suffix,
|
|
259
|
-
.pkt-textinput--error .pkt-textinput__input-suffix-wrapper:focus-within .pkt-textinput__input-icon {
|
|
260
|
-
border-color: var(--color-red);
|
|
261
|
-
}
|
|
262
|
-
.pkt-textinput--inline {
|
|
263
|
-
display: inline-block;
|
|
264
|
-
vertical-align: middle;
|
|
265
|
-
margin-right: 8px;
|
|
266
|
-
}
|
|
208
|
+
|
|
267
209
|
[data-mode=dark] .pkt-textinput__input-prefix,
|
|
268
210
|
[data-mode=dark] .pkt-textinput__input-suffix,
|
|
269
211
|
[data-mode=dark] .pkt-textinput__input-icon {
|
|
270
212
|
background-color: var(--color-white);
|
|
271
213
|
color: var(--color-blue-dark);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.pkt-textinput .pkt-alert {
|
|
275
|
-
width: 100%;
|
|
276
|
-
padding: 0.75rem 1rem 0.75rem 4px;
|
|
277
|
-
margin: 0 0 0.5rem 0;
|
|
278
|
-
}
|
|
279
|
-
.pkt-textinput .pkt-alert--error {
|
|
280
|
-
margin: 0.5rem 0 0.5rem 0;
|
|
281
|
-
}
|
|
282
|
-
.pkt-textinput .pkt-alert__icon {
|
|
283
|
-
width: 1.375rem;
|
|
284
|
-
height: 1.375rem;
|
|
285
|
-
top: 0.81rem;
|
|
286
|
-
left: 1.25rem;
|
|
287
|
-
}
|
|
288
|
-
.pkt-textinput .pkt-alert__text {
|
|
289
|
-
font-size: 1rem;
|
|
290
|
-
font-weight: 300;
|
|
291
|
-
letter-spacing: -0.2px;
|
|
292
|
-
line-height: 1.5rem;
|
|
293
|
-
margin: 0 0 0 2.875rem;
|
|
294
|
-
}
|
|
295
|
-
.pkt-textinput .pkt-tag {
|
|
296
|
-
margin-left: 8px;
|
|
297
|
-
}
|
|
298
|
-
.pkt-textinput .pkt-btn {
|
|
299
|
-
font-size: 0.875rem;
|
|
300
|
-
font-weight: 300;
|
|
301
|
-
letter-spacing: -0.2px;
|
|
302
|
-
line-height: 1.375rem;
|
|
303
|
-
padding: 0;
|
|
304
214
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkt-
|
|
1
|
+
.pkt-textinput__input{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.75rem;display:flex;align-items:center;appearance:none;background-color:var(--color-white);border:2px solid var(--color-blue-dark);border-radius:0;color:var(--color-blue-dark);margin:0;padding:.5rem 1rem;width:100%}.pkt-textinput__input:is(textarea){min-height:8rem}.pkt-textinput__input::placeholder{color:var(--color-grayscale-50);opacity:1}.pkt-textinput__input:hover,.pkt-textinput__input.pkt-textinput__textinput--hover{border-color:var(--color-hover)}.pkt-textinput__input:focus-visible+.pkt-textinput-suffix,.pkt-textinput__input.pkt-textinput__textinput--focus{box-shadow:0 0 0 2px var(--color-active);border-color:var(--color-active)}.pkt-textinput__input:focus{outline:none;box-shadow:0 0 0 2px var(--color-active);border-color:var(--color-active)}.pkt-textinput__input:disabled,.pkt-textinput__input:disabled::placeholder,.pkt-textinput__input[readonly]{background-color:var(--color-disabled-light);border-color:var(--color-disabled);cursor:inherit}.pkt-textinput__input:disabled:active{border:2px solid var(--color-disabled)}.pkt-textinput__input-prefix-wrapper{display:flex;align-items:center;align-self:stretch}.pkt-textinput__input-prefix-wrapper :not(:first-child){border-left:none}.pkt-textinput__input-prefix-wrapper :first-child{border-right:none}.pkt-textinput__input-prefix-wrapper input:focus{box-shadow:none}.pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,.pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix{border-color:var(--color-hover)}.pkt-textinput__input-prefix-wrapper:focus-within{outline:2px solid var(--color-active)}.pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input,.pkt-textinput__input-prefix-wrapper:focus-within .pkt-textinput__input-prefix{border-color:var(--color-active)}.pkt-textinput__input-prefix{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.75rem;align-items:center;display:flex;width:auto;height:3rem;border:2px solid var(--color-blue-dark);padding:.5rem 0rem .5rem 1rem}.pkt-textinput__input-prefix::after{content:"";width:1px;margin-left:.5rem;height:100%;background-color:var(--color-blue-dark)}.pkt-textinput__input-suffix-wrapper{display:flex;align-items:center;align-self:stretch}.pkt-textinput__input-suffix-wrapper :not(:first-child){border-left:none}.pkt-textinput__input-suffix-wrapper :first-child{border-right:none}.pkt-textinput__input-suffix-wrapper p{margin:0}.pkt-textinput__input-suffix-wrapper input:focus{box-shadow:none}.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{border-color:var(--color-hover)}.pkt-textinput__input-suffix-wrapper:focus-within{outline:2px solid var(--color-active)}.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{border-color:var(--color-active)}.pkt-textinput__input-suffix{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.75rem;display:flex;align-items:center;width:auto;border:2px solid var(--color-blue-dark);padding:.5rem 1rem .5rem 0rem;flex-shrink:0}.pkt-textinput__input-suffix svg{width:1.5rem;height:1.5rem;margin-left:.5rem}.pkt-textinput__input-suffix::before{content:"";width:1px;margin-right:.5rem;height:1.5rem;background-color:var(--color-blue-dark)}.pkt-textinput__input-icon{font-size:1.125rem;font-weight:300;letter-spacing:-0.2px;line-height:1.75rem;display:flex;flex-shrink:0;padding:.5rem 1rem;align-items:center;align-self:stretch;border:2px solid var(--color-blue-dark)}.pkt-textinput__input-icon svg{width:1.5rem;height:1.5rem;margin-left:.5rem}.pkt-textinput__input--counter-error,.pkt-textinput__input--counter-error:focus{border-color:var(--color-red);background-color:var(--color-red-30)}.pkt-textinput__input--counter-error:focus{box-shadow:0 0 0 2px var(--color-red)}.pkt-textinput__counter{font-size:.875rem;font-weight:300;letter-spacing:-0.2px;line-height:1.375rem;width:100%;text-align:right}.pkt-textinput__counter--error{font-size:.875rem;font-weight:500;letter-spacing:-0.2px;line-height:1.375rem;color:var(--color-red)}.pkt-inputwrapper--disabled{color:var(--color-disabled);cursor:inherit}.pkt-inputwrapper--disabled .pkt-textinput__input,.pkt-inputwrapper--disabled .pkt-textinput__input-prefix,.pkt-inputwrapper--disabled .pkt-textinput__input-suffix,.pkt-inputwrapper--disabled .pkt-textinput__input-icon{border-color:var(--color-disabled);background-color:var(--color-disabled-light)}.pkt-inputwrapper--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input,.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input,.pkt-inputwrapper--disabled .pkt-textinput__input-prefix-wrapper:hover .pkt-textinput__input-prefix,.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-suffix,.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:hover .pkt-textinput__input-icon{border-color:var(--color-disabled)}.pkt-inputwrapper--disabled .pkt-textinput__input:hover{border-color:var(--color-disabled);box-shadow:none}.pkt-inputwrapper--disabled .pkt-textinput__input:focus{border-color:var(--color-disabled);box-shadow:none;outline:none}.pkt-inputwrapper--disabled .pkt-textinput__input-suffix-wrapper:active .pkt-textinput__input{border-right:none;box-shadow:none;outline:none}[data-mode=dark] .pkt-textinput__input-prefix,[data-mode=dark] .pkt-textinput__input-suffix,[data-mode=dark] .pkt-textinput__input-icon{background-color:var(--color-white);color:var(--color-blue-dark)}
|
package/dist/css/pkt-base.css
CHANGED
|
@@ -11319,7 +11319,7 @@ a:active, a.pkt-link--active,
|
|
|
11319
11319
|
}
|
|
11320
11320
|
.pkt-link--external::after {
|
|
11321
11321
|
content: " ";
|
|
11322
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/
|
|
11322
|
+
--svg: url(https://punkt-cdn.oslo.kommune.no/7.1/icons/new-window-small.svg);
|
|
11323
11323
|
background-image: var(--svg);
|
|
11324
11324
|
background-repeat: no-repeat;
|
|
11325
11325
|
background-size: 18px 18px;
|