Skip to content

Commit

Permalink
[review] move webkit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tommilligan committed Aug 16, 2024
1 parent a275eb9 commit 54d27fc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
10 changes: 6 additions & 4 deletions compile_assets/scss/admonition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ a.admonition-anchor-link {
&:hover a.admonition-anchor-link {
display: initial;
}

&::-webkit-details-marker {
display: none;
}
}

summary.admonition-title {
Expand All @@ -226,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 54d27fc

Please sign in to comment.