Accessibility: Add back-compat styles for plugins that still use `h2` as a main heading in their screens.

Props afercia.
Fixes #33559.
Built from https://develop.svn.wordpress.org/trunk@35131


git-svn-id: http://core.svn.wordpress.org/trunk@35096 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-10-13 07:17:24 +00:00
parent 1c9ea9bb4a
commit be10375eb6
5 changed files with 23 additions and 25 deletions

View File

@ -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 2px 0 20px;
}
.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-right: 10px;
margin: 0;
padding: 9px 10px 0 15px;
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;

View File

@ -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;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-35130';
$wp_version = '4.4-alpha-35131';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.