From f9b33fb524644d326647f59785efce17d6d2c849 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 20 Mar 2018 22:43:58 +0000 Subject: [PATCH] Media: On Media Settings screen, make the pairs of labels and inputs always stacked vertically, on both mobile and desktop screens. Make `
` tags on the screen behave as line breaks again after [41836]. Add a missing fieldset + legend for better accessibility. Props afercia, RavanH, obenland, garrett-eclipse. Fixes #42724. See #34539. git-svn-id: https://develop.svn.wordpress.org/trunk@42864 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 17 ----------------- src/wp-admin/css/forms.css | 10 +++++++++- src/wp-admin/options-media.php | 8 +++++--- 3 files changed, 14 insertions(+), 21 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 8f81235b05..cbae1c5d68 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -3952,23 +3952,6 @@ img { } } -.options-media-php br { - display: none; -} - -@media screen and (max-width: 375px) { - .options-media-php input[type="number"][name*="_size_"] { - margin: 5px 0; - } - .options-media-php label[for*="_size_h"]:before { - content: ""; - display: block; - } - .options-media-php br { - display: block; - } -} - @media screen and (max-width: 320px) { /* Prevent default center alignment and larger font for the Right Now widget when the network dashboard is viewed on a small mobile device. */ diff --git a/src/wp-admin/css/forms.css b/src/wp-admin/css/forms.css index 790bb97092..0f93e6bd81 100644 --- a/src/wp-admin/css/forms.css +++ b/src/wp-admin/css/forms.css @@ -438,7 +438,15 @@ fieldset label, vertical-align: middle; } -.options-media-php label[for*="_size_"], +.options-media-php [for*="_size_"] { + min-width: 10em; + vertical-align: baseline; +} + +.options-media-php .small-text[name*="_size_"] { + margin: 0 0 1em; +} + #misc-publishing-actions label { vertical-align: baseline; } diff --git a/src/wp-admin/options-media.php b/src/wp-admin/options-media.php index 4f585a10da..c45e8ccbd0 100644 --- a/src/wp-admin/options-media.php +++ b/src/wp-admin/options-media.php @@ -54,13 +54,15 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); -
+
+
-

/> -

+
+/> +