Skip to content

Commit 572da4f

Browse files
committed
Fixed annotations showing list markers in print view
1 parent 6d04f2c commit 572da4f

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

material/templates/assets/stylesheets/main.2afb09e1.min.css renamed to material/templates/assets/stylesheets/main.342714a4.min.css

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

material/templates/assets/stylesheets/main.2afb09e1.min.css.map renamed to material/templates/assets/stylesheets/main.342714a4.min.css.map

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

material/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.2afb09e1.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.342714a4.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

src/templates/assets/stylesheets/main/components/_tooltip.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,12 @@
286286

287287
// Annotation list
288288
.md-annotation-list {
289-
list-style: none;
290-
counter-reset: xxx;
289+
// Here, we actually have a legitimate use case for `!important`, because
290+
// we need to be sure that annotations are never rendered as a list. This
291+
// might happen when Markdown extensions add an explicit type attribute
292+
// to the list – see https://t.ly/Q_MGq
293+
list-style: none !important; // stylelint-disable-line
294+
counter-reset: annotation;
291295

292296
// Annotation list item
293297
li {
@@ -306,8 +310,8 @@
306310
line-height: 1.25;
307311
color: var(--md-default-bg-color);
308312
text-align: center;
309-
content: counter(xxx);
310-
counter-increment: xxx;
313+
content: counter(annotation);
314+
counter-increment: annotation;
311315
background: var(--md-default-fg-color--lighter);
312316
border-radius: 2ch;
313317
}

0 commit comments

Comments
 (0)