@govbr-ds/playground 0.0.0-stage → 5.2.1
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/LICENSE +21 -0
- package/README.md +30 -2
- package/dist/Playground.d.ts +7 -0
- package/dist/Playground.d.ts.map +1 -0
- package/dist/browser/chunks/babel-PXSNAHUX.js +16 -0
- package/dist/browser/chunks/chunk-3JEV5GFZ.js +1 -0
- package/dist/browser/chunks/chunk-5A3ZKBRD.js +11 -0
- package/dist/browser/chunks/chunk-6DHFEWGX.js +1 -0
- package/dist/browser/chunks/chunk-7G6EEGZ4.js +25 -0
- package/dist/browser/chunks/chunk-EP7B2XPY.js +13 -0
- package/dist/browser/chunks/chunk-TFWQIFOZ.js +1 -0
- package/dist/browser/chunks/chunk-UVFYWQD2.js +1 -0
- package/dist/browser/chunks/chunk-WUR2JRNJ.js +1 -0
- package/dist/browser/chunks/chunk-ZIL2IWZ3.js +1 -0
- package/dist/browser/chunks/dist-H5E3DUQZ.js +1 -0
- package/dist/browser/chunks/dist-HT72W6BH.js +1 -0
- package/dist/browser/chunks/dist-MALZEIQI.js +1 -0
- package/dist/browser/chunks/esm-3ZNLC56K.js +2 -0
- package/dist/browser/chunks/esm-6SLZNXJD.js +1 -0
- package/dist/browser/chunks/estree-EALESNBX.js +44 -0
- package/dist/browser/chunks/html-C5MOHUJO.js +25 -0
- package/dist/browser/chunks/postcss-RXMLIASD.js +62 -0
- package/dist/browser/chunks/standalone-G7AM3SII.js +29 -0
- package/dist/browser/index.d.ts +8 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +397 -0
- package/dist/components/CodeMirrorEditor.d.ts +22 -0
- package/dist/components/CodeMirrorEditor.d.ts.map +1 -0
- package/dist/components/ControlsPanel.d.ts +17 -0
- package/dist/components/ControlsPanel.d.ts.map +1 -0
- package/dist/components/Workbench.d.ts +21 -0
- package/dist/components/Workbench.d.ts.map +1 -0
- package/dist/core/index.d.ts +233 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +410 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/library/components.d.ts +36 -0
- package/dist/library/components.d.ts.map +1 -0
- package/dist/library/profile.d.ts +23 -0
- package/dist/library/profile.d.ts.map +1 -0
- package/dist/react/chunks/babel-PXSNAHUX.js +16 -0
- package/dist/react/chunks/chunk-3JEV5GFZ.js +1 -0
- package/dist/react/chunks/chunk-5A3ZKBRD.js +11 -0
- package/dist/react/chunks/chunk-6DHFEWGX.js +1 -0
- package/dist/react/chunks/chunk-EP7B2XPY.js +13 -0
- package/dist/react/chunks/chunk-TFWQIFOZ.js +1 -0
- package/dist/react/chunks/chunk-UVFYWQD2.js +1 -0
- package/dist/react/chunks/chunk-WUR2JRNJ.js +1 -0
- package/dist/react/chunks/chunk-ZIL2IWZ3.js +1 -0
- package/dist/react/chunks/dist-H5E3DUQZ.js +1 -0
- package/dist/react/chunks/dist-HT72W6BH.js +1 -0
- package/dist/react/chunks/dist-MALZEIQI.js +1 -0
- package/dist/react/chunks/esm-6SLZNXJD.js +1 -0
- package/dist/react/chunks/esm-YAO6K4CU.js +2 -0
- package/dist/react/chunks/estree-EALESNBX.js +44 -0
- package/dist/react/chunks/html-C5MOHUJO.js +25 -0
- package/dist/react/chunks/postcss-RXMLIASD.js +62 -0
- package/dist/react/chunks/standalone-G7AM3SII.js +29 -0
- package/dist/react/index.js +354 -0
- package/dist/sources.d.ts +47 -0
- package/dist/sources.d.ts.map +1 -0
- package/dist/styles.css +2086 -0
- package/dist/utils/drafts.d.ts +9 -0
- package/dist/utils/drafts.d.ts.map +1 -0
- package/dist/utils/editorHistory.d.ts +14 -0
- package/dist/utils/editorHistory.d.ts.map +1 -0
- package/dist/utils/encoders.d.ts +43 -0
- package/dist/utils/encoders.d.ts.map +1 -0
- package/dist/utils/formatters.d.ts +6 -0
- package/dist/utils/formatters.d.ts.map +1 -0
- package/dist/utils/frameworks.d.ts +15 -0
- package/dist/utils/frameworks.d.ts.map +1 -0
- package/dist/utils/previewLocale.d.ts +19 -0
- package/dist/utils/previewLocale.d.ts.map +1 -0
- package/dist/utils/sourceModel.d.ts +52 -0
- package/dist/utils/sourceModel.d.ts.map +1 -0
- package/dist/utils/visibility.d.ts +3 -0
- package/dist/utils/visibility.d.ts.map +1 -0
- package/docs/configuration.md +400 -0
- package/package.json +59 -3
package/dist/styles.css
ADDED
|
@@ -0,0 +1,2086 @@
|
|
|
1
|
+
[data-library] {
|
|
2
|
+
--gp-background: #ffffff;
|
|
3
|
+
--gp-surface: #ffffff;
|
|
4
|
+
--gp-surface-muted: #f6f8fc;
|
|
5
|
+
--gp-text: #1b1b1b;
|
|
6
|
+
--gp-muted: #5c6068;
|
|
7
|
+
--gp-border: #c8cdd3;
|
|
8
|
+
--gp-accent: #1351b4;
|
|
9
|
+
--gp-accent-soft: #e8f0fe;
|
|
10
|
+
--gp-danger: #b42318;
|
|
11
|
+
--gp-success: #176b3a;
|
|
12
|
+
--gp-tag-handoff: #176b3a;
|
|
13
|
+
--gp-tag-dev: #974700;
|
|
14
|
+
--gp-tag-prod: #175cd3;
|
|
15
|
+
--gp-shadow: 0 1px 3px rgb(16 24 40 / 8%);
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: minmax(0, 1fr);
|
|
18
|
+
grid-template-rows: auto auto minmax(0, 1fr);
|
|
19
|
+
height: auto;
|
|
20
|
+
min-height: 0;
|
|
21
|
+
flex: 1 1 auto;
|
|
22
|
+
gap: 0.5rem;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
color: var(--govbr-playground-color, var(--gp-text));
|
|
25
|
+
font: var(--govbr-playground-font, 400 0.9375rem/1.5 system-ui, sans-serif);
|
|
26
|
+
color-scheme: light;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-library][data-theme='dark'] {
|
|
31
|
+
--gp-background: #171a1f;
|
|
32
|
+
--gp-surface: #20242a;
|
|
33
|
+
--gp-surface-muted: #292e36;
|
|
34
|
+
--gp-text: #f2f4f7;
|
|
35
|
+
--gp-muted: #c0c5ce;
|
|
36
|
+
--gp-border: #454c56;
|
|
37
|
+
--gp-accent: #9dbdff;
|
|
38
|
+
--gp-accent-soft: #263a5c;
|
|
39
|
+
--gp-danger: #ffb4ab;
|
|
40
|
+
--gp-success: #91d3a5;
|
|
41
|
+
--gp-tag-handoff: #91d3a5;
|
|
42
|
+
--gp-tag-dev: #ffbf80;
|
|
43
|
+
--gp-tag-prod: #a7c6ff;
|
|
44
|
+
--gp-shadow: 0 1px 3px rgb(0 0 0 / 24%);
|
|
45
|
+
color-scheme: dark;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-library][data-has-tools='false'] {
|
|
49
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
body.wbc-shared-playground-active {
|
|
53
|
+
display: flex;
|
|
54
|
+
height: 100vh;
|
|
55
|
+
height: 100dvh;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
body.wbc-shared-playground-active .wbc-header {
|
|
61
|
+
flex: 0 0 auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
body.wbc-shared-playground-active .wbc-main-wrapper {
|
|
65
|
+
flex: 1 1 auto;
|
|
66
|
+
min-height: 0;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
body.wbc-shared-playground-active .wbc-main-content {
|
|
71
|
+
display: flex;
|
|
72
|
+
height: 100%;
|
|
73
|
+
min-height: 0;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
body.wbc-shared-playground-active #content {
|
|
79
|
+
display: flex;
|
|
80
|
+
min-height: 0;
|
|
81
|
+
flex: 1 1 auto;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
body.wbc-shared-playground-active #content > h1 {
|
|
87
|
+
flex: 0 0 auto;
|
|
88
|
+
margin-block: 0 0.5rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
body.wbc-shared-playground-active #content > [role='status']:empty {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
body.wbc-shared-playground-active #content > section[aria-label='Playground do componente'] {
|
|
96
|
+
display: flex;
|
|
97
|
+
min-height: 0;
|
|
98
|
+
flex: 1 1 auto;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
[data-library] *,
|
|
103
|
+
[data-library] *::before,
|
|
104
|
+
[data-library] *::after {
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-library] button,
|
|
109
|
+
[data-library] input,
|
|
110
|
+
[data-library] select,
|
|
111
|
+
[data-library] textarea {
|
|
112
|
+
color: inherit;
|
|
113
|
+
font: inherit;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[data-library] button,
|
|
117
|
+
[data-library] select {
|
|
118
|
+
min-height: 2.5rem;
|
|
119
|
+
border: 1px solid var(--gp-border);
|
|
120
|
+
border-radius: 0.5rem;
|
|
121
|
+
background: var(--gp-surface);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-library] button {
|
|
125
|
+
padding: 0.45rem 0.75rem;
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
transition:
|
|
128
|
+
background-color 120ms ease,
|
|
129
|
+
border-color 120ms ease,
|
|
130
|
+
box-shadow 120ms ease,
|
|
131
|
+
color 120ms ease;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.govbr-playground__toolbar button {
|
|
135
|
+
display: grid;
|
|
136
|
+
width: 2.5rem;
|
|
137
|
+
min-width: 2.5rem;
|
|
138
|
+
padding: 0.4rem;
|
|
139
|
+
place-items: center;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.govbr-playground__toolbar button > i,
|
|
143
|
+
.govbr-playground__toolbar button > span {
|
|
144
|
+
font-size: 1rem;
|
|
145
|
+
line-height: 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-library] button:hover:not(:disabled) {
|
|
149
|
+
border-color: var(--gp-accent);
|
|
150
|
+
background: var(--gp-accent-soft);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
[data-library] button:active:not(:disabled) {
|
|
154
|
+
background: color-mix(in srgb, var(--gp-accent-soft) 72%, var(--gp-accent));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[data-library] button:disabled {
|
|
158
|
+
cursor: not-allowed;
|
|
159
|
+
opacity: 0.55;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
[data-library] select,
|
|
163
|
+
[data-library] input,
|
|
164
|
+
[data-library] textarea {
|
|
165
|
+
min-width: 0;
|
|
166
|
+
padding: 0.45rem 0.65rem;
|
|
167
|
+
border: 1px solid var(--gp-border);
|
|
168
|
+
border-radius: 0.5rem;
|
|
169
|
+
background: var(--gp-surface);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
[data-library] :focus-visible {
|
|
173
|
+
outline: 3px solid color-mix(in srgb, var(--gp-accent) 58%, transparent);
|
|
174
|
+
outline-offset: 2px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.govbr-playground__toolbar,
|
|
178
|
+
.govbr-playground__tabs,
|
|
179
|
+
.govbr-playground__modes,
|
|
180
|
+
.govbr-playground__preview-toolbar,
|
|
181
|
+
.govbr-playground__panel-toolbar,
|
|
182
|
+
.govbr-playground__editor-tabs,
|
|
183
|
+
.govbr-playground__tool-tabs {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-wrap: wrap;
|
|
186
|
+
align-items: center;
|
|
187
|
+
gap: 0.5rem;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.govbr-playground__toolbar,
|
|
191
|
+
.govbr-playground__preview-toolbar {
|
|
192
|
+
flex: 0 0 auto;
|
|
193
|
+
padding: 0.65rem;
|
|
194
|
+
border: 1px solid var(--gp-border);
|
|
195
|
+
border-radius: 0.75rem;
|
|
196
|
+
background: var(--gp-surface-muted);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.govbr-playground__toolbar {
|
|
200
|
+
flex-wrap: nowrap;
|
|
201
|
+
overflow-x: auto;
|
|
202
|
+
overflow-y: hidden;
|
|
203
|
+
scrollbar-width: thin;
|
|
204
|
+
box-shadow: var(--gp-shadow);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.govbr-playground__toolbar label,
|
|
208
|
+
.govbr-playground__modes label,
|
|
209
|
+
.govbr-playground__preview-toolbar label,
|
|
210
|
+
.govbr-playground__panel-toolbar label {
|
|
211
|
+
display: inline-flex;
|
|
212
|
+
flex-wrap: wrap;
|
|
213
|
+
align-items: center;
|
|
214
|
+
gap: 0.4rem;
|
|
215
|
+
color: var(--gp-muted);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.govbr-playground__toolbar label {
|
|
219
|
+
flex: 0 0 auto;
|
|
220
|
+
flex-wrap: nowrap;
|
|
221
|
+
white-space: nowrap;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.govbr-playground__preview-toolbar select {
|
|
225
|
+
max-width: min(22rem, 62vw);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.govbr-playground__modes select {
|
|
229
|
+
max-width: min(16rem, 42vw);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.govbr-playground__modes select,
|
|
233
|
+
.govbr-playground__preview-toolbar select,
|
|
234
|
+
.govbr-playground__toolbar select {
|
|
235
|
+
flex: 0 1 auto;
|
|
236
|
+
padding-inline-end: 2rem;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.govbr-playground__example-tags {
|
|
240
|
+
display: inline-flex;
|
|
241
|
+
flex-wrap: wrap;
|
|
242
|
+
gap: 0.25rem;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.govbr-playground__example-tags span {
|
|
246
|
+
padding: 0.15rem 0.5rem;
|
|
247
|
+
border: 1px solid var(--gp-border);
|
|
248
|
+
border-radius: 999px;
|
|
249
|
+
background: var(--gp-surface);
|
|
250
|
+
font-size: 0.75rem;
|
|
251
|
+
font-weight: 700;
|
|
252
|
+
line-height: 1.4;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.govbr-playground__example-tags [data-tag='handoff'] {
|
|
256
|
+
color: var(--gp-tag-handoff);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.govbr-playground__example-tags [data-tag='testes'] {
|
|
260
|
+
color: var(--gp-tag-dev);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.govbr-playground__example-tags [data-tag='prod'] {
|
|
264
|
+
color: var(--gp-tag-prod);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.govbr-playground__example-description,
|
|
268
|
+
.govbr-playground__example-details {
|
|
269
|
+
margin: 0;
|
|
270
|
+
color: var(--gp-muted);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.govbr-playground__example-description,
|
|
274
|
+
.govbr-playground__example-details p {
|
|
275
|
+
max-width: 75ch;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.govbr-playground__example-details summary {
|
|
279
|
+
width: fit-content;
|
|
280
|
+
color: var(--gp-accent);
|
|
281
|
+
cursor: pointer;
|
|
282
|
+
font-weight: 600;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.govbr-playground__example-details p {
|
|
286
|
+
margin-block: 0.5rem 0;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
[data-library] [aria-label='Área de preview'] {
|
|
290
|
+
display: grid;
|
|
291
|
+
min-height: 8rem;
|
|
292
|
+
flex: 0 1 auto;
|
|
293
|
+
overflow: hidden;
|
|
294
|
+
max-width: 100%;
|
|
295
|
+
min-width: 0;
|
|
296
|
+
grid-template-columns: minmax(0, 1fr);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
[data-library] [aria-label='Área de preview'][data-resizable='true'] {
|
|
300
|
+
grid-template-columns: minmax(0, 1fr) 1rem;
|
|
301
|
+
grid-template-rows: minmax(0, 1fr) 1rem;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
[data-library] [aria-label='Área de preview'][data-resizing='true'] {
|
|
305
|
+
user-select: none;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.govbr-playground__preview {
|
|
309
|
+
height: 100%;
|
|
310
|
+
max-width: 100%;
|
|
311
|
+
min-width: 0;
|
|
312
|
+
min-height: 0;
|
|
313
|
+
overflow: auto;
|
|
314
|
+
border: 0;
|
|
315
|
+
outline: 1px solid var(--gp-border);
|
|
316
|
+
outline-offset: -1px;
|
|
317
|
+
border-radius: 0.75rem;
|
|
318
|
+
background: var(--gp-surface);
|
|
319
|
+
box-shadow: var(--gp-shadow);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
[data-library] iframe {
|
|
323
|
+
display: block;
|
|
324
|
+
width: 100%;
|
|
325
|
+
height: 100%;
|
|
326
|
+
background: var(--gp-surface);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.govbr-playground__resize {
|
|
330
|
+
display: grid;
|
|
331
|
+
place-items: center;
|
|
332
|
+
touch-action: none;
|
|
333
|
+
background: transparent;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.govbr-playground__resize::after {
|
|
337
|
+
content: '';
|
|
338
|
+
border-radius: 999px;
|
|
339
|
+
background: var(--gp-border);
|
|
340
|
+
transition: background-color 120ms ease;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.govbr-playground__resize--width {
|
|
344
|
+
grid-column: 2;
|
|
345
|
+
grid-row: 1;
|
|
346
|
+
cursor: ew-resize;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.govbr-playground__resize--width::after {
|
|
350
|
+
width: 6px;
|
|
351
|
+
height: 7rem;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.govbr-playground__resize--height {
|
|
355
|
+
grid-column: 1;
|
|
356
|
+
grid-row: 2;
|
|
357
|
+
cursor: ns-resize;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.govbr-playground__resize--height::after {
|
|
361
|
+
width: 7rem;
|
|
362
|
+
height: 6px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.govbr-playground__resize:hover::after,
|
|
366
|
+
.govbr-playground__resize:focus-visible::after {
|
|
367
|
+
background: var(--gp-accent);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.govbr-playground__tool-tabs {
|
|
371
|
+
flex: 0 0 auto;
|
|
372
|
+
flex-wrap: nowrap;
|
|
373
|
+
max-width: 100%;
|
|
374
|
+
overflow-x: auto;
|
|
375
|
+
padding: 0.125rem 0.125rem 0.65rem;
|
|
376
|
+
border-bottom: 1px solid var(--gp-border);
|
|
377
|
+
scrollbar-width: thin;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.govbr-playground__tool-tabs button,
|
|
381
|
+
.govbr-playground__editor-tabs button {
|
|
382
|
+
flex: 0 0 auto;
|
|
383
|
+
}
|
|
384
|
+
.govbr-playground__tool-tabs[role='tablist'] [role='tab'] {
|
|
385
|
+
border: 0;
|
|
386
|
+
border-bottom: 3px solid transparent;
|
|
387
|
+
border-radius: 0.25rem 0.25rem 0 0;
|
|
388
|
+
background: transparent;
|
|
389
|
+
color: var(--gp-muted);
|
|
390
|
+
font: inherit;
|
|
391
|
+
white-space: nowrap;
|
|
392
|
+
}
|
|
393
|
+
.govbr-playground__tool-tabs[role='tablist'] [role='tab']:hover {
|
|
394
|
+
background: var(--gp-surface-muted);
|
|
395
|
+
}
|
|
396
|
+
.govbr-playground__tool-tabs[role='tablist'] [role='tab'][aria-selected='true'] {
|
|
397
|
+
border-bottom-color: var(--gp-accent);
|
|
398
|
+
background: transparent;
|
|
399
|
+
color: var(--gp-accent);
|
|
400
|
+
font-weight: 700;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
[data-library] [role='tab'][aria-selected='true'],
|
|
404
|
+
.govbr-playground__editor-tabs [aria-pressed='true'],
|
|
405
|
+
[data-library] button[aria-pressed='true'] {
|
|
406
|
+
border-color: var(--gp-accent);
|
|
407
|
+
background: var(--gp-accent-soft);
|
|
408
|
+
color: var(--gp-accent);
|
|
409
|
+
font-weight: 700;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.govbr-playground__editor,
|
|
413
|
+
.govbr-playground__frameworks,
|
|
414
|
+
.govbr-playground__controls {
|
|
415
|
+
display: grid;
|
|
416
|
+
gap: 0.75rem;
|
|
417
|
+
min-width: 0;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.govbr-playground__editor,
|
|
421
|
+
.govbr-playground__frameworks,
|
|
422
|
+
.govbr-playground__controls,
|
|
423
|
+
.govbr-playground__console,
|
|
424
|
+
.govbr-playground__events {
|
|
425
|
+
min-height: 0;
|
|
426
|
+
flex: 1 1 0;
|
|
427
|
+
overflow: auto;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.govbr-playground__editor {
|
|
431
|
+
min-height: 0;
|
|
432
|
+
flex: 1 1 auto;
|
|
433
|
+
grid-template-rows: auto auto minmax(0, 1fr);
|
|
434
|
+
overflow: hidden;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.govbr-playground__editor-label {
|
|
438
|
+
font-weight: 700;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.govbr-playground__editor > .cm-theme {
|
|
442
|
+
width: 100%;
|
|
443
|
+
height: 100%;
|
|
444
|
+
min-width: 0;
|
|
445
|
+
min-height: 0;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
[data-library] .cm-editor {
|
|
449
|
+
height: 100%;
|
|
450
|
+
min-height: 0;
|
|
451
|
+
overflow: hidden;
|
|
452
|
+
border: 1px solid var(--gp-border);
|
|
453
|
+
border-radius: 0.5rem;
|
|
454
|
+
font-size: 0.875rem;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
[data-library] .cm-scroller {
|
|
458
|
+
height: 100%;
|
|
459
|
+
min-height: 0;
|
|
460
|
+
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
461
|
+
line-height: 1.55;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.govbr-playground__editor textarea,
|
|
465
|
+
.govbr-playground__controls textarea {
|
|
466
|
+
box-sizing: border-box;
|
|
467
|
+
width: 100%;
|
|
468
|
+
min-height: 12rem;
|
|
469
|
+
resize: vertical;
|
|
470
|
+
font:
|
|
471
|
+
0.875rem/1.5 ui-monospace,
|
|
472
|
+
SFMono-Regular,
|
|
473
|
+
Consolas,
|
|
474
|
+
monospace;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.govbr-playground__console ol,
|
|
478
|
+
.govbr-playground__events ol {
|
|
479
|
+
display: grid;
|
|
480
|
+
gap: 0.65rem;
|
|
481
|
+
padding-inline-start: 1.5rem;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.govbr-playground__console li,
|
|
485
|
+
.govbr-playground__events li {
|
|
486
|
+
overflow-wrap: anywhere;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.govbr-playground__console li,
|
|
490
|
+
.govbr-playground__events li {
|
|
491
|
+
padding: 0.65rem 0.75rem;
|
|
492
|
+
border: 1px solid var(--gp-border);
|
|
493
|
+
border-radius: 0.5rem;
|
|
494
|
+
background: var(--gp-surface-muted);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.govbr-playground__console li[data-type='error'],
|
|
498
|
+
.govbr-playground__console li[data-type='exception'] {
|
|
499
|
+
border-inline-start: 0.25rem solid var(--gp-danger);
|
|
500
|
+
color: var(--gp-danger);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.govbr-playground__console small {
|
|
504
|
+
display: block;
|
|
505
|
+
margin-block-start: 0.25rem;
|
|
506
|
+
color: var(--gp-muted);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.govbr-playground__console pre,
|
|
510
|
+
.govbr-playground__events pre {
|
|
511
|
+
max-width: 100%;
|
|
512
|
+
overflow: auto;
|
|
513
|
+
padding: 0.75rem;
|
|
514
|
+
border: 1px solid var(--gp-border);
|
|
515
|
+
border-radius: 0.5rem;
|
|
516
|
+
background: var(--gp-surface-muted);
|
|
517
|
+
white-space: pre-wrap;
|
|
518
|
+
overflow-wrap: anywhere;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.govbr-playground__controls table {
|
|
522
|
+
width: 100%;
|
|
523
|
+
border-collapse: collapse;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.govbr-playground__controls th,
|
|
527
|
+
.govbr-playground__controls td {
|
|
528
|
+
padding: 0.6rem;
|
|
529
|
+
border-bottom: 1px solid var(--gp-border);
|
|
530
|
+
text-align: start;
|
|
531
|
+
vertical-align: top;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.govbr-playground__control-field {
|
|
535
|
+
display: grid;
|
|
536
|
+
gap: 0.3rem;
|
|
537
|
+
margin-block: 0.5rem;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.govbr-playground__control-field small {
|
|
541
|
+
color: var(--gp-muted);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.govbr-playground__status {
|
|
545
|
+
padding: 0.65rem 0.75rem;
|
|
546
|
+
border: 1px solid color-mix(in srgb, var(--gp-success) 35%, var(--gp-border));
|
|
547
|
+
border-radius: 0.5rem;
|
|
548
|
+
background: color-mix(in srgb, var(--gp-success) 8%, var(--gp-surface));
|
|
549
|
+
color: var(--gp-success);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.govbr-playground__preview:fullscreen {
|
|
553
|
+
box-sizing: border-box;
|
|
554
|
+
width: 100vw;
|
|
555
|
+
max-width: none;
|
|
556
|
+
height: 100vh !important;
|
|
557
|
+
overflow: auto;
|
|
558
|
+
padding: 0;
|
|
559
|
+
border: 0;
|
|
560
|
+
border-radius: 0;
|
|
561
|
+
background: var(--gp-background);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.govbr-playground__preview:fullscreen iframe {
|
|
565
|
+
width: 100% !important;
|
|
566
|
+
height: 100% !important;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
@media (max-width: 640px) {
|
|
570
|
+
[data-library] {
|
|
571
|
+
gap: 0.5rem;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.govbr-playground__toolbar,
|
|
575
|
+
.govbr-playground__modes,
|
|
576
|
+
.govbr-playground__preview-toolbar {
|
|
577
|
+
flex-wrap: nowrap;
|
|
578
|
+
align-items: center;
|
|
579
|
+
overflow-x: auto;
|
|
580
|
+
overflow-y: hidden;
|
|
581
|
+
scrollbar-width: thin;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.govbr-playground__toolbar button,
|
|
585
|
+
.govbr-playground__modes button {
|
|
586
|
+
flex: 0 0 auto;
|
|
587
|
+
white-space: nowrap;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.govbr-playground__toolbar label,
|
|
591
|
+
.govbr-playground__modes label {
|
|
592
|
+
flex-wrap: nowrap;
|
|
593
|
+
white-space: nowrap;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.govbr-playground__preview-toolbar label {
|
|
597
|
+
flex: 0 0 auto;
|
|
598
|
+
flex-wrap: nowrap;
|
|
599
|
+
white-space: nowrap;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.govbr-playground__example-tags {
|
|
603
|
+
flex: 0 0 auto;
|
|
604
|
+
flex-wrap: nowrap;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.govbr-playground__example-tags span {
|
|
608
|
+
white-space: nowrap;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.govbr-playground__preview-toolbar select {
|
|
612
|
+
max-width: 11rem;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.govbr-playground__modes select {
|
|
616
|
+
max-width: 12rem;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
@media (prefers-reduced-motion: reduce) {
|
|
621
|
+
[data-library] button,
|
|
622
|
+
.govbr-playground__resize::after {
|
|
623
|
+
transition: none;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.govbr-playground__viewport-dimension {
|
|
628
|
+
display: inline-flex;
|
|
629
|
+
align-items: center;
|
|
630
|
+
gap: 0.4rem;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.govbr-playground__viewport-dimension input {
|
|
634
|
+
width: 6rem;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.govbr-playground__modes-card {
|
|
638
|
+
display: block;
|
|
639
|
+
flex: 0 0 auto;
|
|
640
|
+
min-width: 0;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.govbr-playground__modes {
|
|
644
|
+
padding: 0.65rem;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
[data-library] br-button {
|
|
648
|
+
flex: 0 0 auto;
|
|
649
|
+
}
|
|
650
|
+
.govbr-playground__toolbar br-button {
|
|
651
|
+
inline-size: 2.5rem;
|
|
652
|
+
}
|
|
653
|
+
[data-library] br-select {
|
|
654
|
+
display: inline-block;
|
|
655
|
+
inline-size: 16rem;
|
|
656
|
+
max-inline-size: 100%;
|
|
657
|
+
}
|
|
658
|
+
.govbr-playground__viewport-dimension br-input {
|
|
659
|
+
inline-size: 6rem;
|
|
660
|
+
}
|
|
661
|
+
[data-library] br-tag {
|
|
662
|
+
display: inline-flex;
|
|
663
|
+
margin-inline-start: 0.4rem;
|
|
664
|
+
}
|
|
665
|
+
.govbr-playground__editor-tabs br-button {
|
|
666
|
+
min-inline-size: 2.5rem;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
[data-library] br-tooltip {
|
|
670
|
+
display: inline-flex;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/* O WBC publicado usa as variáveis do Core, em vez de data-theme. */
|
|
674
|
+
[data-library][data-library='wbc'][data-theme='dark'] {
|
|
675
|
+
--background: var(--gp-surface);
|
|
676
|
+
--background-light: var(--gp-surface);
|
|
677
|
+
--color: var(--gp-text);
|
|
678
|
+
--color-light: var(--gp-text);
|
|
679
|
+
--color-light-rgb: 238, 238, 238;
|
|
680
|
+
--text-color: var(--gp-text);
|
|
681
|
+
--interactive-light: #a7c6ff;
|
|
682
|
+
--interactive-light-rgb: 167, 198, 255;
|
|
683
|
+
--border-color-alternative: var(--gp-border);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.govbr-playground__preview-toolbar {
|
|
687
|
+
gap: 0.75rem;
|
|
688
|
+
padding: 0.75rem 1rem;
|
|
689
|
+
}
|
|
690
|
+
.govbr-playground__preview-toolbar > label {
|
|
691
|
+
font-weight: 600;
|
|
692
|
+
}
|
|
693
|
+
.govbr-playground__preview-toolbar > label br-select {
|
|
694
|
+
width: clamp(12rem, 24vw, 25rem);
|
|
695
|
+
}
|
|
696
|
+
.govbr-playground__appearance {
|
|
697
|
+
display: flex;
|
|
698
|
+
align-items: center;
|
|
699
|
+
flex-wrap: wrap;
|
|
700
|
+
gap: 0.75rem;
|
|
701
|
+
padding-inline-start: 1rem;
|
|
702
|
+
border-inline-start: 1px solid var(--gp-border);
|
|
703
|
+
}
|
|
704
|
+
.govbr-playground__appearance br-select {
|
|
705
|
+
width: 12rem;
|
|
706
|
+
}
|
|
707
|
+
.govbr-playground__settings-trigger {
|
|
708
|
+
margin-inline-start: auto;
|
|
709
|
+
}
|
|
710
|
+
.govbr-playground__settings-trigger i:first-child {
|
|
711
|
+
margin-inline-end: 0.4rem;
|
|
712
|
+
}
|
|
713
|
+
.govbr-playground__settings-trigger span {
|
|
714
|
+
margin-inline: 0.4rem;
|
|
715
|
+
}
|
|
716
|
+
.govbr-playground__settings-trigger i:last-child {
|
|
717
|
+
margin-inline-start: 0.15rem;
|
|
718
|
+
}
|
|
719
|
+
.govbr-playground__settings {
|
|
720
|
+
position: fixed;
|
|
721
|
+
inset: auto;
|
|
722
|
+
margin: 0;
|
|
723
|
+
width: 420px;
|
|
724
|
+
max-width: calc(100vw - 24px);
|
|
725
|
+
max-height: none;
|
|
726
|
+
overflow: visible;
|
|
727
|
+
padding: 0.85rem;
|
|
728
|
+
border: 1px solid var(--gp-border);
|
|
729
|
+
border-radius: 0.85rem;
|
|
730
|
+
background: var(--gp-surface);
|
|
731
|
+
color: var(--gp-text);
|
|
732
|
+
box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
|
|
733
|
+
}
|
|
734
|
+
.govbr-playground__settings:popover-open {
|
|
735
|
+
display: grid;
|
|
736
|
+
grid-template-columns: minmax(0, 1fr);
|
|
737
|
+
align-items: center;
|
|
738
|
+
gap: 0.35rem;
|
|
739
|
+
height: max-content;
|
|
740
|
+
max-height: none;
|
|
741
|
+
overflow: visible;
|
|
742
|
+
contain: none;
|
|
743
|
+
}
|
|
744
|
+
.govbr-playground__viewport-controls {
|
|
745
|
+
display: flex;
|
|
746
|
+
flex-wrap: wrap;
|
|
747
|
+
align-items: center;
|
|
748
|
+
gap: 0.75rem;
|
|
749
|
+
}
|
|
750
|
+
.govbr-playground__viewport-buttons {
|
|
751
|
+
display: flex;
|
|
752
|
+
flex-wrap: wrap;
|
|
753
|
+
align-items: center;
|
|
754
|
+
gap: 0.35rem;
|
|
755
|
+
}
|
|
756
|
+
.govbr-playground__viewport-dimensions {
|
|
757
|
+
display: flex;
|
|
758
|
+
flex-wrap: wrap;
|
|
759
|
+
align-items: center;
|
|
760
|
+
gap: 0.75rem;
|
|
761
|
+
}
|
|
762
|
+
.govbr-playground__setting-row {
|
|
763
|
+
display: grid;
|
|
764
|
+
grid-template-columns: 5.5rem minmax(0, 1fr);
|
|
765
|
+
align-items: center;
|
|
766
|
+
gap: 0.75rem;
|
|
767
|
+
font-weight: 600;
|
|
768
|
+
}
|
|
769
|
+
.govbr-playground__setting-row br-select {
|
|
770
|
+
width: 100%;
|
|
771
|
+
min-width: 0;
|
|
772
|
+
}
|
|
773
|
+
.govbr-playground__settings hr {
|
|
774
|
+
grid-column: 1 / -1;
|
|
775
|
+
border: 0;
|
|
776
|
+
border-block-start: 1px solid var(--gp-border);
|
|
777
|
+
width: 100%;
|
|
778
|
+
margin: 0.25rem 0;
|
|
779
|
+
}
|
|
780
|
+
.govbr-playground__settings br-checkbox {
|
|
781
|
+
display: block;
|
|
782
|
+
width: 100%;
|
|
783
|
+
}
|
|
784
|
+
.govbr-playground__menu-behavior {
|
|
785
|
+
display: flex;
|
|
786
|
+
flex-direction: column;
|
|
787
|
+
gap: 0.5rem;
|
|
788
|
+
}
|
|
789
|
+
@media (max-width: 700px) {
|
|
790
|
+
.govbr-playground__appearance {
|
|
791
|
+
border: 0;
|
|
792
|
+
padding-inline-start: 0;
|
|
793
|
+
}
|
|
794
|
+
.govbr-playground__preview-toolbar > label {
|
|
795
|
+
width: 100%;
|
|
796
|
+
}
|
|
797
|
+
.govbr-playground__preview-toolbar > label br-select {
|
|
798
|
+
flex: 1;
|
|
799
|
+
width: auto;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
@media (max-width: 700px) {
|
|
804
|
+
.govbr-playground__preview-toolbar {
|
|
805
|
+
flex-wrap: wrap;
|
|
806
|
+
overflow: visible;
|
|
807
|
+
}
|
|
808
|
+
.govbr-playground__appearance {
|
|
809
|
+
width: 100%;
|
|
810
|
+
min-width: 0;
|
|
811
|
+
}
|
|
812
|
+
.govbr-playground__appearance br-select {
|
|
813
|
+
flex: 1 1 8rem;
|
|
814
|
+
inline-size: auto;
|
|
815
|
+
min-width: 0;
|
|
816
|
+
}
|
|
817
|
+
.govbr-playground__settings-trigger {
|
|
818
|
+
margin-inline-start: 0;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) {
|
|
823
|
+
display: flex;
|
|
824
|
+
flex: 1;
|
|
825
|
+
min-height: 0;
|
|
826
|
+
width: 100%;
|
|
827
|
+
height: 100%;
|
|
828
|
+
}
|
|
829
|
+
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) > br-tab-item {
|
|
830
|
+
flex: 1;
|
|
831
|
+
min-width: 0;
|
|
832
|
+
min-height: 0;
|
|
833
|
+
}
|
|
834
|
+
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) > br-tab-item:not([hidden]) {
|
|
835
|
+
display: flex;
|
|
836
|
+
flex-direction: column;
|
|
837
|
+
height: 100%;
|
|
838
|
+
min-height: 0;
|
|
839
|
+
gap: 0.5rem;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
@media (min-width: 701px) {
|
|
843
|
+
.govbr-playground__preview-toolbar {
|
|
844
|
+
flex-wrap: nowrap;
|
|
845
|
+
overflow: visible;
|
|
846
|
+
}
|
|
847
|
+
.govbr-playground__preview-toolbar > label {
|
|
848
|
+
flex: 0 1 auto;
|
|
849
|
+
}
|
|
850
|
+
.govbr-playground__preview-toolbar > label br-select {
|
|
851
|
+
inline-size: clamp(11rem, 20vw, 19rem);
|
|
852
|
+
}
|
|
853
|
+
.govbr-playground__appearance {
|
|
854
|
+
flex-wrap: nowrap;
|
|
855
|
+
flex: 0 0 auto;
|
|
856
|
+
}
|
|
857
|
+
.govbr-playground__appearance br-select {
|
|
858
|
+
inline-size: clamp(9rem, 15vw, 13rem);
|
|
859
|
+
}
|
|
860
|
+
.govbr-playground__settings-trigger {
|
|
861
|
+
flex: 0 0 auto;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) {
|
|
866
|
+
--tab-container-padding: 0;
|
|
867
|
+
--tab-size: 2.5rem;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.govbr-playground__preview-toolbar {
|
|
871
|
+
align-items: center;
|
|
872
|
+
column-gap: 1rem;
|
|
873
|
+
}
|
|
874
|
+
.govbr-playground__preview-toolbar > label br-select,
|
|
875
|
+
.govbr-playground__preview-toolbar > br-select {
|
|
876
|
+
margin-inline-start: 0.35rem;
|
|
877
|
+
}
|
|
878
|
+
.govbr-playground__settings-trigger {
|
|
879
|
+
align-self: center;
|
|
880
|
+
margin-block: auto;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
@media (max-width: 480px) {
|
|
884
|
+
.govbr-playground__settings:popover-open {
|
|
885
|
+
grid-template-columns: minmax(0, 1fr);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.govbr-playground__settings-trigger {
|
|
890
|
+
float: inline-end;
|
|
891
|
+
margin-inline-start: 2rem;
|
|
892
|
+
}
|
|
893
|
+
.govbr-playground__settings-line > .govbr-playground__settings-trigger {
|
|
894
|
+
float: none;
|
|
895
|
+
margin-inline-start: 0;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) {
|
|
899
|
+
display: flex;
|
|
900
|
+
height: 100%;
|
|
901
|
+
min-height: 0;
|
|
902
|
+
}
|
|
903
|
+
br-tab:is([aria-label='Ferramentas do playground'], [aria-label='Arquivos e frameworks']) > br-tab-item:not([hidden]) {
|
|
904
|
+
display: flex;
|
|
905
|
+
flex: 1 1 auto;
|
|
906
|
+
flex-direction: column;
|
|
907
|
+
min-height: 0;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.govbr-playground__tools {
|
|
911
|
+
display: flex;
|
|
912
|
+
flex-direction: column;
|
|
913
|
+
min-height: 0;
|
|
914
|
+
min-width: 0;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.govbr-playground__editor {
|
|
918
|
+
display: flex;
|
|
919
|
+
flex-direction: column;
|
|
920
|
+
}
|
|
921
|
+
.govbr-playground__editor > br-tab {
|
|
922
|
+
display: flex;
|
|
923
|
+
flex: 1 1 0;
|
|
924
|
+
min-height: 0;
|
|
925
|
+
min-width: 0;
|
|
926
|
+
}
|
|
927
|
+
.govbr-playground__editor > br-tab > br-tab-item:not([hidden]) {
|
|
928
|
+
display: flex;
|
|
929
|
+
flex: 1 1 0;
|
|
930
|
+
flex-direction: column;
|
|
931
|
+
min-height: 0;
|
|
932
|
+
min-width: 0;
|
|
933
|
+
}
|
|
934
|
+
.govbr-playground__editor > br-tab > br-tab-item > .cm-theme {
|
|
935
|
+
flex: 1 1 0;
|
|
936
|
+
min-height: 0;
|
|
937
|
+
min-width: 0;
|
|
938
|
+
}
|
|
939
|
+
br-tab[aria-label='Arquivos e frameworks'] > br-tab-item:not([hidden]) {
|
|
940
|
+
display: flex;
|
|
941
|
+
flex-direction: column;
|
|
942
|
+
}
|
|
943
|
+
br-tab[aria-label='Arquivos e frameworks'] .cm-theme {
|
|
944
|
+
flex: 1;
|
|
945
|
+
min-height: 0;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.govbr-playground__preview-area,
|
|
949
|
+
.govbr-playground__tools {
|
|
950
|
+
position: relative;
|
|
951
|
+
}
|
|
952
|
+
br-tab[aria-label^='Arquivos '] {
|
|
953
|
+
display: flex;
|
|
954
|
+
flex: 1;
|
|
955
|
+
min-height: 0;
|
|
956
|
+
height: 100%;
|
|
957
|
+
}
|
|
958
|
+
br-tab[aria-label^='Arquivos '] > br-tab-item:not([hidden]) {
|
|
959
|
+
display: flex;
|
|
960
|
+
flex-direction: column;
|
|
961
|
+
flex: 1;
|
|
962
|
+
min-height: 0;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
br-tab[aria-label='Ferramentas do playground'] > br-tab-item:not([hidden]) {
|
|
966
|
+
position: relative;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/* Bancada: dimensões relativas ao espaço concedido pelo host. */
|
|
970
|
+
[data-library] {
|
|
971
|
+
display: flex;
|
|
972
|
+
flex-direction: column;
|
|
973
|
+
container-type: inline-size;
|
|
974
|
+
}
|
|
975
|
+
.govbr-playground__bench {
|
|
976
|
+
container: workbench / inline-size;
|
|
977
|
+
display: flex;
|
|
978
|
+
flex: 1 1 auto;
|
|
979
|
+
flex-direction: column;
|
|
980
|
+
min-height: 0;
|
|
981
|
+
min-width: 0;
|
|
982
|
+
gap: 0.5rem;
|
|
983
|
+
}
|
|
984
|
+
.govbr-playground__bench-header,
|
|
985
|
+
.govbr-playground__preview-header,
|
|
986
|
+
.govbr-playground__code-header {
|
|
987
|
+
display: flex;
|
|
988
|
+
align-items: center;
|
|
989
|
+
flex-wrap: wrap;
|
|
990
|
+
gap: 0.5rem;
|
|
991
|
+
flex: 0 0 auto;
|
|
992
|
+
}
|
|
993
|
+
.govbr-playground__bench-main {
|
|
994
|
+
display: grid;
|
|
995
|
+
flex: 1 1 auto;
|
|
996
|
+
min-height: 0;
|
|
997
|
+
min-width: 0;
|
|
998
|
+
grid-template-columns: minmax(0, 1fr);
|
|
999
|
+
grid-template-rows: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1000
|
+
}
|
|
1001
|
+
.govbr-playground__bench-preview {
|
|
1002
|
+
grid-area: 1 / 1;
|
|
1003
|
+
}
|
|
1004
|
+
.govbr-playground__bench-divider {
|
|
1005
|
+
grid-area: 2 / 1;
|
|
1006
|
+
}
|
|
1007
|
+
.govbr-playground__bench-code {
|
|
1008
|
+
grid-area: 3 / 1;
|
|
1009
|
+
}
|
|
1010
|
+
.govbr-playground__bench-preview,
|
|
1011
|
+
.govbr-playground__bench-code,
|
|
1012
|
+
.govbr-playground__bench-properties {
|
|
1013
|
+
min-height: 0;
|
|
1014
|
+
min-width: 0;
|
|
1015
|
+
overflow: auto;
|
|
1016
|
+
}
|
|
1017
|
+
.govbr-playground__bench-code {
|
|
1018
|
+
display: flex;
|
|
1019
|
+
flex-direction: column;
|
|
1020
|
+
}
|
|
1021
|
+
.govbr-playground__bench-properties {
|
|
1022
|
+
display: none;
|
|
1023
|
+
}
|
|
1024
|
+
.govbr-playground__bench-divider {
|
|
1025
|
+
touch-action: none;
|
|
1026
|
+
cursor: row-resize;
|
|
1027
|
+
background: var(--gp-surface-muted);
|
|
1028
|
+
border-radius: 0.25rem;
|
|
1029
|
+
}
|
|
1030
|
+
.govbr-playground__mobile-panels {
|
|
1031
|
+
display: none;
|
|
1032
|
+
}
|
|
1033
|
+
.govbr-playground__bench-main[data-has-code='false'] {
|
|
1034
|
+
grid-template-rows: minmax(0, 1fr);
|
|
1035
|
+
}
|
|
1036
|
+
.govbr-playground__diagnostics {
|
|
1037
|
+
flex: 0 0 auto;
|
|
1038
|
+
min-height: 0;
|
|
1039
|
+
height: 16rem;
|
|
1040
|
+
max-height: 40%;
|
|
1041
|
+
overflow: auto;
|
|
1042
|
+
}
|
|
1043
|
+
.govbr-playground__diagnostics br-tab[aria-label='Diagnóstico'] {
|
|
1044
|
+
height: auto;
|
|
1045
|
+
}
|
|
1046
|
+
.govbr-playground__tools {
|
|
1047
|
+
flex: 1;
|
|
1048
|
+
}
|
|
1049
|
+
.govbr-playground__preview-area {
|
|
1050
|
+
min-width: 0;
|
|
1051
|
+
}
|
|
1052
|
+
.govbr-playground__frameworks {
|
|
1053
|
+
display: flex;
|
|
1054
|
+
flex-direction: column;
|
|
1055
|
+
flex: 1;
|
|
1056
|
+
}
|
|
1057
|
+
.govbr-playground__frameworks > .cm-theme {
|
|
1058
|
+
flex: 1;
|
|
1059
|
+
min-height: 0;
|
|
1060
|
+
}
|
|
1061
|
+
.govbr-playground__component-tree {
|
|
1062
|
+
list-style: none;
|
|
1063
|
+
padding: 0;
|
|
1064
|
+
margin: 0;
|
|
1065
|
+
}
|
|
1066
|
+
.govbr-playground__component-tree-item {
|
|
1067
|
+
color: inherit;
|
|
1068
|
+
cursor: pointer;
|
|
1069
|
+
line-height: 1.45;
|
|
1070
|
+
}
|
|
1071
|
+
.govbr-playground__component-tree-item:hover {
|
|
1072
|
+
text-decoration: underline;
|
|
1073
|
+
}
|
|
1074
|
+
.govbr-playground__component-tree-item:focus-visible {
|
|
1075
|
+
outline: 2px solid var(--gp-accent);
|
|
1076
|
+
outline-offset: 1px;
|
|
1077
|
+
}
|
|
1078
|
+
.govbr-playground__component-tree-item.is-selected {
|
|
1079
|
+
color: var(--gp-accent);
|
|
1080
|
+
font-weight: 600;
|
|
1081
|
+
}
|
|
1082
|
+
.govbr-playground__bench-properties .govbr-playground__controls table,
|
|
1083
|
+
.govbr-playground__bench-properties .govbr-playground__controls tbody,
|
|
1084
|
+
.govbr-playground__bench-properties .govbr-playground__controls tr,
|
|
1085
|
+
.govbr-playground__bench-properties .govbr-playground__controls td,
|
|
1086
|
+
.govbr-playground__bench-properties .govbr-playground__controls th {
|
|
1087
|
+
display: block;
|
|
1088
|
+
}
|
|
1089
|
+
.govbr-playground__bench-properties .govbr-playground__controls thead {
|
|
1090
|
+
display: none;
|
|
1091
|
+
}
|
|
1092
|
+
.govbr-playground__bench[data-maximized='true'] {
|
|
1093
|
+
position: fixed;
|
|
1094
|
+
inset: 0;
|
|
1095
|
+
z-index: 10;
|
|
1096
|
+
padding: 0.75rem;
|
|
1097
|
+
background: var(--gp-surface);
|
|
1098
|
+
}
|
|
1099
|
+
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-preview,
|
|
1100
|
+
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-divider,
|
|
1101
|
+
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-properties {
|
|
1102
|
+
display: none;
|
|
1103
|
+
}
|
|
1104
|
+
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-main {
|
|
1105
|
+
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1106
|
+
}
|
|
1107
|
+
.govbr-playground__bench[data-maximized='true'] .govbr-playground__bench-code {
|
|
1108
|
+
display: flex;
|
|
1109
|
+
grid-area: 1 / 1;
|
|
1110
|
+
}
|
|
1111
|
+
@container workbench (min-width: 700px) {
|
|
1112
|
+
.govbr-playground__bench-main[data-properties='true'] {
|
|
1113
|
+
grid-template-columns: minmax(0, 1fr) minmax(16rem, 30%);
|
|
1114
|
+
column-gap: 0.75rem;
|
|
1115
|
+
}
|
|
1116
|
+
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-properties {
|
|
1117
|
+
display: block;
|
|
1118
|
+
grid-area: 1 / 2 / 4 / 3;
|
|
1119
|
+
}
|
|
1120
|
+
.govbr-playground__bench-main[data-layout='horizontal'] {
|
|
1121
|
+
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1122
|
+
grid-template-rows: minmax(0, 1fr);
|
|
1123
|
+
}
|
|
1124
|
+
.govbr-playground__bench-main[data-layout='horizontal'] .govbr-playground__bench-code {
|
|
1125
|
+
grid-area: 1 / 3;
|
|
1126
|
+
}
|
|
1127
|
+
.govbr-playground__bench-main[data-layout='horizontal'] .govbr-playground__bench-divider {
|
|
1128
|
+
grid-area: 1 / 2;
|
|
1129
|
+
cursor: col-resize;
|
|
1130
|
+
}
|
|
1131
|
+
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] {
|
|
1132
|
+
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest)) minmax(16rem, 25%);
|
|
1133
|
+
}
|
|
1134
|
+
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1135
|
+
grid-area: 1 / 4;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
@container workbench (min-width: 1100px) {
|
|
1139
|
+
.govbr-playground__bench-main[data-layout='auto'] {
|
|
1140
|
+
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1141
|
+
grid-template-rows: minmax(0, 1fr);
|
|
1142
|
+
}
|
|
1143
|
+
.govbr-playground__bench-main[data-layout='auto'] .govbr-playground__bench-code {
|
|
1144
|
+
grid-area: 1 / 3;
|
|
1145
|
+
}
|
|
1146
|
+
.govbr-playground__bench-main[data-layout='auto'] .govbr-playground__bench-divider {
|
|
1147
|
+
grid-area: 1 / 2;
|
|
1148
|
+
cursor: col-resize;
|
|
1149
|
+
}
|
|
1150
|
+
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] {
|
|
1151
|
+
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest)) minmax(16rem, 25%);
|
|
1152
|
+
}
|
|
1153
|
+
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1154
|
+
grid-area: 1 / 4;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
@container workbench (width < 700px) {
|
|
1158
|
+
.govbr-playground__mobile-panels {
|
|
1159
|
+
display: flex;
|
|
1160
|
+
flex-wrap: wrap;
|
|
1161
|
+
}
|
|
1162
|
+
.govbr-playground__bench-main {
|
|
1163
|
+
display: flex;
|
|
1164
|
+
flex-direction: column;
|
|
1165
|
+
}
|
|
1166
|
+
.govbr-playground__bench-preview,
|
|
1167
|
+
.govbr-playground__bench-code,
|
|
1168
|
+
.govbr-playground__bench-properties,
|
|
1169
|
+
.govbr-playground__bench-divider {
|
|
1170
|
+
display: none;
|
|
1171
|
+
}
|
|
1172
|
+
.govbr-playground__bench-main[data-mobile-panel='preview'] .govbr-playground__bench-preview {
|
|
1173
|
+
display: block;
|
|
1174
|
+
flex: 1;
|
|
1175
|
+
}
|
|
1176
|
+
.govbr-playground__bench-main[data-mobile-panel='code'] .govbr-playground__bench-code {
|
|
1177
|
+
display: flex;
|
|
1178
|
+
flex: 1;
|
|
1179
|
+
}
|
|
1180
|
+
.govbr-playground__bench-main[data-mobile-panel='properties'] .govbr-playground__bench-properties {
|
|
1181
|
+
display: block;
|
|
1182
|
+
flex: 1;
|
|
1183
|
+
}
|
|
1184
|
+
.govbr-playground__bench-header > br-select {
|
|
1185
|
+
inline-size: 100%;
|
|
1186
|
+
}
|
|
1187
|
+
.govbr-playground__controls table,
|
|
1188
|
+
.govbr-playground__controls tbody,
|
|
1189
|
+
.govbr-playground__controls tr,
|
|
1190
|
+
.govbr-playground__controls td,
|
|
1191
|
+
.govbr-playground__controls th {
|
|
1192
|
+
display: block;
|
|
1193
|
+
}
|
|
1194
|
+
.govbr-playground__controls thead {
|
|
1195
|
+
display: none;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.govbr-playground__settings h3 {
|
|
1200
|
+
margin: 0.35rem 0 0;
|
|
1201
|
+
font-size: 0.875rem;
|
|
1202
|
+
grid-column: 1 / -1;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.govbr-playground__bench-main[data-has-code='false'] {
|
|
1206
|
+
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
@container workbench (min-width: 700px) {
|
|
1210
|
+
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] {
|
|
1211
|
+
column-gap: 0;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
@container workbench (min-width: 1100px) {
|
|
1215
|
+
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] {
|
|
1216
|
+
column-gap: 0;
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-properties {
|
|
1220
|
+
padding-inline-start: 0.75rem;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
.govbr-playground__bench-header > .govbr-playground__settings-trigger {
|
|
1224
|
+
margin-inline-start: auto;
|
|
1225
|
+
float: none;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
@container workbench (700px <= width < 1600px) {
|
|
1229
|
+
.govbr-playground__bench-main[data-properties='true'] {
|
|
1230
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1231
|
+
column-gap: 0;
|
|
1232
|
+
}
|
|
1233
|
+
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-code {
|
|
1234
|
+
display: none;
|
|
1235
|
+
}
|
|
1236
|
+
.govbr-playground__bench-main[data-properties='true'] .govbr-playground__bench-properties {
|
|
1237
|
+
grid-area: 3 / 1;
|
|
1238
|
+
padding-inline-start: 0;
|
|
1239
|
+
}
|
|
1240
|
+
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] {
|
|
1241
|
+
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1242
|
+
grid-template-rows: minmax(0, 1fr);
|
|
1243
|
+
}
|
|
1244
|
+
.govbr-playground__bench-main[data-layout='horizontal'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1245
|
+
grid-area: 1 / 3;
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
@container workbench (1100px <= width < 1600px) {
|
|
1249
|
+
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] {
|
|
1250
|
+
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest));
|
|
1251
|
+
grid-template-rows: minmax(0, 1fr);
|
|
1252
|
+
}
|
|
1253
|
+
.govbr-playground__bench-main[data-layout='auto'][data-properties='true'] .govbr-playground__bench-properties {
|
|
1254
|
+
grid-area: 1 / 3;
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
@container workbench (width < 700px) {
|
|
1258
|
+
.govbr-playground__mobile-panels br-button,
|
|
1259
|
+
.govbr-playground__preview-header br-button,
|
|
1260
|
+
.govbr-playground__code-header br-button {
|
|
1261
|
+
min-inline-size: 44px;
|
|
1262
|
+
min-block-size: 44px;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
.govbr-playground__workspace-actions > div {
|
|
1267
|
+
display: flex;
|
|
1268
|
+
flex-wrap: wrap;
|
|
1269
|
+
gap: 0.5rem;
|
|
1270
|
+
}
|
|
1271
|
+
.govbr-playground__workspace-actions summary {
|
|
1272
|
+
cursor: pointer;
|
|
1273
|
+
padding: 0.5rem;
|
|
1274
|
+
}
|
|
1275
|
+
.govbr-playground__bench-header > br-select {
|
|
1276
|
+
inline-size: 10rem;
|
|
1277
|
+
}
|
|
1278
|
+
.govbr-playground__bench-header > label {
|
|
1279
|
+
display: flex;
|
|
1280
|
+
align-items: center;
|
|
1281
|
+
gap: 0.5rem;
|
|
1282
|
+
min-width: 0;
|
|
1283
|
+
}
|
|
1284
|
+
.govbr-playground__bench-header > label br-select {
|
|
1285
|
+
inline-size: 16rem;
|
|
1286
|
+
}
|
|
1287
|
+
@container workbench (min-width: 1100px) {
|
|
1288
|
+
.govbr-playground__workspace-actions {
|
|
1289
|
+
display: contents;
|
|
1290
|
+
}
|
|
1291
|
+
.govbr-playground__workspace-actions > summary {
|
|
1292
|
+
display: none;
|
|
1293
|
+
}
|
|
1294
|
+
.govbr-playground__workspace-actions > div {
|
|
1295
|
+
display: flex;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
@container workbench (width < 700px) {
|
|
1299
|
+
.govbr-playground__bench-header {
|
|
1300
|
+
gap: 0.25rem;
|
|
1301
|
+
}
|
|
1302
|
+
.govbr-playground__bench-header > label {
|
|
1303
|
+
width: 100%;
|
|
1304
|
+
}
|
|
1305
|
+
.govbr-playground__bench-header > label br-select {
|
|
1306
|
+
inline-size: 100%;
|
|
1307
|
+
}
|
|
1308
|
+
.govbr-playground__bench-header > br-select[aria-label$='rápido'] {
|
|
1309
|
+
display: none;
|
|
1310
|
+
}
|
|
1311
|
+
.govbr-playground__bench-header > br-select {
|
|
1312
|
+
inline-size: 8rem;
|
|
1313
|
+
}
|
|
1314
|
+
.govbr-playground__workspace-actions > div {
|
|
1315
|
+
padding-block: 0.5rem;
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
[data-library] [aria-label='Área de preview'] {
|
|
1320
|
+
max-width: none;
|
|
1321
|
+
flex-shrink: 0;
|
|
1322
|
+
}
|
|
1323
|
+
.govbr-playground__preview {
|
|
1324
|
+
max-width: none;
|
|
1325
|
+
}
|
|
1326
|
+
.govbr-playground__source-errors {
|
|
1327
|
+
flex: 0 0 auto;
|
|
1328
|
+
max-height: 8rem;
|
|
1329
|
+
overflow: auto;
|
|
1330
|
+
border-inline-start: 3px solid var(--gp-danger);
|
|
1331
|
+
padding-inline-start: 0.5rem;
|
|
1332
|
+
}
|
|
1333
|
+
.govbr-playground__preview-header output {
|
|
1334
|
+
font-size: 0.8rem;
|
|
1335
|
+
white-space: nowrap;
|
|
1336
|
+
}
|
|
1337
|
+
.govbr-playground__preview-header .govbr-playground__viewport-controls {
|
|
1338
|
+
flex: 1 1 auto;
|
|
1339
|
+
}
|
|
1340
|
+
.govbr-playground__preview-header .govbr-playground__viewport-dimension {
|
|
1341
|
+
display: flex;
|
|
1342
|
+
align-items: center;
|
|
1343
|
+
flex: 0 0 auto;
|
|
1344
|
+
gap: 0.35rem;
|
|
1345
|
+
font-weight: 600;
|
|
1346
|
+
line-height: 1;
|
|
1347
|
+
white-space: nowrap;
|
|
1348
|
+
}
|
|
1349
|
+
.govbr-playground__preview-header .govbr-playground__viewport-dimension > span {
|
|
1350
|
+
color: var(--gp-muted);
|
|
1351
|
+
font-size: 0.8rem;
|
|
1352
|
+
font-weight: 400;
|
|
1353
|
+
}
|
|
1354
|
+
.govbr-playground__preview-header .govbr-playground__viewport-dimension br-input {
|
|
1355
|
+
flex: 0 0 7rem;
|
|
1356
|
+
inline-size: 7rem;
|
|
1357
|
+
min-inline-size: 7rem;
|
|
1358
|
+
margin-block-end: 0;
|
|
1359
|
+
}
|
|
1360
|
+
.govbr-playground__preview-header .govbr-playground__viewport-dimension br-input::part(input) {
|
|
1361
|
+
padding-inline: 0.5rem;
|
|
1362
|
+
text-align: center;
|
|
1363
|
+
font-variant-numeric: tabular-nums;
|
|
1364
|
+
}
|
|
1365
|
+
.govbr-playground__preview-header > br-tooltip {
|
|
1366
|
+
margin-block-end: 0.25rem;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
.govbr-playground__component-title {
|
|
1370
|
+
margin: 0;
|
|
1371
|
+
font-size: 1.25rem;
|
|
1372
|
+
line-height: 1.4;
|
|
1373
|
+
}
|
|
1374
|
+
.govbr-playground__bench-header > .govbr-playground__settings-trigger {
|
|
1375
|
+
order: 100;
|
|
1376
|
+
}
|
|
1377
|
+
@container workbench (width < 1100px) {
|
|
1378
|
+
.govbr-playground__bench-header > br-select[aria-label$='rápido'] {
|
|
1379
|
+
display: none;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
@container workbench (width < 700px) {
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
.govbr-playground__preview-header > br-select {
|
|
1387
|
+
flex: 0 1 180px;
|
|
1388
|
+
width: 180px;
|
|
1389
|
+
min-width: 0;
|
|
1390
|
+
}
|
|
1391
|
+
.govbr-playground__preview-header > br-input {
|
|
1392
|
+
flex: 0 1 100px;
|
|
1393
|
+
width: 100px;
|
|
1394
|
+
min-width: 0;
|
|
1395
|
+
}
|
|
1396
|
+
.govbr-playground__wide-behavior {
|
|
1397
|
+
display: none;
|
|
1398
|
+
}
|
|
1399
|
+
@container workbench (min-width: 1600px) {
|
|
1400
|
+
.govbr-playground__wide-behavior {
|
|
1401
|
+
display: inline-flex;
|
|
1402
|
+
align-items: center;
|
|
1403
|
+
gap: 0.75rem;
|
|
1404
|
+
}
|
|
1405
|
+
.govbr-playground__settings-behavior {
|
|
1406
|
+
display: none;
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
@container workbench (min-width: 1600px) {
|
|
1410
|
+
.govbr-playground__viewport-buttons {
|
|
1411
|
+
flex-wrap: nowrap;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
@container workbench (min-width: 1600px) {
|
|
1416
|
+
.govbr-playground__bench-properties {
|
|
1417
|
+
display: flex !important;
|
|
1418
|
+
flex-direction: column;
|
|
1419
|
+
gap: 0.75rem;
|
|
1420
|
+
}
|
|
1421
|
+
.govbr-playground__diagnostics--sidebar {
|
|
1422
|
+
display: block;
|
|
1423
|
+
flex: 1 1 40%;
|
|
1424
|
+
min-height: 12rem;
|
|
1425
|
+
max-height: 50%;
|
|
1426
|
+
height: auto;
|
|
1427
|
+
overflow: auto;
|
|
1428
|
+
}
|
|
1429
|
+
.govbr-playground__diagnostics--sidebar > summary {
|
|
1430
|
+
display: none;
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
@container workbench (min-width: 1600px) {
|
|
1434
|
+
.govbr-playground__bench-properties > br-tab,
|
|
1435
|
+
.govbr-playground__bench-properties > .govbr-playground__tool-tabs {
|
|
1436
|
+
display: flex;
|
|
1437
|
+
flex: 0 0 auto;
|
|
1438
|
+
flex-direction: row;
|
|
1439
|
+
width: 100%;
|
|
1440
|
+
min-height: 0;
|
|
1441
|
+
}
|
|
1442
|
+
.govbr-playground__bench-properties > [role='tabpanel'] {
|
|
1443
|
+
flex: 1 1 auto;
|
|
1444
|
+
min-height: 0;
|
|
1445
|
+
overflow: auto;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
.govbr-playground__property-field {
|
|
1449
|
+
position: relative;
|
|
1450
|
+
min-width: 0;
|
|
1451
|
+
}
|
|
1452
|
+
.govbr-playground__property-field > br-input,
|
|
1453
|
+
.govbr-playground__property-field > br-select {
|
|
1454
|
+
display: block;
|
|
1455
|
+
width: 100%;
|
|
1456
|
+
}
|
|
1457
|
+
.govbr-playground__preview-area > [aria-label='Área de preview'] {
|
|
1458
|
+
flex: 1 1 auto;
|
|
1459
|
+
min-height: 12rem;
|
|
1460
|
+
}
|
|
1461
|
+
@container workbench (min-width: 1600px) {
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
@container workbench (min-width: 1600px) {
|
|
1465
|
+
.govbr-playground__bench-main[data-wide='true'] {
|
|
1466
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
|
|
1467
|
+
grid-template-rows: minmax(0, 1fr) !important;
|
|
1468
|
+
column-gap: 0.75rem !important;
|
|
1469
|
+
}
|
|
1470
|
+
.govbr-playground__bench-main[data-wide='true'] .govbr-playground__bench-preview {
|
|
1471
|
+
grid-area: 1 / 1;
|
|
1472
|
+
}
|
|
1473
|
+
.govbr-playground__bench-main[data-wide='true'] .govbr-playground__bench-divider {
|
|
1474
|
+
display: none !important;
|
|
1475
|
+
}
|
|
1476
|
+
.govbr-playground__bench-main[data-wide='true'] .govbr-playground__bench-properties {
|
|
1477
|
+
display: flex !important;
|
|
1478
|
+
grid-area: 1 / 2;
|
|
1479
|
+
min-height: 0;
|
|
1480
|
+
overflow: hidden;
|
|
1481
|
+
}
|
|
1482
|
+
.govbr-playground__bench-properties > br-tab {
|
|
1483
|
+
display: flex;
|
|
1484
|
+
flex: 1;
|
|
1485
|
+
flex-direction: column;
|
|
1486
|
+
min-height: 0;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
@container workbench (min-width: 1600px) {
|
|
1491
|
+
.govbr-playground__bench > .govbr-playground__bench-code {
|
|
1492
|
+
flex: 0 1 18rem;
|
|
1493
|
+
min-height: 12rem;
|
|
1494
|
+
max-height: 35vh;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
.govbr-playground__preview-area > [aria-label='Área de preview'] {
|
|
1498
|
+
align-self: stretch;
|
|
1499
|
+
}
|
|
1500
|
+
.govbr-playground__diagnostics ol {
|
|
1501
|
+
margin: 0;
|
|
1502
|
+
padding: 0;
|
|
1503
|
+
list-style: none;
|
|
1504
|
+
}
|
|
1505
|
+
.govbr-playground__diagnostics li {
|
|
1506
|
+
padding: 0.625rem 0.75rem;
|
|
1507
|
+
border-bottom: 1px solid var(--gp-border);
|
|
1508
|
+
overflow-wrap: anywhere;
|
|
1509
|
+
}
|
|
1510
|
+
.govbr-playground__diagnostics li time {
|
|
1511
|
+
display: inline-block;
|
|
1512
|
+
min-width: 5.5rem;
|
|
1513
|
+
color: var(--gp-muted);
|
|
1514
|
+
font-variant-numeric: tabular-nums;
|
|
1515
|
+
}
|
|
1516
|
+
.govbr-playground__diagnostics li[data-type='error'],
|
|
1517
|
+
.govbr-playground__diagnostics li[data-type='exception'],
|
|
1518
|
+
.govbr-playground__diagnostics li[data-type='unhandledrejection'] {
|
|
1519
|
+
border-inline-start: 3px solid var(--gp-danger);
|
|
1520
|
+
background: color-mix(in srgb, var(--gp-danger) 7%, transparent);
|
|
1521
|
+
}
|
|
1522
|
+
.govbr-playground__diagnostics pre {
|
|
1523
|
+
white-space: pre-wrap;
|
|
1524
|
+
overflow-wrap: anywhere;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
.govbr-playground__diagnostics li[data-type='info'] {
|
|
1528
|
+
border-inline-start: 3px solid #1a73a8;
|
|
1529
|
+
background: color-mix(in srgb, #1a73a8 6%, transparent);
|
|
1530
|
+
}
|
|
1531
|
+
.govbr-playground__diagnostics li[data-type='warn'] {
|
|
1532
|
+
border-inline-start: 3px solid #b54708;
|
|
1533
|
+
background: color-mix(in srgb, #f79009 12%, transparent);
|
|
1534
|
+
}
|
|
1535
|
+
.govbr-playground__diagnostics li[data-type='log'] {
|
|
1536
|
+
border-inline-start: 3px solid #667085;
|
|
1537
|
+
}
|
|
1538
|
+
.govbr-playground__diagnostics li[data-type='error'],
|
|
1539
|
+
.govbr-playground__diagnostics li[data-type='exception'],
|
|
1540
|
+
.govbr-playground__diagnostics li[data-type='unhandledrejection'] {
|
|
1541
|
+
border-inline-start-color: #b42318;
|
|
1542
|
+
background: color-mix(in srgb, #d92d20 10%, transparent);
|
|
1543
|
+
}
|
|
1544
|
+
.govbr-playground__console-style {
|
|
1545
|
+
display: inline-block;
|
|
1546
|
+
margin-inline-end: 0.25rem;
|
|
1547
|
+
font-family: var(--gp-font, inherit);
|
|
1548
|
+
}
|
|
1549
|
+
.govbr-playground__diagnostics li strong {
|
|
1550
|
+
display: inline-block;
|
|
1551
|
+
min-width: 4.5rem;
|
|
1552
|
+
text-transform: uppercase;
|
|
1553
|
+
font-size: 0.75rem;
|
|
1554
|
+
letter-spacing: 0.04em;
|
|
1555
|
+
}
|
|
1556
|
+
.govbr-playground__diagnostics li[data-type='warn'] strong {
|
|
1557
|
+
color: #93370d;
|
|
1558
|
+
}
|
|
1559
|
+
.govbr-playground__diagnostics li[data-type='error'] strong,
|
|
1560
|
+
.govbr-playground__diagnostics li[data-type='exception'] strong,
|
|
1561
|
+
.govbr-playground__diagnostics li[data-type='unhandledrejection'] strong {
|
|
1562
|
+
color: #b42318;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
.govbr-playground__console-message,
|
|
1566
|
+
.govbr-playground__console-details {
|
|
1567
|
+
min-width: 0;
|
|
1568
|
+
flex: 1 1 100%;
|
|
1569
|
+
white-space: pre-wrap;
|
|
1570
|
+
overflow-wrap: anywhere;
|
|
1571
|
+
line-height: 1.5;
|
|
1572
|
+
}
|
|
1573
|
+
.govbr-playground__console-details summary {
|
|
1574
|
+
cursor: pointer;
|
|
1575
|
+
}
|
|
1576
|
+
.govbr-playground__console-details summary span {
|
|
1577
|
+
color: var(--gp-link);
|
|
1578
|
+
font-size: 0.875em;
|
|
1579
|
+
margin-inline-start: 0.5rem;
|
|
1580
|
+
}
|
|
1581
|
+
.govbr-playground__console-details pre {
|
|
1582
|
+
max-height: 24rem;
|
|
1583
|
+
overflow: auto;
|
|
1584
|
+
margin: 0.5rem 0 0;
|
|
1585
|
+
padding: 0.75rem;
|
|
1586
|
+
border-radius: 0.375rem;
|
|
1587
|
+
background: var(--gp-surface-muted);
|
|
1588
|
+
white-space: pre-wrap;
|
|
1589
|
+
overflow-wrap: anywhere;
|
|
1590
|
+
font:
|
|
1591
|
+
0.85rem/1.5 ui-monospace,
|
|
1592
|
+
SFMono-Regular,
|
|
1593
|
+
Consolas,
|
|
1594
|
+
monospace;
|
|
1595
|
+
}
|
|
1596
|
+
.govbr-playground__diagnostics .govbr-playground__panel-toolbar {
|
|
1597
|
+
display: flex;
|
|
1598
|
+
align-items: end;
|
|
1599
|
+
flex-wrap: wrap;
|
|
1600
|
+
gap: 0.5rem;
|
|
1601
|
+
padding: 0.5rem 0 0.75rem;
|
|
1602
|
+
}
|
|
1603
|
+
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > label {
|
|
1604
|
+
display: flex;
|
|
1605
|
+
flex: 1 1 15rem;
|
|
1606
|
+
flex-direction: column;
|
|
1607
|
+
gap: 0.25rem;
|
|
1608
|
+
}
|
|
1609
|
+
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > label br-input,
|
|
1610
|
+
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > label br-select {
|
|
1611
|
+
width: 100%;
|
|
1612
|
+
}
|
|
1613
|
+
.govbr-playground__diagnostics li details {
|
|
1614
|
+
flex-basis: 100%;
|
|
1615
|
+
margin-block-start: 0.35rem;
|
|
1616
|
+
}
|
|
1617
|
+
.govbr-playground__diagnostics li details pre {
|
|
1618
|
+
max-height: 16rem;
|
|
1619
|
+
overflow: auto;
|
|
1620
|
+
padding: 0.75rem;
|
|
1621
|
+
border-radius: 0.35rem;
|
|
1622
|
+
background: var(--gp-surface-muted);
|
|
1623
|
+
}
|
|
1624
|
+
@container workbench (min-width: 1600px) {
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
@container workbench (min-width: 1600px) {
|
|
1628
|
+
/* Override the former three-panel placement: it created implicit empty columns. */
|
|
1629
|
+
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-preview {
|
|
1630
|
+
grid-area: 1 / 1 / 2 / 2 !important;
|
|
1631
|
+
}
|
|
1632
|
+
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-properties {
|
|
1633
|
+
grid-area: 1 / 2 / 2 / 3 !important;
|
|
1634
|
+
padding-inline-start: 0;
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
@container workbench (min-width: 1600px) {
|
|
1639
|
+
.govbr-playground__bench-main[data-wide='true'] {
|
|
1640
|
+
grid-template-columns: minmax(0, var(--bench-split)) 0.75rem minmax(0, var(--bench-rest)) !important;
|
|
1641
|
+
column-gap: 0 !important;
|
|
1642
|
+
}
|
|
1643
|
+
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-divider {
|
|
1644
|
+
display: block !important;
|
|
1645
|
+
grid-area: 1 / 2 / 2 / 3 !important;
|
|
1646
|
+
cursor: col-resize;
|
|
1647
|
+
}
|
|
1648
|
+
.govbr-playground__bench-main[data-wide='true'] > .govbr-playground__bench-properties {
|
|
1649
|
+
grid-area: 1 / 3 / 2 / 4 !important;
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
.govbr-playground__bench-preview {
|
|
1653
|
+
display: flex;
|
|
1654
|
+
flex-direction: column;
|
|
1655
|
+
}
|
|
1656
|
+
.govbr-playground__preview-area {
|
|
1657
|
+
display: flex;
|
|
1658
|
+
flex-direction: column;
|
|
1659
|
+
flex: 1 1 auto;
|
|
1660
|
+
min-height: 0;
|
|
1661
|
+
}
|
|
1662
|
+
.govbr-playground__preview-header {
|
|
1663
|
+
flex-shrink: 0;
|
|
1664
|
+
}
|
|
1665
|
+
.govbr-playground__preview-area > [aria-label='Área de preview'][data-fill-height='true'] {
|
|
1666
|
+
flex: 1 1 0;
|
|
1667
|
+
min-height: 0;
|
|
1668
|
+
}
|
|
1669
|
+
.govbr-playground__preview-area > [aria-label='Área de preview'][data-fill-height='false'] {
|
|
1670
|
+
flex: 0 0 auto;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
.govbr-playground__diagnostics .govbr-playground__panel-toolbar:has(.govbr-playground__event-filter) {
|
|
1674
|
+
align-items: center;
|
|
1675
|
+
}
|
|
1676
|
+
.govbr-playground__diagnostics .govbr-playground__panel-toolbar > .govbr-playground__event-filter {
|
|
1677
|
+
flex-direction: row;
|
|
1678
|
+
align-items: center;
|
|
1679
|
+
gap: 0.75rem;
|
|
1680
|
+
min-width: 0;
|
|
1681
|
+
text-align: start;
|
|
1682
|
+
}
|
|
1683
|
+
.govbr-playground__event-filter > span {
|
|
1684
|
+
flex: 0 0 auto;
|
|
1685
|
+
white-space: nowrap;
|
|
1686
|
+
}
|
|
1687
|
+
.govbr-playground__diagnostics .govbr-playground__event-filter > br-input {
|
|
1688
|
+
flex: 1 1 auto;
|
|
1689
|
+
min-width: 0;
|
|
1690
|
+
width: auto;
|
|
1691
|
+
}
|
|
1692
|
+
.govbr-playground__bench-header {
|
|
1693
|
+
align-items: center;
|
|
1694
|
+
}
|
|
1695
|
+
.govbr-playground__bench-header > label {
|
|
1696
|
+
margin: 0;
|
|
1697
|
+
align-self: center;
|
|
1698
|
+
align-items: center;
|
|
1699
|
+
}
|
|
1700
|
+
.govbr-playground__bench-header > br-select,
|
|
1701
|
+
.govbr-playground__bench-header > label > br-select {
|
|
1702
|
+
display: block;
|
|
1703
|
+
align-self: center;
|
|
1704
|
+
margin: 0;
|
|
1705
|
+
}
|
|
1706
|
+
.govbr-playground__wide-behavior {
|
|
1707
|
+
align-self: center;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
.govbr-playground__component-tree ul {
|
|
1711
|
+
list-style: none;
|
|
1712
|
+
margin: 0;
|
|
1713
|
+
padding-inline-start: 1.25rem;
|
|
1714
|
+
}
|
|
1715
|
+
.govbr-playground__component-tree summary {
|
|
1716
|
+
cursor: pointer;
|
|
1717
|
+
}
|
|
1718
|
+
.govbr-playground__component-tree li > details {
|
|
1719
|
+
margin: 0;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
.govbr-playground__inspector-code {
|
|
1723
|
+
display: grid;
|
|
1724
|
+
gap: 0.35rem;
|
|
1725
|
+
min-width: 0;
|
|
1726
|
+
font-weight: normal;
|
|
1727
|
+
}
|
|
1728
|
+
.govbr-playground__inspector-code .cm-editor {
|
|
1729
|
+
height: auto;
|
|
1730
|
+
min-height: 7rem;
|
|
1731
|
+
color: var(--gp-text);
|
|
1732
|
+
background: var(--gp-surface);
|
|
1733
|
+
font-weight: normal;
|
|
1734
|
+
}
|
|
1735
|
+
.govbr-playground__inspector-code .cm-scroller {
|
|
1736
|
+
height: auto;
|
|
1737
|
+
max-height: 18rem;
|
|
1738
|
+
}
|
|
1739
|
+
.govbr-playground__inspector-code .cm-placeholder {
|
|
1740
|
+
color: var(--gp-muted);
|
|
1741
|
+
opacity: 1;
|
|
1742
|
+
font-style: normal;
|
|
1743
|
+
}
|
|
1744
|
+
.govbr-playground__inspector-code > br-button {
|
|
1745
|
+
justify-self: start;
|
|
1746
|
+
}
|
|
1747
|
+
.govbr-playground__panel-toolbar.govbr-playground__events-toolbar {
|
|
1748
|
+
display: flex;
|
|
1749
|
+
align-items: center;
|
|
1750
|
+
flex-wrap: wrap;
|
|
1751
|
+
gap: 0.5rem;
|
|
1752
|
+
}
|
|
1753
|
+
.govbr-playground__panel-toolbar.govbr-playground__events-toolbar > label.govbr-playground__event-filter {
|
|
1754
|
+
display: flex;
|
|
1755
|
+
flex-direction: row;
|
|
1756
|
+
align-items: center;
|
|
1757
|
+
flex: 1 1 16rem;
|
|
1758
|
+
gap: 0.75rem;
|
|
1759
|
+
margin: 0;
|
|
1760
|
+
}
|
|
1761
|
+
.govbr-playground__events-toolbar > .govbr-playground__event-filter > br-input {
|
|
1762
|
+
display: block;
|
|
1763
|
+
flex: 1 1 auto;
|
|
1764
|
+
margin: 0;
|
|
1765
|
+
min-width: 0;
|
|
1766
|
+
}
|
|
1767
|
+
.govbr-playground__events-toolbar > br-tooltip {
|
|
1768
|
+
flex: 0 0 auto;
|
|
1769
|
+
align-self: center;
|
|
1770
|
+
margin: 0;
|
|
1771
|
+
}
|
|
1772
|
+
.govbr-playground__panel-toolbar.govbr-playground__events-toolbar > label.govbr-playground__event-filter {
|
|
1773
|
+
flex-wrap: nowrap;
|
|
1774
|
+
}
|
|
1775
|
+
.govbr-playground__panel-toolbar.govbr-playground__events-toolbar > label.govbr-playground__event-filter > br-input {
|
|
1776
|
+
width: 0;
|
|
1777
|
+
flex: 1 1 0;
|
|
1778
|
+
}
|
|
1779
|
+
br-tab[aria-label='Código-fonte, propriedades e ferramentas'] > br-tab-item:not([hidden]) {
|
|
1780
|
+
display: flex;
|
|
1781
|
+
flex-direction: column;
|
|
1782
|
+
flex: 1 1 auto;
|
|
1783
|
+
min-height: 0;
|
|
1784
|
+
height: 100%;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
.govbr-playground__example-line,
|
|
1788
|
+
.govbr-playground__settings-line {
|
|
1789
|
+
display: flex;
|
|
1790
|
+
flex: 0 0 100%;
|
|
1791
|
+
min-width: 0;
|
|
1792
|
+
align-items: center;
|
|
1793
|
+
flex-wrap: wrap;
|
|
1794
|
+
gap: 0.5rem;
|
|
1795
|
+
}
|
|
1796
|
+
.govbr-playground__example-line > label {
|
|
1797
|
+
display: flex;
|
|
1798
|
+
align-items: center;
|
|
1799
|
+
gap: 0.5rem;
|
|
1800
|
+
margin: 0;
|
|
1801
|
+
}
|
|
1802
|
+
.govbr-playground__example-line br-select {
|
|
1803
|
+
inline-size: 19rem;
|
|
1804
|
+
max-inline-size: 100%;
|
|
1805
|
+
margin: 0;
|
|
1806
|
+
}
|
|
1807
|
+
.govbr-playground__settings-line {
|
|
1808
|
+
justify-content: flex-start;
|
|
1809
|
+
}
|
|
1810
|
+
.govbr-playground__settings-line > br-select {
|
|
1811
|
+
inline-size: 14rem;
|
|
1812
|
+
margin: 0;
|
|
1813
|
+
}
|
|
1814
|
+
@container workbench (min-width: 700px) {
|
|
1815
|
+
.govbr-playground__settings-line > .govbr-playground__settings-trigger {
|
|
1816
|
+
display: none;
|
|
1817
|
+
}
|
|
1818
|
+
.govbr-playground__settings-line > .govbr-playground__settings {
|
|
1819
|
+
display: flex !important;
|
|
1820
|
+
position: static !important;
|
|
1821
|
+
inset: auto !important;
|
|
1822
|
+
flex: 1 1 100%;
|
|
1823
|
+
align-items: center;
|
|
1824
|
+
gap: 1rem;
|
|
1825
|
+
width: 100%;
|
|
1826
|
+
max-width: none;
|
|
1827
|
+
max-height: none;
|
|
1828
|
+
margin: 0;
|
|
1829
|
+
padding: 0;
|
|
1830
|
+
overflow: visible;
|
|
1831
|
+
border: 0;
|
|
1832
|
+
background: transparent;
|
|
1833
|
+
color: inherit;
|
|
1834
|
+
box-shadow: none;
|
|
1835
|
+
}
|
|
1836
|
+
.govbr-playground__settings-line > .govbr-playground__settings h3 {
|
|
1837
|
+
display: none;
|
|
1838
|
+
}
|
|
1839
|
+
.govbr-playground__settings-line .govbr-playground__settings-behavior {
|
|
1840
|
+
display: flex;
|
|
1841
|
+
align-items: center;
|
|
1842
|
+
}
|
|
1843
|
+
.govbr-playground__settings-line .govbr-playground__menu-behavior {
|
|
1844
|
+
flex-direction: row;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
@container workbench (min-width: 1600px) {
|
|
1848
|
+
.govbr-playground__settings-line br-select,
|
|
1849
|
+
.govbr-playground__settings-line br-switch {
|
|
1850
|
+
align-self: center;
|
|
1851
|
+
margin: 0;
|
|
1852
|
+
}
|
|
1853
|
+
.govbr-playground__settings-line .govbr-playground__settings hr {
|
|
1854
|
+
display: none;
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
@container workbench (width < 1100px) {
|
|
1858
|
+
.govbr-playground__settings-line > br-select[aria-label$='rápido'] {
|
|
1859
|
+
display: none;
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
@container workbench (width < 700px) {
|
|
1863
|
+
.govbr-playground__example-line > label {
|
|
1864
|
+
width: 100%;
|
|
1865
|
+
min-width: 0;
|
|
1866
|
+
}
|
|
1867
|
+
.govbr-playground__example-line br-select {
|
|
1868
|
+
width: 100%;
|
|
1869
|
+
min-width: 0;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
@container workbench (width < 700px) {
|
|
1873
|
+
.govbr-playground__bench-main[data-mobile-panel='preview'] > .govbr-playground__bench-preview {
|
|
1874
|
+
display: flex;
|
|
1875
|
+
flex-direction: column;
|
|
1876
|
+
min-height: 0;
|
|
1877
|
+
}
|
|
1878
|
+
.govbr-playground__bench-main:not([data-mobile-panel='preview']) > .govbr-playground__bench-preview {
|
|
1879
|
+
display: none;
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
/* The preview/tools divider shares the space granted by the host in either orientation. */
|
|
1883
|
+
.govbr-playground__workspace {
|
|
1884
|
+
display: flex;
|
|
1885
|
+
flex: 1 1 0;
|
|
1886
|
+
flex-direction: column;
|
|
1887
|
+
min-height: 0;
|
|
1888
|
+
min-width: 0;
|
|
1889
|
+
gap: 0.5rem;
|
|
1890
|
+
}
|
|
1891
|
+
.govbr-playground__workspace[data-stacked-tools='true'] {
|
|
1892
|
+
display: grid;
|
|
1893
|
+
grid-template-rows: minmax(160px, 1fr) auto;
|
|
1894
|
+
gap: 0;
|
|
1895
|
+
min-height: 400px;
|
|
1896
|
+
}
|
|
1897
|
+
.govbr-playground__workspace[data-stacked-tools='true'][data-tools-open='true'] {
|
|
1898
|
+
grid-template-rows: minmax(160px, var(--stacked-split)) 12px minmax(180px, var(--stacked-rest));
|
|
1899
|
+
}
|
|
1900
|
+
.govbr-playground__workspace[data-stacked-tools='true'] > .govbr-playground__bench-main {
|
|
1901
|
+
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
1902
|
+
}
|
|
1903
|
+
.govbr-playground__workspace[data-stacked-tools='true'] > .govbr-playground__diagnostics {
|
|
1904
|
+
min-height: 0;
|
|
1905
|
+
max-height: none;
|
|
1906
|
+
height: auto;
|
|
1907
|
+
overflow: auto;
|
|
1908
|
+
}
|
|
1909
|
+
.govbr-playground__workspace[data-mobile-tabs='true'] {
|
|
1910
|
+
display: flex;
|
|
1911
|
+
flex-direction: column;
|
|
1912
|
+
min-height: 0;
|
|
1913
|
+
}
|
|
1914
|
+
.govbr-playground__workspace[data-mobile-tabs='true'] > .govbr-playground__diagnostics--mobile-tabs {
|
|
1915
|
+
display: flex;
|
|
1916
|
+
flex: 1 1 auto;
|
|
1917
|
+
flex-direction: column;
|
|
1918
|
+
min-height: 0;
|
|
1919
|
+
max-height: none;
|
|
1920
|
+
height: auto;
|
|
1921
|
+
overflow: hidden;
|
|
1922
|
+
}
|
|
1923
|
+
.govbr-playground__diagnostics--mobile-tabs > br-tab {
|
|
1924
|
+
display: flex;
|
|
1925
|
+
flex: 1 1 auto;
|
|
1926
|
+
flex-direction: column;
|
|
1927
|
+
min-height: 0;
|
|
1928
|
+
height: 100%;
|
|
1929
|
+
}
|
|
1930
|
+
.govbr-playground__diagnostics--mobile-tabs > .govbr-playground__tool-tabs {
|
|
1931
|
+
flex: 0 0 auto;
|
|
1932
|
+
flex-direction: row;
|
|
1933
|
+
width: 100%;
|
|
1934
|
+
}
|
|
1935
|
+
.govbr-playground__diagnostics--mobile-tabs > br-tab > br-tab-item:not([hidden]) {
|
|
1936
|
+
display: flex;
|
|
1937
|
+
flex: 1 1 auto;
|
|
1938
|
+
flex-direction: column;
|
|
1939
|
+
min-height: 0;
|
|
1940
|
+
}
|
|
1941
|
+
.govbr-playground__diagnostics--mobile-tabs > [role='tabpanel'] {
|
|
1942
|
+
display: flex;
|
|
1943
|
+
flex-direction: column;
|
|
1944
|
+
flex: 1 1 auto;
|
|
1945
|
+
min-height: 0;
|
|
1946
|
+
overflow: auto;
|
|
1947
|
+
}
|
|
1948
|
+
.govbr-playground__diagnostics--mobile-tabs .govbr-playground__bench-preview {
|
|
1949
|
+
display: flex;
|
|
1950
|
+
flex: 1 1 auto;
|
|
1951
|
+
flex-direction: column;
|
|
1952
|
+
min-height: 0;
|
|
1953
|
+
overflow: auto;
|
|
1954
|
+
}
|
|
1955
|
+
.govbr-playground__stacked-divider,
|
|
1956
|
+
.govbr-playground__bench-divider {
|
|
1957
|
+
position: relative;
|
|
1958
|
+
touch-action: none;
|
|
1959
|
+
user-select: none;
|
|
1960
|
+
border-radius: 4px;
|
|
1961
|
+
}
|
|
1962
|
+
.govbr-playground__stacked-divider {
|
|
1963
|
+
cursor: row-resize;
|
|
1964
|
+
background: var(--gp-surface-muted);
|
|
1965
|
+
}
|
|
1966
|
+
.govbr-playground__stacked-divider::after,
|
|
1967
|
+
.govbr-playground__bench-divider::after {
|
|
1968
|
+
content: '';
|
|
1969
|
+
position: absolute;
|
|
1970
|
+
inset: 50% auto auto 50%;
|
|
1971
|
+
width: 3px;
|
|
1972
|
+
height: 36px;
|
|
1973
|
+
transform: translate(-50%, -50%);
|
|
1974
|
+
border-radius: 3px;
|
|
1975
|
+
background: var(--gp-muted);
|
|
1976
|
+
}
|
|
1977
|
+
.govbr-playground__stacked-divider::after,
|
|
1978
|
+
.govbr-playground__bench-divider[aria-orientation='horizontal']::after {
|
|
1979
|
+
width: 36px;
|
|
1980
|
+
height: 3px;
|
|
1981
|
+
}
|
|
1982
|
+
.govbr-playground__stacked-divider:focus-visible,
|
|
1983
|
+
.govbr-playground__bench-divider:focus-visible {
|
|
1984
|
+
outline: 2px solid var(--gp-accent, #1351b4);
|
|
1985
|
+
outline-offset: -2px;
|
|
1986
|
+
}
|
|
1987
|
+
.govbr-playground__bench[data-resizing='true'] iframe {
|
|
1988
|
+
pointer-events: none;
|
|
1989
|
+
}
|
|
1990
|
+
@container workbench (min-width: 700px) {
|
|
1991
|
+
.govbr-playground__workspace > .govbr-playground__bench-main[data-inspector-tabs='true'] {
|
|
1992
|
+
grid-template-columns: minmax(240px, var(--bench-split)) 12px minmax(280px, var(--bench-rest)) !important;
|
|
1993
|
+
grid-template-rows: minmax(0, 1fr) !important;
|
|
1994
|
+
column-gap: 0 !important;
|
|
1995
|
+
}
|
|
1996
|
+
.govbr-playground__bench-main[data-inspector-tabs='true'] > .govbr-playground__bench-divider {
|
|
1997
|
+
display: block !important;
|
|
1998
|
+
grid-area: 1 / 2 !important;
|
|
1999
|
+
cursor: col-resize;
|
|
2000
|
+
}
|
|
2001
|
+
.govbr-playground__bench-main[data-inspector-tabs='true'] > .govbr-playground__bench-properties {
|
|
2002
|
+
grid-area: 1 / 3 !important;
|
|
2003
|
+
padding-inline-start: 0;
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
/* Presentation changes visibility, preserving the live preview node. */
|
|
2008
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__settings-line,
|
|
2009
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__mobile-panels,
|
|
2010
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-properties,
|
|
2011
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-code,
|
|
2012
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-divider,
|
|
2013
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__stacked-divider,
|
|
2014
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer'])
|
|
2015
|
+
.govbr-playground__workspace
|
|
2016
|
+
> .govbr-playground__diagnostics,
|
|
2017
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__example-description,
|
|
2018
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__example-details,
|
|
2019
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__component-title {
|
|
2020
|
+
display: none !important;
|
|
2021
|
+
}
|
|
2022
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__workspace,
|
|
2023
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-main {
|
|
2024
|
+
display: flex !important;
|
|
2025
|
+
flex: 1 1 0;
|
|
2026
|
+
flex-direction: column;
|
|
2027
|
+
min-height: 0;
|
|
2028
|
+
gap: 0;
|
|
2029
|
+
}
|
|
2030
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__bench-preview {
|
|
2031
|
+
display: flex !important;
|
|
2032
|
+
flex: 1 1 0;
|
|
2033
|
+
}
|
|
2034
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__preview-header,
|
|
2035
|
+
.govbr-playground__bench[data-presentation='preview'] .govbr-playground__bench-header {
|
|
2036
|
+
display: none !important;
|
|
2037
|
+
}
|
|
2038
|
+
.govbr-playground__controls .govbr-playground__property-field br-input,
|
|
2039
|
+
.govbr-playground__controls .govbr-playground__property-field br-select {
|
|
2040
|
+
min-inline-size: 0;
|
|
2041
|
+
flex: 1 1 12rem;
|
|
2042
|
+
}
|
|
2043
|
+
.govbr-playground__settings-line > br-select,
|
|
2044
|
+
.govbr-playground__example-line br-select {
|
|
2045
|
+
max-inline-size: 100%;
|
|
2046
|
+
}
|
|
2047
|
+
[data-library='wbc'] .govbr-playground__settings-line > br-select::part(input-label),
|
|
2048
|
+
[data-library='wbc'] .govbr-playground__example-line br-select::part(input-label) {
|
|
2049
|
+
display: none;
|
|
2050
|
+
}
|
|
2051
|
+
[data-library='wbc'] br-tab::part(container) {
|
|
2052
|
+
display: flex;
|
|
2053
|
+
flex: 1 1 auto;
|
|
2054
|
+
flex-direction: column;
|
|
2055
|
+
min-height: 0;
|
|
2056
|
+
min-width: 0;
|
|
2057
|
+
}
|
|
2058
|
+
[data-library='wbc'] br-tab::part(content) {
|
|
2059
|
+
display: flex;
|
|
2060
|
+
flex: 1 1 0;
|
|
2061
|
+
flex-direction: column;
|
|
2062
|
+
min-height: 0;
|
|
2063
|
+
overflow: auto;
|
|
2064
|
+
}
|
|
2065
|
+
[data-library='wbc'] br-tab::part(nav) {
|
|
2066
|
+
flex: 0 0 auto;
|
|
2067
|
+
}
|
|
2068
|
+
.govbr-playground__mobile-panels[hidden] {
|
|
2069
|
+
display: none !important;
|
|
2070
|
+
}
|
|
2071
|
+
@media (pointer: coarse) {
|
|
2072
|
+
}
|
|
2073
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) .govbr-playground__resize {
|
|
2074
|
+
display: none !important;
|
|
2075
|
+
}
|
|
2076
|
+
.govbr-playground__bench[data-presentation]:not([data-presentation='developer']) [aria-label='Área de preview'] {
|
|
2077
|
+
grid-template: minmax(0, 1fr) / minmax(0, 1fr);
|
|
2078
|
+
}
|
|
2079
|
+
@media (pointer: coarse) {
|
|
2080
|
+
}
|
|
2081
|
+
.govbr-playground__workspace > .govbr-playground__bench-main[data-only-preview='true'] {
|
|
2082
|
+
grid-template: minmax(0, 1fr) / minmax(0, 1fr) !important;
|
|
2083
|
+
}
|
|
2084
|
+
.govbr-playground__bench-main[data-only-preview='true'] > .govbr-playground__bench-preview {
|
|
2085
|
+
grid-area: 1 / 1 !important;
|
|
2086
|
+
}
|