Skip to content

Commit 97c920a

Browse files
committed
Fixed issues with code annotation line height
1 parent d5fb8f1 commit 97c920a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

material/assets/stylesheets/main.ee0f47ba.min.css renamed to material/assets/stylesheets/main.3d1b0ff9.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.ee0f47ba.min.css.map renamed to material/assets/stylesheets/main.3d1b0ff9.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{% endif %}
3535
{% endblock %}
3636
{% block styles %}
37-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.ee0f47ba.min.css' | url }}">
37+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.3d1b0ff9.min.css' | url }}">
3838
{% if config.theme.palette %}
3939
{% set palette = config.theme.palette %}
4040
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">

src/assets/stylesheets/main/layout/_tooltip.scss

+3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@
134134
// Annotation is not hidden (e.g. when copying)
135135
&:not([hidden]) {
136136
display: inline-block;
137+
// Hack: ensure that the line height doesn't exceed the line height of the
138+
// hosting line, because it will lead to dancing pixels.
139+
line-height: 1.325;
137140
}
138141

139142
// Promote children to top on focus

0 commit comments

Comments
 (0)