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

431 lines 10.5 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: 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;
258
259 padding-right: 24px; /* Add enough padding for the icon. */
260 }
261
262 /* Unset frm_admin checkbox styling in the preview. */
263 #frm_style_preview input[type="checkbox"]:checked {
264 background-color: unset;
265 }
266
267 #frm_style_preview input[type="checkbox"]:checked:before {
268 content: "";
269 position: relative;
270 left: 1px;
271 }
272
273 /*
274 Avoid a conflict with the .frm_form_field > label:first-child rule in frm_admin.css
275 The label in the preview should use the label color setting.
276 */
277 #frm_style_preview .frm_form_field > label:first-child {
278 color: var(--label-color);
279 font-size: var(--font-size);
280 }
281
282 .frm-color-blocks {
283 display: grid;
284 justify-content: center;
285 grid-template-columns: repeat(auto-fit, minmax(20px, max-content));
286 max-width: 60px;
287 }
288
289 .frm-color-blocks > div {
290 border: 1.5px solid var(--grey-100);
291 box-shadow: var(--box-shadow-sm);
292 border-radius: 22px;
293 height: 28px;
294 width: 28px;
295 box-sizing: border-box;
296 flex-shrink: 0;
297 }
298
299 /* Remove link styling from the back icon on the edit page. */
300 #frm_styling_form h2 > a {
301 color: var(--grey-500);
302 margin-right: 10px;
303 }
304
305 #frm_styling_form p > a svg {
306 position: relative;
307 bottom: 2px;
308 }
309
310 .frm-style-card-separator {
311 background-color: var(--grey-300);
312 width: 2px;
313 height: 20px;
314 margin-left: 6px;
315 }
316
317 .frm-mini-form-style {
318 display: flex;
319 gap: var(--gap-xs);
320 width: 100%;
321 }
322
323 .frm-button-style-example {
324 background-color: var(--submit-bg-color);
325 border: 1px solid var(--grey-500);
326 border-color: var(--submit-border-color);
327 border-radius: var(--submit-border-radius);
328 width: 60px;
329 height: 16px;
330 display: flex;
331 align-items: center;
332 justify-content: center;
333 }
334
335 .frm-button-style-example > div {
336 width: 32px;
337 height: 2px;
338 background-color: var(--submit-text-color);
339 }
340
341 .frm-input-style-example {
342 border-width: var(--field-border-width);
343 border-style: var(--field-border-style);
344 border-color: var(--border-color);
345 background-color: var(--bg-color);
346 max-width: 138px;
347 width: 100%;
348 height: 16px;
349 display: flex;
350 align-items: center;
351 padding-left: 10px;
352 flex: 1;
353 }
354
355 .frm-input-style-example > div {
356 max-width: 46px;
357 width: calc( 100% - 8px );
358 height: 2px;
359 background-color: var(--text-color);
360 }
361
362 #frm_loading_style_placeholder,
363 #frm_style_preview.frm-loading-style-template .frm_forms,
364 #frm_default_style_cards_wrapper .dropdown-item.frm-apply-style,
365 .frm-currently-set-style-card .dropdown-item.frm-apply-style
366 {
367 display: none;
368 }
369
370 #frm_style_preview.frm-loading-style-template #frm_loading_style_placeholder {
371 display: block;
372 text-align: center;
373 position: absolute;
374 top: calc( 50% - 35px );
375 left: 50%;
376 transform: translateX(-50%) translateY(-50%);
377 }
378
379 #frm_loading_style_placeholder strong {
380 display: block;
381 }
382
383 #frm_style_template_modal .frm_warning_style {
384 display: flex;
385 }
386
387 #frm_style_template_modal .frm_warning_style span {
388 flex: 1;
389 }
390
391 #frm_style_template_modal .frm_warning_style a:focus {
392 box-shadow: none;
393 }
394
395 /* Break the new style trigger into a separate line on small screens to avoid overlapping with the Enable Formidable styling toggle. */
396 #frm_style_sidebar > .frm-flex-justify {
397 gap: var(--gap-sm);
398 flex-wrap: wrap;
399 }
400
401 /* RTL Styling */
402 body.rtl #frm_toggle_sample_form {
403 right: unset;
404 left: 40px;
405 }
406
407 body.rtl .frm-input-style-example {
408 padding-left: 0;
409 padding-right: 10px;
410 }
411
412 body.rtl .frm-style-card-separator {
413 margin: 0 6px 0 0;
414 }
415 /* End RTL Styling */
416
417 .frm-styles-globally-disabled #frm_new_style_trigger,
418 .frm-styles-globally-disabled .frm_toggle,
419 .frm-styles-globally-disabled .frm_on_label,
420 .frm-styles-globally-disabled ~ #frm_style_preview #frm_edit_style {
421 pointer-events: none;
422 opacity: 0.5;
423 }
424
425 @media only screen and (max-width: 782px) {
426 #frm_style_preview .with_frm_style .frm_radio input[type=radio],
427 #frm_style_preview .with_frm_style .frm_checkbox input[type=checkbox] {
428 width: 18px !important;
429 }
430 }
431