Skip to content

Commit

Permalink
style: closes #3702
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
marjys committed Mar 3, 2024
1 parent b88978d commit 422563d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,18 @@ a.direct-link {

ul {
box-sizing: content-box;
column-count: 2;
column-gap: 30px;
margin-top: 20px;
padding: 0 15px;
}

h2#table-of-contents + ul,
ul.two-column {
column-count: 2;
column-gap: 30px;
}

ul.single-column,
ul.single-column > li > ul {
column-count: 1;
margin-top: 0;
padding-right: 0;
}
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Mocha is a feature-rich JavaScript test framework running on [Node.js][] and in
- [before, after, before each, after each hooks](#hooks)
- [arbitrary transpiler support (coffee-script etc)](#-compilers)
- [TextMate bundle](#textmate)
{:.two-column}

## Table of Contents

Expand Down

0 comments on commit 422563d

Please sign in to comment.