Fixed annotations showing list markers in print view

This commit is contained in:
squidfunk
2025-05-06 13:25:09 +02:00
parent 6d04f2cd2c
commit 572da4f57c
4 changed files with 11 additions and 7 deletions

View File

@@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.2afb09e1.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.342714a4.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

View File

@@ -286,8 +286,12 @@
// Annotation list
.md-annotation-list {
list-style: none;
counter-reset: xxx;
// Here, we actually have a legitimate use case for `!important`, because
// we need to be sure that annotations are never rendered as a list. This
// might happen when Markdown extensions add an explicit type attribute
// to the list see https://t.ly/Q_MGq
list-style: none !important; // stylelint-disable-line
counter-reset: annotation;
// Annotation list item
li {
@@ -306,8 +310,8 @@
line-height: 1.25;
color: var(--md-default-bg-color);
text-align: center;
content: counter(xxx);
counter-increment: xxx;
content: counter(annotation);
counter-increment: annotation;
background: var(--md-default-fg-color--lighter);
border-radius: 2ch;
}