[wp-trac] [WordPress Trac] #50026: twentytwenty full height with short content

WordPress Trac noreply at wordpress.org
Tue Apr 28 22:35:17 UTC 2020


#50026: twentytwenty full height with short content
-------------------------+-----------------------------
 Reporter:  beaucollins  |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:
 Severity:  trivial      |   Keywords:  has-screenshots
  Focuses:  css          |
-------------------------+-----------------------------
 With the `twentytwenty` theme, when the height of the content in a page
 does not fill up the entire viewport, the page ends up with extra trailing
 whitespace.

 If we treat the `<body>` as a flex box the page call always be filled:


 {{{
 body {
   display: flex;
   flex-direction: column;
   min-height: 100vh;
 }

 main#site-content {
   flex: 1
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50026>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list