From 422563d767611437e4d117a7f1ae230d806cb1e5 Mon Sep 17 00:00:00 2001 From: marjorie Date: Sun, 3 Mar 2024 15:19:46 -0300 Subject: [PATCH] style: closes mochajs#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 --- docs/css/style.css | 9 ++++++--- docs/index.md | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/css/style.css b/docs/css/style.css index 79dbc261e8..86dd53fdd5 100644 --- a/docs/css/style.css +++ b/docs/css/style.css @@ -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; } diff --git a/docs/index.md b/docs/index.md index b6a70eba7c..23a2d2bc4b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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