PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / trunk
Secure Custom Fields vtrunk
6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / assets / src / sass / _media.scss
secure-custom-fields / assets / src / sass Last commit date
pro 1 week ago _acf-headerbar.scss 1 year ago _acf-icon-picker.scss 1 year ago _admin-inputs.scss 1 year ago _admin-toolbar.scss 1 year ago _btn.scss 1 year ago _dark.scss 1 year ago _edit-field-group.scss 1 year ago _field-group.scss 1 year ago _field-picker.scss 1 year ago _field-type-icons.scss 1 year ago _fields.scss 1 month ago _forms.scss 11 months ago _global.scss 1 year ago _icons.scss 1 year ago _input.scss 1 year ago _list-table.scss 1 year ago _media.scss 1 year ago _mixins.scss 1 year ago _post-types-taxonomies.scss 1 year ago _postbox.scss 1 year ago _pro-upgrade.scss 1 year ago _sub-field-groups.scss 1 year ago _tools.scss 1 year ago _typography.scss 1 year ago _updates.scss 1 year ago _variables.scss 1 year ago acf-dark.scss 1 year ago acf-field-group.scss 7 months ago acf-global.scss 2 months ago acf-input.scss 1 month ago
_media.scss
475 lines
1 /*---------------------------------------------------------------------------------------------
2 *
3 * Media Model
4 *
5 *---------------------------------------------------------------------------------------------*/
6
7 /* WP sets tables to act as divs. SCF uses tables, so these muct be reset */
8 .media-modal .compat-attachment-fields td.acf-input {
9
10 table {
11 display: table;
12 table-layout: auto;
13
14 tbody {
15 display: table-row-group;
16 }
17
18 tr {
19 display: table-row;
20 }
21
22 td, th {
23 display: table-cell;
24 }
25
26 }
27
28 }
29
30
31 /* field widths floats */
32 .media-modal .compat-attachment-fields > tbody > .acf-field {
33 margin: 5px 0;
34
35 > .acf-label {
36 min-width: 30%;
37 margin: 0;
38 padding: 0;
39 float: left;
40 text-align: right;
41 display: block;
42 float: left;
43
44 > label {
45 padding-top: 6px;
46 margin: 0;
47 color: #666666;
48 font-weight: 400;
49 line-height: 16px;
50 }
51 }
52
53 > .acf-input {
54 width: 65%;
55 margin: 0;
56 padding: 0;
57 float: right;
58 display: block;
59 }
60
61 p.description {
62 margin: 0;
63 }
64 }
65
66
67 /* restricted selection (copy of WP .upload-errors)*/
68 .acf-selection-error {
69 background: #ffebe8;
70 border: 1px solid #c00;
71 border-radius: 3px;
72 padding: 8px;
73 margin: 20px 0 0;
74
75 .selection-error-label {
76 background: #CC0000;
77 border-radius: 3px;
78 color: #fff;
79 font-weight: bold;
80 margin-right: 8px;
81 padding: 2px 4px;
82 }
83
84 .selection-error-message {
85 color: #b44;
86 display: block;
87 padding-top: 8px;
88 word-wrap: break-word;
89 white-space: pre-wrap;
90 }
91 }
92
93
94 /* disabled attachment */
95 .media-modal .attachment.acf-disabled {
96
97 .thumbnail {
98 opacity: 0.25 !important;
99 }
100
101 .attachment-preview:before {
102 background: rgba(0,0,0,0.15);
103 z-index: 1;
104 position: relative;
105 }
106
107 }
108
109
110 /* misc */
111 .media-modal {
112
113 /* compat-item */
114 .compat-field-acf-form-data,
115 .compat-field-acf-blank {
116 display: none !important;
117 }
118
119
120 /* allow line breaks in upload error */
121 .upload-error-message {
122 white-space: pre-wrap;
123 }
124
125
126 /* fix required span */
127 .acf-required {
128 padding: 0 !important;
129 margin: 0 !important;
130 float: none !important;
131 color: #f00 !important;
132 }
133
134
135 /* sidebar */
136 .media-sidebar {
137
138 .compat-item{
139 padding-bottom: 20px;
140 }
141
142 }
143
144
145 /* mobile md */
146 @media (max-width: 900px) {
147
148 /* label */
149 .setting span,
150 .compat-attachment-fields > tbody > .acf-field > .acf-label {
151 width: 98%;
152 float: none;
153 text-align: left;
154 min-height: 0;
155 padding: 0;
156 }
157
158
159 /* field */
160 .setting input,
161 .setting textarea,
162 .compat-attachment-fields > tbody > .acf-field > .acf-input {
163 float: none;
164 height: auto;
165 max-width: none;
166 width: 98%;
167 }
168
169 }
170
171
172 }
173
174
175
176 /*---------------------------------------------------------------------------------------------
177 *
178 * Media Model (expand details)
179 *
180 *---------------------------------------------------------------------------------------------*/
181
182 .media-modal .acf-expand-details {
183 float: right;
184 padding: 8px 10px;
185 margin-right: 6px;
186 font-size: 13px;
187 height: 18px;
188 line-height: 18px;
189 color: #666;
190 text-decoration: none;
191
192 // States.
193 &:focus, &:active {
194 outline: 0 none;
195 box-shadow: none;
196 color: #666;
197 }
198 &:hover {
199 color: #000;
200 }
201
202 // Open & close.
203 .is-open { display: none; }
204 .is-closed { display: block; }
205
206 // Hide on mobile.
207 @media (max-width: $sm) {
208 display: none;
209 }
210 }
211
212
213 /* expanded */
214 .media-modal.acf-expanded {
215
216 /* toggle */
217 .acf-expand-details {
218 .is-open { display: block; }
219 .is-closed { display: none; }
220
221 }
222
223 // Components.
224 .attachments-browser .media-toolbar,
225 .attachments-browser .attachments { right: 740px; }
226 .media-sidebar { width: 708px; }
227
228 // Sidebar.
229 .media-sidebar {
230
231 // Attachment info.
232 .attachment-info {
233 .thumbnail {
234 float: left;
235 max-height: none;
236
237 img {
238 max-width: 100%;
239 max-height: 200px;
240 }
241 }
242
243 .details {
244 float: right;
245 }
246 }
247
248 // Label
249 .attachment-info .thumbnail,
250 .attachment-details .setting .name,
251 .compat-attachment-fields > tbody > .acf-field > .acf-label {
252 min-width: 20%;
253 margin-right: 0;
254 }
255
256 // Input
257 .attachment-info .details,
258 .attachment-details .setting input,
259 .attachment-details .setting textarea,
260 .attachment-details .setting + .description,
261 .compat-attachment-fields > tbody > .acf-field > .acf-input {
262 min-width: 77%;
263 }
264 }
265
266 // Screen: Medium.
267 @media (max-width: 900px) {
268
269 // Components.
270 .attachments-browser .media-toolbar { display: none; }
271 .attachments { display: none; }
272 .media-sidebar { width: auto; max-width: none !important; bottom: 0 !important; }
273
274 // Sidebar.
275 .media-sidebar {
276
277 // Attachment info.
278 .attachment-info {
279 .thumbnail {
280 min-width: 0;
281 max-width: none;
282 width: 30%;
283 }
284
285 .details {
286 min-width: 0;
287 max-width: none;
288 width: 67%;
289 }
290
291 }
292 }
293 }
294
295 // Screen: small.
296 @media (max-width: 640px) {
297
298 // Sidebar.
299 .media-sidebar {
300
301 // Attachment info.
302 .attachment-info {
303 .thumbnail, .details {
304 width: 100%;
305 }
306 }
307 }
308 }
309 }
310
311
312
313 /*---------------------------------------------------------------------------------------------
314 *
315 * ACF Media Model
316 *
317 *---------------------------------------------------------------------------------------------*/
318
319 .acf-media-modal {
320
321 /* hide embed settings */
322 .media-embed {
323 .setting.align,
324 .setting.link-to {
325 display: none;
326 }
327 }
328 }
329
330
331 /*---------------------------------------------------------------------------------------------
332 *
333 * ACF Media Model (Select Mode)
334 *
335 *---------------------------------------------------------------------------------------------*/
336
337 .acf-media-modal.-select {
338
339
340
341 }
342
343
344 /*---------------------------------------------------------------------------------------------
345 *
346 * ACF Media Model (Edit Mode)
347 *
348 *---------------------------------------------------------------------------------------------*/
349
350 .acf-media-modal.-edit {
351
352 /* resize modal */
353 left: 15%;
354 right: 15%;
355 top: 100px;
356 bottom: 100px;
357
358
359 /* hide elements */
360 .media-frame-menu,
361 .media-frame-router,
362 .media-frame-content .attachments,
363 .media-frame-content .media-toolbar {
364 display: none;
365 }
366
367
368 /* full width */
369 .media-frame-title,
370 .media-frame-content,
371 .media-frame-toolbar,
372 .media-sidebar {
373 width: auto;
374 left: 0;
375 right: 0;
376 }
377
378
379 /* tidy up incorrect distance */
380 .media-frame-content {
381 top: 50px;
382 }
383
384
385 /* title box shadow (to match media grid) */
386 .media-frame-title {
387 border-bottom: 1px solid #DFDFDF;
388 box-shadow: 0 4px 4px -4px rgba(0, 0, 0, 0.1);
389 }
390
391
392 /* sidebar */
393 .media-sidebar {
394
395 padding: 0 16px;
396
397 /* WP details */
398 .attachment-details {
399
400 overflow: visible;
401
402 /* hide 'Attachment Details' heading */
403 > h3, > h2 {
404 display: none;
405 }
406
407
408 /* remove overflow */
409 .attachment-info {
410 background: #fff;
411 border-bottom: #dddddd solid 1px;
412 padding: 16px;
413 margin: 0 -16px 16px;
414 }
415
416 /* move thumbnail */
417 .thumbnail {
418 margin: 0 16px 0 0;
419 }
420
421 .setting {
422 margin: 0 0 5px;
423
424 span {
425 margin: 0;
426 }
427 }
428
429 }
430
431
432 /* ACF fields */
433 .compat-attachment-fields {
434
435 > tbody > .acf-field {
436 margin: 0 0 5px;
437
438 p.description {
439 margin-top: 3px;
440 }
441 }
442
443 }
444
445
446 /* WP required message */
447 .media-types-required-info { display: none; }
448
449 }
450
451
452 /* mobile md */
453 @media (max-width: 900px) {
454 top: 30px;
455 right: 30px;
456 bottom: 30px;
457 left: 30px;
458 }
459
460
461 /* mobile sm */
462 @media (max-width: 640px) {
463 top: 0;
464 right: 0;
465 bottom: 0;
466 left: 0;
467 }
468
469 @media (max-width: 480px) {
470 .media-frame-content {
471 top: 40px;
472 }
473 }
474 }
475