Skip to content

Commit

Permalink
Improve styling for List block with text alignment applied
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Aug 1, 2019
1 parent d0b01d4 commit c83674f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/list/editor.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.editor-styles-wrapper .block-library-list ul,
.editor-styles-wrapper .block-library-list ol {
.editor-styles-wrapper .block-library-list ul:not([class*="has-text-align-"]),
.editor-styles-wrapper .block-library-list ol:not([class*="has-text-align-"]) {
padding-left: 1.3em;
margin-left: 1.3em;
}
4 changes: 4 additions & 0 deletions packages/block-library/src/list/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ol[class*="has-text-align-"] li,
ul[class*="has-text-align-"] li {
list-style-position: inside;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@import "./image/style.scss";
@import "./latest-comments/style.scss";
@import "./latest-posts/style.scss";
@import "./list/style.scss";
@import "./media-text/style.scss";
@import "./paragraph/style.scss";
@import "./pullquote/style.scss";
Expand Down

0 comments on commit c83674f

Please sign in to comment.