mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #760 from sharelatex/as-fix-rt-indent
Fix list envs not indented correctly
This commit is contained in:
commit
1bb266c6dc
1 changed files with 7 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
||||||
@rt-font-family-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
|
@rt-font-family-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
|
||||||
|
@rt-line-padding: 8%;
|
||||||
|
|
||||||
.rich-text .CodeMirror {
|
.rich-text .CodeMirror {
|
||||||
font-family: @rt-font-family-serif;
|
font-family: @rt-font-family-serif;
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
|
|
||||||
.CodeMirror-line {
|
.CodeMirror-line {
|
||||||
// Add horizontal padding, to emulate a manuscript more closely
|
// Add horizontal padding, to emulate a manuscript more closely
|
||||||
padding: 0 8%;
|
padding: 0 @rt-line-padding;
|
||||||
}
|
}
|
||||||
|
|
||||||
.CodeMirror-linenumber {
|
.CodeMirror-linenumber {
|
||||||
|
@ -41,23 +42,23 @@
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
.wl-indent-0 {
|
.wl-indent-0 {
|
||||||
padding-left: 2.5em !important;
|
padding-left: calc(~"2.5em + @{rt-line-padding}") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wl-indent-1 {
|
.wl-indent-1 {
|
||||||
padding-left: 3.5em !important;
|
padding-left: calc(~"3.5em + @{rt-line-padding}") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wl-indent-2 {
|
.wl-indent-2 {
|
||||||
padding-left: 4.5em !important;
|
padding-left: calc(~"4.5em + @{rt-line-padding}") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wl-indent-3 {
|
.wl-indent-3 {
|
||||||
padding-left: 5.5em !important;
|
padding-left: calc(~"5.5em + @{rt-line-padding}") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wl-indent-4 {
|
.wl-indent-4 {
|
||||||
padding-left: 6.5em !important;
|
padding-left: calc(~"6.5em + @{rt-line-padding}") !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wl-indent-env-0 {
|
.wl-indent-env-0 {
|
||||||
|
|
Loading…
Reference in a new issue