@factorialco/fcode-react-forms 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/fcode-form/fcode-form.d.ts +76 -0
- package/dist/components/fcode-form/fcode-form.test.d.ts +6 -0
- package/dist/components/fcode-form/fcode-form.utils.d.ts +17 -0
- package/dist/components/fcode-form/fcode-form.utils.test.d.ts +6 -0
- package/dist/components/fcode-form/index.d.ts +1 -0
- package/dist/components/form-skeleton/form-skeleton.d.ts +13 -0
- package/dist/components/json-schema-form/default-theme/default-theme.test.d.ts +1 -0
- package/dist/components/json-schema-form/default-theme/index.d.ts +19 -0
- package/dist/components/json-schema-form/default-theme/templates/array-field-item-buttons-template.d.ts +8 -0
- package/dist/components/json-schema-form/default-theme/templates/array-field-item-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/array-field-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/button-templates.d.ts +10 -0
- package/dist/components/json-schema-form/default-theme/templates/description-field-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/field-error-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/field-help-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/field-template.d.ts +12 -0
- package/dist/components/json-schema-form/default-theme/templates/index.d.ts +11 -0
- package/dist/components/json-schema-form/default-theme/templates/object-field-template.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/templates/title-field-template.d.ts +7 -0
- package/dist/components/json-schema-form/default-theme/templates/wrap-if-additional-template.d.ts +11 -0
- package/dist/components/json-schema-form/default-theme/widgets/checkbox-widget.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/widgets/checkboxes-widget.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/widgets/index.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/widgets/radio-widget.d.ts +4 -0
- package/dist/components/json-schema-form/default-theme/widgets/textarea-widget.d.ts +4 -0
- package/dist/components/json-schema-form/fcode-json-schema-form.d.ts +18 -0
- package/dist/components/json-schema-form/fields/button-field.d.ts +2 -0
- package/dist/components/json-schema-form/fields/index.d.ts +3 -0
- package/dist/components/json-schema-form/fields/json-field.d.ts +2 -0
- package/dist/components/json-schema-form/fields/source-code-field-editor-theme.json.d.ts +223 -0
- package/dist/components/json-schema-form/fields/source-code-field.d.ts +2 -0
- package/dist/components/json-schema-form/index.d.ts +2 -0
- package/dist/components/json-schema-form/markdown-content.d.ts +2 -0
- package/dist/components/loading-overlay/loading-overlay.d.ts +9 -0
- package/dist/data/embed-form-options-with-i18n.d.ts +3 -0
- package/dist/data/embed-form-options.d.ts +3 -0
- package/dist/data/fcode-form-specs-with-i18n.d.ts +3 -0
- package/dist/data/fcode-form-specs-with-ref-replacements.d.ts +3 -0
- package/dist/data/fcode-form-specs.d.ts +3 -0
- package/dist/data/index.d.ts +9 -0
- package/dist/data/schema-with-i18n.d.ts +3 -0
- package/dist/data/schema-with-ref-replacements.d.ts +3 -0
- package/dist/data/schema.d.ts +3 -0
- package/dist/data/ui-schema.d.ts +3 -0
- package/dist/fcode-form.cjs.js +132 -0
- package/dist/fcode-form.cjs.js.map +1 -0
- package/dist/fcode-form.es.js +30199 -0
- package/dist/fcode-form.es.js.map +1 -0
- package/dist/fcode-form.umd.js +132 -0
- package/dist/fcode-form.umd.js.map +1 -0
- package/dist/hooks/use-form-specs.d.ts +7 -0
- package/dist/hooks/use-form-specs.test.d.ts +1 -0
- package/dist/hooks/use-form-stylesheets.d.ts +10 -0
- package/dist/hooks/use-stylesheets.d.ts +6 -0
- package/dist/hooks/use-stylesheets.test.d.ts +1 -0
- package/dist/hooks/use-submit-form.d.ts +9 -0
- package/dist/hooks/use-submit-form.test.d.ts +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/services/fcode.d.ts +3 -0
- package/dist/services/fcode.test.d.ts +1 -0
- package/dist/styles-theme-light.css +79 -0
- package/dist/styles.css +1519 -0
- package/dist/types.d.ts +75 -0
- package/dist/utils/build-id.d.ts +1 -0
- package/dist/utils/build-id.test.d.ts +1 -0
- package/dist/utils/build-process-url.d.ts +1 -0
- package/dist/utils/build-process-url.test.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/is-valid-url.d.ts +1 -0
- package/dist/utils/is-valid-url.test.d.ts +1 -0
- package/dist/utils/merge-deep.d.ts +1 -0
- package/dist/utils/process-form-specs.d.ts +2 -0
- package/dist/utils/process-form-specs.test.d.ts +1 -0
- package/dist/utils/sanitize-html.d.ts +8 -0
- package/dist/utils/sanitize-html.test.d.ts +1 -0
- package/package.json +97 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,1519 @@
|
|
|
1
|
+
/*
|
|
2
|
+
- reset inherited parent styles
|
|
3
|
+
- wrapper and typo
|
|
4
|
+
- helper classes
|
|
5
|
+
- spacing
|
|
6
|
+
- container
|
|
7
|
+
- row
|
|
8
|
+
- col
|
|
9
|
+
- form resets
|
|
10
|
+
- input defaults
|
|
11
|
+
- focus state
|
|
12
|
+
- readonly state
|
|
13
|
+
- disabled state
|
|
14
|
+
- autocomplete
|
|
15
|
+
- type color
|
|
16
|
+
- type radio/checkbox
|
|
17
|
+
- type file
|
|
18
|
+
- type number
|
|
19
|
+
- form groups
|
|
20
|
+
- form texts
|
|
21
|
+
- fields (object, array, string...)
|
|
22
|
+
- custom checkbox and radio (form-check)
|
|
23
|
+
- custom checkbox (custom-control)
|
|
24
|
+
- custom select
|
|
25
|
+
- datalist
|
|
26
|
+
- json field
|
|
27
|
+
- buttons
|
|
28
|
+
- button primary
|
|
29
|
+
- button danger
|
|
30
|
+
- button light
|
|
31
|
+
- button sizes
|
|
32
|
+
- form control
|
|
33
|
+
- branding
|
|
34
|
+
- overlay
|
|
35
|
+
- skeleton
|
|
36
|
+
- success message
|
|
37
|
+
- error message
|
|
38
|
+
- card
|
|
39
|
+
- alert
|
|
40
|
+
- error list
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/* reset inherited parent styles */
|
|
44
|
+
|
|
45
|
+
@namespace svg 'http://www.w3.org/2000/svg';
|
|
46
|
+
|
|
47
|
+
.fcode-form-wrapper *:not(svg|*),
|
|
48
|
+
.fcode-form-wrapper *:not(svg|*)::before,
|
|
49
|
+
.fcode-form-wrapper *:not(svg|*)::after {
|
|
50
|
+
all: revert;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Wrapper and typo */
|
|
54
|
+
|
|
55
|
+
.fcode-form-wrapper {
|
|
56
|
+
font-family: var(--ycf-form-font-family);
|
|
57
|
+
background-color: var(--ycf-form-background-color);
|
|
58
|
+
border-radius: var(--ycf-form-border-radius);
|
|
59
|
+
border: var(--ycf-form-border-width) solid var(--ycf-form-border-color);
|
|
60
|
+
max-width: var(--ycf-form-max-width);
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
text-align: initial;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (max-width: 991px) {
|
|
66
|
+
.fcode-form-wrapper > .fcode-loading-overlay-root,
|
|
67
|
+
.fcode-form-wrapper > .fcode-form-outer {
|
|
68
|
+
padding: 2rem 1rem;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (min-width: 992px) {
|
|
73
|
+
.fcode-form-wrapper > .fcode-loading-overlay-root,
|
|
74
|
+
.fcode-form-wrapper > .fcode-form-outer {
|
|
75
|
+
padding: 2rem;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.fcode-form h5,
|
|
80
|
+
.fcode-form h5 p {
|
|
81
|
+
margin: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.fcode-form [id^='root_'][id$='__title'] h5 {
|
|
85
|
+
font-family: var(--ycf-form-font-family);
|
|
86
|
+
font-size: var(--ycf-form-title-size);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.fcode-form [id^='root_'][id$='__title'] {
|
|
90
|
+
margin-bottom: var(--ycf-form-title-margin-bottom);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* FIXME after adding a dynamic root id, the #root__title doesn't exists, so we need to fix these selection */
|
|
94
|
+
/*
|
|
95
|
+
.fcode-form [id^='root_'][id$='__title']:not(#root__title) h5 {
|
|
96
|
+
font-family: var(--ycf-form-font-family);
|
|
97
|
+
font-size: var(--ycf-form-group-title-size);
|
|
98
|
+
}
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
.fcode-form [id^='root_'][id$='__title'] h5 + hr {
|
|
102
|
+
background-color: var(--ycf-form-group-title-border-color);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.fcode-form hr {
|
|
106
|
+
margin-top: 1rem;
|
|
107
|
+
margin-bottom: 1rem;
|
|
108
|
+
border: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.fcode-form a {
|
|
112
|
+
color: var(--ycf-link-color);
|
|
113
|
+
text-decoration: underline;
|
|
114
|
+
text-underline-offset: 2px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.fcode-form a:focus-visible {
|
|
118
|
+
outline: solid var(--ycf-field-border-color-focus) !important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.fcode-form em {
|
|
122
|
+
font-style: italic;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.fcode-form strong {
|
|
126
|
+
font-weight: bold;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.fcode-form ul,
|
|
130
|
+
.fcode-form ol {
|
|
131
|
+
padding-left: 1.1rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.fcode-form li + li {
|
|
135
|
+
margin-top: 0.5rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* helper classes */
|
|
139
|
+
|
|
140
|
+
.fcode-form .d-flex {
|
|
141
|
+
display: flex;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.fcode-form .flex-row {
|
|
145
|
+
flex-direction: row;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.fcode-form .align-items-center {
|
|
149
|
+
align-items: center;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.fcode-form .d-none,
|
|
153
|
+
.fcode-form .hidden {
|
|
154
|
+
display: none !important;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.fcode-form .border-0 {
|
|
158
|
+
border: none !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* container */
|
|
162
|
+
|
|
163
|
+
.fcode-form .container-fluid {
|
|
164
|
+
width: 100%;
|
|
165
|
+
padding-right: var(--ycf-base-x-spacing);
|
|
166
|
+
padding-left: var(--ycf-base-x-spacing);
|
|
167
|
+
margin-right: auto;
|
|
168
|
+
margin-left: auto;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.fcode-form .container {
|
|
172
|
+
width: 100%;
|
|
173
|
+
padding-right: var(--ycf-base-x-spacing);
|
|
174
|
+
padding-left: var(--ycf-base-x-spacing);
|
|
175
|
+
margin-right: auto;
|
|
176
|
+
margin-left: auto;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@media (min-width: 576px) {
|
|
180
|
+
.fcode-form .container {
|
|
181
|
+
max-width: 540px;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@media (min-width: 768px) {
|
|
186
|
+
.fcode-form .container {
|
|
187
|
+
max-width: 720px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@media (min-width: 992px) {
|
|
192
|
+
.fcode-form .container {
|
|
193
|
+
max-width: 960px;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (min-width: 1200px) {
|
|
198
|
+
.fcode-form .container {
|
|
199
|
+
max-width: 1140px;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* spacing */
|
|
204
|
+
|
|
205
|
+
.fcode-form .m-0 {
|
|
206
|
+
margin: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.fcode-form .my-1 {
|
|
210
|
+
margin-top: 0.25rem;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.fcode-form .mt-2 {
|
|
214
|
+
margin-top: 0.5rem;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.fcode-form .mb-2 {
|
|
218
|
+
margin-bottom: 0.5rem;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.fcode-form .mb-3 {
|
|
222
|
+
margin-bottom: 0.75rem;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.fcode-form .mb-4 {
|
|
226
|
+
margin-bottom: 1rem;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.fcode-form .ml-1 {
|
|
230
|
+
margin-left: 0.25rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.fcode-form .p-0 {
|
|
234
|
+
padding: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.fcode-form .py-4 {
|
|
238
|
+
padding-block: 1.5rem;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* row */
|
|
242
|
+
|
|
243
|
+
body .fcode-form .row {
|
|
244
|
+
display: flex;
|
|
245
|
+
flex-wrap: wrap;
|
|
246
|
+
margin-left: 0 !important;
|
|
247
|
+
margin-right: 0 !important;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* col */
|
|
251
|
+
|
|
252
|
+
.fcode-form .col {
|
|
253
|
+
-ms-flex-preferred-size: 0;
|
|
254
|
+
flex-basis: 0;
|
|
255
|
+
-webkit-box-flex: 1;
|
|
256
|
+
-ms-flex-positive: 1;
|
|
257
|
+
flex-grow: 1;
|
|
258
|
+
max-width: 100%;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.fcode-form .col-3,
|
|
262
|
+
.fcode-form .col-9,
|
|
263
|
+
.fcode-form .col-12,
|
|
264
|
+
.fcode-form .col,
|
|
265
|
+
.fcode-form .col-auto,
|
|
266
|
+
.fcode-form .col-lg-3,
|
|
267
|
+
.fcode-form .col-lg-9 {
|
|
268
|
+
position: relative;
|
|
269
|
+
width: 100%;
|
|
270
|
+
min-height: 1px;
|
|
271
|
+
padding-right: var(--ycf-base-x-spacing);
|
|
272
|
+
padding-left: var(--ycf-base-x-spacing);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.fcode-form .col-3 {
|
|
276
|
+
-webkit-box-flex: 0;
|
|
277
|
+
-ms-flex: 0 0 25%;
|
|
278
|
+
flex: 0 0 25%;
|
|
279
|
+
max-width: 25%;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.fcode-form .col-9 {
|
|
283
|
+
-webkit-box-flex: 0;
|
|
284
|
+
-ms-flex: 0 0 75%;
|
|
285
|
+
flex: 0 0 75%;
|
|
286
|
+
max-width: 75%;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.fcode-form .col-12 {
|
|
290
|
+
-webkit-box-flex: 0;
|
|
291
|
+
-ms-flex: 0 0 100%;
|
|
292
|
+
flex: 0 0 100%;
|
|
293
|
+
max-width: 100%;
|
|
294
|
+
padding-left: 0 !important;
|
|
295
|
+
padding-right: 0 !important;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@media (min-width: 992px) {
|
|
299
|
+
.fcode-form .col-lg {
|
|
300
|
+
-ms-flex-preferred-size: 0;
|
|
301
|
+
flex-basis: 0;
|
|
302
|
+
-webkit-box-flex: 1;
|
|
303
|
+
-ms-flex-positive: 1;
|
|
304
|
+
flex-grow: 1;
|
|
305
|
+
max-width: 100%;
|
|
306
|
+
}
|
|
307
|
+
.fcode-form .col-lg-3 {
|
|
308
|
+
-webkit-box-flex: 0;
|
|
309
|
+
-ms-flex: 0 0 25%;
|
|
310
|
+
flex: 0 0 25%;
|
|
311
|
+
max-width: 25%;
|
|
312
|
+
}
|
|
313
|
+
.fcode-form .col-lg-9 {
|
|
314
|
+
-webkit-box-flex: 0;
|
|
315
|
+
-ms-flex: 0 0 75%;
|
|
316
|
+
flex: 0 0 75%;
|
|
317
|
+
max-width: 75%;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* form resets */
|
|
322
|
+
|
|
323
|
+
.fcode-form * {
|
|
324
|
+
box-sizing: border-box;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.fcode-form input,
|
|
328
|
+
.fcode-form button,
|
|
329
|
+
.fcode-form select,
|
|
330
|
+
.fcode-form optgroup,
|
|
331
|
+
.fcode-form textarea {
|
|
332
|
+
margin: 0;
|
|
333
|
+
font-family: inherit;
|
|
334
|
+
font-size: inherit;
|
|
335
|
+
line-height: inherit;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.fcode-form button,
|
|
339
|
+
.fcode-form input {
|
|
340
|
+
overflow: visible;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.fcode-form button,
|
|
344
|
+
.fcode-form select {
|
|
345
|
+
text-transform: none;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.fcode-form button:focus {
|
|
349
|
+
outline: 1px dotted;
|
|
350
|
+
outline: 5px auto -webkit-focus-ring-color;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.fcode-form button,
|
|
354
|
+
.fcode-form [type='button'],
|
|
355
|
+
.fcode-form [type='reset'],
|
|
356
|
+
.fcode-form [type='submit'] {
|
|
357
|
+
appearance: button;
|
|
358
|
+
-webkit-appearance: button;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.fcode-form button::-moz-focus-inner,
|
|
362
|
+
.fcode-form [type='button']::-moz-focus-inner,
|
|
363
|
+
.fcode-form [type='reset']::-moz-focus-inner,
|
|
364
|
+
.fcode-form [type='submit']::-moz-focus-inner {
|
|
365
|
+
padding: 0;
|
|
366
|
+
border-style: none;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.fcode-form ::-webkit-file-upload-button {
|
|
370
|
+
font: inherit;
|
|
371
|
+
-webkit-appearance: button;
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/* input defaults */
|
|
376
|
+
|
|
377
|
+
.fcode-form input[type='text'],
|
|
378
|
+
.fcode-form input[type='number'],
|
|
379
|
+
.fcode-form input[type='password'],
|
|
380
|
+
.fcode-form input[type='email'],
|
|
381
|
+
.fcode-form select,
|
|
382
|
+
.fcode-form textarea {
|
|
383
|
+
display: block;
|
|
384
|
+
width: 100%;
|
|
385
|
+
padding: 0.375rem 0.75rem;
|
|
386
|
+
font-size: 1rem;
|
|
387
|
+
font-weight: 400;
|
|
388
|
+
line-height: 1.5;
|
|
389
|
+
color: var(--ycf-field-text-color);
|
|
390
|
+
background-color: var(--ycf-field-background-color);
|
|
391
|
+
background-clip: padding-box;
|
|
392
|
+
border: var(--ycf-field-border-width) solid var(--ycf-field-border-color);
|
|
393
|
+
border-radius: var(--ycf-field-border-radius);
|
|
394
|
+
transition: border-color 0.15s ease-in-out;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.fcode-form textarea {
|
|
398
|
+
resize: vertical;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* focus state */
|
|
402
|
+
|
|
403
|
+
.fcode-form input[type='text']:focus,
|
|
404
|
+
.fcode-form input[type='number']:focus,
|
|
405
|
+
.fcode-form input[type='password']:focus,
|
|
406
|
+
.fcode-form input[type='email']:focus,
|
|
407
|
+
.fcode-form input[type='color']:focus,
|
|
408
|
+
.fcode-form select:focus,
|
|
409
|
+
.fcode-form textarea:focus {
|
|
410
|
+
border-color: var(--ycf-field-border-color-focus);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/* readonly state */
|
|
414
|
+
|
|
415
|
+
.fcode-form input[type='text']:read-only,
|
|
416
|
+
.fcode-form input[type='number']:read-only,
|
|
417
|
+
.fcode-form input[type='password']:read-only,
|
|
418
|
+
.fcode-form input[type='email']:read-only,
|
|
419
|
+
.fcode-form input[type='color']:read-only,
|
|
420
|
+
.fcode-form select:read-only,
|
|
421
|
+
.fcode-form textarea:read-only {
|
|
422
|
+
border-color: var(--ycf-field-border-color) !important;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/* disabled state */
|
|
426
|
+
|
|
427
|
+
input[disabled],
|
|
428
|
+
textarea[disabled] {
|
|
429
|
+
background-color: inherit !important;
|
|
430
|
+
pointer-events: none;
|
|
431
|
+
color: var(--ycf-light-text-color) !important;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* autocomplete */
|
|
435
|
+
|
|
436
|
+
input:-webkit-autofill,
|
|
437
|
+
input:-webkit-autofill:hover,
|
|
438
|
+
input:-webkit-autofill:focus {
|
|
439
|
+
-webkit-box-shadow: 0 0 0 50px var(--ycf-field-background-color) inset !important;
|
|
440
|
+
-webkit-text-fill-color: var(--ycf-field-text-color) !important;
|
|
441
|
+
font-size: 1rem !important;
|
|
442
|
+
border-radius: var(--ycf-field-border-radius);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* type color */
|
|
446
|
+
|
|
447
|
+
.fcode-form input[type='color'] {
|
|
448
|
+
width: 100px;
|
|
449
|
+
height: calc(1.5em + 0.75rem + 2px);
|
|
450
|
+
padding: 0.375rem 0.75rem;
|
|
451
|
+
border: var(--ycf-field-border-width) solid var(--ycf-field-border-color);
|
|
452
|
+
border-radius: var(--ycf-field-border-radius);
|
|
453
|
+
background-color: var(--ycf-field-background-color);
|
|
454
|
+
transition: border-color 0.15s ease-in-out;
|
|
455
|
+
cursor: pointer;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/* type radio/checkbox */
|
|
459
|
+
|
|
460
|
+
.fcode-form input[type='radio'],
|
|
461
|
+
.fcode-form input[type='checkbox'] {
|
|
462
|
+
display: initial;
|
|
463
|
+
opacity: 0;
|
|
464
|
+
pointer-events: none;
|
|
465
|
+
box-sizing: border-box;
|
|
466
|
+
padding: 0;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/* type file */
|
|
470
|
+
|
|
471
|
+
.fcode-form input[type='file'] {
|
|
472
|
+
background-color: var(--ycf-field-background-color);
|
|
473
|
+
border: var(--ycf-field-border-width) solid var(--ycf-field-border-color) !important;
|
|
474
|
+
border-radius: var(--ycf-field-border-radius);
|
|
475
|
+
padding: 0.375rem 0.75rem !important;
|
|
476
|
+
cursor: pointer;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.fcode-form input[type='file']::file-selector-button {
|
|
480
|
+
appearance: none;
|
|
481
|
+
padding: 0.375rem 0.75rem;
|
|
482
|
+
border: 0;
|
|
483
|
+
border-radius: var(--ycf-button-border-radius);
|
|
484
|
+
background-color: var(--ycf-button-primary-background-color);
|
|
485
|
+
color: var(--ycf-button-primary-text-color);
|
|
486
|
+
margin-right: 0.75rem;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.fcode-form input[type='file'][disabled]::file-selector-button {
|
|
490
|
+
opacity: 0.65;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.fcode-form input[type='file']::file-selector-button:hover {
|
|
494
|
+
background-color: var(--ycf-button-primary-background-color-hover);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.fcode-form input[type='file']:focus-visible {
|
|
498
|
+
border-color: var(--ycf-field-border-color-focus) !important;
|
|
499
|
+
outline: 0;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/* type number */
|
|
503
|
+
|
|
504
|
+
input[type='number']::-webkit-outer-spin-button,
|
|
505
|
+
input[type='number']::-webkit-inner-spin-button {
|
|
506
|
+
-webkit-appearance: none;
|
|
507
|
+
margin: 0;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
input[type='number'] {
|
|
511
|
+
-moz-appearance: textfield;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/* form groups */
|
|
515
|
+
|
|
516
|
+
.fcode-form .form-group {
|
|
517
|
+
margin-bottom: 1rem;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.fcode-form .input-group {
|
|
521
|
+
position: relative;
|
|
522
|
+
display: -webkit-box;
|
|
523
|
+
display: -ms-flexbox;
|
|
524
|
+
display: flex;
|
|
525
|
+
-ms-flex-wrap: wrap;
|
|
526
|
+
flex-wrap: wrap;
|
|
527
|
+
-webkit-box-align: stretch;
|
|
528
|
+
-ms-flex-align: stretch;
|
|
529
|
+
align-items: stretch;
|
|
530
|
+
width: 100%;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/* form texts */
|
|
534
|
+
|
|
535
|
+
.fcode-form .form-text {
|
|
536
|
+
margin-top: 0.25rem;
|
|
537
|
+
font-size: 80%;
|
|
538
|
+
color: var(--ycf-field-helper-text-color);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.fcode-form .text-muted {
|
|
542
|
+
color: var(--ycf-field-helper-text-color) !important;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.fcode-form .form-label {
|
|
546
|
+
display: inline-block;
|
|
547
|
+
margin-bottom: 0.75rem;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/* fields (object, array, string...)
|
|
551
|
+
*
|
|
552
|
+
* RJSF 6 prefixes its marker classes with `rjsf-` (`field-array` ->
|
|
553
|
+
* `rjsf-field-array`). Both spellings are matched so one stylesheet can serve
|
|
554
|
+
* embedders that still run an RJSF 5 build of the form package. The unprefixed
|
|
555
|
+
* selectors can go once every embedder has upgraded. */
|
|
556
|
+
|
|
557
|
+
.fcode-form .field,
|
|
558
|
+
.fcode-form .rjsf-field {
|
|
559
|
+
display: block;
|
|
560
|
+
width: 100%;
|
|
561
|
+
font-size: 1rem;
|
|
562
|
+
line-height: 1;
|
|
563
|
+
color: var(--ycf-field-text-color);
|
|
564
|
+
background-clip: padding-box;
|
|
565
|
+
border-radius: 0.25rem;
|
|
566
|
+
transition: border-color 0 0.15s ease-in-out;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.fcode-form .field-object,
|
|
570
|
+
.fcode-form .field-array,
|
|
571
|
+
.fcode-form .rjsf-field-object,
|
|
572
|
+
.fcode-form .rjsf-field-array {
|
|
573
|
+
margin-bottom: 1rem;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.fcode-form .field-string,
|
|
577
|
+
.fcode-form .field-integer,
|
|
578
|
+
.fcode-form .field-number,
|
|
579
|
+
.fcode-form .rjsf-field-string,
|
|
580
|
+
.fcode-form .rjsf-field-integer,
|
|
581
|
+
.fcode-form .rjsf-field-number {
|
|
582
|
+
resize: vertical;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.fcode-form .field-boolean,
|
|
586
|
+
.fcode-form .rjsf-field-boolean {
|
|
587
|
+
display: inline-block;
|
|
588
|
+
margin-right: 0.5rem;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/* Field array arrange buttons */
|
|
592
|
+
|
|
593
|
+
.fcode-form .field-array .col-lg-9.col-9::after,
|
|
594
|
+
.fcode-form .rjsf-field-array .col-lg-9.col-9::after {
|
|
595
|
+
content: '';
|
|
596
|
+
position: absolute;
|
|
597
|
+
right: 0;
|
|
598
|
+
top: 0;
|
|
599
|
+
height: 100%;
|
|
600
|
+
border-right: 1px solid var(--ycf-field-border-color);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.fcode-form .field-array .form-group .d-flex div.m-0.p-0 + div.m-0.p-0,
|
|
604
|
+
.fcode-form .rjsf-field-array .form-group .d-flex div.m-0.p-0 + div.m-0.p-0 {
|
|
605
|
+
margin-left: 0.25rem !important;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
/* custom checkbox and radio (form-check) */
|
|
609
|
+
|
|
610
|
+
.fcode-form .form-check {
|
|
611
|
+
position: relative;
|
|
612
|
+
display: block;
|
|
613
|
+
padding-left: 1.75rem;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.fcode-form .form-check + .form-check {
|
|
617
|
+
margin-top: 0.75rem;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.fcode-form .form-check-input {
|
|
621
|
+
position: absolute;
|
|
622
|
+
display: none;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.fcode-form .form-check-label {
|
|
626
|
+
display: flex;
|
|
627
|
+
align-items: center;
|
|
628
|
+
cursor: pointer;
|
|
629
|
+
margin-bottom: 0;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.fcode-form .form-check-label::before,
|
|
633
|
+
.fcode-form .form-check-label::after {
|
|
634
|
+
content: '';
|
|
635
|
+
position: absolute;
|
|
636
|
+
left: 0;
|
|
637
|
+
display: block;
|
|
638
|
+
width: 1rem;
|
|
639
|
+
height: 1rem;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.fcode-form .form-check-input[type='checkbox'] ~ .form-check-label::before,
|
|
643
|
+
.fcode-form .form-check-input[type='checkbox'] ~ .form-check-label::after {
|
|
644
|
+
border-radius: var(--ycf-boolean-field-border-radius) !important;
|
|
645
|
+
top: 0;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.fcode-form .form-check-input[type='radio'] ~ .form-check-label::before,
|
|
649
|
+
.fcode-form .form-check-input[type='radio'] ~ .form-check-label::after {
|
|
650
|
+
border-radius: 50%;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.fcode-form .form-check-label::before {
|
|
654
|
+
pointer-events: none;
|
|
655
|
+
user-select: none;
|
|
656
|
+
background-color: var(--ycf-boolean-field-background-color);
|
|
657
|
+
border: var(--ycf-field-border-width) solid
|
|
658
|
+
var(--ycf-boolean-field-border-color);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.fcode-form .form-check-input:focus-visible ~ .form-check-label::before {
|
|
662
|
+
outline: 0;
|
|
663
|
+
box-shadow: var(--ycf-form-background-color) 0 0 0 2px,
|
|
664
|
+
var(--ycf-field-border-color-focus) 0 0 0 4px, rgba(0, 0, 0, 0) 0 0 0 0;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.fcode-form .form-check-input:checked ~ .form-check-label::before {
|
|
668
|
+
border-color: var(--ycf-field-border-color-focus);
|
|
669
|
+
background-color: var(--ycf-boolean-field-background-color-checked);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.fcode-form
|
|
673
|
+
.form-check-input[type='radio']:checked
|
|
674
|
+
~ .form-check-label::after {
|
|
675
|
+
background-image: url('data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNMjU2IDhDMTE5IDggOCAxMTkgOCAyNTZzMTExIDI0OCAyNDggMjQ4IDI0OC0xMTEgMjQ4LTI0OFMzOTMgOCAyNTYgOHoiLz48L3N2Zz4=');
|
|
676
|
+
background-repeat: no-repeat;
|
|
677
|
+
background-position: center center;
|
|
678
|
+
background-size: 6px;
|
|
679
|
+
border: 1px solid transparent;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.fcode-form
|
|
683
|
+
.form-check-input[type='checkbox']:checked
|
|
684
|
+
~ .form-check-label::after {
|
|
685
|
+
top: 0;
|
|
686
|
+
border: var(--ycf-field-border-width) solid
|
|
687
|
+
var(--ycf-field-border-color-focus);
|
|
688
|
+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
|
|
689
|
+
background-repeat: no-repeat;
|
|
690
|
+
background-position: center center;
|
|
691
|
+
background-size: 50%;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.fcode-form .form-check-input:disabled:checked ~ .form-check-label::before {
|
|
695
|
+
opacity: 0.4;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.fcode-form .form-check-input:disabled ~ .form-check-label {
|
|
699
|
+
color: var(--ycf-light-text-color) !important;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/* custom checkbox (custom-control) */
|
|
703
|
+
|
|
704
|
+
.fcode-form .custom-control {
|
|
705
|
+
position: relative;
|
|
706
|
+
display: flex;
|
|
707
|
+
align-items: center;
|
|
708
|
+
padding-left: 1.75rem;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.fcode-form .custom-control-input {
|
|
712
|
+
position: absolute;
|
|
713
|
+
z-index: -1;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.fcode-form
|
|
717
|
+
.custom-checkbox
|
|
718
|
+
.custom-control-input:checked
|
|
719
|
+
~ .custom-control-label::after {
|
|
720
|
+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.fcode-form
|
|
724
|
+
.custom-checkbox
|
|
725
|
+
.custom-control-input:disabled
|
|
726
|
+
~ .custom-control-label {
|
|
727
|
+
color: var(--ycf-light-text-color) !important;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.fcode-form .custom-checkbox + .custom-checkbox {
|
|
731
|
+
margin-top: 0.75rem;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.fcode-form .custom-control-label {
|
|
735
|
+
cursor: pointer;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.fcode-form .custom-control-label::before,
|
|
739
|
+
.fcode-form .custom-control-label::after {
|
|
740
|
+
content: '';
|
|
741
|
+
position: absolute;
|
|
742
|
+
left: 0;
|
|
743
|
+
display: block;
|
|
744
|
+
width: 1rem;
|
|
745
|
+
height: 1rem;
|
|
746
|
+
border-radius: var(--ycf-boolean-field-border-radius) !important;
|
|
747
|
+
border-width: var(--ycf-field-border-width);
|
|
748
|
+
border-style: solid;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.fcode-form .custom-control-label::after {
|
|
752
|
+
top: 0 !important;
|
|
753
|
+
left: 0 !important;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.fcode-form .custom-checkbox label::before {
|
|
757
|
+
border-color: transparent;
|
|
758
|
+
pointer-events: none;
|
|
759
|
+
user-select: none;
|
|
760
|
+
background-color: var(--ycf-boolean-field-background-color);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
.fcode-form .custom-checkbox label::after {
|
|
764
|
+
border-color: var(--ycf-boolean-field-border-color);
|
|
765
|
+
background-repeat: no-repeat;
|
|
766
|
+
background-position: center center;
|
|
767
|
+
background-size: 50% 50%;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.fcode-form .custom-checkbox input:focus-visible ~ label::after {
|
|
771
|
+
outline: 0;
|
|
772
|
+
box-shadow: var(--ycf-form-background-color) 0 0 0 2px,
|
|
773
|
+
var(--ycf-field-border-color-focus) 0 0 0 4px, rgba(0, 0, 0, 0) 0 0 0 0;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.fcode-form .custom-checkbox input:checked ~ label::after {
|
|
777
|
+
border-color: var(--ycf-field-border-color-focus);
|
|
778
|
+
background-color: var(
|
|
779
|
+
--ycf-boolean-field-background-color-checked
|
|
780
|
+
) !important;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
/* select
|
|
784
|
+
*
|
|
785
|
+
* RJSF's select widget renders `select.form-control`; `.custom-select` is the
|
|
786
|
+
* class the Bootstrap 4 themed build emitted and is kept so this stylesheet also
|
|
787
|
+
* styles embedders still running that build. */
|
|
788
|
+
|
|
789
|
+
.fcode-form .custom-select,
|
|
790
|
+
.fcode-form select.form-control {
|
|
791
|
+
cursor: pointer;
|
|
792
|
+
display: inline-block;
|
|
793
|
+
width: 100%;
|
|
794
|
+
height: calc(2.25rem + 2px);
|
|
795
|
+
padding: 0.375rem 1.75rem 0.375rem 0.75rem;
|
|
796
|
+
line-height: 1.5;
|
|
797
|
+
color: var(--ycf-field-text-color);
|
|
798
|
+
vertical-align: middle;
|
|
799
|
+
background: var(--ycf-field-background-color)
|
|
800
|
+
url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBpZD0iNTJjNjg4YzIiPgogICAgPHBhdGggaWQ9ImJjNGNhYjg0IiBkPSJNMTkgOUwxMiAxNkw1IDkiIHN0cm9rZT0iIzg4ODg4OCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvcGF0aD4KICA8L2c+Cjwvc3ZnPg==')
|
|
801
|
+
no-repeat right 0.75rem center;
|
|
802
|
+
background-size: 1rem;
|
|
803
|
+
border: var(--ycf-field-border-width) solid var(--ycf-field-border-color);
|
|
804
|
+
border-radius: var(--ycf-field-border-radius);
|
|
805
|
+
-webkit-appearance: none;
|
|
806
|
+
-moz-appearance: none;
|
|
807
|
+
appearance: none;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.fcode-form .custom-select:focus,
|
|
811
|
+
.fcode-form select.form-control:focus {
|
|
812
|
+
border-color: var(--ycf-field-border-color-focus);
|
|
813
|
+
outline: 0;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.fcode-form .custom-select:focus::-ms-value,
|
|
817
|
+
.fcode-form select.form-control:focus::-ms-value {
|
|
818
|
+
color: var(--ycf-field-text-color);
|
|
819
|
+
background-color: var(--ycf-field-background-color);
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.fcode-form .custom-select:disabled,
|
|
823
|
+
.fcode-form select.form-control:disabled {
|
|
824
|
+
color: var(--ycf-light-text-color);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/* datalist */
|
|
828
|
+
|
|
829
|
+
.fcode-form input::-webkit-calendar-picker-indicator {
|
|
830
|
+
display: none !important;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/* json Field */
|
|
834
|
+
|
|
835
|
+
.fcode-form .text-danger {
|
|
836
|
+
color: var(--ycf-danger-color);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.fcode-form .text-danger a {
|
|
840
|
+
color: inherit;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.fcode-form .field-error.has-error.has-danger .form-control:focus,
|
|
844
|
+
.fcode-form .rjsf-field-error.has-error.has-danger .form-control:focus {
|
|
845
|
+
border-color: var(--ycf-danger-color);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.fcode-form .field-error.has-error.has-danger .list-group,
|
|
849
|
+
.fcode-form .rjsf-field-error.has-error.has-danger .list-group {
|
|
850
|
+
padding: 0;
|
|
851
|
+
margin-top: 0.25rem;
|
|
852
|
+
margin-left: 0.25rem;
|
|
853
|
+
font-size: 1rem;
|
|
854
|
+
line-height: 1.5;
|
|
855
|
+
font-weight: 400;
|
|
856
|
+
list-style: none;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.fcode-form .root {
|
|
860
|
+
display: flex;
|
|
861
|
+
flex-direction: column;
|
|
862
|
+
margin-bottom: 10px;
|
|
863
|
+
position: relative;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
.fcode-form .fcode-field-json .wrapper {
|
|
867
|
+
position: relative;
|
|
868
|
+
overflow: hidden;
|
|
869
|
+
flex: 1;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.fcode-form .fcode-field-json .textarea,
|
|
873
|
+
.fcode-form .fcode-field-json .shadow {
|
|
874
|
+
font-family: var(--ycf-form-font-family-monospace);
|
|
875
|
+
white-space: pre;
|
|
876
|
+
padding: 0.375rem 0.75rem;
|
|
877
|
+
line-height: 1.5;
|
|
878
|
+
font-size: 0.938rem;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.fcode-form .fcode-field-json .textarea {
|
|
882
|
+
position: absolute;
|
|
883
|
+
top: 0;
|
|
884
|
+
left: 0;
|
|
885
|
+
height: 100%;
|
|
886
|
+
width: 100% !important;
|
|
887
|
+
resize: none;
|
|
888
|
+
overflow: hidden;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
.fcode-form .fcode-field-json .shadow {
|
|
892
|
+
width: 100%;
|
|
893
|
+
pointer-events: none;
|
|
894
|
+
opacity: 0;
|
|
895
|
+
overflow: hidden;
|
|
896
|
+
min-height: calc(2.25rem + calc(var(--ycf-field-border-width) * 2));
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/* buttons */
|
|
900
|
+
|
|
901
|
+
.fcode-form .btn {
|
|
902
|
+
display: inline-flex;
|
|
903
|
+
align-items: center;
|
|
904
|
+
justify-content: center;
|
|
905
|
+
font-weight: 400;
|
|
906
|
+
text-align: center;
|
|
907
|
+
white-space: nowrap;
|
|
908
|
+
vertical-align: middle;
|
|
909
|
+
user-select: none;
|
|
910
|
+
border: 1px solid transparent;
|
|
911
|
+
padding: 0.375rem 0.75rem;
|
|
912
|
+
font-size: 1rem;
|
|
913
|
+
line-height: 1.5;
|
|
914
|
+
border-radius: var(--ycf-button-border-radius);
|
|
915
|
+
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
|
|
916
|
+
border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
.fcode-form .btn:hover,
|
|
920
|
+
.fcode-form .btn:focus {
|
|
921
|
+
text-decoration: none;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.fcode-form .btn:focus,
|
|
925
|
+
.fcode-form .btn.focus {
|
|
926
|
+
outline: 0;
|
|
927
|
+
box-shadow: 0 0 0 0.2rem var(--ycf-button-primary-focus-visible-color);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
.fcode-form .btn.disabled,
|
|
931
|
+
.fcode-form .btn:disabled {
|
|
932
|
+
opacity: 0.65;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
.fcode-form .btn:not(:disabled):not(.disabled) {
|
|
936
|
+
cursor: pointer;
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/* button primary */
|
|
940
|
+
|
|
941
|
+
.fcode-form .btn-primary {
|
|
942
|
+
color: var(--ycf-button-primary-text-color);
|
|
943
|
+
background-color: var(--ycf-button-primary-background-color);
|
|
944
|
+
border-color: var(--ycf-button-primary-border-color);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.fcode-form .btn-primary:hover {
|
|
948
|
+
color: var(--ycf-button-primary-text-color);
|
|
949
|
+
background-color: var(--ycf-button-primary-background-color-hover);
|
|
950
|
+
border-color: var(--ycf-button-primary-border-color-hover);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.fcode-form .btn-primary:focus,
|
|
954
|
+
.fcode-form .btn-primary.focus {
|
|
955
|
+
box-shadow: 0 0 0 0.2rem var(--ycf-button-primary-focus-visible-color);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.fcode-form .btn-primary.disabled,
|
|
959
|
+
.fcode-form .btn-primary:disabled {
|
|
960
|
+
color: var(--ycf-button-primary-text-color);
|
|
961
|
+
background-color: var(--ycf-button-primary-background-color-disabled);
|
|
962
|
+
border-color: var(--ycf-button-primary-border-color-disabled);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/* button danger */
|
|
966
|
+
|
|
967
|
+
.fcode-form .btn-danger {
|
|
968
|
+
color: var(--ycf-button-danger-text-color);
|
|
969
|
+
background-color: var(--ycf-button-danger-background-color);
|
|
970
|
+
border-color: var(--ycf-button-danger-border-color);
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.fcode-form .btn-danger:hover {
|
|
974
|
+
color: var(--ycf-button-danger-text-color);
|
|
975
|
+
background-color: var(--ycf-button-danger-background-color-hover);
|
|
976
|
+
border-color: var(--ycf-button-danger-border-color-hover);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.fcode-form .btn-danger:focus,
|
|
980
|
+
.fcode-form .btn-danger.focus {
|
|
981
|
+
box-shadow: 0 0 0 0.2rem var(--ycf-button-danger-focus-visible-color);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
.fcode-form .btn-danger.disabled,
|
|
985
|
+
.fcode-form .btn-danger:disabled {
|
|
986
|
+
color: var(--ycf-button-danger-text-color);
|
|
987
|
+
background-color: var(--ycf-button-danger-background-color-disabled);
|
|
988
|
+
border-color: var(--ycf-button-danger-border-color-disabled);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
/* button light */
|
|
992
|
+
|
|
993
|
+
.fcode-form .btn-light {
|
|
994
|
+
color: var(--ycf-button-light-text-color);
|
|
995
|
+
background-color: var(--ycf-button-light-background-color);
|
|
996
|
+
border-color: var(--ycf-button-light-border-color);
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.fcode-form .btn-light:hover {
|
|
1000
|
+
color: var(--ycf-button-light-text-color);
|
|
1001
|
+
background-color: var(--ycf-button-light-background-color-hover);
|
|
1002
|
+
border-color: var(--ycf-button-light-border-color-hover);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
.fcode-form .btn-light:focus,
|
|
1006
|
+
.fcode-form .btn-light.focus {
|
|
1007
|
+
box-shadow: 0 0 0 0.2rem var(--ycf-button-primary-focus-visible-color);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.fcode-form .btn-light.disabled,
|
|
1011
|
+
.fcode-form .btn-light:disabled {
|
|
1012
|
+
color: var(--ycf-button-light-text-color);
|
|
1013
|
+
background-color: var(--ycf-button-light-background-color-disabled);
|
|
1014
|
+
border-color: var(--ycf-button-light-border-color-disabled);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/* button sizes */
|
|
1018
|
+
|
|
1019
|
+
.fcode-form .btn-sm,
|
|
1020
|
+
.fcode-form .btn-group-sm > .btn {
|
|
1021
|
+
padding: 0.25rem 0.5rem;
|
|
1022
|
+
font-size: 0.875rem;
|
|
1023
|
+
line-height: 1.5;
|
|
1024
|
+
border-radius: 0.2rem;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/* form control */
|
|
1028
|
+
|
|
1029
|
+
.fcode-form .form-control {
|
|
1030
|
+
display: block;
|
|
1031
|
+
width: 100%;
|
|
1032
|
+
padding: 0.375rem 0.75rem;
|
|
1033
|
+
font-size: 1rem;
|
|
1034
|
+
line-height: 1.5;
|
|
1035
|
+
color: var(--ycf-field-text-color);
|
|
1036
|
+
background-color: var(--ycf-field-background-color);
|
|
1037
|
+
background-clip: padding-box;
|
|
1038
|
+
border: var(--ycf-field-border-width) solid var(--ycf-field-border-color);
|
|
1039
|
+
border-radius: var(--ycf-field-border-radius);
|
|
1040
|
+
transition: border-color 0.15s ease-in-out;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.fcode-form .form-control::-ms-expand {
|
|
1044
|
+
background-color: transparent;
|
|
1045
|
+
border: 0;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
.fcode-form .form-control:focus {
|
|
1049
|
+
color: var(--ycf-field-text-color);
|
|
1050
|
+
background-color: var(--ycf-field-background-color);
|
|
1051
|
+
border-color: var(--ycf-field-border-color-focus);
|
|
1052
|
+
outline: 0;
|
|
1053
|
+
box-shadow: none;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
.fcode-form .form-control::-webkit-input-placeholder {
|
|
1057
|
+
color: var(--ycf-field-placeholder-color);
|
|
1058
|
+
opacity: 1;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.fcode-form .form-control::-moz-placeholder {
|
|
1062
|
+
color: var(--ycf-field-placeholder-color);
|
|
1063
|
+
opacity: 1;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
.fcode-form .form-control:-ms-input-placeholder {
|
|
1067
|
+
color: var(--ycf-field-placeholder-color);
|
|
1068
|
+
opacity: 1;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
.fcode-form .form-control::-ms-input-placeholder {
|
|
1072
|
+
color: var(--ycf-field-placeholder-color);
|
|
1073
|
+
opacity: 1;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
.fcode-form .form-control::placeholder {
|
|
1077
|
+
color: var(--ycf-field-placeholder-color);
|
|
1078
|
+
opacity: 1;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
.fcode-form .form-control-file,
|
|
1082
|
+
.fcode-form .form-control-range {
|
|
1083
|
+
display: block;
|
|
1084
|
+
width: 100%;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/* source code editor exception */
|
|
1088
|
+
|
|
1089
|
+
.fcode-form .fcode-field-sourceCode .form-control {
|
|
1090
|
+
padding: 0rem 0rem;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/* overlay */
|
|
1094
|
+
|
|
1095
|
+
.fcode-loading-overlay-root {
|
|
1096
|
+
position: relative;
|
|
1097
|
+
font-family: var(--ycf-form-font-family);
|
|
1098
|
+
background-color: var(--ycf-form-background-color);
|
|
1099
|
+
max-width: var(--ycf-form-max-width);
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
.fcode-loading-overlay {
|
|
1103
|
+
position: absolute;
|
|
1104
|
+
top: 0;
|
|
1105
|
+
left: 0;
|
|
1106
|
+
width: 100%;
|
|
1107
|
+
height: 100%;
|
|
1108
|
+
box-sizing: border-box;
|
|
1109
|
+
background-color: rgba(0, 0, 0, 0.75);
|
|
1110
|
+
display: flex;
|
|
1111
|
+
flex-direction: column;
|
|
1112
|
+
align-items: center;
|
|
1113
|
+
justify-content: center;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
@media (max-width: 991px) {
|
|
1117
|
+
.fcode-loading-overlay {
|
|
1118
|
+
padding: 2rem 1rem;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
@media (min-width: 992px) {
|
|
1123
|
+
.fcode-loading-overlay {
|
|
1124
|
+
padding: 2rem;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.fcode-loading-overlay-root,
|
|
1129
|
+
.fcode-loading-overlay {
|
|
1130
|
+
border-radius: var(--ycf-form-border-radius);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
.fcode-loading-overlay-enter {
|
|
1134
|
+
opacity: 0;
|
|
1135
|
+
transform: scale(0.9);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.fcode-loading-overlay-enter-active {
|
|
1139
|
+
opacity: 1;
|
|
1140
|
+
transform: translateX(0);
|
|
1141
|
+
transition: opacity 200ms, transform 200ms;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.fcode-loading-overlay-exit {
|
|
1145
|
+
opacity: 1;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
.fcode-loading-overlay-exit-active {
|
|
1149
|
+
opacity: 0;
|
|
1150
|
+
transform: scale(0.9);
|
|
1151
|
+
transition: opacity 200ms, transform 200ms;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
.fcode-loading-overlay-content-wrapper {
|
|
1155
|
+
display: flex;
|
|
1156
|
+
flex-direction: column;
|
|
1157
|
+
gap: 1rem;
|
|
1158
|
+
justify-content: center;
|
|
1159
|
+
align-items: center;
|
|
1160
|
+
position: sticky;
|
|
1161
|
+
top: 1rem;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
.fcode-loading-overlay-spinner {
|
|
1165
|
+
position: relative;
|
|
1166
|
+
width: 3rem;
|
|
1167
|
+
height: 3rem;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
.fcode-loading-overlay-spinner svg {
|
|
1171
|
+
animation: rotate360 2s linear infinite;
|
|
1172
|
+
height: 100%;
|
|
1173
|
+
transform-origin: center center;
|
|
1174
|
+
width: 100%;
|
|
1175
|
+
position: absolute;
|
|
1176
|
+
top: 0;
|
|
1177
|
+
bottom: 0;
|
|
1178
|
+
left: 0;
|
|
1179
|
+
right: 0;
|
|
1180
|
+
margin: auto;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.fcode-loading-overlay-spinner circle {
|
|
1184
|
+
animation: spinnerDash 1.5s ease-in-out infinite;
|
|
1185
|
+
stroke-dasharray: 1, 200;
|
|
1186
|
+
stroke-dashoffset: 0;
|
|
1187
|
+
stroke-linecap: round;
|
|
1188
|
+
stroke: var(--ycf-accent-color);
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
.fcode-loading-overlay-content {
|
|
1192
|
+
font-family: var(--ycf-form-font-family);
|
|
1193
|
+
color: white;
|
|
1194
|
+
text-align: center;
|
|
1195
|
+
font-size: var(--ycf-form-title-size);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
@keyframes rotate360 {
|
|
1199
|
+
0% {
|
|
1200
|
+
transform: rotate(0deg);
|
|
1201
|
+
}
|
|
1202
|
+
100% {
|
|
1203
|
+
transform: rotate(360deg);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
@keyframes spinnerDash {
|
|
1208
|
+
0% {
|
|
1209
|
+
stroke-dasharray: 1, 200;
|
|
1210
|
+
stroke-dashoffset: 0;
|
|
1211
|
+
}
|
|
1212
|
+
50% {
|
|
1213
|
+
stroke-dasharray: 89, 200;
|
|
1214
|
+
stroke-dashoffset: -35px;
|
|
1215
|
+
}
|
|
1216
|
+
100% {
|
|
1217
|
+
stroke-dasharray: 89, 200;
|
|
1218
|
+
stroke-dashoffset: -124px;
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
/* skeleton */
|
|
1223
|
+
|
|
1224
|
+
/*
|
|
1225
|
+
Placeholder shown while the form schema is fetched — which includes the time a
|
|
1226
|
+
`preRenderProcess` takes to run. It mirrors the metrics of the real form
|
|
1227
|
+
(title, label + field pairs, submit button) so the layout doesn't jump when
|
|
1228
|
+
the form replaces it. The fallback colour keeps the placeholder visible when a
|
|
1229
|
+
cached theme stylesheet predates `--ycf-skeleton-color`.
|
|
1230
|
+
*/
|
|
1231
|
+
|
|
1232
|
+
.fcode-form-skeleton {
|
|
1233
|
+
--fcode-skeleton-color: var(--ycf-skeleton-color, hsl(214 70% 20% / 0.1));
|
|
1234
|
+
|
|
1235
|
+
font-family: var(--ycf-form-font-family);
|
|
1236
|
+
animation: fcodeSkeletonPulse 1.4s ease-in-out infinite;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/*
|
|
1240
|
+
The overlay is absolutely positioned, so it takes its height from the children
|
|
1241
|
+
it covers. This floor keeps the spinner and its message inside the form box
|
|
1242
|
+
even when the skeleton is shorter than they are.
|
|
1243
|
+
*/
|
|
1244
|
+
|
|
1245
|
+
.fcode-form-loading > .fcode-loading-overlay-root {
|
|
1246
|
+
box-sizing: border-box;
|
|
1247
|
+
min-height: 11rem;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/*
|
|
1251
|
+
The overlay dims the form while it is being submitted, but there is nothing to
|
|
1252
|
+
dim while the schema loads — the skeleton is the content, and hiding it behind
|
|
1253
|
+
the scrim reads as a disabled panel rather than a loading one.
|
|
1254
|
+
*/
|
|
1255
|
+
|
|
1256
|
+
.fcode-form-loading .fcode-loading-overlay {
|
|
1257
|
+
background-color: transparent;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
.fcode-form-loading .fcode-loading-overlay-content {
|
|
1261
|
+
color: var(--ycf-base-text-color);
|
|
1262
|
+
font-size: 1rem;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
.fcode-form-skeleton-title,
|
|
1266
|
+
.fcode-form-skeleton-description,
|
|
1267
|
+
.fcode-form-skeleton-label,
|
|
1268
|
+
.fcode-form-skeleton-field,
|
|
1269
|
+
.fcode-form-skeleton-button {
|
|
1270
|
+
background-color: var(--fcode-skeleton-color);
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
.fcode-form-skeleton-title {
|
|
1274
|
+
width: 45%;
|
|
1275
|
+
height: var(--ycf-form-title-size);
|
|
1276
|
+
border-radius: var(--ycf-field-border-radius);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
.fcode-form-skeleton-description {
|
|
1280
|
+
width: 70%;
|
|
1281
|
+
height: 1rem;
|
|
1282
|
+
margin-top: 0.75rem;
|
|
1283
|
+
margin-bottom: var(--ycf-form-title-margin-bottom);
|
|
1284
|
+
border-radius: var(--ycf-field-border-radius);
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
.fcode-form-skeleton-group {
|
|
1288
|
+
margin-bottom: 1.5rem;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
.fcode-form-skeleton-label {
|
|
1292
|
+
width: 30%;
|
|
1293
|
+
height: 1rem;
|
|
1294
|
+
margin-bottom: 0.5rem;
|
|
1295
|
+
border-radius: var(--ycf-field-border-radius);
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
.fcode-form-skeleton-field {
|
|
1299
|
+
width: 100%;
|
|
1300
|
+
height: 2.375rem;
|
|
1301
|
+
border-radius: var(--ycf-field-border-radius);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.fcode-form-skeleton-button {
|
|
1305
|
+
width: 7rem;
|
|
1306
|
+
height: 2.375rem;
|
|
1307
|
+
margin-left: auto;
|
|
1308
|
+
border-radius: var(--ycf-button-border-radius);
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
@keyframes fcodeSkeletonPulse {
|
|
1312
|
+
0%,
|
|
1313
|
+
100% {
|
|
1314
|
+
opacity: 1;
|
|
1315
|
+
}
|
|
1316
|
+
50% {
|
|
1317
|
+
opacity: 0.45;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1322
|
+
.fcode-form-skeleton {
|
|
1323
|
+
animation: none;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
.fcode-loading-overlay-spinner svg,
|
|
1327
|
+
.fcode-loading-overlay-spinner circle {
|
|
1328
|
+
animation: none;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/* success message */
|
|
1333
|
+
|
|
1334
|
+
.fcode-form-success-message {
|
|
1335
|
+
color: var(--ycf-base-text-color);
|
|
1336
|
+
text-align: center;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/* error message */
|
|
1340
|
+
|
|
1341
|
+
.fcode-form-error-message {
|
|
1342
|
+
color: var(--ycf-base-text-color);
|
|
1343
|
+
text-align: center;
|
|
1344
|
+
margin: 0;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
/* card */
|
|
1348
|
+
|
|
1349
|
+
.fcode-form .card {
|
|
1350
|
+
border: 1px solid;
|
|
1351
|
+
padding: 1rem;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.fcode-form .card.border-danger {
|
|
1355
|
+
border-color: var(--ycf-danger-color);
|
|
1356
|
+
color: var(--ycf-danger-color);
|
|
1357
|
+
background-color: var(--ycf-danger-color-lighten);
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
/* alert*/
|
|
1361
|
+
|
|
1362
|
+
.fcode-form .alert-danger {
|
|
1363
|
+
font-weight: bold;
|
|
1364
|
+
margin-bottom: 0.25rem;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
/* error list */
|
|
1368
|
+
|
|
1369
|
+
.fcode-form .container-fluid + [id^='root_'][id$='__error'] {
|
|
1370
|
+
padding-inline: 1rem !important;
|
|
1371
|
+
margin-left: 0 !important;
|
|
1372
|
+
margin-top: 0 !important;
|
|
1373
|
+
border: 1px solid var(--ycf-danger-color);
|
|
1374
|
+
background-color: var(--ycf-danger-color-lighten);
|
|
1375
|
+
color: var(--ycf-danger-color);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/* modal */
|
|
1379
|
+
|
|
1380
|
+
.fcode-modal-open {
|
|
1381
|
+
overflow: hidden;
|
|
1382
|
+
}
|
|
1383
|
+
.fcode-modal-open .fcode-modal {
|
|
1384
|
+
overflow-x: hidden;
|
|
1385
|
+
overflow-y: auto;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
.fcode-modal-close-icon {
|
|
1389
|
+
padding: 0;
|
|
1390
|
+
position: fixed;
|
|
1391
|
+
right: 28px;
|
|
1392
|
+
width: 2rem;
|
|
1393
|
+
height: 2rem;
|
|
1394
|
+
border: none;
|
|
1395
|
+
background: none;
|
|
1396
|
+
color: #ececec;
|
|
1397
|
+
font-size: 5rem;
|
|
1398
|
+
font-family: monospace;
|
|
1399
|
+
line-height: 1;
|
|
1400
|
+
text-transform: none;
|
|
1401
|
+
cursor: pointer;
|
|
1402
|
+
outline: none;
|
|
1403
|
+
z-index: 1050;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
.fcode-modal-close-icon:hover {
|
|
1407
|
+
color: #fff;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
.fcode-modal {
|
|
1411
|
+
position: fixed;
|
|
1412
|
+
top: 0;
|
|
1413
|
+
left: 0;
|
|
1414
|
+
z-index: 1050;
|
|
1415
|
+
display: none;
|
|
1416
|
+
width: 100%;
|
|
1417
|
+
height: 100%;
|
|
1418
|
+
overflow: hidden;
|
|
1419
|
+
outline: 0;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
.fcode-modal-dialog {
|
|
1423
|
+
margin-top: 0;
|
|
1424
|
+
margin-bottom: 0;
|
|
1425
|
+
display: -webkit-box;
|
|
1426
|
+
display: flex;
|
|
1427
|
+
height: 100%;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
.fcode-modal-dialog {
|
|
1431
|
+
position: relative;
|
|
1432
|
+
width: auto;
|
|
1433
|
+
margin: 0.5rem;
|
|
1434
|
+
pointer-events: none;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
.fcode-modal-content {
|
|
1438
|
+
margin-top: auto;
|
|
1439
|
+
margin-bottom: auto;
|
|
1440
|
+
border: none;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
.fcode-modal.fade .fcode-modal-dialog {
|
|
1444
|
+
-webkit-transition: -webkit-transform 0.3s ease-out;
|
|
1445
|
+
transition: -webkit-transform 0.3s ease-out;
|
|
1446
|
+
transition: transform 0.3s ease-out;
|
|
1447
|
+
transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
|
|
1448
|
+
-webkit-transform: translate(0, -50px);
|
|
1449
|
+
transform: translate(0, -50px);
|
|
1450
|
+
}
|
|
1451
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1452
|
+
.fcode-modal.fade .fcode-modal-dialog {
|
|
1453
|
+
-webkit-transition: none;
|
|
1454
|
+
transition: none;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
.fcode-modal.show .fcode-modal-dialog {
|
|
1458
|
+
-webkit-transform: none;
|
|
1459
|
+
transform: none;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
.fcode-modal-content {
|
|
1463
|
+
position: relative;
|
|
1464
|
+
display: -webkit-box;
|
|
1465
|
+
display: flex;
|
|
1466
|
+
-webkit-box-orient: vertical;
|
|
1467
|
+
-webkit-box-direction: normal;
|
|
1468
|
+
flex-direction: column;
|
|
1469
|
+
width: 100%;
|
|
1470
|
+
pointer-events: auto;
|
|
1471
|
+
background-clip: padding-box;
|
|
1472
|
+
outline: 0;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
.fcode-modal-backdrop {
|
|
1476
|
+
position: fixed;
|
|
1477
|
+
top: 0;
|
|
1478
|
+
left: 0;
|
|
1479
|
+
z-index: 1040;
|
|
1480
|
+
width: 100vw;
|
|
1481
|
+
height: 100vh;
|
|
1482
|
+
background-color: #000;
|
|
1483
|
+
}
|
|
1484
|
+
.fcode-modal-backdrop.fade {
|
|
1485
|
+
opacity: 0;
|
|
1486
|
+
}
|
|
1487
|
+
.fcode-modal-backdrop.show {
|
|
1488
|
+
opacity: 0.5;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
.fcode-modal-body {
|
|
1492
|
+
position: relative;
|
|
1493
|
+
-webkit-box-flex: 1;
|
|
1494
|
+
flex: 1 1 auto;
|
|
1495
|
+
padding: 1.75rem;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
@media (min-width: 576px) {
|
|
1499
|
+
.fcode-modal-dialog {
|
|
1500
|
+
max-width: 540px;
|
|
1501
|
+
margin: 1.75rem auto;
|
|
1502
|
+
}
|
|
1503
|
+
.fcode-modal-sm {
|
|
1504
|
+
max-width: 360px;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
@media (min-width: 992px) {
|
|
1509
|
+
.fcode-modal-lg,
|
|
1510
|
+
.fcode-modal-xl {
|
|
1511
|
+
max-width: 800px;
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
@media (min-width: 1200px) {
|
|
1516
|
+
.fcode-modal-xl {
|
|
1517
|
+
max-width: 1140px;
|
|
1518
|
+
}
|
|
1519
|
+
}
|