From 183ac18d831a6fb2c57c22ee242017c5c80ecd5e Mon Sep 17 00:00:00 2001 From: Matt Thomas Date: Tue, 26 Nov 2013 02:41:35 +0000 Subject: [PATCH] Allow #wpwrap to scroll horizontally if needed, and hide overflow only on specific elements that need it. See #26169. git-svn-id: https://develop.svn.wordpress.org/trunk@26382 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/wp-admin.css | 8 ++++++-- src/wp-includes/css/admin-bar.css | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/css/wp-admin.css b/src/wp-admin/css/wp-admin.css index b50b716a5a..153042d27a 100644 --- a/src/wp-admin/css/wp-admin.css +++ b/src/wp-admin/css/wp-admin.css @@ -10906,7 +10906,6 @@ li#wp-admin-bar-toggle-button { #wpwrap { background: #f0f0f0; - overflow-x: hidden; } #wpcontent, .auto-fold #wpcontent { @@ -10916,7 +10915,7 @@ li#wp-admin-bar-toggle-button { } .wrap { - margin-right: 10px; + margin-right: 12px; margin-left: 0; } @@ -12257,4 +12256,9 @@ li#wp-admin-bar-toggle-button { height: 100%; z-index: 400; } + + /* Keep full-width boxes on Edit Post page from causing horizontal scroll */ + div#post-body.metabox-holder.columns-1 { + overflow-x: hidden; + } } diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css index 6eb25bf98b..7661764260 100644 --- a/src/wp-includes/css/admin-bar.css +++ b/src/wp-includes/css/admin-bar.css @@ -838,6 +838,7 @@ text-indent: 100%; width: 28px; padding: 0 10px; + overflow: hidden; /* Prevent link text from forcing horizontal scrolling on mobile */ } #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {