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

434 lines 10.6 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 .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 /* The long "Reset to defaults" option name requires extra space. There's normally a 160px min-width. */
228 min-width: 200px;
229 }
230
231 /*
232 Do not set this for frm_inside_container as it requires a custom line height value.
233 Target .frm_primary_label so we avoid other labels like star rating stars.
234 Time fields use a div instead of a label, so don't target by the primary label by tag type.
235 */
236 #frm_style_preview .frm_form_field:not(.frm_inside_container) > .frm_primary_label {
237 line-height: var(--line-height);
238 }
239
240 #frm_style_preview .with_frm_style :not(.ui-datepicker-title) > select {
241 /* Prevent back end styles from shrinking dropdowns. But leave datepicker dropdowns alone. */
242 width: var(--auto-width);
243 max-width: 100%;
244 }
245
246 #frm_style_preview select {
247 appearance: none; /* Hide the default icon */
248 }
249
250 #frm_style_preview select:not(.ui-datepicker-month):not(.ui-datepicker-year) {
251 /*
252 The styler preview doesn't use .wp-core-ui which results in a funny looking dropdown arrow.
253 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.
254 The SVG is arrow-down-alt2 from Dashicons.
255 This needs to be important because of a background-image: none !important rule that gets applied in front end CSS.
256 */
257 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;
258 background-repeat: no-repeat !important;
259 background-position: right 5px top 55% !important;
260
261 padding-right: 24px; /* Add enough padding for the icon. */
262 }
263
264 /* Unset frm_admin checkbox styling in the preview. */
265 #frm_style_preview input[type="checkbox"]:checked {
266 background-color: unset;
267 }
268
269 #frm_style_preview input[type="checkbox"]:checked:before {
270 content: "";
271 position: relative;
272 left: 1px;
273 }
274
275 /*
276 Avoid a conflict with the .frm_form_field > label:first-child rule in frm_admin.css
277 The label in the preview should use the label color setting.
278 */
279 #frm_style_preview .frm_form_field > label:first-child {
280 color: var(--label-color);
281 font-size: var(--font-size);
282 }
283
284 .frm-color-blocks {
285 display: grid;
286 justify-content: center;
287 grid-template-columns: repeat(auto-fit, minmax(20px, max-content));
288 max-width: 60px;
289 }
290
291 .frm-color-blocks > div {
292 border: 1.5px solid var(--grey-100);
293 box-shadow: var(--box-shadow-sm);
294 border-radius: 22px;
295 height: 28px;
296 width: 28px;
297 box-sizing: border-box;
298 flex-shrink: 0;
299 }
300
301 /* Remove link styling from the back icon on the edit page. */
302 #frm_styling_form h2 > a {
303 color: var(--grey-500);
304 margin-right: 10px;
305 }
306
307 #frm_styling_form p > a svg {
308 position: relative;
309 bottom: 2px;
310 }
311
312 .frm-style-card-separator {
313 background-color: var(--grey-300);
314 width: 2px;
315 height: 20px;
316 margin-left: 6px;
317 }
318
319 .frm-mini-form-style {
320 display: flex;
321 gap: var(--gap-xs);
322 width: 100%;
323 }
324
325 .frm-button-style-example {
326 background-color: var(--submit-bg-color);
327 border: 1px solid var(--grey-500);
328 border-color: var(--submit-border-color);
329 border-radius: var(--submit-border-radius);
330 width: 60px;
331 height: 16px;
332 display: flex;
333 align-items: center;
334 justify-content: center;
335 }
336
337 .frm-button-style-example > div {
338 width: 32px;
339 height: 2px;
340 background-color: var(--submit-text-color);
341 }
342
343 .frm-input-style-example {
344 border-width: var(--field-border-width);
345 border-style: var(--field-border-style);
346 border-color: var(--border-color);
347 border-radius: var(--border-radius);
348 background-color: var(--bg-color);
349 max-width: 138px;
350 width: 100%;
351 height: 16px;
352 display: flex;
353 align-items: center;
354 padding-left: 10px;
355 flex: 1;
356 }
357
358 .frm-input-style-example > div {
359 max-width: 46px;
360 width: calc( 100% - 8px );
361 height: 2px;
362 background-color: var(--text-color);
363 }
364
365 #frm_loading_style_placeholder,
366 #frm_style_preview.frm-loading-style-template .frm_forms,
367 #frm_default_style_cards_wrapper .dropdown-item.frm-apply-style,
368 .frm-currently-set-style-card .dropdown-item.frm-apply-style
369 {
370 display: none;
371 }
372
373 #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder {
374 display: block;
375 text-align: center;
376 position: absolute;
377 top: calc( 50% - 35px );
378 left: 50%;
379 transform: translateX(-50%) translateY(-50%);
380 }
381
382 #frm_loading_style_placeholder strong {
383 display: block;
384 }
385
386 #frm_style_template_modal .frm_warning_style {
387 display: flex;
388 }
389
390 #frm_style_template_modal .frm_warning_style span {
391 flex: 1;
392 }
393
394 #frm_style_template_modal .frm_warning_style a:focus {
395 box-shadow: none;
396 }
397
398 /* Break the new style trigger into a separate line on small screens to avoid overlapping with the Enable Formidable styling toggle. */
399 #frm_style_sidebar > .frm-flex-justify {
400 gap: var(--gap-sm);
401 flex-wrap: wrap;
402 }
403
404 /* RTL Styling */
405 body.rtl #frm_toggle_sample_form {
406 right: unset;
407 left: 40px;
408 }
409
410 body.rtl .frm-input-style-example {
411 padding-left: 0;
412 padding-right: 10px;
413 }
414
415 body.rtl .frm-style-card-separator {
416 margin: 0 6px 0 0;
417 }
418 /* End RTL Styling */
419
420 .frm-styles-globally-disabled #frm_new_style_trigger,
421 .frm-styles-globally-disabled .frm_toggle,
422 .frm-styles-globally-disabled .frm_on_label,
423 .frm-styles-globally-disabled ~ #frm_style_preview #frm_edit_style {
424 pointer-events: none;
425 opacity: 0.5;
426 }
427
428 @media only screen and (max-width: 782px) {
429 #frm_style_preview .with_frm_style .frm_radio input[type=radio],
430 #frm_style_preview .with_frm_style .frm_checkbox input[type=checkbox] {
431 width: 18px !important;
432 }
433 }
434