Make WordPress Core

Ticket #56167: 56167.patch

File 56167.patch, 1.3 KB (added by smit08, 4 years ago)

kajal has added the max-width css also and kajal also added the css for center alignment also but there is no need of center alignment. Because center alignment is working fine. Only left and right alignment was required. So created optimized patch.

  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

     
    306306        text-align: center;
    307307}
    308308
     309.editor-styles-wrapper .block-editor-rich-text__editable.has-text-align-left {
     310        text-align: left;
     311}
     312
     313.editor-styles-wrapper .block-editor-rich-text__editable.has-text-align-right {
     314        text-align: right;
     315}
     316
    309317/* DROP CAP */
    310318
    311319.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter {
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

     
    306306        text-align: center;
    307307}
    308308
     309.editor-styles-wrapper .block-editor-rich-text__editable.has-text-align-left {
     310        text-align: left;
     311}
     312
     313.editor-styles-wrapper .block-editor-rich-text__editable.has-text-align-right {
     314        text-align: right;
     315}
     316
    309317/* DROP CAP */
    310318
    311319.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter {