diff --git a/resources/screen-common.less b/resources/screen-common.less index 33b9d64..8834591 100644 --- a/resources/screen-common.less +++ b/resources/screen-common.less @@ -562,17 +562,29 @@ ul#filetoc, min-width: 15em; } +.toc { + line-height: 1.2; + + ul { + margin: 1em 0 0; + list-style: none; + text-align: left; + } + + li { + margin: 0.3em 0; + + &:last-child { + margin-bottom: 0.5em; + } + } +} + ul#filetoc { display: block; border: 0; } -.toc ul { - margin: 1em 0 0; - list-style: none; - text-align: left; -} - .mw-body .toc h2 { font-size: 1em; font-family: @fonts; @@ -585,10 +597,6 @@ ul#filetoc { float: right; } -.toc li:last-child { - margin-bottom: 0.5em; -} - .toclevel-1 { margin-bottom: 0.25em; }