@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
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
@forward 'loader';
|
|
25
25
|
@forward 'modal';
|
|
26
26
|
@forward 'messagebox';
|
|
27
|
-
@forward 'preview';
|
|
28
27
|
@forward 'progressbar';
|
|
29
28
|
@forward 'searchinput';
|
|
30
29
|
@forward 'skiplink';
|
|
@@ -33,6 +32,5 @@
|
|
|
33
32
|
@forward 'tag';
|
|
34
33
|
@forward 'tag';
|
|
35
34
|
@forward 'teaserlist';
|
|
36
|
-
@forward 'textinput';
|
|
37
35
|
@forward 'textarea';
|
|
38
36
|
@forward 'timepicker';
|
|
@@ -29,8 +29,22 @@ pkt-tag > .pkt-tag {
|
|
|
29
29
|
display: flex;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
button.pkt-tag {
|
|
33
|
+
appearance: none;
|
|
34
|
+
border-radius: 0;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
font-family: inherit;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
text-align: left;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
text-decoration-thickness: 1px;
|
|
41
|
+
text-underline-offset: 0.3em;
|
|
42
|
+
user-select: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
32
45
|
.pkt-tag {
|
|
33
46
|
width: fit-content;
|
|
47
|
+
vertical-align: middle;
|
|
34
48
|
background: var(--pkt-color-surface-default-light-blue);
|
|
35
49
|
padding: 0 map.get(variables.$spacing, 'size-8');
|
|
36
50
|
display: inline-flex;
|
|
@@ -51,6 +65,7 @@ pkt-tag > .pkt-tag {
|
|
|
51
65
|
}
|
|
52
66
|
|
|
53
67
|
&.pkt-btn:hover,
|
|
68
|
+
&:is(button):hover,
|
|
54
69
|
&.pkt-tag--hover {
|
|
55
70
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
56
71
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -63,6 +78,7 @@ pkt-tag > .pkt-tag {
|
|
|
63
78
|
}
|
|
64
79
|
|
|
65
80
|
&.pkt-btn:focus,
|
|
81
|
+
&:is(button):focus,
|
|
66
82
|
&.pkt-tag--focus {
|
|
67
83
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
68
84
|
border-color: var(--pkt-color-text-action-active);
|
|
@@ -75,6 +91,7 @@ pkt-tag > .pkt-tag {
|
|
|
75
91
|
}
|
|
76
92
|
|
|
77
93
|
&.pkt-btn:active,
|
|
94
|
+
&:is(button):active,
|
|
78
95
|
&.pkt-tag--active,
|
|
79
96
|
&.pkt-tag--active:hover {
|
|
80
97
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
@@ -103,6 +120,7 @@ pkt-tag > .pkt-tag {
|
|
|
103
120
|
background: var(--pkt-color-surface-strong-light-green);
|
|
104
121
|
|
|
105
122
|
&.pkt-btn:hover,
|
|
123
|
+
&:is(button):hover,
|
|
106
124
|
&.pkt-tag--hover {
|
|
107
125
|
background-color: var(--pkt-color-surface-strong-green);
|
|
108
126
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -113,6 +131,7 @@ pkt-tag > .pkt-tag {
|
|
|
113
131
|
}
|
|
114
132
|
|
|
115
133
|
&.pkt-btn:focus,
|
|
134
|
+
&:is(button):focus,
|
|
116
135
|
&.pkt-tag--focus {
|
|
117
136
|
background-color: var(--pkt-color-surface-strong-green);
|
|
118
137
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -123,6 +142,7 @@ pkt-tag > .pkt-tag {
|
|
|
123
142
|
}
|
|
124
143
|
|
|
125
144
|
&.pkt-btn:active,
|
|
145
|
+
&:is(button):active,
|
|
126
146
|
&.pkt-tag--active {
|
|
127
147
|
background-color: var(--pkt-color-surface-strong-green);
|
|
128
148
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -137,6 +157,7 @@ pkt-tag > .pkt-tag {
|
|
|
137
157
|
background: var(--pkt-color-surface-default-yellow);
|
|
138
158
|
|
|
139
159
|
&.pkt-btn:hover,
|
|
160
|
+
&:is(button):hover,
|
|
140
161
|
&.pkt-tag--hover {
|
|
141
162
|
background-color: var(--pkt-color-surface-strong-yellow);
|
|
142
163
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -147,6 +168,7 @@ pkt-tag > .pkt-tag {
|
|
|
147
168
|
}
|
|
148
169
|
|
|
149
170
|
&.pkt-btn:focus,
|
|
171
|
+
&:is(button):focus,
|
|
150
172
|
&.pkt-tag--focus {
|
|
151
173
|
background-color: var(--pkt-color-surface-strong-yellow);
|
|
152
174
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -157,6 +179,7 @@ pkt-tag > .pkt-tag {
|
|
|
157
179
|
}
|
|
158
180
|
|
|
159
181
|
&.pkt-btn:active,
|
|
182
|
+
&:is(button):active,
|
|
160
183
|
&.pkt-tag--active {
|
|
161
184
|
background-color: var(--pkt-color-surface-strong-yellow);
|
|
162
185
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -171,6 +194,7 @@ pkt-tag > .pkt-tag {
|
|
|
171
194
|
background: var(--pkt-color-surface-default-red);
|
|
172
195
|
|
|
173
196
|
&.pkt-btn:hover,
|
|
197
|
+
&:is(button):hover,
|
|
174
198
|
&.pkt-tag--hover {
|
|
175
199
|
background-color: var(--pkt-color-surface-strong-red);
|
|
176
200
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -181,6 +205,7 @@ pkt-tag > .pkt-tag {
|
|
|
181
205
|
}
|
|
182
206
|
|
|
183
207
|
&.pkt-btn:focus,
|
|
208
|
+
&:is(button):focus,
|
|
184
209
|
&.pkt-tag--focus {
|
|
185
210
|
background-color: var(--pkt-color-surface-strong-red);
|
|
186
211
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -191,6 +216,7 @@ pkt-tag > .pkt-tag {
|
|
|
191
216
|
}
|
|
192
217
|
|
|
193
218
|
&.pkt-btn:active,
|
|
219
|
+
&:is(button):active,
|
|
194
220
|
&.pkt-tag--active {
|
|
195
221
|
background-color: var(--pkt-color-surface-strong-red);
|
|
196
222
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -205,6 +231,7 @@ pkt-tag > .pkt-tag {
|
|
|
205
231
|
background: var(--pkt-color-surface-default-light-beige);
|
|
206
232
|
|
|
207
233
|
&.pkt-btn:hover,
|
|
234
|
+
&:is(button):hover,
|
|
208
235
|
&.pkt-tag--hover {
|
|
209
236
|
background-color: var(--pkt-color-surface-strong-beige);
|
|
210
237
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -215,6 +242,7 @@ pkt-tag > .pkt-tag {
|
|
|
215
242
|
}
|
|
216
243
|
|
|
217
244
|
&.pkt-btn:focus,
|
|
245
|
+
&:is(button):focus,
|
|
218
246
|
&.pkt-tag--focus {
|
|
219
247
|
background-color: var(--pkt-color-surface-strong-beige);
|
|
220
248
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -225,6 +253,7 @@ pkt-tag > .pkt-tag {
|
|
|
225
253
|
}
|
|
226
254
|
|
|
227
255
|
&.pkt-btn:active,
|
|
256
|
+
&:is(button):active,
|
|
228
257
|
&.pkt-tag--active {
|
|
229
258
|
background-color: var(--pkt-color-surface-strong-beige);
|
|
230
259
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -240,6 +269,7 @@ pkt-tag > .pkt-tag {
|
|
|
240
269
|
background: var(--pkt-color-surface-default-gray);
|
|
241
270
|
|
|
242
271
|
&.pkt-btn:hover,
|
|
272
|
+
&:is(button):hover,
|
|
243
273
|
&.pkt-tag--hover {
|
|
244
274
|
background-color: var(--pkt-color-surface-strong-gray);
|
|
245
275
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -250,6 +280,7 @@ pkt-tag > .pkt-tag {
|
|
|
250
280
|
}
|
|
251
281
|
|
|
252
282
|
&.pkt-btn:focus,
|
|
283
|
+
&:is(button):focus,
|
|
253
284
|
&.pkt-tag--focus {
|
|
254
285
|
background-color: var(--pkt-color-surface-strong-gray);
|
|
255
286
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -260,6 +291,7 @@ pkt-tag > .pkt-tag {
|
|
|
260
291
|
}
|
|
261
292
|
|
|
262
293
|
&.pkt-btn:active,
|
|
294
|
+
&:is(button):active,
|
|
263
295
|
&.pkt-tag--active {
|
|
264
296
|
background-color: var(--pkt-color-surface-strong-gray);
|
|
265
297
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -274,6 +306,7 @@ pkt-tag > .pkt-tag {
|
|
|
274
306
|
background: var(--pkt-color-surface-subtle-light-blue);
|
|
275
307
|
|
|
276
308
|
&.pkt-btn:hover,
|
|
309
|
+
&:is(button):hover,
|
|
277
310
|
&.pkt-tag--hover {
|
|
278
311
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
279
312
|
color: var(--pkt-color-tag-text-hover);
|
|
@@ -284,6 +317,7 @@ pkt-tag > .pkt-tag {
|
|
|
284
317
|
}
|
|
285
318
|
|
|
286
319
|
&.pkt-btn:focus,
|
|
320
|
+
&:is(button):focus,
|
|
287
321
|
&.pkt-tag--focus {
|
|
288
322
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
289
323
|
color: var(--pkt-color-tag-text-focus);
|
|
@@ -294,6 +328,7 @@ pkt-tag > .pkt-tag {
|
|
|
294
328
|
}
|
|
295
329
|
|
|
296
330
|
&.pkt-btn:active,
|
|
331
|
+
&:is(button):active,
|
|
297
332
|
&.pkt-tag--active {
|
|
298
333
|
background-color: var(--pkt-color-surface-strong-blue);
|
|
299
334
|
color: var(--pkt-color-tag-text-active);
|
|
@@ -310,7 +345,9 @@ pkt-tag > .pkt-tag {
|
|
|
310
345
|
--fg-color: var(--pkt-color-brand-neutrals-200);
|
|
311
346
|
|
|
312
347
|
&.pkt-btn:hover,
|
|
348
|
+
&:is(button):hover,
|
|
313
349
|
&.pkt-btn:focus,
|
|
350
|
+
&:is(button):focus,
|
|
314
351
|
&.pkt-tag--hover {
|
|
315
352
|
background-color: var(--pkt-color-brand-warm-blue-1000) !important;
|
|
316
353
|
color: var(--pkt-color-brand-neutrals-200) !important;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-css",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.8",
|
|
4
4
|
"description": "CSS-rammeverket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"astro": "^7.2.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e755eac6123dd25b4f93b1de4cc8febe170eee2d"
|
|
66
66
|
}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
.pkt-preview {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
.pkt-preview .pkt-tabs {
|
|
5
|
-
--pkt-tabs-bg: var(--pkt-color-surface-default-gray);
|
|
6
|
-
}
|
|
7
|
-
.pkt-preview__component {
|
|
8
|
-
position: relative;
|
|
9
|
-
display: flex;
|
|
10
|
-
justify-content: space-around;
|
|
11
|
-
align-items: center;
|
|
12
|
-
min-height: 10rem;
|
|
13
|
-
padding: 3rem 1rem;
|
|
14
|
-
margin: 0;
|
|
15
|
-
background-color: var(--pkt-color-background-default);
|
|
16
|
-
transition: background-color 0.2s linear;
|
|
17
|
-
}
|
|
18
|
-
.pkt-preview__component--fullwidth > div {
|
|
19
|
-
width: 100%;
|
|
20
|
-
}
|
|
21
|
-
.pkt-preview__component--fullwidth > div > .pkt-fileupload, .pkt-preview__component--fullwidth > div > .pkt-fileupload-wrapper {
|
|
22
|
-
width: 100%;
|
|
23
|
-
}
|
|
24
|
-
.pkt-preview__component-container {
|
|
25
|
-
position: relative;
|
|
26
|
-
border: 2px solid var(--pkt-color-border-gray);
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
gap: 0;
|
|
30
|
-
}
|
|
31
|
-
@media screen and (min-width: 64rem) {
|
|
32
|
-
.pkt-preview__component-container {
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
}
|
|
35
|
-
.pkt-preview__component-container .pkt-preview__component {
|
|
36
|
-
flex: 1 1 0;
|
|
37
|
-
min-width: 0;
|
|
38
|
-
}
|
|
39
|
-
.pkt-preview__component-container .pkt-preview__panel {
|
|
40
|
-
flex: 0 0 auto;
|
|
41
|
-
min-width: 20rem;
|
|
42
|
-
max-width: 25rem;
|
|
43
|
-
width: 100%;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
.pkt-preview__component__inner-container {
|
|
47
|
-
display: flex;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
width: 100%;
|
|
50
|
-
}
|
|
51
|
-
.pkt-preview__panel {
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
gap: 1rem;
|
|
55
|
-
padding: 2rem 1.5rem;
|
|
56
|
-
justify-content: space-between;
|
|
57
|
-
align-items: stretch;
|
|
58
|
-
background-color: var(--pkt-color-surface-default-gray);
|
|
59
|
-
}
|
|
60
|
-
.pkt-preview__panel__options {
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
gap: 1rem;
|
|
64
|
-
margin-block-end: 1rem;
|
|
65
|
-
}
|
|
66
|
-
.pkt-preview__options {
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
gap: 1rem;
|
|
70
|
-
}
|
|
71
|
-
.pkt-preview__opts {
|
|
72
|
-
padding: 1rem;
|
|
73
|
-
background-color: var(--pkt-color-surface-default-gray);
|
|
74
|
-
}
|
|
75
|
-
.pkt-preview__opts > .pkt-cell {
|
|
76
|
-
position: relative;
|
|
77
|
-
}
|
|
78
|
-
.pkt-preview__opts > .pkt-cell > .pkt-tag {
|
|
79
|
-
display: block;
|
|
80
|
-
position: absolute;
|
|
81
|
-
top: 0;
|
|
82
|
-
right: 0;
|
|
83
|
-
padding: 0 0.25rem 0;
|
|
84
|
-
}
|
|
85
|
-
.pkt-preview .hide-code-button {
|
|
86
|
-
position: absolute;
|
|
87
|
-
top: 100%;
|
|
88
|
-
margin-block-start: -1.5rem;
|
|
89
|
-
left: 0;
|
|
90
|
-
width: 100%;
|
|
91
|
-
display: flex;
|
|
92
|
-
justify-content: center;
|
|
93
|
-
align-items: flex-end;
|
|
94
|
-
padding-block-end: 1rem;
|
|
95
|
-
z-index: 2;
|
|
96
|
-
}
|
|
97
|
-
.pkt-preview__code {
|
|
98
|
-
color: var(--pkt-color-text-body-default);
|
|
99
|
-
position: relative;
|
|
100
|
-
}
|
|
101
|
-
.pkt-preview__code-container {
|
|
102
|
-
position: relative;
|
|
103
|
-
padding: 2rem 2rem 0;
|
|
104
|
-
background-color: var(--pkt-color-grays-gray-800);
|
|
105
|
-
transition: max-height 0.5s ease;
|
|
106
|
-
max-height: 50rem;
|
|
107
|
-
}
|
|
108
|
-
.pkt-preview__code-container .pkt-tabs {
|
|
109
|
-
--pkt-tabs-bg: var(--pkt-color-grays-gray-800);
|
|
110
|
-
}
|
|
111
|
-
.pkt-preview__code-container.hide-code {
|
|
112
|
-
overflow: hidden;
|
|
113
|
-
max-height: 11.7rem;
|
|
114
|
-
}
|
|
115
|
-
.pkt-preview__code-container.hide-code:after {
|
|
116
|
-
content: "";
|
|
117
|
-
display: block;
|
|
118
|
-
position: absolute;
|
|
119
|
-
top: 0;
|
|
120
|
-
bottom: 0;
|
|
121
|
-
left: 0;
|
|
122
|
-
right: 0;
|
|
123
|
-
background: linear-gradient(180deg, transparent 0%, transparent 93%, var(--pkt-color-grays-gray-800) 100%);
|
|
124
|
-
}
|
|
125
|
-
.pkt-preview__code pre {
|
|
126
|
-
max-height: 30rem;
|
|
127
|
-
overflow: auto;
|
|
128
|
-
margin-block-start: 0 !important;
|
|
129
|
-
background-color: transparent !important;
|
|
130
|
-
font-size: 1rem;
|
|
131
|
-
padding: 2rem 0;
|
|
132
|
-
}
|
|
133
|
-
.pkt-preview__copy {
|
|
134
|
-
position: absolute;
|
|
135
|
-
top: 0.5rem;
|
|
136
|
-
right: 0.5rem;
|
|
137
|
-
display: flex;
|
|
138
|
-
gap: 0.5rem;
|
|
139
|
-
align-items: center;
|
|
140
|
-
z-index: 3;
|
|
141
|
-
}
|
|
142
|
-
.pkt-preview__fullscreen-btn {
|
|
143
|
-
position: absolute;
|
|
144
|
-
top: 0.5rem;
|
|
145
|
-
right: 0.5rem;
|
|
146
|
-
z-index: 1;
|
|
147
|
-
}
|
|
148
|
-
.pkt-preview__prop-group, .pkt-preview__array-item, .pkt-preview__object-editor {
|
|
149
|
-
position: relative;
|
|
150
|
-
display: flex;
|
|
151
|
-
flex-direction: column;
|
|
152
|
-
gap: 1rem;
|
|
153
|
-
}
|
|
154
|
-
.pkt-preview .pkt-inputwrapper__helptext code {
|
|
155
|
-
background: var(--pkt-color-background-subtle);
|
|
156
|
-
border: 1px solid var(--pkt-color-border-gray);
|
|
157
|
-
border-radius: 3px;
|
|
158
|
-
padding: 0.11em 0.33em;
|
|
159
|
-
font-size: 0.8em;
|
|
160
|
-
}
|
|
161
|
-
.pkt-preview__add-object {
|
|
162
|
-
text-align: right;
|
|
163
|
-
margin-block-start: 0.5rem;
|
|
164
|
-
}
|
|
165
|
-
.pkt-preview__remove-object {
|
|
166
|
-
position: absolute;
|
|
167
|
-
top: -1.75rem;
|
|
168
|
-
right: -0.25rem;
|
|
169
|
-
}
|
|
170
|
-
.pkt-preview__specs pre {
|
|
171
|
-
margin-block-start: 0 !important;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.astro-code.github-light {
|
|
175
|
-
background-color: var(--pkt-color-surface-default-gray) !important;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.preview-content {
|
|
179
|
-
display: contents;
|
|
180
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.pkt-preview{position:relative}.pkt-preview .pkt-tabs{--pkt-tabs-bg: var(--pkt-color-surface-default-gray)}.pkt-preview__component{position:relative;display:flex;justify-content:space-around;align-items:center;min-height:10rem;padding:3rem 1rem;margin:0;background-color:var(--pkt-color-background-default);transition:background-color .2s linear}.pkt-preview__component--fullwidth>div{width:100%}.pkt-preview__component--fullwidth>div>.pkt-fileupload,.pkt-preview__component--fullwidth>div>.pkt-fileupload-wrapper{width:100%}.pkt-preview__component-container{position:relative;border:2px solid var(--pkt-color-border-gray);display:flex;flex-direction:column;gap:0}@media screen and (min-width: 64rem){.pkt-preview__component-container{flex-direction:row}.pkt-preview__component-container .pkt-preview__component{flex:1 1 0;min-width:0}.pkt-preview__component-container .pkt-preview__panel{flex:0 0 auto;min-width:20rem;max-width:25rem;width:100%}}.pkt-preview__component__inner-container{display:flex;justify-content:center;width:100%}.pkt-preview__panel{display:flex;flex-direction:column;gap:1rem;padding:2rem 1.5rem;justify-content:space-between;align-items:stretch;background-color:var(--pkt-color-surface-default-gray)}.pkt-preview__panel__options{display:flex;flex-direction:column;gap:1rem;margin-block-end:1rem}.pkt-preview__options{display:flex;flex-direction:column;gap:1rem}.pkt-preview__opts{padding:1rem;background-color:var(--pkt-color-surface-default-gray)}.pkt-preview__opts>.pkt-cell{position:relative}.pkt-preview__opts>.pkt-cell>.pkt-tag{display:block;position:absolute;top:0;right:0;padding:0 .25rem 0}.pkt-preview .hide-code-button{position:absolute;top:100%;margin-block-start:-1.5rem;left:0;width:100%;display:flex;justify-content:center;align-items:flex-end;padding-block-end:1rem;z-index:2}.pkt-preview__code{color:var(--pkt-color-text-body-default);position:relative}.pkt-preview__code-container{position:relative;padding:2rem 2rem 0;background-color:var(--pkt-color-grays-gray-800);transition:max-height .5s ease;max-height:50rem}.pkt-preview__code-container .pkt-tabs{--pkt-tabs-bg: var(--pkt-color-grays-gray-800)}.pkt-preview__code-container.hide-code{overflow:hidden;max-height:11.7rem}.pkt-preview__code-container.hide-code:after{content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0;background:linear-gradient(180deg, transparent 0%, transparent 93%, var(--pkt-color-grays-gray-800) 100%)}.pkt-preview__code pre{max-height:30rem;overflow:auto;margin-block-start:0 !important;background-color:rgba(0,0,0,0) !important;font-size:1rem;padding:2rem 0}.pkt-preview__copy{position:absolute;top:.5rem;right:.5rem;display:flex;gap:.5rem;align-items:center;z-index:3}.pkt-preview__fullscreen-btn{position:absolute;top:.5rem;right:.5rem;z-index:1}.pkt-preview__prop-group,.pkt-preview__array-item,.pkt-preview__object-editor{position:relative;display:flex;flex-direction:column;gap:1rem}.pkt-preview .pkt-inputwrapper__helptext code{background:var(--pkt-color-background-subtle);border:1px solid var(--pkt-color-border-gray);border-radius:3px;padding:.11em .33em;font-size:.8em}.pkt-preview__add-object{text-align:right;margin-block-start:.5rem}.pkt-preview__remove-object{position:absolute;top:-1.75rem;right:-0.25rem}.pkt-preview__specs pre{margin-block-start:0 !important}.astro-code.github-light{background-color:var(--pkt-color-surface-default-gray) !important}.preview-content{display:contents}
|