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

532 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 /* 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-currently-set-style-card .dropdown-item.frm-apply-style
354 {
355 display: none;
356 }
357
358 #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder {
359 display: block;
360 text-align: center;
361 position: absolute;
362 top: calc( 50% - 35px );
363 left: 50%;
364 transform: translateX(-50%) translateY(-50%);
365 }
366
367 #frm_loading_style_placeholder strong {
368 display: block;
369 }
370
371 #frm_style_template_modal .frm_warning_style {
372 display: flex;
373 }
374
375 #frm_style_template_modal .frm_warning_style span {
376 flex: 1;
377 }
378
379 #frm_style_template_modal .frm_warning_style a:focus {
380 box-shadow: none;
381 }
382
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;
387 }
388
389 /* RTL Styling */
390 body.rtl #frm_toggle_sample_form {
391 right: unset;
392 left: 40px;
393 }
394
395 body.rtl .frm-input-style-example {
396 padding-left: 0;
397 padding-right: 10px;
398 }
399
400 body.rtl .frm-style-card-separator {
401 margin: 0 6px 0 0;
402 }
403 /* End RTL Styling */
404
405 .frm-styles-globally-disabled #frm_new_style_trigger,
406 .frm-styles-globally-disabled .frm_toggle,
407 .frm-styles-globally-disabled .frm_on_label,
408 .frm-styles-globally-disabled ~ #frm_style_preview #frm_edit_style {
409 pointer-events: none;
410 opacity: 0.5;
411 }
412
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;
416 }
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
453 .frm-right-panel .accordion-section-content > .inside {
454 padding: 15px;
455 }
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
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 @media only screen and (max-width: 782px) {
527 #frm_style_preview .with_frm_style .frm_radio input[type=radio],
528 #frm_style_preview .with_frm_style .frm_checkbox input[type=checkbox] {
529 width: 18px !important;
530 }
531 }
532