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:
parent
85d609183e
commit
68b675854f
1
material/templates/assets/stylesheets/main.06209087.min.css
vendored
Normal file
1
material/templates/assets/stylesheets/main.06209087.min.css
vendored
Normal file
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
@ -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 }}">
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user