From 43579f902bc6abcc294dfdf6a750d93573aa7113 Mon Sep 17 00:00:00 2001 From: CoralPink <03_stylist_triages@icloud.com> Date: Sat, 17 Aug 2024 14:19:01 +0900 Subject: [PATCH] Hide extra markers displayed in `Safari`. (#185) * Hide extra markers displayed in `Safari`. * [review] move webkit fix --------- Co-authored-by: Tom Milligan --- compile_assets/scss/admonition.scss | 6 ++++++ integration/book.toml | 2 +- integration/expected/book.toml | 2 +- src/bin/assets/VERSION | 2 +- src/bin/assets/mdbook-admonish.css | 3 +++ 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/compile_assets/scss/admonition.scss b/compile_assets/scss/admonition.scss index 4d4075f..4a7e961 100644 --- a/compile_assets/scss/admonition.scss +++ b/compile_assets/scss/admonition.scss @@ -222,6 +222,12 @@ summary.admonition-title { details[open].admonition > &::after { transform: rotate(90deg); } + + // Hide details marker for Safari that loves to show it anyway + // ref: https://github.com/tommilligan/mdbook-admonish/pull/185 + &::-webkit-details-marker { + display: none; + } } :root { diff --git a/integration/book.toml b/integration/book.toml index 1aae74e..cdcd158 100644 --- a/integration/book.toml +++ b/integration/book.toml @@ -9,7 +9,7 @@ title = "mdbook-admonish-integration" [preprocessor.admonish] command = "mdbook-admonish" -assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install` +assets_version = "3.0.3" # do not edit: managed by `mdbook-admonish install` after = ["links"] [[preprocessor.admonish.custom]] diff --git a/integration/expected/book.toml b/integration/expected/book.toml index 1aae74e..cdcd158 100644 --- a/integration/expected/book.toml +++ b/integration/expected/book.toml @@ -9,7 +9,7 @@ title = "mdbook-admonish-integration" [preprocessor.admonish] command = "mdbook-admonish" -assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install` +assets_version = "3.0.3" # do not edit: managed by `mdbook-admonish install` after = ["links"] [[preprocessor.admonish.custom]] diff --git a/src/bin/assets/VERSION b/src/bin/assets/VERSION index b502146..75a22a2 100644 --- a/src/bin/assets/VERSION +++ b/src/bin/assets/VERSION @@ -1 +1 @@ -3.0.2 +3.0.3 diff --git a/src/bin/assets/mdbook-admonish.css b/src/bin/assets/mdbook-admonish.css index 45aeff0..88dd2b1 100644 --- a/src/bin/assets/mdbook-admonish.css +++ b/src/bin/assets/mdbook-admonish.css @@ -106,6 +106,9 @@ details.admonition > summary.admonition-title::after { details[open].admonition > summary.admonition-title::after { transform: rotate(90deg); } +summary.admonition-title::-webkit-details-marker { + display: none; +} :root { --md-details-icon: url("data:image/svg+xml;charset=utf-8,");