PluginProbe
Advanced Forms for ACF / trunk
Advanced Forms for ACF vtrunk
1.9.0 1.9.1 1.9.2.1 1.9.3 1.9.3.1 1.9.3.2 1.9.3.3 1.9.3.4 1.9.3.5 1.9.3.6 1.9.3.7 1.9.3.8 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.3.1 1.0.3.2 1.0.3.3 1.0.4 1.1.0 1.1.1 1.2.0 1.3.0 All 51 releases
advanced-forms / assets / css / admin.css

admin.css in Advanced Forms for ACF trunk, at assets/css/admin.css

459 lines 7.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Admin styles
3 */
4
5 /**
6 * Fields table
7 */
8 .widefat .field-group-heading {
9 background-color: #f9f9f9;
10 }
11
12 .widefat .field-group-heading td {
13 padding-bottom: 4px;
14 padding-top: 15px;
15 border-top: 1px solid #e1e1e1;
16 border-bottom: 1px solid #e1e1e1;
17 }
18
19 .widefat .field-group-heading:first-child td {
20 border-top: 0;
21 }
22
23 .af-field-group-table {
24 margin-bottom: 1em;
25 }
26
27
28 /**
29 * Hide title input on entries
30 */
31 .post-type-af_entry #titlediv {
32 display: none;
33 }
34
35 #acf_after_title-sortables #acf-group_entry_data {
36 margin-top: 0;
37 }
38
39 /**
40 * Form settings
41 */
42
43 /* Shortcode copy field */
44 .af-shortcode-field {
45 display: flex;
46 align-items: stretch;
47 gap: 6px;
48 max-width: 450px;
49 }
50
51 .af-shortcode-field code {
52 flex: 1;
53 font-family: Menlo, Consolas, Monaco, monospace;
54 font-size: 13px;
55 padding: 0 8px;
56 display: flex;
57 align-items: center;
58 background: #f0f0f1;
59 color: #2c3338;
60 border: 1px solid #c3c4c7;
61 border-radius: 4px;
62 cursor: text;
63 -webkit-user-select: all;
64 user-select: all;
65 }
66
67 .af-shortcode-field .button {
68 white-space: nowrap;
69 }
70
71 .acf-field-form-shortcode-message p {
72 margin-bottom: 0;
73 }
74
75
76 /**
77 * Make room for the field selector on the email fields
78 */
79 .acf-field .acf-input {
80 position: relative;
81 }
82
83 .af-field-dropdown.button {
84 position: relative;
85 display: none;
86 }
87
88 .acf-field-form-email-content .af-field-dropdown.button,
89 .acf-field-form-success-message .af-field-dropdown.button {
90 display: inline-block;
91 }
92
93 .acf-field .button.floating {
94 display: inline-block;
95 position: absolute;
96 right: 3px;
97 top: 50%;
98 font-size: 12px;
99 line-height: 20px;
100 height: 22px;
101 margin-top: -11px;
102 min-height: initial;
103 }
104
105 .acf-field .button.floating:active {
106 z-index: 1000;
107 }
108
109 /* Allow spinners inside buttons */
110 .acf-field .button .spinner {
111 background-position: center top;
112 background-size: 18px;
113 float: none;
114 margin: 0;
115 }
116
117 /* Add padding to inputs to ensure floating button doesn't overlap */
118 .acf-field input.has-field-inserter {
119 padding-right: 90px;
120 }
121
122 .af-field-dropdown .af-dropdown {
123 display: none;
124 position: absolute;
125 top: 100%;
126 left: 0;
127 min-width: 200px;
128 max-height: 400px;
129 overflow-y: scroll;
130 background: #f7f7f7;
131 border: 1px solid #ccc;
132 box-shadow: 0 1px 0 #ccc;
133 border-radius: 3px;
134 z-index: 100;
135 }
136
137 .af-field-dropdown.floating .af-dropdown {
138 left: auto;
139 right: 0;
140 }
141
142 .af-field-dropdown.open .af-dropdown {
143 display: block;
144 }
145
146 .af-field-dropdown .field-divider {
147 background: #fff;
148 height: 3px;
149 border-bottom: 1px solid #ccc;
150 }
151
152 .af-field-dropdown .af-dropdown .field-option {
153 padding: 10px;
154 border-bottom: 1px solid #ccc;
155 font-weight: 500;
156 line-height: 1;
157 overflow: auto;
158 }
159
160 .af-field-dropdown .af-dropdown .sub-fields-wrapper {
161 border-left: 3px solid #ccc;
162 border-bottom: 1px solid #ccc;
163 }
164
165 .af-field-dropdown .af-dropdown .field-option.sub-field {
166 border-left: 3px solid #ccc;
167 }
168
169 .af-field-dropdown .af-dropdown .field-option:last-child,
170 .af-field-dropdown .af-dropdown .sub-fields-wrapper:last-child {
171 border-bottom: 0;
172 }
173
174 .af-field-dropdown .af-dropdown .field-option:hover {
175 background: #fff;
176 }
177
178 .af-field-dropdown .af-dropdown .field-option .field-name {
179 display: block;
180 float: left;
181 }
182
183 .af-field-dropdown .af-dropdown .field-option .field-type {
184 display: block;
185 color: #888;
186 float: right;
187 font-weight: 400;
188 }
189
190
191 /**
192 * ACF Tabs (spacing, dashicons)
193 */
194 .acf-tab-button .dashicons {
195 font-size: 16px;
196 height: auto;
197 margin-top: -4px;
198 margin-right: 5px;
199 vertical-align: middle;
200 }
201
202 .acf-tab-button[data-key="field_form_editing_tab"] {
203 margin-top: 10px;
204 }
205
206
207 /**
208 * Images in field labels
209 */
210 .acf-field .acf-label img {
211 height: 16px;
212 vertical-align: middle;
213 margin-top: -3px;
214 margin-right: 6px;
215 }
216
217
218 /**
219 * Divider field
220 */
221 .acf-fields > .acf-field.acf-field-divider,
222 .acf-block-body .acf-fields > .acf-field.acf-field-divider {
223 background: #f9f9f9;
224 padding: 3px 0;
225 }
226
227 /**
228 * Form actions in the publish box
229 */
230 .af-form-actions-wrapper {
231 border-bottom: 1px solid #ddd;
232 margin: 0 -10px;
233 margin-bottom: 10px;
234 padding: 0 10px;
235 padding-bottom: 10px;
236 text-align: right;
237 }
238
239 .af-form-actions-wrapper .button {
240 margin-left: 5px;
241 }
242
243
244 /**
245 * Form previews
246 */
247
248 .af-form-preview .af-submit {
249 border-top: #EEEEEE solid 1px;
250 padding: 15px 12px;
251 }
252
253 .af-form-preview {
254 max-width: 763px;
255 }
256
257 .af-form-preview * {
258 box-sizing: border-box;
259 }
260
261 .af-form-preview .acf-fields > .acf-field:nth-child(3) {
262 border-top-width: 0;
263 }
264
265 .af-form-preview .af-success {
266 margin: 15px 12px;
267 }
268
269 /* Paging */
270 .af-form-preview .af-page-wrap {
271 margin-top: 15px;
272 }
273
274 .af-form-preview .af-previous-button {
275 margin-right: 10px;
276 }
277
278
279 /**
280 * Add top spacing to page field type.
281 * Same as the spacing added for tab fields.
282 */
283 .acf-field-object + .acf-field-object-page:before {
284 display: block;
285 content: "";
286 height: 5px;
287 width: 100%;
288 background: #f9f9f9;
289 border-bottom: #f0f0f0 solid 1px;
290 }
291
292 /* Hide unnecessary settings for the page field type */
293 .acf-field-object-page .acf-field-setting-name,
294 .acf-field-object-page .acf-field-setting-instructions,
295 .acf-field-object-page .acf-field-setting-required,
296 .acf-field-object-page .acf-field-setting-hide_admin,
297 .acf-field-object-page .acf-field-setting-conditional_logic,
298 .acf-field-object-page .acf-field-setting-wrapper {
299 display: none;
300 }
301
302
303 /**
304 * Information sidebar on forms page
305 */
306
307 /* Wraps the posts list and sidebar */
308 .af-forms-wrapper {
309 margin-right: 300px;
310 clear: both;
311 }
312
313 .af-forms-list {
314 float: left;
315 width: 100%;
316 }
317
318 .af-sidebar {
319 float: right;
320 margin-right: -300px;
321 width: 280px;
322 }
323
324 .post-type-af_form .search-box {
325 display: none;
326 }
327
328 .post-type-af_form .subsubsub {
329 margin-bottom: 3px;
330 }
331
332 .af-sidebar .feature-list {
333 padding-left: 20px;
334 list-style-type: disc;
335 }
336
337 @media only screen and (max-width: 850px) {
338 .af-forms-wrapper {
339 margin-right: 0;
340 }
341
342 .af-forms-list {
343 float: none;
344 width: auto;
345 margin: 0;
346 }
347
348 .af-sidebar {
349 margin: 0;
350 margin-top: 20px;
351 float: none;
352 width: auto;
353 }
354 }
355
356
357 /**
358 * Form import
359 */
360 .af-form-import .acf-fields {
361 border: #ebebeb solid 1px;
362 background: #fafafa;
363 border-radius: 3px;
364 padding: 15px 12px;
365 }
366
367 .af-form-import .acf-label {
368 font-weight: bold;
369 margin: 0 0 3px;
370 }
371
372 .af-form-import .button {
373 margin-top: 1em;
374 }
375
376
377 /**
378 * Form export
379 */
380 .af-form-export #poststuff .inside {
381 padding: 20px;
382 margin: 0;
383 }
384
385 .af-form-export .inside:first-child {
386 border-bottom: 1px solid #e5e5e5;
387 }
388
389 .af-form-export #poststuff .inside h2 {
390 padding: 0;
391 font-weight: 500;
392 }
393
394 .af-form-export pre {
395 background: #f1f1f1;
396 padding: 15px;
397 -moz-tab-size: 2;
398 -o-tab-size: 2;
399 tab-size: 2;
400 }
401
402 .af-form-export .copy-button {
403 float: right;
404 }
405
406
407 /**
408 * Gutenberg block
409 */
410 .af-block-preview {
411 padding: 30px;
412 text-align: center;
413 background: #f5f5f5;
414 border-radius: 5px;
415 border: 1px solid #ccc;
416 }
417
418 .af-block-preview .af-block-no-form {
419 color: #888;
420 font-size: 1.5rem;
421 }
422
423 .af-block-preview .af-block-description {
424 margin-bottom: 10px;
425 text-transform: uppercase;
426 color: #888;
427 font-weight: 700;
428 }
429
430 .af-block-preview .af-block-form-name {
431 font-size: 2rem;
432 font-weight: 700;
433 }
434
435 .af-block-preview .af-block-subtitle {
436 margin-top: 15px;
437 color: #555;
438 }
439
440 .wp-block-acf-advanced-form .edit-form-link {
441 text-decoration: none;
442 }
443
444 .wp-block-acf-advanced-form .edit-form-link:hover {
445 text-decoration: underline;
446 }
447
448 .wp-block-acf-advanced-form code {
449 padding: 3px 5px;
450 background: rgba(0, 0, 0, 0.07);
451 font-size: 13px;
452 }
453
454 /**
455 * Utility classes
456 */
457 .af-field-hide-label > .acf-label {
458 display: none;
459 }