Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions src/wp-includes/css/media-views.css
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,12 @@ label[for="media-attachment-date-filters"] {
grid-area: 1 / 1 / 2 / 2;
}

.media-modal label[for="media-attachment-filters"],
.media-modal label[for="media-attachment-date-filters"],
.media-modal label[for="media-search-input"] {
margin-bottom: 6px;
}

select#media-attachment-date-filters {
grid-area: 2 / 1 / 3 / 2;
}
Expand Down Expand Up @@ -1257,6 +1263,14 @@ select#media-attachment-filters ~ select#media-attachment-date-filters {
padding: 12px 16px;
}

.media-modal .attachments-browser .media-toolbar {
height: 60px;
}

.media-modal .attachments-browser .media-toolbar-secondary {
grid-template-rows: min-content min-content;
}

.attachments-browser.hide-sidebar .media-toolbar {
right: 0;
}
Expand Down Expand Up @@ -1288,6 +1302,12 @@ select#media-attachment-filters ~ select#media-attachment-date-filters {
display: none;
}

.media-modal .attachments-browser:not(.has-load-more) .attachments,
.media-modal .attachments-browser.has-load-more .attachments-wrapper,
.media-modal .attachments-browser .uploader-inline {
top: 84px;
}

.attachments-browser .media-toolbar-primary {
max-width: calc(33% - 20px);
}
Expand Down Expand Up @@ -2646,13 +2666,23 @@ select#media-attachment-filters ~ select#media-attachment-date-filters {
height: 117px;
}

.media-modal .attachments-browser .media-toolbar {
height: 136px;
}

.attachments-browser .attachments,
.attachments-browser:not(.has-load-more) .attachments,
.attachments-browser .uploader-inline,
.media-frame-content .attachments-browser .attachments-wrapper {
top: 131px;
}

.media-modal .attachments-browser:not(.has-load-more) .attachments,
.media-modal .attachments-browser.has-load-more .attachments-wrapper,
.media-modal .attachments-browser .uploader-inline {
top: 160px;
}

.media-sidebar .setting,
.attachment-details .setting {
margin: 6px 0;
Expand Down Expand Up @@ -2996,6 +3026,14 @@ select#media-attachment-filters ~ select#media-attachment-date-filters {

}

@media only screen and (max-width: 565px) {
.media-modal label[for="media-attachment-filters"],
.media-modal label[for="media-attachment-date-filters"],
.media-modal label[for="media-search-input"] {
margin-bottom: 8px;
}
}
Comment on lines +3029 to +3035

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the media queries in this file are ordered from the widest to the narrowest (900px → 782px → 640px → 480px). Could we move this max-width: 565px block above the existing max-width: 480px block to keep that order?

@media only screen and (max-width: 565px) {
	.media-modal label[for="media-attachment-filters"],
	.media-modal label[for="media-attachment-date-filters"],
	.media-modal label[for="media-search-input"] {
		margin-bottom: 8px;
	}
}

@media only screen and (max-width: 480px) {
	.wp-core-ui.wp-customizer .media-button {
		margin-top: 13px;
	}
}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing this out! I’ve moved the max-width: 565px block above the max-width: 480px block to keep the media queries in order.


@media only screen and (max-width: 480px) {
.wp-core-ui.wp-customizer .media-button {
margin-top: 13px;
Expand Down
Loading