@oslokommune/punkt-css 17.0.7 → 17.0.8
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 +21 -0
- package/dist/css/components/tag.css +61 -45
- package/dist/css/components/tag.min.css +1 -1
- package/dist/css/pkt-components.css +61 -611
- package/dist/css/pkt-components.min.css +1 -1
- package/dist/css/pkt-docs.css +89 -316
- package/dist/css/pkt-docs.min.css +1 -1
- package/dist/css/pkt-elements.css +26 -72
- package/dist/css/pkt-elements.min.css +1 -1
- package/dist/css/pkt.css +89 -316
- package/dist/css/pkt.layer.css +24478 -0
- package/dist/css/pkt.layer.min.css +1 -0
- package/dist/css/pkt.min.css +1 -1
- package/dist/scss/components/_index.scss +0 -2
- package/dist/scss/components/_tag.scss +37 -0
- package/dist/scss/elements/_index.scss +0 -1
- package/dist/scss/pkt.layer.scss +8 -0
- package/package.json +2 -2
- package/dist/css/components/preview.css +0 -180
- package/dist/css/components/preview.min.css +0 -1
- package/dist/css/components/textinput.css +0 -385
- package/dist/css/components/textinput.min.css +0 -1
- package/dist/css/elements/select.css +0 -419
- package/dist/css/elements/select.min.css +0 -1
- package/dist/scss/components/_preview.scss +0 -191
- package/dist/scss/components/_textinput.scss +0 -13
- package/dist/scss/elements/_select.scss +0 -13
|
@@ -1,419 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Select component
|
|
3
|
-
*
|
|
4
|
-
* Denne blir stilsatt av .pkt-input
|
|
5
|
-
* Ikke bruk klassen .pkt-select
|
|
6
|
-
*/
|
|
7
|
-
/* Common styles for all inputs */
|
|
8
|
-
pkt-textinput,
|
|
9
|
-
pkt-textarea,
|
|
10
|
-
pkt-select {
|
|
11
|
-
display: block;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.pkt-input, .pkt-select select,
|
|
15
|
-
.pkt-select:is(select) {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
appearance: none;
|
|
19
|
-
background-color: var(--pkt-color-input-background-normal);
|
|
20
|
-
border: 2px solid var(--pkt-color-input-border-normal);
|
|
21
|
-
border-radius: 0;
|
|
22
|
-
color: var(--pkt-color-input-text-normal);
|
|
23
|
-
margin: 0;
|
|
24
|
-
padding: 0.5rem 1rem;
|
|
25
|
-
min-height: 3rem;
|
|
26
|
-
letter-spacing: -0.2px;
|
|
27
|
-
font-weight: 300;
|
|
28
|
-
font-size: 1.125rem;
|
|
29
|
-
line-height: 1.75rem;
|
|
30
|
-
}
|
|
31
|
-
.pkt-input--small:not(:is(textarea, .pkt-timepicker__input, .pkt-datepicker__input)) {
|
|
32
|
-
min-height: 2.625rem;
|
|
33
|
-
padding: 0.375rem 1rem;
|
|
34
|
-
letter-spacing: -0.2px;
|
|
35
|
-
font-weight: 300;
|
|
36
|
-
font-size: 1rem;
|
|
37
|
-
line-height: 1.5rem;
|
|
38
|
-
}
|
|
39
|
-
.pkt-input--small:not(:is(textarea, .pkt-timepicker__input, .pkt-datepicker__input)):not(select[multiple]) {
|
|
40
|
-
height: 2.625rem;
|
|
41
|
-
}
|
|
42
|
-
.pkt-input--xsmall:not(:is(textarea, .pkt-timepicker__input, .pkt-datepicker__input)) {
|
|
43
|
-
min-height: 2.25rem;
|
|
44
|
-
padding: 0.25rem 0.75rem;
|
|
45
|
-
letter-spacing: -0.2px;
|
|
46
|
-
font-weight: 300;
|
|
47
|
-
font-size: 0.875rem;
|
|
48
|
-
line-height: 1.375rem;
|
|
49
|
-
}
|
|
50
|
-
.pkt-input--xsmall:not(:is(textarea, .pkt-timepicker__input, .pkt-datepicker__input)):not(select[multiple]) {
|
|
51
|
-
height: 2.25rem;
|
|
52
|
-
}
|
|
53
|
-
.pkt-input input.pkt-input, .pkt-select select input.pkt-input,
|
|
54
|
-
.pkt-select:is(select) input.pkt-input,
|
|
55
|
-
.pkt-input select.pkt-input,
|
|
56
|
-
.pkt-input .pkt-select select,
|
|
57
|
-
.pkt-select .pkt-input select,
|
|
58
|
-
.pkt-select select select,
|
|
59
|
-
.pkt-select:is(select) select,
|
|
60
|
-
.pkt-input select.pkt-select:is(select) {
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
63
|
-
.pkt-input-compact.pkt-input, .pkt-select select.pkt-input-compact,
|
|
64
|
-
.pkt-input-compact.pkt-select:is(select) {
|
|
65
|
-
border: 0;
|
|
66
|
-
border-bottom: 1px solid var(--pkt-color-input-border-normal);
|
|
67
|
-
padding: 0 0 0.1rem 0;
|
|
68
|
-
letter-spacing: -0.2px;
|
|
69
|
-
font-weight: 300;
|
|
70
|
-
font-size: 1rem;
|
|
71
|
-
line-height: 1.5rem;
|
|
72
|
-
}
|
|
73
|
-
.pkt-input-compact.pkt-input:is(select):not([multiple]), .pkt-select select.pkt-input-compact:is(select):not([multiple]),
|
|
74
|
-
.pkt-input-compact.pkt-select:is(select):not([multiple]) {
|
|
75
|
-
background-position: right 0 top 50%;
|
|
76
|
-
padding-right: 2rem;
|
|
77
|
-
}
|
|
78
|
-
.pkt-input:not(:is(textarea)):not(input[size]):not(.pkt-input--fullwidth):not(.pkt-datepicker__input:not(.pkt-datepicker--multiple)), .pkt-select select:not(:is(textarea)):not(input[size]):not(.pkt-input--fullwidth):not(.pkt-datepicker__input:not(.pkt-datepicker--multiple)),
|
|
79
|
-
.pkt-select:not(:is(textarea)):not(input[size]):not(.pkt-input--fullwidth):not(.pkt-datepicker__input:not(.pkt-datepicker--multiple)):is(select), .pkt-input__container:not(:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple)))):not(:is(:has(textarea[cols]))):not(:is(:has(input[size]))):not(:is(:has(.pkt-input--fullwidth))):not(:is(:has(.pkt-timepicker__input))) {
|
|
80
|
-
width: min(31rem, 100%);
|
|
81
|
-
}
|
|
82
|
-
.pkt-input__container:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple))):not(:is(:has(.pkt-input--fullwidth))) {
|
|
83
|
-
width: fit-content;
|
|
84
|
-
}
|
|
85
|
-
.pkt-input--fullwidth, *:has(.pkt-input--fullwidth) ~ .pkt-input__counter, .pkt-input--fullwidth + .pkt-input__counter {
|
|
86
|
-
width: 100%;
|
|
87
|
-
}
|
|
88
|
-
[fullwidth] .pkt-input__counter {
|
|
89
|
-
width: 100%;
|
|
90
|
-
}
|
|
91
|
-
.pkt-input:is(textarea:not([rows])), .pkt-select select:is(textarea:not([rows])),
|
|
92
|
-
.pkt-select:is(textarea:not([rows])):is(select) {
|
|
93
|
-
min-height: 9.25rem;
|
|
94
|
-
}
|
|
95
|
-
.pkt-input:is(select), .pkt-select select:is(select),
|
|
96
|
-
.pkt-select:is(select) {
|
|
97
|
-
appearance: none;
|
|
98
|
-
-moz-appearance: none;
|
|
99
|
-
-webkit-appearance: none;
|
|
100
|
-
padding-right: 3rem;
|
|
101
|
-
}
|
|
102
|
-
.pkt-input:is(select):not([multiple]), .pkt-select select:is(select):not([multiple]),
|
|
103
|
-
.pkt-select:is(select):not([multiple]) {
|
|
104
|
-
--svg: url(https://punkt-cdn.oslo.kommune.no/17.0/icons/chevron-thin-down.svg);
|
|
105
|
-
background-image: var(--svg);
|
|
106
|
-
background-repeat: no-repeat;
|
|
107
|
-
background-position: right 0.7rem top 50%;
|
|
108
|
-
background-size: 1.5rem auto, 100%;
|
|
109
|
-
}
|
|
110
|
-
.pkt-input:is(select):not([multiple]).pkt-input--small, .pkt-select select:is(select):not([multiple]).pkt-input--small,
|
|
111
|
-
.pkt-select:is(select):not([multiple]).pkt-input--small {
|
|
112
|
-
background-size: 1.25rem auto, 100%;
|
|
113
|
-
background-position: right 0.5rem top 50%;
|
|
114
|
-
padding: 0.375rem 2.5rem 0.375rem 1rem;
|
|
115
|
-
}
|
|
116
|
-
.pkt-input:is(select):not([multiple]).pkt-input--xsmall, .pkt-select select:is(select):not([multiple]).pkt-input--xsmall,
|
|
117
|
-
.pkt-select:is(select):not([multiple]).pkt-input--xsmall {
|
|
118
|
-
background-size: 1.125rem auto, 100%;
|
|
119
|
-
background-position: right 0.5rem top 50%;
|
|
120
|
-
padding: 0.25rem 2.25rem 0.25rem 0.75rem;
|
|
121
|
-
}
|
|
122
|
-
.pkt-input:is(select) option, .pkt-select select:is(select) option,
|
|
123
|
-
.pkt-select:is(select) option {
|
|
124
|
-
background-color: var(--pkt-color-input-background-normal);
|
|
125
|
-
color: var(--pkt-color-input-text-normal);
|
|
126
|
-
font-weight: normal;
|
|
127
|
-
}
|
|
128
|
-
.pkt-input::placeholder, .pkt-select select::placeholder,
|
|
129
|
-
.pkt-select:is(select)::placeholder {
|
|
130
|
-
color: var(--pkt-color-text-placeholder);
|
|
131
|
-
opacity: 1;
|
|
132
|
-
}
|
|
133
|
-
.pkt-input:hover, .pkt-select select:hover,
|
|
134
|
-
.pkt-select:hover:is(select), .pkt-input.pkt-input--hover, .pkt-select select.pkt-input--hover,
|
|
135
|
-
.pkt-input--hover.pkt-select:is(select) {
|
|
136
|
-
border-color: var(--pkt-color-input-border-hover);
|
|
137
|
-
}
|
|
138
|
-
.pkt-input:focus, .pkt-select select:focus,
|
|
139
|
-
.pkt-select:focus:is(select) {
|
|
140
|
-
outline: none;
|
|
141
|
-
border-color: var(--pkt-color-input-border-active);
|
|
142
|
-
}
|
|
143
|
-
.pkt-input:focus-visible, .pkt-select select:focus-visible,
|
|
144
|
-
.pkt-select:focus-visible:is(select), .pkt-input.pkt-input__textinput--focus, .pkt-select select.pkt-input__textinput--focus,
|
|
145
|
-
.pkt-input__textinput--focus.pkt-select:is(select) {
|
|
146
|
-
outline: 2px solid var(--pkt-color-input-border-active);
|
|
147
|
-
outline-offset: 0;
|
|
148
|
-
border-color: var(--pkt-color-input-border-active);
|
|
149
|
-
}
|
|
150
|
-
:is(.pkt-inputwrapper, .pkt-searchinput):not([data-navtype=pointer]) .pkt-input:focus-visible, :is(.pkt-inputwrapper, .pkt-searchinput):not([data-navtype=pointer]) .pkt-select select:focus-visible, .pkt-select :is(.pkt-inputwrapper, .pkt-searchinput):not([data-navtype=pointer]) select:focus-visible,
|
|
151
|
-
:is(.pkt-inputwrapper, .pkt-searchinput):not([data-navtype=pointer]) .pkt-select:focus-visible:is(select) {
|
|
152
|
-
outline: 4px solid var(--pkt-color-border-states-focus);
|
|
153
|
-
outline-offset: 0;
|
|
154
|
-
}
|
|
155
|
-
.pkt-input:disabled, .pkt-select select:disabled,
|
|
156
|
-
.pkt-select:disabled:is(select), .pkt-input:disabled::placeholder, .pkt-select select:disabled::placeholder,
|
|
157
|
-
.pkt-select:disabled:is(select)::placeholder, .pkt-input[readonly]:not(.ios-readonly-hack), .pkt-select select[readonly]:not(.ios-readonly-hack),
|
|
158
|
-
[readonly].pkt-select:not(.ios-readonly-hack):is(select) {
|
|
159
|
-
opacity: 1;
|
|
160
|
-
background-color: var(--pkt-color-surface-default-gray);
|
|
161
|
-
border-color: var(--pkt-color-input-border-disabled);
|
|
162
|
-
color: var(--pkt-color-input-text-disabled);
|
|
163
|
-
cursor: inherit;
|
|
164
|
-
}
|
|
165
|
-
.pkt-input:disabled:active, .pkt-select select:disabled:active,
|
|
166
|
-
.pkt-select:disabled:active:is(select) {
|
|
167
|
-
border: 2px solid var(--pkt-color-input-border-disabled);
|
|
168
|
-
}
|
|
169
|
-
.pkt-input-prefix, .pkt-input-suffix, .pkt-input-icon, .pkt-input-separator {
|
|
170
|
-
letter-spacing: -0.2px;
|
|
171
|
-
font-weight: 300;
|
|
172
|
-
font-size: 1.125rem;
|
|
173
|
-
line-height: 1.75rem;
|
|
174
|
-
}
|
|
175
|
-
.pkt-input-prefix, .pkt-input-suffix, .pkt-input-icon, .pkt-input-separator {
|
|
176
|
-
display: flex;
|
|
177
|
-
align-items: center;
|
|
178
|
-
width: auto;
|
|
179
|
-
height: 3rem;
|
|
180
|
-
border: 2px solid var(--pkt-color-input-border-normal);
|
|
181
|
-
flex-shrink: 0;
|
|
182
|
-
color: var(--pkt-color-brand-dark-blue-1000);
|
|
183
|
-
background-color: var(--pkt-color-input-background-normal);
|
|
184
|
-
}
|
|
185
|
-
.pkt-input-prefix {
|
|
186
|
-
padding: 0.5rem 0rem 0.5rem 1rem;
|
|
187
|
-
}
|
|
188
|
-
.pkt-input-prefix::after {
|
|
189
|
-
content: "";
|
|
190
|
-
width: 1px;
|
|
191
|
-
margin-left: 0.5rem;
|
|
192
|
-
height: 100%;
|
|
193
|
-
background-color: var(--pkt-color-brand-dark-blue-1000);
|
|
194
|
-
}
|
|
195
|
-
.pkt-input-suffix {
|
|
196
|
-
padding: 0.5rem 1rem 0.5rem 0rem;
|
|
197
|
-
}
|
|
198
|
-
.pkt-input-suffix svg {
|
|
199
|
-
width: 1.5rem;
|
|
200
|
-
height: 1.5rem;
|
|
201
|
-
margin-left: 0.5rem;
|
|
202
|
-
}
|
|
203
|
-
.pkt-input-suffix::before {
|
|
204
|
-
content: "";
|
|
205
|
-
width: 1px;
|
|
206
|
-
margin-right: 0.5rem;
|
|
207
|
-
height: 1.5rem;
|
|
208
|
-
background-color: var(--pkt-color-brand-dark-blue-1000);
|
|
209
|
-
}
|
|
210
|
-
.pkt-input-icon {
|
|
211
|
-
padding: 0.5rem 1rem;
|
|
212
|
-
align-self: stretch;
|
|
213
|
-
}
|
|
214
|
-
.pkt-input-icon svg {
|
|
215
|
-
width: 1.5rem;
|
|
216
|
-
height: 1.5rem;
|
|
217
|
-
}
|
|
218
|
-
.pkt-input-icon:not(button) svg {
|
|
219
|
-
margin-left: 0.5rem;
|
|
220
|
-
}
|
|
221
|
-
.pkt-input-separator {
|
|
222
|
-
padding: 0.5rem 0;
|
|
223
|
-
}
|
|
224
|
-
.pkt-input__container--small {
|
|
225
|
-
align-items: stretch;
|
|
226
|
-
}
|
|
227
|
-
.pkt-input__container--small .pkt-input-prefix,
|
|
228
|
-
.pkt-input__container--small .pkt-input-suffix,
|
|
229
|
-
.pkt-input__container--small .pkt-input-icon {
|
|
230
|
-
height: auto;
|
|
231
|
-
min-height: 2.625rem;
|
|
232
|
-
letter-spacing: -0.2px;
|
|
233
|
-
font-weight: 300;
|
|
234
|
-
font-size: 1rem;
|
|
235
|
-
line-height: 1.5rem;
|
|
236
|
-
}
|
|
237
|
-
.pkt-input__container--small .pkt-input-prefix {
|
|
238
|
-
padding: 0.375rem 0 0.375rem 1rem;
|
|
239
|
-
}
|
|
240
|
-
.pkt-input__container--small .pkt-input-suffix {
|
|
241
|
-
padding: 0.375rem 1rem 0.375rem 0;
|
|
242
|
-
}
|
|
243
|
-
.pkt-input__container--small input.pkt-input,
|
|
244
|
-
.pkt-input__container--small select.pkt-input,
|
|
245
|
-
.pkt-input__container--small .pkt-select select,
|
|
246
|
-
.pkt-select .pkt-input__container--small select,
|
|
247
|
-
.pkt-input__container--small select.pkt-select:is(select) {
|
|
248
|
-
height: auto;
|
|
249
|
-
min-height: 2.625rem;
|
|
250
|
-
flex: 1 1 auto;
|
|
251
|
-
min-width: 0;
|
|
252
|
-
padding: 0.375rem 1rem;
|
|
253
|
-
letter-spacing: -0.2px;
|
|
254
|
-
font-weight: 300;
|
|
255
|
-
font-size: 1rem;
|
|
256
|
-
line-height: 1.5rem;
|
|
257
|
-
}
|
|
258
|
-
.pkt-input__container--small .pkt-input-icon svg,
|
|
259
|
-
.pkt-input__container--small .pkt-input-suffix svg {
|
|
260
|
-
width: 1.25rem;
|
|
261
|
-
height: 1.25rem;
|
|
262
|
-
}
|
|
263
|
-
.pkt-input__container--small .pkt-input-suffix::before {
|
|
264
|
-
height: 1.25rem;
|
|
265
|
-
}
|
|
266
|
-
.pkt-input__container--xsmall {
|
|
267
|
-
align-items: stretch;
|
|
268
|
-
}
|
|
269
|
-
.pkt-input__container--xsmall .pkt-input-prefix,
|
|
270
|
-
.pkt-input__container--xsmall .pkt-input-suffix,
|
|
271
|
-
.pkt-input__container--xsmall .pkt-input-icon {
|
|
272
|
-
height: auto;
|
|
273
|
-
min-height: 2.25rem;
|
|
274
|
-
letter-spacing: -0.2px;
|
|
275
|
-
font-weight: 300;
|
|
276
|
-
font-size: 0.875rem;
|
|
277
|
-
line-height: 1.375rem;
|
|
278
|
-
}
|
|
279
|
-
.pkt-input__container--xsmall .pkt-input-prefix {
|
|
280
|
-
padding: 0.25rem 0 0.25rem 0.75rem;
|
|
281
|
-
}
|
|
282
|
-
.pkt-input__container--xsmall .pkt-input-suffix {
|
|
283
|
-
padding: 0.25rem 0.75rem 0.25rem 0;
|
|
284
|
-
}
|
|
285
|
-
.pkt-input__container--xsmall input.pkt-input,
|
|
286
|
-
.pkt-input__container--xsmall select.pkt-input,
|
|
287
|
-
.pkt-input__container--xsmall .pkt-select select,
|
|
288
|
-
.pkt-select .pkt-input__container--xsmall select,
|
|
289
|
-
.pkt-input__container--xsmall select.pkt-select:is(select) {
|
|
290
|
-
height: auto;
|
|
291
|
-
min-height: 2.25rem;
|
|
292
|
-
flex: 1 1 auto;
|
|
293
|
-
min-width: 0;
|
|
294
|
-
padding: 0.25rem 0.75rem;
|
|
295
|
-
letter-spacing: -0.2px;
|
|
296
|
-
font-weight: 300;
|
|
297
|
-
font-size: 0.875rem;
|
|
298
|
-
line-height: 1.375rem;
|
|
299
|
-
}
|
|
300
|
-
.pkt-input__container--xsmall .pkt-input-icon {
|
|
301
|
-
padding: 0.25rem 0.5rem;
|
|
302
|
-
}
|
|
303
|
-
.pkt-input__container--xsmall .pkt-input-icon svg,
|
|
304
|
-
.pkt-input__container--xsmall .pkt-input-suffix svg {
|
|
305
|
-
width: 1.125rem;
|
|
306
|
-
height: 1.125rem;
|
|
307
|
-
}
|
|
308
|
-
.pkt-input__container--xsmall .pkt-input-suffix::before {
|
|
309
|
-
height: 1.125rem;
|
|
310
|
-
}
|
|
311
|
-
.pkt-input--counter-error, .pkt-input--counter-error:focus {
|
|
312
|
-
border-color: var(--pkt-color-input-border-error);
|
|
313
|
-
background-color: var(--pkt-color-surface-default-faded-red);
|
|
314
|
-
}
|
|
315
|
-
.pkt-input--counter-error:focus {
|
|
316
|
-
box-shadow: 0 0 0 2px var(--pkt-color-input-border-error);
|
|
317
|
-
}
|
|
318
|
-
.pkt-input__container {
|
|
319
|
-
display: flex;
|
|
320
|
-
align-items: center;
|
|
321
|
-
align-self: stretch;
|
|
322
|
-
}
|
|
323
|
-
.pkt-input__container:is(:has(input[size])), .pkt-input__container:is(:has(textarea[cols])) {
|
|
324
|
-
align-self: flex-start;
|
|
325
|
-
}
|
|
326
|
-
.pkt-input__container :first-child:not(:only-child) {
|
|
327
|
-
border-right-width: 0;
|
|
328
|
-
}
|
|
329
|
-
.pkt-input__container :last-child:not(:only-child) {
|
|
330
|
-
border-left-width: 0;
|
|
331
|
-
}
|
|
332
|
-
.pkt-input__container :not(:first-child):not(:last-child) {
|
|
333
|
-
border-left-width: 0;
|
|
334
|
-
border-right-width: 0;
|
|
335
|
-
}
|
|
336
|
-
.pkt-input__container p {
|
|
337
|
-
margin: 0;
|
|
338
|
-
}
|
|
339
|
-
.pkt-input__container input:focus {
|
|
340
|
-
outline: none;
|
|
341
|
-
box-shadow: none;
|
|
342
|
-
}
|
|
343
|
-
.pkt-input__container:hover .pkt-input:not(:disabled), .pkt-input__container:hover .pkt-select select:not(:disabled), .pkt-select .pkt-input__container:hover select:not(:disabled),
|
|
344
|
-
.pkt-input__container:hover .pkt-select:not(:disabled):is(select), .pkt-input__container:hover .pkt-input-prefix:not(:disabled), .pkt-input__container:hover .pkt-input-suffix:not(:disabled), .pkt-input__container:hover .pkt-input-icon:not(:disabled) {
|
|
345
|
-
border-color: var(--pkt-color-input-border-active);
|
|
346
|
-
color: var(--pkt-color-input-text-hover);
|
|
347
|
-
--fg-color: var(--pkt-color-input-text-hover);
|
|
348
|
-
}
|
|
349
|
-
.pkt-input__container:focus-within {
|
|
350
|
-
outline: 2px solid var(--pkt-color-input-border-active);
|
|
351
|
-
}
|
|
352
|
-
.pkt-input__container:focus-within .pkt-input, .pkt-input__container:focus-within .pkt-select select, .pkt-select .pkt-input__container:focus-within select,
|
|
353
|
-
.pkt-input__container:focus-within .pkt-select:is(select),
|
|
354
|
-
.pkt-input__container:focus-within .pkt-input-prefix,
|
|
355
|
-
.pkt-input__container:focus-within .pkt-input-suffix,
|
|
356
|
-
.pkt-input__container:focus-within .pkt-input-icon {
|
|
357
|
-
border-color: var(--pkt-color-input-border-active);
|
|
358
|
-
}
|
|
359
|
-
:is(.pkt-inputwrapper, .pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within {
|
|
360
|
-
outline: 4px solid var(--pkt-color-border-states-focus);
|
|
361
|
-
}
|
|
362
|
-
:is(.pkt-inputwrapper, .pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within .pkt-input:focus-visible, :is(.pkt-inputwrapper, .pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within .pkt-select select:focus-visible, .pkt-select :is(.pkt-inputwrapper, .pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within select:focus-visible,
|
|
363
|
-
:is(.pkt-inputwrapper, .pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within .pkt-select:focus-visible:is(select) {
|
|
364
|
-
outline: none;
|
|
365
|
-
}
|
|
366
|
-
.pkt-input__counter {
|
|
367
|
-
letter-spacing: -0.2px;
|
|
368
|
-
font-weight: 300;
|
|
369
|
-
font-size: 0.875rem;
|
|
370
|
-
line-height: 1.375rem;
|
|
371
|
-
}
|
|
372
|
-
.pkt-input__counter {
|
|
373
|
-
width: min(100%, 31rem);
|
|
374
|
-
text-align: right;
|
|
375
|
-
}
|
|
376
|
-
.pkt-input__counter--error {
|
|
377
|
-
letter-spacing: -0.2px;
|
|
378
|
-
font-weight: 500;
|
|
379
|
-
font-size: 0.875rem;
|
|
380
|
-
line-height: 1.375rem;
|
|
381
|
-
}
|
|
382
|
-
.pkt-input__counter--error {
|
|
383
|
-
color: var(--pkt-color-input-text-error);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
@media screen and (max-width: 30rem) {
|
|
387
|
-
.pkt-input__range-inputs {
|
|
388
|
-
max-width: 100%;
|
|
389
|
-
}
|
|
390
|
-
.pkt-input__range-inputs .pkt-input__container {
|
|
391
|
-
border: 2px solid var(--pkt-color-input-border-normal);
|
|
392
|
-
display: grid;
|
|
393
|
-
grid-template-rows: auto auto;
|
|
394
|
-
grid-template-columns: auto 3rem;
|
|
395
|
-
gap: 0;
|
|
396
|
-
}
|
|
397
|
-
.pkt-input__range-inputs .pkt-input__container .pkt-input-prefix,
|
|
398
|
-
.pkt-input__range-inputs .pkt-input__container .pkt-input-suffix,
|
|
399
|
-
.pkt-input__range-inputs .pkt-input__container .pkt-input-icon,
|
|
400
|
-
.pkt-input__range-inputs .pkt-input__container .pkt-input,
|
|
401
|
-
.pkt-input__range-inputs .pkt-input__container .pkt-select select,
|
|
402
|
-
.pkt-select .pkt-input__range-inputs .pkt-input__container select,
|
|
403
|
-
.pkt-input__range-inputs .pkt-input__container .pkt-select:is(select) {
|
|
404
|
-
border: 0;
|
|
405
|
-
}
|
|
406
|
-
.pkt-input__range-inputs .pkt-input__container .pkt-input-separator {
|
|
407
|
-
margin: 0 auto;
|
|
408
|
-
}
|
|
409
|
-
.pkt-input__range-inputs .pkt-input__container .pkt-input.pkt-datepicker__input.pkt-datepicker--range, .pkt-input__range-inputs .pkt-input__container .pkt-select select.pkt-datepicker__input.pkt-datepicker--range, .pkt-select .pkt-input__range-inputs .pkt-input__container select.pkt-datepicker__input.pkt-datepicker--range,
|
|
410
|
-
.pkt-input__range-inputs .pkt-input__container .pkt-datepicker__input.pkt-datepicker--range.pkt-select:is(select) {
|
|
411
|
-
padding-left: 1rem;
|
|
412
|
-
}
|
|
413
|
-
.pkt-input__range-inputs .pkt-input__container:has(> :first-child.pkt-input-prefix) > :nth-child(2) {
|
|
414
|
-
grid-column-start: span 2;
|
|
415
|
-
}
|
|
416
|
-
.pkt-input__range-inputs .pkt-input__container:has(> :first-child.pkt-input-prefix) {
|
|
417
|
-
grid-template-columns: min-content auto 3rem;
|
|
418
|
-
}
|
|
419
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pkt-textinput,pkt-textarea,pkt-select{display:block}.pkt-input,.pkt-select select,.pkt-select:is(select){display:flex;align-items:center;appearance:none;background-color:var(--pkt-color-input-background-normal);border:2px solid var(--pkt-color-input-border-normal);border-radius:0;color:var(--pkt-color-input-text-normal);margin:0;padding:.5rem 1rem;min-height:3rem;letter-spacing:-0.2px;font-weight:300;font-size:1.125rem;line-height:1.75rem}.pkt-input--small:not(:is(textarea,.pkt-timepicker__input,.pkt-datepicker__input)){min-height:2.625rem;padding:.375rem 1rem;letter-spacing:-0.2px;font-weight:300;font-size:1rem;line-height:1.5rem}.pkt-input--small:not(:is(textarea,.pkt-timepicker__input,.pkt-datepicker__input)):not(select[multiple]){height:2.625rem}.pkt-input--xsmall:not(:is(textarea,.pkt-timepicker__input,.pkt-datepicker__input)){min-height:2.25rem;padding:.25rem .75rem;letter-spacing:-0.2px;font-weight:300;font-size:.875rem;line-height:1.375rem}.pkt-input--xsmall:not(:is(textarea,.pkt-timepicker__input,.pkt-datepicker__input)):not(select[multiple]){height:2.25rem}.pkt-input input.pkt-input,.pkt-select select input.pkt-input,.pkt-select:is(select) input.pkt-input,.pkt-input select.pkt-input,.pkt-input .pkt-select select,.pkt-select .pkt-input select,.pkt-select select select,.pkt-select:is(select) select,.pkt-input select.pkt-select:is(select){display:block}.pkt-input-compact.pkt-input,.pkt-select select.pkt-input-compact,.pkt-input-compact.pkt-select:is(select){border:0;border-bottom:1px solid var(--pkt-color-input-border-normal);padding:0 0 .1rem 0;letter-spacing:-0.2px;font-weight:300;font-size:1rem;line-height:1.5rem}.pkt-input-compact.pkt-input:is(select):not([multiple]),.pkt-select select.pkt-input-compact:is(select):not([multiple]),.pkt-input-compact.pkt-select:is(select):not([multiple]){background-position:right 0 top 50%;padding-right:2rem}.pkt-input:not(:is(textarea)):not(input[size]):not(.pkt-input--fullwidth):not(.pkt-datepicker__input:not(.pkt-datepicker--multiple)),.pkt-select select:not(:is(textarea)):not(input[size]):not(.pkt-input--fullwidth):not(.pkt-datepicker__input:not(.pkt-datepicker--multiple)),.pkt-select:not(:is(textarea)):not(input[size]):not(.pkt-input--fullwidth):not(.pkt-datepicker__input:not(.pkt-datepicker--multiple)):is(select),.pkt-input__container:not(:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple)))):not(:is(:has(textarea[cols]))):not(:is(:has(input[size]))):not(:is(:has(.pkt-input--fullwidth))):not(:is(:has(.pkt-timepicker__input))){width:min(31rem,100%)}.pkt-input__container:is(:has(.pkt-datepicker__input:not(.pkt-datepicker--multiple))):not(:is(:has(.pkt-input--fullwidth))){width:fit-content}.pkt-input--fullwidth,*:has(.pkt-input--fullwidth)~.pkt-input__counter,.pkt-input--fullwidth+.pkt-input__counter{width:100%}[fullwidth] .pkt-input__counter{width:100%}.pkt-input:is(textarea:not([rows])),.pkt-select select:is(textarea:not([rows])),.pkt-select:is(textarea:not([rows])):is(select){min-height:9.25rem}.pkt-input:is(select),.pkt-select select:is(select),.pkt-select:is(select){appearance:none;-moz-appearance:none;-webkit-appearance:none;padding-right:3rem}.pkt-input:is(select):not([multiple]),.pkt-select select:is(select):not([multiple]),.pkt-select:is(select):not([multiple]){--svg: url(https://punkt-cdn.oslo.kommune.no/17.0/icons/chevron-thin-down.svg);background-image:var(--svg);background-repeat:no-repeat;background-position:right .7rem top 50%;background-size:1.5rem auto,100%}.pkt-input:is(select):not([multiple]).pkt-input--small,.pkt-select select:is(select):not([multiple]).pkt-input--small,.pkt-select:is(select):not([multiple]).pkt-input--small{background-size:1.25rem auto,100%;background-position:right .5rem top 50%;padding:.375rem 2.5rem .375rem 1rem}.pkt-input:is(select):not([multiple]).pkt-input--xsmall,.pkt-select select:is(select):not([multiple]).pkt-input--xsmall,.pkt-select:is(select):not([multiple]).pkt-input--xsmall{background-size:1.125rem auto,100%;background-position:right .5rem top 50%;padding:.25rem 2.25rem .25rem .75rem}.pkt-input:is(select) option,.pkt-select select:is(select) option,.pkt-select:is(select) option{background-color:var(--pkt-color-input-background-normal);color:var(--pkt-color-input-text-normal);font-weight:normal}.pkt-input::placeholder,.pkt-select select::placeholder,.pkt-select:is(select)::placeholder{color:var(--pkt-color-text-placeholder);opacity:1}.pkt-input:hover,.pkt-select select:hover,.pkt-select:hover:is(select),.pkt-input.pkt-input--hover,.pkt-select select.pkt-input--hover,.pkt-input--hover.pkt-select:is(select){border-color:var(--pkt-color-input-border-hover)}.pkt-input:focus,.pkt-select select:focus,.pkt-select:focus:is(select){outline:none;border-color:var(--pkt-color-input-border-active)}.pkt-input:focus-visible,.pkt-select select:focus-visible,.pkt-select:focus-visible:is(select),.pkt-input.pkt-input__textinput--focus,.pkt-select select.pkt-input__textinput--focus,.pkt-input__textinput--focus.pkt-select:is(select){outline:2px solid var(--pkt-color-input-border-active);outline-offset:0;border-color:var(--pkt-color-input-border-active)}:is(.pkt-inputwrapper,.pkt-searchinput):not([data-navtype=pointer]) .pkt-input:focus-visible,:is(.pkt-inputwrapper,.pkt-searchinput):not([data-navtype=pointer]) .pkt-select select:focus-visible,.pkt-select :is(.pkt-inputwrapper,.pkt-searchinput):not([data-navtype=pointer]) select:focus-visible,:is(.pkt-inputwrapper,.pkt-searchinput):not([data-navtype=pointer]) .pkt-select:focus-visible:is(select){outline:4px solid var(--pkt-color-border-states-focus);outline-offset:0}.pkt-input:disabled,.pkt-select select:disabled,.pkt-select:disabled:is(select),.pkt-input:disabled::placeholder,.pkt-select select:disabled::placeholder,.pkt-select:disabled:is(select)::placeholder,.pkt-input[readonly]:not(.ios-readonly-hack),.pkt-select select[readonly]:not(.ios-readonly-hack),[readonly].pkt-select:not(.ios-readonly-hack):is(select){opacity:1;background-color:var(--pkt-color-surface-default-gray);border-color:var(--pkt-color-input-border-disabled);color:var(--pkt-color-input-text-disabled);cursor:inherit}.pkt-input:disabled:active,.pkt-select select:disabled:active,.pkt-select:disabled:active:is(select){border:2px solid var(--pkt-color-input-border-disabled)}.pkt-input-prefix,.pkt-input-suffix,.pkt-input-icon,.pkt-input-separator{letter-spacing:-0.2px;font-weight:300;font-size:1.125rem;line-height:1.75rem}.pkt-input-prefix,.pkt-input-suffix,.pkt-input-icon,.pkt-input-separator{display:flex;align-items:center;width:auto;height:3rem;border:2px solid var(--pkt-color-input-border-normal);flex-shrink:0;color:var(--pkt-color-brand-dark-blue-1000);background-color:var(--pkt-color-input-background-normal)}.pkt-input-prefix{padding:.5rem 0rem .5rem 1rem}.pkt-input-prefix::after{content:"";width:1px;margin-left:.5rem;height:100%;background-color:var(--pkt-color-brand-dark-blue-1000)}.pkt-input-suffix{padding:.5rem 1rem .5rem 0rem}.pkt-input-suffix svg{width:1.5rem;height:1.5rem;margin-left:.5rem}.pkt-input-suffix::before{content:"";width:1px;margin-right:.5rem;height:1.5rem;background-color:var(--pkt-color-brand-dark-blue-1000)}.pkt-input-icon{padding:.5rem 1rem;align-self:stretch}.pkt-input-icon svg{width:1.5rem;height:1.5rem}.pkt-input-icon:not(button) svg{margin-left:.5rem}.pkt-input-separator{padding:.5rem 0}.pkt-input__container--small{align-items:stretch}.pkt-input__container--small .pkt-input-prefix,.pkt-input__container--small .pkt-input-suffix,.pkt-input__container--small .pkt-input-icon{height:auto;min-height:2.625rem;letter-spacing:-0.2px;font-weight:300;font-size:1rem;line-height:1.5rem}.pkt-input__container--small .pkt-input-prefix{padding:.375rem 0 .375rem 1rem}.pkt-input__container--small .pkt-input-suffix{padding:.375rem 1rem .375rem 0}.pkt-input__container--small input.pkt-input,.pkt-input__container--small select.pkt-input,.pkt-input__container--small .pkt-select select,.pkt-select .pkt-input__container--small select,.pkt-input__container--small select.pkt-select:is(select){height:auto;min-height:2.625rem;flex:1 1 auto;min-width:0;padding:.375rem 1rem;letter-spacing:-0.2px;font-weight:300;font-size:1rem;line-height:1.5rem}.pkt-input__container--small .pkt-input-icon svg,.pkt-input__container--small .pkt-input-suffix svg{width:1.25rem;height:1.25rem}.pkt-input__container--small .pkt-input-suffix::before{height:1.25rem}.pkt-input__container--xsmall{align-items:stretch}.pkt-input__container--xsmall .pkt-input-prefix,.pkt-input__container--xsmall .pkt-input-suffix,.pkt-input__container--xsmall .pkt-input-icon{height:auto;min-height:2.25rem;letter-spacing:-0.2px;font-weight:300;font-size:.875rem;line-height:1.375rem}.pkt-input__container--xsmall .pkt-input-prefix{padding:.25rem 0 .25rem .75rem}.pkt-input__container--xsmall .pkt-input-suffix{padding:.25rem .75rem .25rem 0}.pkt-input__container--xsmall input.pkt-input,.pkt-input__container--xsmall select.pkt-input,.pkt-input__container--xsmall .pkt-select select,.pkt-select .pkt-input__container--xsmall select,.pkt-input__container--xsmall select.pkt-select:is(select){height:auto;min-height:2.25rem;flex:1 1 auto;min-width:0;padding:.25rem .75rem;letter-spacing:-0.2px;font-weight:300;font-size:.875rem;line-height:1.375rem}.pkt-input__container--xsmall .pkt-input-icon{padding:.25rem .5rem}.pkt-input__container--xsmall .pkt-input-icon svg,.pkt-input__container--xsmall .pkt-input-suffix svg{width:1.125rem;height:1.125rem}.pkt-input__container--xsmall .pkt-input-suffix::before{height:1.125rem}.pkt-input--counter-error,.pkt-input--counter-error:focus{border-color:var(--pkt-color-input-border-error);background-color:var(--pkt-color-surface-default-faded-red)}.pkt-input--counter-error:focus{box-shadow:0 0 0 2px var(--pkt-color-input-border-error)}.pkt-input__container{display:flex;align-items:center;align-self:stretch}.pkt-input__container:is(:has(input[size])),.pkt-input__container:is(:has(textarea[cols])){align-self:flex-start}.pkt-input__container :first-child:not(:only-child){border-right-width:0}.pkt-input__container :last-child:not(:only-child){border-left-width:0}.pkt-input__container :not(:first-child):not(:last-child){border-left-width:0;border-right-width:0}.pkt-input__container p{margin:0}.pkt-input__container input:focus{outline:none;box-shadow:none}.pkt-input__container:hover .pkt-input:not(:disabled),.pkt-input__container:hover .pkt-select select:not(:disabled),.pkt-select .pkt-input__container:hover select:not(:disabled),.pkt-input__container:hover .pkt-select:not(:disabled):is(select),.pkt-input__container:hover .pkt-input-prefix:not(:disabled),.pkt-input__container:hover .pkt-input-suffix:not(:disabled),.pkt-input__container:hover .pkt-input-icon:not(:disabled){border-color:var(--pkt-color-input-border-active);color:var(--pkt-color-input-text-hover);--fg-color: var(--pkt-color-input-text-hover)}.pkt-input__container:focus-within{outline:2px solid var(--pkt-color-input-border-active)}.pkt-input__container:focus-within .pkt-input,.pkt-input__container:focus-within .pkt-select select,.pkt-select .pkt-input__container:focus-within select,.pkt-input__container:focus-within .pkt-select:is(select),.pkt-input__container:focus-within .pkt-input-prefix,.pkt-input__container:focus-within .pkt-input-suffix,.pkt-input__container:focus-within .pkt-input-icon{border-color:var(--pkt-color-input-border-active)}:is(.pkt-inputwrapper,.pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within{outline:4px solid var(--pkt-color-border-states-focus)}:is(.pkt-inputwrapper,.pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within .pkt-input:focus-visible,:is(.pkt-inputwrapper,.pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within .pkt-select select:focus-visible,.pkt-select :is(.pkt-inputwrapper,.pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within select:focus-visible,:is(.pkt-inputwrapper,.pkt-searchinput):not([data-navtype=pointer]) .pkt-input__container:focus-within .pkt-select:focus-visible:is(select){outline:none}.pkt-input__counter{letter-spacing:-0.2px;font-weight:300;font-size:.875rem;line-height:1.375rem}.pkt-input__counter{width:min(100%,31rem);text-align:right}.pkt-input__counter--error{letter-spacing:-0.2px;font-weight:500;font-size:.875rem;line-height:1.375rem}.pkt-input__counter--error{color:var(--pkt-color-input-text-error)}@media screen and (max-width: 30rem){.pkt-input__range-inputs{max-width:100%}.pkt-input__range-inputs .pkt-input__container{border:2px solid var(--pkt-color-input-border-normal);display:grid;grid-template-rows:auto auto;grid-template-columns:auto 3rem;gap:0}.pkt-input__range-inputs .pkt-input__container .pkt-input-prefix,.pkt-input__range-inputs .pkt-input__container .pkt-input-suffix,.pkt-input__range-inputs .pkt-input__container .pkt-input-icon,.pkt-input__range-inputs .pkt-input__container .pkt-input,.pkt-input__range-inputs .pkt-input__container .pkt-select select,.pkt-select .pkt-input__range-inputs .pkt-input__container select,.pkt-input__range-inputs .pkt-input__container .pkt-select:is(select){border:0}.pkt-input__range-inputs .pkt-input__container .pkt-input-separator{margin:0 auto}.pkt-input__range-inputs .pkt-input__container .pkt-input.pkt-datepicker__input.pkt-datepicker--range,.pkt-input__range-inputs .pkt-input__container .pkt-select select.pkt-datepicker__input.pkt-datepicker--range,.pkt-select .pkt-input__range-inputs .pkt-input__container select.pkt-datepicker__input.pkt-datepicker--range,.pkt-input__range-inputs .pkt-input__container .pkt-datepicker__input.pkt-datepicker--range.pkt-select:is(select){padding-left:1rem}.pkt-input__range-inputs .pkt-input__container:has(>:first-child.pkt-input-prefix)>:nth-child(2){grid-column-start:span 2}.pkt-input__range-inputs .pkt-input__container:has(>:first-child.pkt-input-prefix){grid-template-columns:min-content auto 3rem}}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '../abstracts/variables';
|
|
3
|
-
@use '../abstracts/functions';
|
|
4
|
-
@use '../abstracts/mixins/typography';
|
|
5
|
-
@use '../abstracts/mixins/breakpoints' as *;
|
|
6
|
-
|
|
7
|
-
.pkt-preview {
|
|
8
|
-
position: relative;
|
|
9
|
-
.pkt-tabs {
|
|
10
|
-
--pkt-tabs-bg: var(--pkt-color-surface-default-gray);
|
|
11
|
-
}
|
|
12
|
-
&__component {
|
|
13
|
-
position: relative;
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: space-around;
|
|
16
|
-
align-items: center;
|
|
17
|
-
min-height: 10rem;
|
|
18
|
-
padding: 3rem 1rem;
|
|
19
|
-
margin: 0;
|
|
20
|
-
background-color: var(--pkt-color-background-default);
|
|
21
|
-
transition: background-color 0.2s linear;
|
|
22
|
-
&--fullwidth > div {
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
&--fullwidth > div > .pkt-fileupload,
|
|
26
|
-
&--fullwidth > div > .pkt-fileupload-wrapper {
|
|
27
|
-
width: 100%;
|
|
28
|
-
}
|
|
29
|
-
&-container {
|
|
30
|
-
position: relative;
|
|
31
|
-
border: 2px solid var(--pkt-color-border-gray);
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
gap: 0;
|
|
35
|
-
@include bp('tablet-big-up') {
|
|
36
|
-
flex-direction: row;
|
|
37
|
-
.pkt-preview__component {
|
|
38
|
-
flex: 1 1 0;
|
|
39
|
-
min-width: 0;
|
|
40
|
-
}
|
|
41
|
-
.pkt-preview__panel {
|
|
42
|
-
flex: 0 0 auto;
|
|
43
|
-
min-width: 20rem;
|
|
44
|
-
max-width: 25rem;
|
|
45
|
-
width: 100%;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
&__inner-container {
|
|
50
|
-
display: flex;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
width: 100%;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
&__panel {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
gap: 1rem;
|
|
59
|
-
padding: 2rem 1.5rem;
|
|
60
|
-
justify-content: space-between;
|
|
61
|
-
align-items: stretch;
|
|
62
|
-
background-color: var(--pkt-color-surface-default-gray);
|
|
63
|
-
&__options {
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-direction: column;
|
|
66
|
-
gap: 1rem;
|
|
67
|
-
margin-block-end: 1rem;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
&__options {
|
|
71
|
-
display: flex;
|
|
72
|
-
flex-direction: column;
|
|
73
|
-
gap: 1rem;
|
|
74
|
-
}
|
|
75
|
-
&__opts {
|
|
76
|
-
padding: 1rem;
|
|
77
|
-
background-color: var(--pkt-color-surface-default-gray);
|
|
78
|
-
> .pkt-cell {
|
|
79
|
-
position: relative;
|
|
80
|
-
> .pkt-tag {
|
|
81
|
-
display: block;
|
|
82
|
-
position: absolute;
|
|
83
|
-
top: 0;
|
|
84
|
-
right: 0;
|
|
85
|
-
padding: 0 0.25rem 0;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
.hide-code-button {
|
|
90
|
-
position: absolute;
|
|
91
|
-
top: 100%;
|
|
92
|
-
margin-block-start: -1.5rem;
|
|
93
|
-
left: 0;
|
|
94
|
-
width: 100%;
|
|
95
|
-
display: flex;
|
|
96
|
-
justify-content: center;
|
|
97
|
-
align-items: flex-end;
|
|
98
|
-
padding-block-end: 1rem;
|
|
99
|
-
z-index: 2;
|
|
100
|
-
}
|
|
101
|
-
&__code {
|
|
102
|
-
color: var(--pkt-color-text-body-default);
|
|
103
|
-
position: relative;
|
|
104
|
-
&-container {
|
|
105
|
-
position: relative;
|
|
106
|
-
padding: 2rem 2rem 0;
|
|
107
|
-
background-color: var(--pkt-color-grays-gray-800);
|
|
108
|
-
transition: max-height 0.5s ease;
|
|
109
|
-
max-height: 50rem;
|
|
110
|
-
.pkt-tabs {
|
|
111
|
-
--pkt-tabs-bg: var(--pkt-color-grays-gray-800);
|
|
112
|
-
}
|
|
113
|
-
&.hide-code {
|
|
114
|
-
overflow: hidden;
|
|
115
|
-
max-height: 11.7rem;
|
|
116
|
-
&:after {
|
|
117
|
-
content: '';
|
|
118
|
-
display: block;
|
|
119
|
-
position: absolute;
|
|
120
|
-
top: 0;
|
|
121
|
-
bottom: 0;
|
|
122
|
-
left: 0;
|
|
123
|
-
right: 0;
|
|
124
|
-
background: linear-gradient(180deg, transparent 0%, transparent 93%, var(--pkt-color-grays-gray-800) 100%);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
pre {
|
|
129
|
-
max-height: 30rem;
|
|
130
|
-
overflow: auto;
|
|
131
|
-
margin-block-start: 0 !important;
|
|
132
|
-
background-color: transparent !important;
|
|
133
|
-
font-size: 1rem;
|
|
134
|
-
padding: 2rem 0;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
&__copy {
|
|
138
|
-
position: absolute;
|
|
139
|
-
top: 0.5rem;
|
|
140
|
-
right: 0.5rem;
|
|
141
|
-
display: flex;
|
|
142
|
-
gap: 0.5rem;
|
|
143
|
-
align-items: center;
|
|
144
|
-
z-index: 3;
|
|
145
|
-
}
|
|
146
|
-
&__fullscreen-btn {
|
|
147
|
-
position: absolute;
|
|
148
|
-
top: 0.5rem;
|
|
149
|
-
right: 0.5rem;
|
|
150
|
-
z-index: 1;
|
|
151
|
-
}
|
|
152
|
-
&__prop-group,
|
|
153
|
-
&__array-item,
|
|
154
|
-
&__object-editor {
|
|
155
|
-
position: relative;
|
|
156
|
-
display: flex;
|
|
157
|
-
flex-direction: column;
|
|
158
|
-
gap: 1rem;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// Spec descriptions with <code> (same as docs content / SpecList)
|
|
162
|
-
.pkt-inputwrapper__helptext code {
|
|
163
|
-
background: var(--pkt-color-background-subtle);
|
|
164
|
-
border: 1px solid var(--pkt-color-border-gray);
|
|
165
|
-
border-radius: 3px;
|
|
166
|
-
padding: 0.11em 0.33em;
|
|
167
|
-
font-size: 0.8em;
|
|
168
|
-
}
|
|
169
|
-
&__add-object {
|
|
170
|
-
text-align: right;
|
|
171
|
-
margin-block-start: 0.5rem;
|
|
172
|
-
}
|
|
173
|
-
&__remove-object {
|
|
174
|
-
position: absolute;
|
|
175
|
-
top: -1.75rem;
|
|
176
|
-
right: -0.25rem;
|
|
177
|
-
}
|
|
178
|
-
&__specs {
|
|
179
|
-
pre {
|
|
180
|
-
margin-block-start: 0 !important;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.astro-code.github-light {
|
|
186
|
-
background-color: var(--pkt-color-surface-default-gray) !important;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.preview-content {
|
|
190
|
-
display: contents;
|
|
191
|
-
}
|