From 69b8d057da5163b220abfc098ef3ed06affcf511 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sat, 28 Oct 2017 06:53:40 +0000 Subject: [PATCH] Customize: Fix mobile placement of panes for available widgets and nav menu items. Props Mahvash-Fatima. Amends [41893]. See #42215. Fixes #42359. git-svn-id: https://develop.svn.wordpress.org/trunk@42036 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/customize-controls.css | 39 ++++++++++++------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/src/wp-admin/css/customize-controls.css b/src/wp-admin/css/customize-controls.css index 28acba4230..f1962acf5d 100644 --- a/src/wp-admin/css/customize-controls.css +++ b/src/wp-admin/css/customize-controls.css @@ -2864,11 +2864,6 @@ body.adding-widget .add-new-widget:before, @media screen and ( max-width: 640px ) { - .wp-full-overlay.expanded, - .outer-section-open .wp-full-overlay.expanded { - margin-left: 0; - } - /* when the sidebar is collapsed and switching to responsive view, bring it back see ticket #35220 */ .wp-full-overlay.collapsed #customize-controls { @@ -2931,10 +2926,6 @@ body.adding-widget .add-new-widget:before, display: block; } - .wp-full-overlay.expanded { - margin-left: 300px; - } - .wp-core-ui.wp-customizer .button { padding: 6px 14px; line-height: normal; @@ -2954,20 +2945,9 @@ body.adding-widget .add-new-widget:before, body.adding-widget div#available-widgets, body.adding-menu-items div#available-menu-items, body.outer-section-open div#customize-sidebar-outer-content { - top: 46px; - left: 0; - z-index: 10; width: 100%; } - body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content { - left: -100%; - } - - body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content { - left: 0; - } - #available-widgets .customize-section-title, #available-menu-items .customize-section-title { display: block; @@ -3040,4 +3020,23 @@ body.adding-widget .add-new-widget:before, padding: 8px 15px; box-shadow: none; } + + .wp-full-overlay.expanded { + margin-left: 0; + } + + body.adding-widget div#available-widgets, + body.adding-menu-items div#available-menu-items, + body.outer-section-open div#customize-sidebar-outer-content { + top: 46px; + z-index: 10; + } + + body.wp-customizer .wp-full-overlay.expanded #customize-sidebar-outer-content { + left: -100%; + } + + body.wp-customizer.outer-section-open .wp-full-overlay.expanded #customize-sidebar-outer-content { + left: 0; + } }