PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.30
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.30
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.30, at css/admin/style.css

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