Skip to content

Commit

Permalink
Added support for setting custom list styles
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Sep 20, 2024
1 parent 85d6091 commit 68b6758
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

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.0c760da9.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.06209087.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: 15 additions & 3 deletions src/templates/assets/stylesheets/main/_typeset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,14 @@ kbd {
}

// Unordered list
ul:not([type]) {
ul {
list-style-type: disc;

// 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;
}
}

// Unordered and ordered list
Expand All @@ -329,15 +335,21 @@ kbd {
}

// Nested ordered list
ol:not([type]) {
ol {
list-style-type: lower-alpha;

// Triply nested ordered list
ol:not([type]) {
ol {
list-style-type: lower-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 element
li {
margin-inline-start: px2em(20px);
Expand Down

0 comments on commit 68b6758

Please sign in to comment.