From b8530e502a4542279af38579257f474ebe98af8e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 13 Oct 2015 07:16:43 +0000 Subject: [PATCH] Accessibility: Add back-compat styles for plugins that still use `h2` as a main heading in their screens. Props afercia. Fixes #33559. git-svn-id: https://develop.svn.wordpress.org/trunk@35131 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index b16933a958..eb9d199e76 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -325,17 +325,11 @@ h6 { } h1 { + color: #23282d; font-size: 2em; margin: .67em 0; } -.wrap > h1 { - color: #23282d; - font-size: 1.5em; - margin: .83em 0; - font-weight: 400; -} - h2, h3 { color: #23282d; @@ -568,12 +562,14 @@ code { margin: 10px 20px 0 2px; } +.wrap > h2:first-child, /* Back-compat for old plugins */ .wrap h1, .subtitle { font-weight: normal; margin: 0; } +.wrap > h2:first-child, /* Back-compat for old plugins */ .wrap h1 { font-size: 23px; font-weight: 400; @@ -2004,15 +2000,18 @@ html.wp-toolbar { color: #000; } -h1.nav-tab-wrapper, +h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */ h2.nav-tab-wrapper, h3.nav-tab-wrapper { border-bottom: 1px solid #ccc; - padding-bottom: 0; - padding-left: 10px; + margin: 0; + padding: 9px 15px 0 10px; + font-size: 23px; + font-weight: 400; + line-height: 29px; } -h1 .nav-tab, +h1 .nav-tab, /* Back-compat for pre-4.4 */ h2 .nav-tab { padding: 6px 10px; font-weight: 600;