Skip to content

Commit c048d9f

Browse files
committed
Media: Add spacing below filter labels in the media modal.
Increases the space between the "Filter by type", "Filter by date", and search labels and their fields in the media modal, with slightly more space on small screens. Developed in #11927 Props ankitkumarshah, audrasjb, deeppatel8950, im3dabasia1, jns141191, masteradhoc, ravichudasama01, wildworks. Fixes #65300. git-svn-id: https://develop.svn.wordpress.org/trunk@65799 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 90582b1 commit c048d9f

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎src/wp-includes/css/media-views.css‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ label[for="media-attachment-date-filters"] {
352352
grid-area: 1 / 1 / 2 / 2;
353353
}
354354

355+
.media-modal label[for="media-attachment-filters"],
356+
.media-modal label[for="media-attachment-date-filters"],
357+
.media-modal label[for="media-search-input"] {
358+
margin-bottom: 6px;
359+
}
360+
355361
select#media-attachment-date-filters {
356362
grid-area: 2 / 1 / 3 / 2;
357363
}
@@ -1257,6 +1263,14 @@ select#media-attachment-filters ~ select#media-attachment-date-filters {
12571263
padding: 12px 16px;
12581264
}
12591265

1266+
.media-modal .attachments-browser .media-toolbar {
1267+
height: 60px;
1268+
}
1269+
1270+
.media-modal .attachments-browser .media-toolbar-secondary {
1271+
grid-template-rows: min-content min-content;
1272+
}
1273+
12601274
.attachments-browser.hide-sidebar .media-toolbar {
12611275
right: 0;
12621276
}
@@ -1288,6 +1302,12 @@ select#media-attachment-filters ~ select#media-attachment-date-filters {
12881302
display: none;
12891303
}
12901304

1305+
.media-modal .attachments-browser:not(.has-load-more) .attachments,
1306+
.media-modal .attachments-browser.has-load-more .attachments-wrapper,
1307+
.media-modal .attachments-browser .uploader-inline {
1308+
top: 84px;
1309+
}
1310+
12911311
.attachments-browser .media-toolbar-primary {
12921312
max-width: calc(33% - 20px);
12931313
}
@@ -2646,13 +2666,23 @@ select#media-attachment-filters ~ select#media-attachment-date-filters {
26462666
height: 117px;
26472667
}
26482668

2669+
.media-modal .attachments-browser .media-toolbar {
2670+
height: 136px;
2671+
}
2672+
26492673
.attachments-browser .attachments,
26502674
.attachments-browser:not(.has-load-more) .attachments,
26512675
.attachments-browser .uploader-inline,
26522676
.media-frame-content .attachments-browser .attachments-wrapper {
26532677
top: 131px;
26542678
}
26552679

2680+
.media-modal .attachments-browser:not(.has-load-more) .attachments,
2681+
.media-modal .attachments-browser.has-load-more .attachments-wrapper,
2682+
.media-modal .attachments-browser .uploader-inline {
2683+
top: 160px;
2684+
}
2685+
26562686
.media-sidebar .setting,
26572687
.attachment-details .setting {
26582688
margin: 6px 0;
@@ -2996,6 +3026,14 @@ select#media-attachment-filters ~ select#media-attachment-date-filters {
29963026

29973027
}
29983028

3029+
@media only screen and (max-width: 565px) {
3030+
.media-modal label[for="media-attachment-filters"],
3031+
.media-modal label[for="media-attachment-date-filters"],
3032+
.media-modal label[for="media-search-input"] {
3033+
margin-bottom: 8px;
3034+
}
3035+
}
3036+
29993037
@media only screen and (max-width: 480px) {
30003038
.wp-core-ui.wp-customizer .media-button {
30013039
margin-top: 13px;

0 commit comments

Comments
 (0)