Skip to content

Commit

Permalink
Fixed ordered list markers
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Sep 21, 2024
1 parent 71b64f4 commit 43a22b6
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.06209087.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8c3ca2c6.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
Expand Down
18 changes: 14 additions & 4 deletions src/templates/assets/stylesheets/main/_typeset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ kbd {
// Hack: allow to override `list-style-type` via `type`, without breaking
// compatibility for explicitly setting it in CSS - see https://t.ly/izJyH
&[type] {
list-style-type: revert;
list-style-type: revert-layer;
}
}

Expand All @@ -334,20 +334,30 @@ kbd {
display: flow-root;
}

// Nested ordered list
// 2nd layer nested ordered list
ol {
list-style-type: lower-alpha;

// Triply nested ordered list
// 3rd layer nested ordered list
ol {
list-style-type: lower-roman;

// 4th layer nested ordered list
ol {
list-style-type: upper-alpha;

// 5th layer nested ordered list
ol {
list-style-type: upper-roman;
}
}
}
}

// Hack: allow to override `list-style-type` via `type`, without breaking
// compatibility for explicitly setting it in CSS - see https://t.ly/izJyH
&[type] {
list-style-type: revert;
list-style-type: revert-layer;
}

// List element
Expand Down

0 comments on commit 43a22b6

Please sign in to comment.