Skip to content

Commit 422563d

Browse files
committed
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
1 parent b88978d commit 422563d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

docs/css/style.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,18 @@ a.direct-link {
180180

181181
ul {
182182
box-sizing: content-box;
183-
column-count: 2;
184-
column-gap: 30px;
185183
margin-top: 20px;
186184
padding: 0 15px;
187185
}
188186

187+
h2#table-of-contents + ul,
188+
ul.two-column {
189+
column-count: 2;
190+
column-gap: 30px;
191+
}
192+
189193
ul.single-column,
190194
ul.single-column > li > ul {
191-
column-count: 1;
192195
margin-top: 0;
193196
padding-right: 0;
194197
}

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ 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

0 commit comments

Comments
 (0)