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

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