Skip to content

Commit

Permalink
Hide extra markers displayed in Safari. (#185)
Browse files Browse the repository at this point in the history
* Hide extra markers displayed in `Safari`.

* [review] move webkit fix

---------

Co-authored-by: Tom Milligan <tom.milligan@uipath.com>
  • Loading branch information
CoralPink and tommilligan authored Aug 17, 2024
1 parent 7ee3643 commit 43579f9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions compile_assets/scss/admonition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion integration/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion integration/expected/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion src/bin/assets/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.2
3.0.3
3 changes: 3 additions & 0 deletions src/bin/assets/mdbook-admonish.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z'/></svg>");
Expand Down

0 comments on commit 43579f9

Please sign in to comment.