Merge pull request #767 from sharelatex/as-fix-rt-delete-itemize

Fix left padding on empty nested list environments
This commit is contained in:
Alasdair Smith 2018-07-18 08:43:01 +01:00 committed by GitHub
commit 1e7911adaf

View file

@ -41,6 +41,8 @@
/****************************************************************************/ /****************************************************************************/
// wl-indent-X is used to add extra left padding to nested itemize/enumerate
// environments, so that the inner list appears more indented than the outer
.wl-indent-0 { .wl-indent-0 {
padding-left: calc(~"2.5em + @{rt-line-padding}") !important; padding-left: calc(~"2.5em + @{rt-line-padding}") !important;
} }
@ -61,24 +63,26 @@
padding-left: calc(~"6.5em + @{rt-line-padding}") !important; padding-left: calc(~"6.5em + @{rt-line-padding}") !important;
} }
// wl-indent-env-X is used to add extra left padding to empty nested itemize/
// enumerate environments
.wl-indent-env-0 { .wl-indent-env-0 {
padding-left: 4px !important; padding-left: calc(~"4px + @{rt-line-padding}") !important;
} }
.wl-indent-env-1 { .wl-indent-env-1 {
padding-left: 1.5em !important; padding-left: calc(~"1.5em + @{rt-line-padding}") !important;
} }
.wl-indent-env-2 { .wl-indent-env-2 {
padding-left: 2.5em !important; padding-left: calc(~"2.5em + @{rt-line-padding}") !important;
} }
.wl-indent-env-3 { .wl-indent-env-3 {
padding-left: 3.5em !important; padding-left: calc(~"3.5em + @{rt-line-padding}") !important;
} }
.wl-indent-env-4 { .wl-indent-env-4 {
padding-left: 4.5em !important; padding-left: calc(~"4.5em + @{rt-line-padding}") !important;
} }
.wl-enumerate-item-open { .wl-enumerate-item-open {