Skip to content

Commit 37e6f43

Browse files
committed
Fixed ellipsis in footer due to potential WebKit rendering bug
1 parent 21b7bc4 commit 37e6f43

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

material/assets/stylesheets/main.9f2461a2.min.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

material/assets/stylesheets/main.9f2461a2.min.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

material/assets/stylesheets/main.a617204b.min.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.a617204b.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

Lines changed: 1 addition & 1 deletion
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.9f2461a2.min.css' | url }}">
37+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.a617204b.min.css' | url }}">
3838
{% if config.theme.palette %}
3939
{% set palette = config.theme.palette %}
4040
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}">

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
// Footer link to previous and next page
4646
&__link {
4747
display: flex;
48+
// Hack: some browsers induce ellipsis on flex children that have are set
49+
// to `overflow: hidden` and `text-overflow: ellipsis`. Enforcing growth by
50+
// a tiny factor seems to get rid of the ellipsis and renders the text as
51+
// it should - see https://bit.ly/2ZUCXQ8
52+
flex-grow: 0.01;
4853
padding-top: px2rem(28px);
4954
padding-bottom: px2rem(8px);
5055
outline-color: var(--md-accent-fg-color);

0 commit comments

Comments
 (0)