Varia: Change list style position and identation

This commit is contained in:
Takashi Irie 2019-09-28 18:16:03 +01:00
parent c6c231d5c7
commit 18a49afb14
6 changed files with 27 additions and 13 deletions

View file

@ -14,6 +14,7 @@
@import "gallery/editor";
@import "group/editor";
@import "latest-posts/editor";
@import "list/editor";
@import "media-text/editor";
@import "posts-list/editor";
@import "paragraph/editor";

View file

@ -0,0 +1,7 @@
.block-library-list {
ul,
ol {
margin: #{map-deep-get($config-global, "spacing", "vertical")} 0;
padding-left: calc(2 * #{map-deep-get($config-global, "spacing", "unit")});
}
}

View file

@ -1,9 +1,8 @@
ul,
ol {
font-family: #{map-deep-get($config-list, "font", "family")};
list-style-position: inside;
margin: 0 0 0 #{map-deep-get($config-global, "spacing", "unit")};
padding: 0;
margin: 0;
padding-left: calc(2 * #{map-deep-get($config-global, "spacing", "horizontal")});
}
ul {
@ -25,5 +24,6 @@ dt {
}
dd {
margin: 0 0 0 #{map-deep-get($config-global, "spacing", "unit")};
}
margin: 0;
padding-left: #{map-deep-get($config-global, "spacing", "horizontal")};
}

View file

@ -458,6 +458,12 @@ object {
margin: 0;
}
.block-library-list ul,
.block-library-list ol {
margin: 32px 0;
padding-left: calc(2 * 16px);
}
.wp-block-media-text .block-editor-inner-blocks {
padding-right: 16px;
padding-left: 16px;

View file

@ -1588,9 +1588,8 @@ img {
ul,
ol {
font-family: serif;
list-style-position: inside;
margin: 0 16px 0 0;
padding: 0;
margin: 0;
padding-right: calc(2 * 16px);
}
ul {
@ -1607,7 +1606,8 @@ dt {
}
dd {
margin: 0 16px 0 0;
margin: 0;
padding-right: 16px;
}
.wp-block-media-text {

View file

@ -1588,9 +1588,8 @@ img {
ul,
ol {
font-family: serif;
list-style-position: inside;
margin: 0 0 0 16px;
padding: 0;
margin: 0;
padding-left: calc(2 * 16px);
}
ul {
@ -1607,7 +1606,8 @@ dt {
}
dd {
margin: 0 0 0 16px;
margin: 0;
padding-left: 16px;
}
.wp-block-media-text {