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

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