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
This commit is contained in:
parent
59af284f25
commit
b8530e502a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user