From a5c83ad871f45a18e0b36b24b2079ceefb0d8db9 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Mon, 13 May 2024 23:32:37 +0800 Subject: [PATCH] add custom heights for collapsible headings --- styles/fonts/all.collapsible.css | 9 +++++++++ styles/fonts/all.css | 1 + 2 files changed, 10 insertions(+) create mode 100644 styles/fonts/all.collapsible.css diff --git a/styles/fonts/all.collapsible.css b/styles/fonts/all.collapsible.css new file mode 100644 index 0000000..0fe2ee0 --- /dev/null +++ b/styles/fonts/all.collapsible.css @@ -0,0 +1,9 @@ +.collapsible-header h1, .collapsible-header h2, .collapsible-header h3, .collapsible-header h4, .collapsible-header h5, .collapsible-header h6 { + font-weight: bold; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + margin: 0.5em 0; + margin-block-start: 0em; + margin-block-end: 0em; +} \ No newline at end of file diff --git a/styles/fonts/all.css b/styles/fonts/all.css index d5dba0f..bef73bd 100644 --- a/styles/fonts/all.css +++ b/styles/fonts/all.css @@ -1,5 +1,6 @@ @import url("/styles/fonts/all.article.css"); @import url("/styles/fonts/all.navbar.css"); +@import url("/styles/fonts/all.collapsible.css"); .collapsible > li > header { font-weight: bold;