mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 16:45:31 +01:00
6a9bcaeaa9
- changes the media views form controls to have explicitly associated labels with for/id attributes - adds a few missing labels / aria-labels - improves a few existing labels / aria-labels - improves semantics in a few places, by adding visually hidden headings, fieldset + legend elements, aria-describedby attributes - improves the image custom size input fields and their labelling - adds `role="status"` to the "saved" indicator so that status messages are announced to assistive technologies - swaps the columns source order in the image details template, to make visual and DOM order match - swaps the "Replace" and "Back" buttons source order in the Replace Image view, to make visual and DOM order match - gallery settings: move checkbox label to the right: checkboxes are supposed to have labels on the right - merge similar strings, unified to "Drop files to upload" (removed "Drop files here", and "Drop files anywhere to upload") - makes the "upload-ui" consistent across the media views - hides the IE 11 "X" `::-ms-clear` button in the Insert from URL field, as it conflicts with the uploading spinner - adds comments to all the media templates to clarify their usage - slightly increases vertical spacing between form fields in the media sidebar - removes some CSS selectors introduced as backwards compatibility for WordPress pre-4.4 - removes some CSS still targeting Internet Explorer 7 and 8 Fixes #47141. Fixes #47122. Built from https://develop.svn.wordpress.org/trunk@45499 git-svn-id: http://core.svn.wordpress.org/trunk@45310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
294 lines
4.8 KiB
CSS
294 lines
4.8 KiB
CSS
.mejs-container {
|
|
clear: both;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.mejs-container * {
|
|
font-family: Helvetica, Arial;
|
|
}
|
|
|
|
.mejs-container,
|
|
.mejs-embed,
|
|
.mejs-embed body,
|
|
.mejs-container .mejs-controls {
|
|
background: #222;
|
|
}
|
|
|
|
.mejs-time {
|
|
font-weight: normal;
|
|
word-wrap: normal;
|
|
}
|
|
|
|
.mejs-controls a.mejs-horizontal-volume-slider {
|
|
display: table;
|
|
}
|
|
|
|
.mejs-controls .mejs-time-rail .mejs-time-loaded,
|
|
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
|
|
background: #fff;
|
|
}
|
|
|
|
.mejs-controls .mejs-time-rail .mejs-time-current {
|
|
background: #0073aa;
|
|
}
|
|
|
|
.mejs-controls .mejs-time-rail .mejs-time-total,
|
|
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total {
|
|
background: rgba(255, 255, 255, .33);
|
|
}
|
|
|
|
.mejs-controls .mejs-time-rail span,
|
|
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-total,
|
|
.mejs-controls .mejs-horizontal-volume-slider .mejs-horizontal-volume-current {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.mejs-overlay-loading {
|
|
background: transparent;
|
|
}
|
|
|
|
/* Override theme styles that may conflict with controls. */
|
|
.mejs-controls button:hover {
|
|
border: none;
|
|
-webkit-box-shadow: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.me-cannotplay {
|
|
width: auto !important;
|
|
}
|
|
|
|
.media-embed-details .wp-audio-shortcode {
|
|
display: inline-block;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.audio-details .embed-media-settings {
|
|
overflow: visible;
|
|
}
|
|
|
|
.media-embed-details .embed-media-settings .setting span:not(.button-group) {
|
|
max-width: 400px; /* Back-compat for pre-5.3 */
|
|
width: auto; /* Back-compat for pre-5.3 */
|
|
}
|
|
|
|
.media-embed-details .embed-media-settings .checkbox-setting span {
|
|
display: inline-block;
|
|
}
|
|
|
|
.media-embed-details .embed-media-settings {
|
|
padding-top: 0;
|
|
top: 28px;
|
|
}
|
|
|
|
.media-embed-details .instructions {
|
|
padding: 16px 0;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.media-embed-details .setting p,
|
|
.media-embed-details .setting .remove-setting {
|
|
color: #a00;
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.media-embed-details .setting .remove-setting {
|
|
padding: 5px 0;
|
|
}
|
|
|
|
.media-embed-details .setting a:hover {
|
|
color: #dc3232;
|
|
}
|
|
|
|
.media-embed-details .embed-media-settings .checkbox-setting {
|
|
float: none;
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.wp-video {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.wp_attachment_holder .wp-video,
|
|
.wp_attachment_holder .wp-audio-shortcode {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
video.wp-video-shortcode,
|
|
.wp-video-shortcode video {
|
|
max-width: 100%;
|
|
display: inline-block;
|
|
}
|
|
|
|
.video-details .wp-video-holder {
|
|
width: 100%;
|
|
max-width: 640px;
|
|
}
|
|
|
|
.wp-playlist {
|
|
border: 1px solid #ccc;
|
|
padding: 10px;
|
|
margin: 12px 0 18px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.wp-admin .wp-playlist {
|
|
margin: 0 0 18px;
|
|
}
|
|
|
|
.wp-playlist video {
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.wp-playlist audio {
|
|
display: none;
|
|
max-width: 100%;
|
|
width: 400px;
|
|
}
|
|
|
|
.wp-playlist .mejs-container {
|
|
margin: 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.wp-playlist .mejs-controls .mejs-button button {
|
|
outline: 0;
|
|
}
|
|
|
|
.wp-playlist-light {
|
|
background: #fff;
|
|
color: #000;
|
|
}
|
|
|
|
.wp-playlist-dark {
|
|
color: #fff;
|
|
background: #000;
|
|
}
|
|
|
|
.wp-playlist-caption {
|
|
display: block;
|
|
max-width: 88%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.wp-playlist-item .wp-playlist-caption {
|
|
text-decoration: none;
|
|
color: #000;
|
|
max-width: -webkit-calc(100% - 40px);
|
|
max-width: calc(100% - 40px);
|
|
}
|
|
|
|
.wp-playlist-item-meta {
|
|
display: block;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.wp-playlist-item-title {
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.wp-playlist-item-album {
|
|
font-style: italic;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.wp-playlist-item-artist {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.wp-playlist-item-length {
|
|
position: absolute;
|
|
right: 3px;
|
|
top: 0;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.rtl .wp-playlist-item-length {
|
|
left: 3px;
|
|
right: auto;
|
|
}
|
|
|
|
.wp-playlist-tracks {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.wp-playlist-item {
|
|
position: relative;
|
|
cursor: pointer;
|
|
padding: 0 3px;
|
|
border-bottom: 1px solid #ccc;
|
|
}
|
|
|
|
.wp-playlist-item:last-child {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.wp-playlist-light .wp-playlist-caption {
|
|
color: #333;
|
|
}
|
|
|
|
.wp-playlist-dark .wp-playlist-caption {
|
|
color: #ddd;
|
|
}
|
|
|
|
.wp-playlist-playing {
|
|
font-weight: bold;
|
|
background: #f7f7f7;
|
|
}
|
|
|
|
.wp-playlist-light .wp-playlist-playing {
|
|
background: #fff;
|
|
color: #000;
|
|
}
|
|
|
|
.wp-playlist-dark .wp-playlist-playing {
|
|
background: #000;
|
|
color: #fff;
|
|
}
|
|
|
|
.wp-playlist-current-item {
|
|
overflow: hidden;
|
|
margin-bottom: 10px;
|
|
height: 60px;
|
|
}
|
|
|
|
.wp-playlist .wp-playlist-current-item img {
|
|
float: left;
|
|
max-width: 60px;
|
|
height: auto;
|
|
margin-right: 10px;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.rtl .wp-playlist .wp-playlist-current-item img {
|
|
float: right;
|
|
margin-left: 10px;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.wp-playlist-current-item .wp-playlist-item-title,
|
|
.wp-playlist-current-item .wp-playlist-item-artist {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.wp-audio-playlist .me-cannotplay span {
|
|
padding: 5px 15px;
|
|
}
|