Skip to content

Commit

Permalink
Fixed rendering issue for rotated annotation icons in Firefox (#5937)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Donath <martin.donath@squidfunk.com>
  • Loading branch information
sisp and squidfunk authored Sep 2, 2023
1 parent 3eb1887 commit ec709b4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions material/assets/stylesheets/main.f814a825.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions material/assets/stylesheets/main.f814a825.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.43b9b3ee.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f814a825.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.85d0ee34.min.css' | url }}">
Expand Down
6 changes: 6 additions & 0 deletions src/assets/stylesheets/main/components/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@
transition: z-index 250ms;
}

// Hack: Work around Firefox bug that renders a subpixel outline when
// rotating a mask image element.
// https://bugzilla.mozilla.org/show_bug.cgi?id=1671784
overflow: hidden; // stylelint-disable-line order/properties-order
border-radius: 0.01px;

// [screen]: Render annotation markers as icons
@media screen {
width: 2.2ch;
Expand Down

0 comments on commit ec709b4

Please sign in to comment.