1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2025-01-31 11:53:53 +01:00

Added support for setting custom list styles

This commit is contained in:
squidfunk 2024-09-20 10:14:00 +02:00
parent 85d609183e
commit 68b675854f
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
6 changed files with 18 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 }}">

View File

@ -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
@ -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);