Skip to content

Commit e030115

Browse files
authored
chore: switch two-column list styles to be opt-in (#5110)
* style: closes #3702 - Adds the two-column class with the expected style for two-column unordered lists, making sure to keep the two-column style at Features and Table of Contents - Removes column style from ul element scope * refactor: add two-column class to the toc Use the class two-column instead of applying the style by using its id. * refactor: move styles that are overwritten within other classes Move margin-top and padding inside two-column as they are overwritten within single-column.
1 parent 2f3fedc commit e030115

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/css/style.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ a.direct-link {
180180

181181
ul {
182182
box-sizing: content-box;
183+
}
184+
185+
ul.two-column {
183186
column-count: 2;
184187
column-gap: 30px;
185188
margin-top: 20px;
@@ -188,9 +191,8 @@ ul {
188191

189192
ul.single-column,
190193
ul.single-column > li > ul {
191-
column-count: 1;
192194
margin-top: 0;
193-
padding-right: 0;
195+
padding: 0 0 0 15px;
194196
}
195197

196198
ul li {

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ Mocha is a feature-rich JavaScript test framework running on [Node.js][] and in
4444
- [before, after, before each, after each hooks](#hooks)
4545
- [arbitrary transpiler support (coffee-script etc)](#-compilers)
4646
- [TextMate bundle](#textmate)
47+
{:.two-column}
4748

4849
## Table of Contents
4950

5051
{{ toc }}
52+
{:.two-column}
5153

5254
## Installation
5355

0 commit comments

Comments
 (0)