mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-31 17:58:41 -04:00
Fixed annotations showing list markers in print view
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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 }}">
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user