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

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