From f21d937706bff3d7cad19e53e77748a075e6fa29 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 5 Dec 2013 23:09:23 +0000 Subject: [PATCH] Fix z-indexes as it relates to thickbox, the theme modal, and admin menu. props ryelle, shaunandrews. fixes #26442. git-svn-id: https://develop.svn.wordpress.org/trunk@26701 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/wp-admin.css | 4 ++-- src/wp-includes/js/thickbox/thickbox.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/css/wp-admin.css b/src/wp-admin/css/wp-admin.css index 344effdae5..b682e332a1 100644 --- a/src/wp-admin/css/wp-admin.css +++ b/src/wp-admin/css/wp-admin.css @@ -1913,7 +1913,7 @@ div.wp-menu-image:before { .sticky-menu #adminmenuwrap { position: fixed; - z-index: 9999; /* Match the z-index of .wp-submenu to ensure flyout menus don't appear underneath main column elements */ + z-index: 99; /* Match the z-index of .wp-submenu to ensure flyout menus don't appear underneath main column elements */ } /* A new arrow */ @@ -7129,7 +7129,7 @@ body.folded .theme-overlay .theme-wrap { left: 0; padding: 70px 20px 20px; border: none; - z-index: 999999999; + z-index: 500; /* should overlap #wpadminbar, which is 500 on mobile. */ position: fixed; } diff --git a/src/wp-includes/js/thickbox/thickbox.css b/src/wp-includes/js/thickbox/thickbox.css index 2b89963222..26d7106938 100644 --- a/src/wp-includes/js/thickbox/thickbox.css +++ b/src/wp-includes/js/thickbox/thickbox.css @@ -23,7 +23,7 @@ /* ----------------------------------------------------------------------------------------------------------------*/ #TB_overlay { position: fixed; - z-index:100; + z-index:510; /* should overlap theme modal, which is 500 on mobile. */ top: 0px; left: 0px; height:100%; @@ -47,7 +47,7 @@ #TB_window { position: fixed; background: #ffffff; - z-index: 102; + z-index: 510; /* should overlap theme modal, which is 500 on mobile. */ color:#000000; visibility: hidden; text-align:left;