[wp-trac] [WordPress Trac] #30033: TwentyFifteen editor-style - no padding

WordPress Trac noreply at wordpress.org
Sat Oct 18 18:06:08 UTC 2014


#30033: TwentyFifteen editor-style  - no padding
----------------------------+-----------------------------
 Reporter:  mattheu         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bundled Theme   |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 The content in the admin editor has no spacing on the right hand side and
 looks a bit awkward

 [[Image(https://dl.dropboxusercontent.com/s/2frpjif9e9acj7h/2014-10-18%20at%2018.52%202x.png?dl=0)]]

 When the theme was first committed - the editor style set the body a max
 width of `660px` - so on larger screens it wasn't noticable.

 This behaviour was lost in #29911 - the style rule was moved to use a less
 specific selector -  `body` instead of  `html .mce-content-body`

 I think 2 things need to be done here.

 1 - revert the change in #29911 to use a more specific selector so max-
 width applies.
 2 - add some padding on the right of the content - without this there is
 no whitespace to the right of the content on smaller screens.

 Looking at the front end - the content has 10% padding on both left and
 right of the content. I have used this in the editor style too.

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


More information about the wp-trac mailing list