In miscellaneous publishing actions, use :last-child instead of a separate misc-pub-section-last class to control borders. Allows for sane use of the post_submitbox_misc_actions hook. (Actually uses :first-child for browser compat reasons.) fixes #19604.

git-svn-id: https://develop.svn.wordpress.org/trunk@20077 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2012-03-02 19:52:23 +00:00
parent b89570a1ef
commit 1bc62a722a
5 changed files with 21 additions and 10 deletions

View File

@@ -939,7 +939,13 @@ ul#add-to-blog-users {
#major-publishing-actions {
padding: 10px 10px 8px;
clear: both;
border-top: none;
border-top: 1px solid #f5f5f5;
margin-top: -2px;
}
#post-body #major-publishing-actions {
border-top: 0;
margin-top: 0;
}
#delete-action {
@@ -964,8 +970,8 @@ ul#add-to-blog-users {
}
#post-body .misc-pub-section {
border-right-width: 1px;
border-right-style: solid;
border-left-width: 1px;
border-left-style: solid;
border-top: 0;
border-bottom: 0;
min-height: 30px;
@@ -973,6 +979,10 @@ ul#add-to-blog-users {
max-width: 32%;
}
#post-body .misc-pub-section:first-child {
border-left: 0;
}
#post-body .misc-pub-section-last {
border-right: 0;
}
@@ -990,6 +1000,7 @@ ul#add-to-blog-users {
.misc-pub-section:first-child {
border-top-width: 0;
}
.misc-pub-section-last {
border-bottom-width: 0;
}