media.scss
5.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
/**
* Feather Icons
*/
.media-library-organizer-feather-image {
background: url(../../_modules/dashboard/assets/feather/image.svg) transparent no-repeat scroll 0 0;
background-size: 16px 16px;
width: 16px;
height: 16px;
display: inline-block;
vertical-align: text-top;
}
/**
* Selectize
*/
div.selectize-control {
display: inline-block;
min-width: 160px;
vertical-align: middle;
line-height: 1;
}
/**
* Attachment Editor / Selection
*/
form.compat-item {
table.compat-attachment-fields {
p.help {
margin: 0;
}
tr {
/**
* Header
*/
th {
display: block;
width: 100%;
margin: 5px 0 0 0;
padding: 5px 0 0 0;
border: none; /* Overide Theme styles on Frontend Page Builders */
border-top: 1px solid #ddd;
label {
span {
text-align: left;
font-weight: 600;
}
}
}
/**
* Taxonomy Terms
*/
td.field {
clear: both;
float: left;
width: 100%;
margin: 0;
border: none; /* Overide Theme styles on Frontend Page Builders */
div.categorydiv {
/**
* Style Taxonomy selectors when WordPress media-views CSS isn't loaded
* for e.g. frontend Page Builders
*/
div.tabs-panel {
margin-top: -2px;
min-height: 42px;
max-height: 200px;
overflow: auto;
padding: 0 .9em;
border: solid 1px #ddd;
background-color: #fdfdfd;
ul.categorychecklist {
list-style: none;
margin: 15px 0;
padding: 0;
li {
line-height: 1.7;
}
ul {
margin-left: 18px;
}
}
}
/**
* Add New Taxonomy Term
*/
#mlo-taxonomy-term-add {
.mlo-taxonomy-term-add-fields {
display: grid;
grid-gap: 10px;
grid-template-columns: 4fr 1fr;
&.hidden {
display: none;
}
}
}
/**
* Checkboxes
*/
input[type="checkbox"] {
margin: 0 3px 0 0;
}
}
}
}
}
}
/**
* List View
* - Ensure Quick Action fills table column on smaller resolutions / when Tree View enabled
*/
table.media {
.column-title {
.has-media-icon~.row-actions {
clear: both;
margin-left: 0;
}
}
}
/**
* List and Grid View: Improve layout of Search Box
*/
#posts-filter .search-form,
.media-frame-content .attachments-browser .media-toolbar-primary.search-form,
.media-modal-content .attachments-browser .media-toolbar-primary.search-form {
display: grid;
column-gap: 10px;
row-gap: 10px;
box-sizing: border-box;
margin: 10px 0;
max-width: 33%;
width: 33%;
grid-template-columns: 1fr 4fr;
grid-template-rows: 32px;
grid-template-areas:
"searchlabel search";
label.media-search-input-label {
position: static !important;
line-height: 32px;
text-align: right;
grid-area: searchlabel;
}
input#media-search-input {
grid-area: search;
width: 100% !important;
margin: 0;
height: 32px;
line-height: 32px;
}
}
/**
* Grid View: Add padding below filters
*/
.media-frame-content .attachments-browser .media-toolbar-secondary,
.media-modal-content .attachments-browser .media-toolbar-secondary {
padding-bottom: 10px;
}
/**
* Grid View: Modal
* - Adjust widths of items so that all filters display
* - Increase the height of the Media Toolbar, to accommodate additional filters
*/
.media-modal-content {
/**
* Prevent Themes from overriding WordPress media-views styling
* for a better user experience
*/
.media-frame-title {
h1 {
&:before {
content: "";
margin: 0;
}
}
}
.media-attachments-filter-heading {
&:before {
content: "";
margin: 0;
}
}
/**
* Set <select> widths to auto, so we can add as many
* filters as we like
*/
.media-frame {
.media-toolbar {
select.attachment-filters {
width: auto !important;
}
}
}
/**
* Attachments Browser
*/
.attachments-browser {
.media-toolbar {
height: auto;
background-color: #f3f3f3;
border-bottom: 1px solid #ddd;
}
/**
* Toolbar Widths
*/
.media-toolbar-secondary {
max-width: 66%;
width: 66%;
h2 {
display: none;
}
select {
margin-top: 10px;
}
}
}
/**
* Backbone Modal: Blank Content + Sidebar Layout
*/
.media-content {
position: absolute;
left: 0;
padding: 20px;
&.has-sidebar {
right: 300px;
}
/**
* Form Fields
*/
.media-library-organizer-modal-content-field {
padding: 0 0 20px 0;
&.columns {
display: grid;
grid-gap: 10px;
}
&.columns-2 {
grid-template-columns: repeat(2, 50%);
}
&.columns-3 {
grid-template-columns: repeat(3, 33%);
}
&.columns-4 {
grid-template-columns: repeat(4, 25%);
}
label {
display: block;
font-size: 15px;
margin: 0 0 5px 0;
}
input, select {
font-size: 15px;
}
}
}
}
/**
* Grid and List View: Search Filters: On smaller screens, make primary and secondary
* toolbars full width
*/
@media only screen and (max-width: 1000px) {
#posts-filter .search-form,
.media-frame-content .attachments-browser .media-toolbar-primary.search-form,
.media-modal-content .attachments-browser .media-toolbar-primary.search-form {
max-width: 100%;
width: 100%;
grid-template-columns: 50px auto;
grid-template-rows: 32px;
grid-template-areas:
"searchlabel search"
}
.media-frame-content .attachments-browser .media-toolbar-secondary,
.media-modal-content .attachments-browser .media-toolbar-secondary {
max-width: 100%;
width: 100%;
height: auto;
}
}
/**
* Selectize
*/
@media only screen and (max-width: 782px) {
div.media-library-organizer-selectize,
div.media-library-organizer-selectize-search {
width: 200px;
.selectize-input {
min-height: 40px;
font-size: 16px;
line-height: 1.625;
padding: 5px 24px 5px 8px;
}
}
}