[wp-trac] [WordPress Trac] #19604: Make the styles for misc-publishing-actions dynamic
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 19 02:07:32 UTC 2011
#19604: Make the styles for misc-publishing-actions dynamic
--------------------------+-----------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.4
Component: UI | Version:
Severity: normal | Keywords: has-patch
--------------------------+-----------------------
The last of the three misc-publishing-actions (Status, Visibility, Publish
immediately) need special styling, specifically the lack of a bottom
border, to prevent it from doubling up with major-publishing-actions.
This is hardcoded to the Publish immediately div with the misc-pub-
actions-last class. This is a problem when the post_submitbox_misc_actions
hook is used.
Given that :last-child exists, this is lame. But we can't use :last-child
since IE is lame.
The attached patch rearranges it as follows: When the Publish box is in
the sidebar, the major-publishing-actions div is given a border that is
the same as the background, and a negative top margin, to cover up the
double margin. When the Publish box is in the left column, the borders are
applied to the left, rather than the right, and first-child (supported
down to IE7 in some respect) is used to remove the left border.
No UI actually changes.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19604>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list