PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.0
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
← All changes | css/admin/style.css +143 -124 6.276.0 View file →
@@ -6,8 +6,21 @@
6 6 display: flex;
7 7 flex-direction: row;
8 8 }
9 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 +
10 23 #frm_style_sidebar .frm-inner-content {
11 24 padding-left: 0;
12 25 padding-right: 0;
13 26 padding-bottom: 0;
@@ -12,13 +25,25 @@
12 25 padding-right: 0;
13 26 padding-bottom: 0;
14 27 }
15 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 +
16 34 #frm_style_sidebar .accordion-section-title::after {
17 35 right: 0;
18 36 color: var(--grey-400);
19 37 }
20 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 +
21 46 #frm_active_style_form:not(.frm_hidden) ~ #frm_sample_form,
22 47 .frm-style-card-info {
23 48 display: none;
24 49 }
@@ -157,13 +182,12 @@
157 182 cursor: pointer;
158 183 font-weight: 400;
159 184
160 185 /*
161 - When a background image is set the children in the fieldset have a z-index of 1.
162 - The Ranking Field contains elements with a higher z-index of 2.
163 - Set to 3 so the floating buttons get priority when clicking if they overlap a form element.
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.
164 188 */
165 - z-index: 3;
189 + z-index: 2;
166 190 }
167 191
168 192 #frm_style_preview .frm_floating_style_button.frm_hidden {
169 193 display: none;
@@ -198,8 +222,86 @@
198 222 .styling_settings .frm_image_preview_wrapper .frm_choose_image_box {
199 223 margin-left: 0;
200 224 }
201 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 +
202 304 .ui-datepicker-inline.ui-datepicker {
203 305 max-width: 19em;
204 306 }
205 307
@@ -223,9 +325,18 @@
223 325 /* The long "Reset to defaults" option name requires extra space. There's normally a 160px min-width. */
224 326 min-width: 200px;
225 327 }
226 328
227 -#frm_style_preview .with_frm_style :not(.ui-datepicker-title) > select:not(.flatpickr-monthDropdown-months) {
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 {
228 339 /* Prevent back end styles from shrinking dropdowns. But leave datepicker dropdowns alone. */
229 340 width: var(--auto-width);
230 341 max-width: 100%;
231 342 }
@@ -233,9 +344,9 @@
233 344 #frm_style_preview select {
234 345 appearance: none; /* Hide the default icon */
235 346 }
236 347
237 -#frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year):not(.frm-ranking-position) {
348 +#frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year) {
238 349 /*
239 350 The styler preview doesn't use .wp-core-ui which results in a funny looking dropdown arrow.
240 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.
241 352 The SVG is arrow-down-alt2 from Dashicons.
@@ -240,11 +351,9 @@
240 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.
241 352 The SVG is arrow-down-alt2 from Dashicons.
242 353 This needs to be important because of a background-image: none !important rule that gets applied in front end CSS.
243 354 */
244 - 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;
245 - background-repeat: no-repeat !important;
246 - background-position: right 5px top 55% !important;
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;
247 356
248 357 padding-right: 24px; /* Add enough padding for the icon. */
249 358 }
250 359
@@ -263,9 +372,9 @@
263 372 Avoid a conflict with the .frm_form_field > label:first-child rule in frm_admin.css
264 373 The label in the preview should use the label color setting.
265 374 */
266 375 #frm_style_preview .frm_form_field > label:first-child {
267 - color: var(--label-color);
376 + color: var(--label-color);
268 377 font-size: var(--font-size);
269 378 }
270 379
271 380 .frm-color-blocks {
@@ -294,8 +403,9 @@
294 403 #frm_styling_form p > a svg {
295 404 position: relative;
296 405 bottom: 2px;
297 406 }
407 +
298 408 .frm-style-card-separator {
299 409 background-color: var(--grey-300);
300 410 width: 2px;
301 411 height: 20px;
@@ -329,9 +439,8 @@
329 439 .frm-input-style-example {
330 440 border-width: var(--field-border-width);
331 441 border-style: var(--field-border-style);
332 442 border-color: var(--border-color);
333 - border-radius: var(--border-radius);
334 443 background-color: var(--bg-color);
335 444 max-width: 138px;
336 445 width: 100%;
337 446 height: 16px;
@@ -349,8 +458,9 @@
349 458 }
350 459
351 460 #frm_loading_style_placeholder,
352 461 #frm_style_preview.frm-loading-style-template .frm_forms,
462 +#frm_default_style_cards_wrapper .dropdown-item.frm-apply-style,
353 463 .frm-currently-set-style-card .dropdown-item.frm-apply-style
354 464 {
355 465 display: none;
356 466 }
@@ -379,12 +489,11 @@
379 489 #frm_style_template_modal .frm_warning_style a:focus {
380 490 box-shadow: none;
381 491 }
382 492
383 -/* Break the new style trigger into a separate line on small screens to avoid overlapping with the Enable Formidable styling toggle. */
384 -#frm_style_sidebar > .frm-flex-justify {
385 - gap: var(--gap-sm);
386 - flex-wrap: wrap;
493 +#frm_new_style_trigger_wrapper {
494 + position: absolute;
495 + right: 15px;
387 496 }
388 497
389 498 /* RTL Styling */
390 499 body.rtl #frm_toggle_sample_form {
@@ -391,8 +500,13 @@
391 500 right: unset;
392 501 left: 40px;
393 502 }
394 503
504 +body.rtl #frm_new_style_trigger_wrapper {
505 + right: unset;
506 + left: 15px;
507 +}
508 +
395 509 body.rtl .frm-input-style-example {
396 510 padding-left: 0;
397 511 padding-right: 10px;
398 512 }
@@ -409,121 +523,26 @@
409 523 pointer-events: none;
410 524 opacity: 0.5;
411 525 }
412 526
413 -.formidable_page_formidable-styles .frm-right-panel .accordion-section-title:before,
414 -.formidable_page_formidable-styles .frm-right-panel .accordion-section-title:after {
415 - content: '' !important;
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 + }
416 533 }
417 -.formidable_page_formidable-styles .frm-right-panel .open .accordion-section-title > .frmsvg:last-child {
418 - transform: rotate(180deg);
419 -}
420 -.formidable_page_formidable-styles .frm-right-panel .accordion-section-title > .frmsvg:last-child {
421 - position: absolute;
422 - top: 0;
423 - bottom: 0;
424 - right: 0;
425 - margin: auto;
426 - color: var(--grey);
427 -}
428 -.control-section:hover .accordion-section-title {
429 - background: transparent !important;
430 - border-bottom-color: transparent;
431 -}
432 -.frm-style-settings-hover {
433 - width: 100%;
434 - position: absolute;
435 - top:0;
436 - left: 0;
437 - height: 58px;
438 - background: white;
439 - border-radius: var(--small-radius);
440 - box-shadow: var(--button-shadow);
441 - z-index: 0;
442 - transition: 0.25s opacity ease, 0.3s transform cubic-bezier(0.165, 0.84, 0.44, 1);
443 -}
444 -.frm-style-settings-hover.frm-animating {
445 - opacity: 0.45;
446 -}
447 -.frm-right-panel .accordion-section-content {
448 - background: transparent;
449 - padding: 0;
450 - overflow: initial;
451 -}
452 534
453 -.frm-right-panel .accordion-section-content > .inside {
454 - padding: 15px;
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 + }
455 543 }
456 -.frm-quick-settings .frm_form_field .frm-style-item-heading,
457 -.frm-right-panel .accordion-section-content > .inside .frm-style-item-heading {
458 - line-height: 36px;
459 -}
460 -.frm-right-panel .accordion-section-content > .inside .frm-style-item-heading .frm_help {
461 - display: inline-block;
462 - line-height: 13px;
463 -}
464 544
465 -.frm-right-panel .accordion-section-content .inside a {
466 - font-size: inherit;
467 -}
468 -.frm-right-panel .control-section.open h3 {
469 - border-bottom: none;
470 -}
471 -
472 -.js .frm-right-panel .control-section .accordion-section-title:focus,
473 -.js .frm-right-panel .control-section .accordion-section-title:hover {
474 - color: var(--grey-900);
475 -}
476 -.js .frm-right-panel .control-section.open h3.accordion-section-title {
477 - box-shadow: var(--button-shadow);
478 - background: white !important;
479 - border-radius: var(--small-radius);
480 -}
481 -
482 -.js .frm-right-panel .control-section .accordion-section-title:hover:before {
483 - color: var(--grey-700);
484 -}
485 -.frm-right-panel .accordion-section {
486 - border: none;
487 - position: relative;
488 - padding-bottom: 2px;
489 -}
490 -.frm-right-panel .accordion-section-title > .frmsvg:first-child {
491 - margin: 0 10px 0 0;
492 - color: var(--grey);
493 -}
494 -.frm-right-panel .accordion-section-title:hover > .frmsvg:first-child {
495 - color: var(--grey-900);
496 -}
497 -.frm-right-panel .accordion-section-title > .frmsvg:last-child {
498 - margin-right: 15px !important;
499 -}
500 -.frm-right-panel .open .accordion-section-title > .frmsvg:last-child {
501 - transform: rotate(180deg);
502 -}
503 -.frm-right-panel .open.accordion-section {
504 - border-bottom: 1px solid var(--grey-300);
505 -}
506 -.frm-right-panel h3.accordion-section-title {
507 - padding: 17px 15px !important;
508 - background: transparent;
509 - line-height: var(--leading);
510 - color: var(--grey-500);
511 - font-size: var(--text-md);
512 - font-weight: 400;
513 -}
514 -.styling_settings .accordion-container {
515 - position: relative;
516 -}
517 -.styling_settings .accordion-container .outer-border {
518 - position: relative;
519 - z-index: 1;
520 -}
521 -.styling_settings .accordion-section-title button {
522 - border: none;
523 - background: none;
524 - float: right;
525 -}
526 545 @media only screen and (max-width: 782px) {
527 546 #frm_style_preview .with_frm_style .frm_radio input[type=radio],
528 547 #frm_style_preview .with_frm_style .frm_checkbox input[type=checkbox] {
529 548 width: 18px !important;