PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.0.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.0.1
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / css / admin / style.css

style.css in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.0.1, at css/admin/style.css

551 lines 12.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 This file is added to the visual styler admin page, accessed from the style tab.
3 */
4
5 #frm_styler_wrapper {
6 display: flex;
7 flex-direction: row;
8 }
9
10 #frm_style_sidebar,
11 #frm_style_preview {
12 height: calc( 100vh - 95px );
13 box-sizing: border-box;
14 position: relative;
15 }
16
17 #frm_style_sidebar {
18 vertical-align: top;
19 box-sizing: border-box;
20 overflow-y: auto;
21 }
22
23 #frm_style_sidebar .frm-inner-content {
24 padding-left: 0;
25 padding-right: 0;
26 padding-bottom: 0;
27 }
28
29 #frm_style_sidebar .control-section:hover .accordion-section-title {
30 /* Normally an accordion has a white background but this doesn't look great with the padding on the accordion. */
31 background-color: transparent !important;
32 }
33
34 #frm_style_sidebar .accordion-section-title::after {
35 right: 0;
36 color: var(--grey-400);
37 }
38
39 #frm_style_preview {
40 overflow-y: auto;
41 overflow-x: hidden;
42 flex: 2;
43 border-left: 1px solid var(--sidebar-hover);
44 }
45
46 #frm_active_style_form:not(.frm_hidden) ~ #frm_sample_form,
47 .frm-style-card-info {
48 display: none;
49 }
50
51 #frm_active_style_form:not(.frm_hidden),
52 #frm_sample_form {
53 /* Without this a small form with a max-width of 480px for example doesn't get centered in the preview space. */
54 display: flex;
55 }
56
57 #frm_active_style_form > .frm_forms,
58 #frm_sample_form > .frm_forms {
59 /* This gives small form containers more space. */
60 flex: 1;
61 padding: 0 10px; /* Match the extra padding around fields on builder */
62 }
63
64 .frm-style-card {
65 display: flex;
66 flex-direction: row;
67 align-items: center;
68 border-radius: 6px;
69 cursor: pointer;
70 box-sizing: border-box;
71 border: 1px solid transparent; /* Add a transparent border so an active style card doesn't cause the box to resize. */
72 background-color: #fff;
73 margin-bottom: 15px;
74 width: 100%;
75 padding: 14px;
76 box-shadow: var(--box-shadow-sm);
77 position: relative;
78 background-color: var(--preview-background-color);
79 }
80
81 .frm-style-card .frm-dropdown-toggle svg,
82 #frm_styling_form .frm-dropdown-toggle svg {
83 color: var(--grey-500);
84 }
85
86 .frm-style-card.frm-currently-set-style-card .frm-style-card-title-wrapper svg {
87 /* The checkmark circle should be blue. */
88 color: var(--primary-500);
89 }
90
91 .frm-style-card.frm-dark-style .frm-style-card-title,
92 .frm-style-card.frm-dark-style.frm-locked-style .frm-style-card-title-wrapper svg,
93 .frm-style-card.frm-dark-style .frm-dropdown-toggle svg,
94 .frm-style-card.frm-dark-style .frm-style-card-info {
95 color: #fff;
96 }
97
98 .frm-style-card > div:first-child {
99 display: flex;
100 flex: 1;
101 flex-direction: column;
102 gap: var(--gap-sm);
103 }
104
105 .frm-style-card.frm_hidden {
106 display: none;
107 }
108
109 .frm-style-card:hover {
110 box-shadow: var(--box-shadow-lg);
111 }
112
113 .frm-active-style-card {
114 box-shadow: none;
115 border: 1px solid var(--primary-500);
116 }
117
118 .frm-style-card-title-wrapper {
119 display: flex;
120 gap: var(--gap-2xs);
121 align-items: center;
122 }
123
124 #frm_style_sidebar .frm-style-card .dropdown {
125 overflow: visible;
126 padding-left: 0;
127 align-self: flex-start;
128 }
129
130 .frm-style-card-preview {
131 pointer-events: none;
132 border-radius: 6px 6px 0 0;
133 display: flex;
134 flex-direction: row;
135 align-items: center;
136 gap: var(--gap-sm);
137 }
138
139 .frm-style-card-preview + div .dropdown {
140 /* Give it a z-index boost to avoid the border from the bottom of the card from overlapping the dropdown */
141 z-index: 1;
142 }
143
144 .frm-style-card-pagination {
145 text-align: center;
146 font-size: 14px;
147 }
148
149 .frm-style-card-title {
150 max-width: calc( 100% - 20px );
151 text-overflow: ellipsis;
152 overflow: hidden;
153 display: inline-block;
154 white-space: nowrap;
155 font-size: 14px;
156 }
157
158 .frm-currently-set-style-card .frm-style-card-info {
159 display: inline;
160 color: var(--grey-700);
161 opacity: 0.6;
162 }
163
164 .frm-locked-style .frm-style-card-title {
165 color: var(--grey);
166 }
167
168 .frm-style-card-title svg {
169 margin-right: 5px;
170 }
171
172 #frm_style_preview .frm_button_submit {
173 transition: none !important; /* Avoid the preview updates from transitioning between one another. */
174 }
175
176 #frm_style_preview .frm_floating_style_button {
177 box-shadow: var(--box-shadow-xl);
178 position: fixed;
179 bottom: 20px;
180 display: flex;
181 align-items: center;
182 cursor: pointer;
183 font-weight: 400;
184
185 /*
186 When a background image is set the children in the fieldset have a z-index of 1.\
187 Set to 2 so the floating buttons get priority when clicking if they overlap a form element.
188 */
189 z-index: 2;
190 }
191
192 #frm_style_preview .frm_floating_style_button.frm_hidden {
193 display: none;
194 }
195
196 #frm_edit_style {
197 transform: translateX(-20px);
198 }
199
200 #frm_toggle_sample_form {
201 right: 40px;
202 }
203
204 .frm_pro_form .frm_form_field.frm_lite_style,
205 .frm_pro_form .frm_lite_style {
206 /*
207 Hide textarea, radio buttons, and checkboxes in the sample form in Pro.
208 Instead these elements are rendered again in Pro inside of a repeater.
209 */
210 display: none !important;
211 }
212
213 #frm_style_sidebar .frm_form_field input[type="checkbox"],
214 #frm_style_sidebar .frm_form_field input[type="radio"] {
215 vertical-align: middle;
216 }
217
218 .styling_settings .frm_image_preview_wrapper {
219 width: 100%;
220 }
221
222 .styling_settings .frm_image_preview_wrapper .frm_choose_image_box {
223 margin-left: 0;
224 }
225
226 /* Color picker CSS */
227 #frm_style_sidebar .wp-picker-open + .wp-picker-input-wrap {
228 position: absolute;
229 margin-left: calc( ( 100% - 35px ) * -1 );
230 margin-top: 1px;
231 width: calc( 100% - 36px );
232 }
233
234 #frm_style_sidebar .wp-picker-container input[type="text"].wp-color-picker {
235 border: none;
236 padding: 5px 8px;
237 font-family: inherit;
238 color: var(--grey-700);
239 font-size: var(--text-md);
240 width: 100%;
241 line-height: var(--leading);
242 }
243
244 #frm_style_sidebar .wp-picker-input-wrap .wp-picker-clear {
245 display: none !important;
246 }
247
248 #frm_style_sidebar .wp-picker-holder {
249 position: absolute;
250 z-index: 999;
251 }
252
253 #frm_style_sidebar .wp-picker-input-wrap label {
254 margin-bottom: 0;
255 }
256
257 #frm_style_sidebar .wp-picker-container .wp-color-result.button {
258 width: 100%;
259 overflow: hidden;
260 margin: 0 !important;
261 height: var(--h-md) !important;
262 padding: 0 0 0 var(--gap-lg) !important;
263 border-radius: var(--small-radius);
264 border-color: var(--grey-300);
265 }
266
267 #frm_style_sidebar .wp-color-result-text {
268 line-height: var(--leading) !important;
269 font-size: var(--text-md);
270 background: #fff !important;
271 color: var(--grey-900);
272 padding: 5px 8px;
273 border-color: var(--grey-300);
274 text-align: left;
275 }
276
277 #frm_style_sidebar .color-alpha {
278 width: var(--gap-lg) !important;
279 }
280
281 .frm_grid_container .wp-picker-container {
282 width: 100%;
283 position: relative;
284 }
285
286 .wp-picker-container button.wp-color-result {
287 border: 1px solid var(--grey-300) !important;
288 }
289
290 .wp-picker-container .wp-picker-input-wrap input.hex.wp-color-picker {
291 max-width: 100%;
292 position: relative;
293 }
294
295 .frm_end .wp-picker-holder {
296 margin-left: -145px;
297 }
298
299 .frm_end.frm6 .wp-picker-holder {
300 margin-left: -86px;
301 }
302 /* End of color picker CSS */
303
304 .ui-datepicker-inline.ui-datepicker {
305 max-width: 19em;
306 }
307
308 .frm-style-card-wrapper {
309 margin-top: 20px;
310 }
311
312 .frm-style-card-wrapper:not(.frm-styles-enabled) {
313 opacity: 0.5;
314 pointer-events: none;
315 }
316
317 /* When styles are disabled we don't want the active card to look like it is Applied. */
318 .frm-style-card-wrapper:not(.frm-styles-enabled) .frm-currently-set-style-card .frm-style-card-title-wrapper svg,
319 .frm-style-card-wrapper:not(.frm-styles-enabled) .frm-currently-set-style-card .frm-style-card-info {
320 display: none;
321 }
322
323 /* Style the hamburger menu (used in Style cards, and on the Style "Edit" page beside the Style name. */
324 .frm-style-options-menu {
325 /* The long "Reset to defaults" option name requires extra space. There's normally a 160px min-width. */
326 min-width: 200px;
327 }
328
329 /*
330 Do not set this for frm_inside_container as it requires a custom line height value.
331 Target .frm_primary_label so we avoid other labels like star rating stars.
332 Time fields use a div instead of a label, so don't target by the primary label by tag type.
333 */
334 #frm_style_preview .frm_form_field:not(.frm_inside_container) > .frm_primary_label {
335 line-height: var(--line-height);
336 }
337
338 #frm_style_preview .with_frm_style :not(.ui-datepicker-title) > select {
339 /* Prevent back end styles from shrinking dropdowns. But leave datepicker dropdowns alone. */
340 width: var(--auto-width);
341 max-width: 100%;
342 }
343
344 #frm_style_preview select {
345 appearance: none; /* Hide the default icon */
346 }
347
348 #frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year) {
349 /*
350 The styler preview doesn't use .wp-core-ui which results in a funny looking dropdown arrow.
351 Restore the WordPress background image defined in /wp-admin/css/forms.css for preview selects so they appear nicer and more consistent with other dropdowns.
352 The SVG is arrow-down-alt2 from Dashicons.
353 This needs to be important because of a background-image: none !important rule that gets applied in front end CSS.
354 */
355 background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55% !important;
356
357 padding-right: 24px; /* Add enough padding for the icon. */
358 }
359
360 /* Unset frm_admin checkbox styling in the preview. */
361 #frm_style_preview input[type="checkbox"]:checked {
362 background-color: unset;
363 }
364
365 #frm_style_preview input[type="checkbox"]:checked:before {
366 content: "";
367 position: relative;
368 left: 1px;
369 }
370
371 /*
372 Avoid a conflict with the .frm_form_field > label:first-child rule in frm_admin.css
373 The label in the preview should use the label color setting.
374 */
375 #frm_style_preview .frm_form_field > label:first-child {
376 color: var(--label-color);
377 font-size: var(--font-size);
378 }
379
380 .frm-color-blocks {
381 display: grid;
382 justify-content: center;
383 grid-template-columns: repeat(auto-fit, minmax(20px, max-content));
384 max-width: 60px;
385 }
386
387 .frm-color-blocks > div {
388 border: 1.5px solid var(--grey-100);
389 box-shadow: var(--box-shadow-sm);
390 border-radius: 22px;
391 height: 28px;
392 width: 28px;
393 box-sizing: border-box;
394 flex-shrink: 0;
395 }
396
397 /* Remove link styling from the back icon on the edit page. */
398 #frm_styling_form h2 > a {
399 color: var(--grey-500);
400 margin-right: 10px;
401 }
402
403 #frm_styling_form p > a svg {
404 position: relative;
405 bottom: 2px;
406 }
407
408 .frm-style-card-separator {
409 background-color: var(--grey-300);
410 width: 2px;
411 height: 20px;
412 margin-left: 6px;
413 }
414
415 .frm-mini-form-style {
416 display: flex;
417 gap: var(--gap-xs);
418 width: 100%;
419 }
420
421 .frm-button-style-example {
422 background-color: var(--submit-bg-color);
423 border: 1px solid var(--grey-500);
424 border-color: var(--submit-border-color);
425 border-radius: var(--submit-border-radius);
426 width: 60px;
427 height: 16px;
428 display: flex;
429 align-items: center;
430 justify-content: center;
431 }
432
433 .frm-button-style-example > div {
434 width: 32px;
435 height: 2px;
436 background-color: var(--submit-text-color);
437 }
438
439 .frm-input-style-example {
440 border-width: var(--field-border-width);
441 border-style: var(--field-border-style);
442 border-color: var(--border-color);
443 background-color: var(--bg-color);
444 max-width: 138px;
445 width: 100%;
446 height: 16px;
447 display: flex;
448 align-items: center;
449 padding-left: 10px;
450 flex: 1;
451 }
452
453 .frm-input-style-example > div {
454 max-width: 46px;
455 width: calc( 100% - 8px );
456 height: 2px;
457 background-color: var(--text-color);
458 }
459
460 #frm_loading_style_placeholder,
461 #frm_style_preview.frm-loading-style-template .frm_forms,
462 #frm_default_style_cards_wrapper .dropdown-item.frm-apply-style,
463 .frm-currently-set-style-card .dropdown-item.frm-apply-style
464 {
465 display: none;
466 }
467
468 #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder {
469 display: block;
470 text-align: center;
471 position: absolute;
472 top: calc( 50% - 35px );
473 left: 50%;
474 transform: translateX(-50%) translateY(-50%);
475 }
476
477 #frm_loading_style_placeholder strong {
478 display: block;
479 }
480
481 #frm_style_template_modal .frm_warning_style {
482 display: flex;
483 }
484
485 #frm_style_template_modal .frm_warning_style span {
486 flex: 1;
487 }
488
489 #frm_style_template_modal .frm_warning_style a:focus {
490 box-shadow: none;
491 }
492
493 #frm_new_style_trigger_wrapper {
494 position: absolute;
495 right: 15px;
496 }
497
498 /* RTL Styling */
499 body.rtl #frm_toggle_sample_form {
500 right: unset;
501 left: 40px;
502 }
503
504 body.rtl #frm_new_style_trigger_wrapper {
505 right: unset;
506 left: 15px;
507 }
508
509 body.rtl .frm-input-style-example {
510 padding-left: 0;
511 padding-right: 10px;
512 }
513
514 body.rtl .frm-style-card-separator {
515 margin: 0 6px 0 0;
516 }
517 /* End RTL Styling */
518
519 .frm-styles-globally-disabled #frm_new_style_trigger,
520 .frm-styles-globally-disabled .frm_toggle,
521 .frm-styles-globally-disabled .frm_on_label,
522 .frm-styles-globally-disabled ~ #frm_style_preview #frm_edit_style {
523 pointer-events: none;
524 opacity: 0.5;
525 }
526
527 @media only screen and (max-width: 1200px) {
528 /* Adjust the height to account for the taller header when the tabs drop to a second line. */
529 #frm_style_sidebar,
530 #frm_style_preview {
531 height: calc( 100vh - 135px );
532 }
533 }
534
535 @media only screen and (max-width: 900px) {
536 /* Break the new style trigger into a separate line to avoid overlapping with the Enable Formidable styling toggle. */
537 #frm_new_style_trigger_wrapper {
538 position: static;
539 display: flex;
540 justify-content: flex-end;
541 margin-bottom: 10px;
542 }
543 }
544
545 @media only screen and (max-width: 782px) {
546 #frm_style_preview .with_frm_style .frm_radio input[type=radio],
547 #frm_style_preview .with_frm_style .frm_checkbox input[type=checkbox] {
548 width: 18px !important;
549 }
550 }
551