Skip to content

Commit

Permalink
Improved rendering of code annotation markers
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Apr 25, 2022
1 parent 68bcb1a commit 6a811bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.

Large diffs are not rendered by default.

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 @@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.df45aa19.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8c5ef100.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9647289d.min.css' | url }}">
Expand Down
5 changes: 3 additions & 2 deletions src/assets/stylesheets/main/layout/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@
&::before {
display: inline-block;
padding-bottom: 0.1em;
vertical-align: 0.0625em;
vertical-align: 0.065em;
transform: scale(1.15);
transition: transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1);
content: attr(data-md-annotation-id);

Expand All @@ -228,7 +229,7 @@

// Annotation marker content on focus
:focus-within > & {
transform: rotate(45deg);
transform: scale(1.25) rotate(45deg);
}
}
}
Expand Down

0 comments on commit 6a811bb

Please sign in to comment.