From b9b732134dd59fab8cf6ef2ea4bcd6c5b96f7b56 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 21 Nov 2023 21:03:24 +0000 Subject: [PATCH] Improve rendering style of markdown in the mdbook (#26616) --- book.toml | 1 + docs/css/custom.css | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 docs/css/custom.css diff --git a/book.toml b/book.toml index b7cf58f044..521f93cbb1 100644 --- a/book.toml +++ b/book.toml @@ -18,6 +18,7 @@ create-missing = false # Remove the numbers that appear before each item in the sidebar, as they can # get quite messy as we nest deeper no-section-label = true +additional-css = ["docs/css/custom.css"] # The source code URL of the repository git-repository-url = "https://github.com/vector-im/element-web" diff --git a/docs/css/custom.css b/docs/css/custom.css new file mode 100644 index 0000000000..fc341bb2ec --- /dev/null +++ b/docs/css/custom.css @@ -0,0 +1,14 @@ +/* Prevent collapsible headings from wrapping onto two lines eagerly */ +summary > h1, +summary > h2, +summary > h3, +summary > h4, +summary > h5, +summary > h6 { + display: inline-block; +} + +/* Prevent longer checkbox lists from wrapping eagerly */ +input + p { + display: inline; +}