[wp-trac] [WordPress Trac] #44474: Add print styles to backend

WordPress Trac noreply at wordpress.org
Tue Jul 6 23:56:34 UTC 2021


#44474: Add print styles to backend
----------------------------+------------------------------
 Reporter:  strarsis        |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  css
----------------------------+------------------------------

Comment (by sabernhardt):

 I updated the patch [attachment:"44474.1.patch"]

 Hidden items in common.css:

 - Toolbar (which should be hidden already for print)
 - Admin side menu
 - Screen Options and Help buttons (but if one is expanded, the content
 prints)
 - Add New buttons beside the title of Posts, Media, Plugins, etc.
 - Search box for filtering Posts, Comments, Users, etc.
 - List table navigation container (including bulk actions and category
 filters)
 - List table row action links
 - Media Library filter toolbar (grid view)
 - Media Library filter toolbar (list view)
 - Admin footer

 Adjustments for dashboard widgets:

 - Hiding empty postbox containers
 - Making each postbox more than 50% wide (I chose 60%) to avoid splitting
 floated elements across the page break
 - Resetting the display property for the `meta-box-sortables` container to
 `block` (it's `flow-root` for screen)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44474#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list