Use a less element-specific class name for links within page titles.

After [32974] these links are no longer within an `h2`, making the class name
inaccurate. `add-new-h1` has the potential to expose the same problem for in a
possible future change.

Fixes #31650.



git-svn-id: https://develop.svn.wordpress.org/trunk@33067 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland
2015-07-03 16:41:18 +00:00
parent 04a01d7354
commit 8d40cdcb1b
21 changed files with 35 additions and 28 deletions

View File

@@ -83,7 +83,8 @@ input[type=radio]:checked:before {
/* List tables */
.wrap .add-new-h2:hover,
.wrap .add-new-h2:hover, /* deprecated */
.wrap .page-title-action:hover,
#add-new-comment a:hover,
.tablenav .tablenav-pages a:hover,
.tablenav .tablenav-pages a:focus {

View File

@@ -595,8 +595,10 @@ code {
padding-left: 25px;
}
.wrap .add-new-h2,
.wrap .add-new-h2:active {
.wrap .add-new-h2, /* deprecated */
.wrap .add-new-h2:active, /* deprecated */
.wrap .page-title-action,
.wrap .page-title-action:active {
margin-left: 4px;
padding: 4px 8px;
position: relative;
@@ -611,7 +613,8 @@ code {
font-size: 13px;
}
.wrap .add-new-h2:hover {
.wrap .add-new-h2:hover, /* deprecated */
.wrap .page-title-action:hover {
background: #00a0d2;
color: #fff;
}
@@ -3166,7 +3169,10 @@ img {
display: none !important;
}
.wrap .add-new-h2, .wrap .add-new-h2:active {
.wrap .add-new-h2, /* deprecated */
.wrap .add-new-h2:active, /* deprecated */
.wrap .page-title-action,
.wrap .page-title-action:active {
padding: 10px 15px;
font-size: 14px;
white-space: nowrap;