From f600b9629b5b11366a26a867edc33d8770e70933 Mon Sep 17 00:00:00 2001 From: mobyw <44370805+mobyw@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:17:41 +0800 Subject: [PATCH] Fix style in glossary.md (#1825) `id` of `h1` title in the translated version will be changed to the translated text. Fixed `id` configured here will not take effect in the translated version. Correct style: https://google.github.io/comprehensive-rust/glossary.html Wrong style (zh-CN): https://google.github.io/comprehensive-rust/zh-CN/glossary.html --- src/glossary.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/glossary.md b/src/glossary.md index 6af87fae..dcb8a3db 100644 --- a/src/glossary.md +++ b/src/glossary.md @@ -5,19 +5,19 @@ terms. For translations, this also serves to connect the term back to the English original. <style> -h1#glossary ~ ul { +h1 ~ ul { list-style: none; padding-inline-start: 0; } -h1#glossary ~ ul > li { +h1 ~ ul > li { /* Simplify with "text-indent: 2em hanging" when supported: https://caniuse.com/mdn-css_properties_text-indent_hanging */ padding-left: 2em; text-indent: -2em; } -h1#glossary ~ ul > li:first-line { +h1 ~ ul > li:first-line { font-weight: bold; } </style>