From 8483316de5bcf5f03c5eab057690deb5d262b219 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Wed, 7 Oct 2015 17:34:56 +0000 Subject: [PATCH] Bump H3 headings to H2 on the Network Admin > Sites > Edit Site screens. The navigation tabs appear in an `

` heading immediately following the main `

` and need to have a proper hierarchy. Also, fix the tabs focus style and introduce a new `.nav-tab-small` CSS class. Fixes #34079. git-svn-id: https://develop.svn.wordpress.org/trunk@34913 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/common.css | 24 +++++++++++++++--------- src/wp-admin/network/site-info.php | 4 ++-- src/wp-admin/network/site-settings.php | 4 ++-- src/wp-admin/network/site-themes.php | 4 ++-- src/wp-admin/network/site-users.php | 4 ++-- 5 files changed, 23 insertions(+), 17 deletions(-) diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css index 2bc8771cec..22da9e3b62 100644 --- a/src/wp-admin/css/common.css +++ b/src/wp-admin/css/common.css @@ -1960,15 +1960,20 @@ html.wp-toolbar { border-bottom: none; background: #e4e4e4; color: #555; - font-size: 12px; - line-height: 16px; - display: inline-block; - padding: 4px 14px 6px; - text-decoration: none; - margin: -4px 4px -1px 0; } -.nav-tab:hover { +.nav-tab, +.nav-tab-small .nav-tab { + display: inline-block; + margin: -4px 4px -1px 0; + padding: 5px 14px; + font-size: 12px; + line-height: 16px; + text-decoration: none; +} + +.nav-tab:hover, +.nav-tab:focus { background-color: #fff; color: #464646; } @@ -1978,7 +1983,8 @@ html.wp-toolbar { } .nav-tab-active, -.nav-tab-active:hover { +.nav-tab-active:hover, +.nav-tab-active:focus { border-bottom: 1px solid #f1f1f1; background: #f1f1f1; color: #000; @@ -1995,7 +2001,7 @@ h3.nav-tab-wrapper { h1 .nav-tab, h2 .nav-tab { padding: 6px 10px; - font-weight: bold; + font-weight: 600; font-size: 15px; line-height: 24px; } diff --git a/src/wp-admin/network/site-info.php b/src/wp-admin/network/site-info.php index a4ee7bb6b2..634e032379 100644 --- a/src/wp-admin/network/site-info.php +++ b/src/wp-admin/network/site-info.php @@ -138,7 +138,7 @@ require( ABSPATH . 'wp-admin/admin-header.php' );

|

- +

|

- +

|

-;

|

-