Skip to content

Commit 68b6758

Browse files
committed
Added support for setting custom list styles
1 parent 85d6091 commit 68b6758

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

Diff for: material/templates/assets/stylesheets/main.06209087.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/templates/assets/stylesheets/main.06209087.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/templates/assets/stylesheets/main.0c760da9.min.css

-1
This file was deleted.

Diff for: material/templates/assets/stylesheets/main.0c760da9.min.css.map

-1
This file was deleted.

Diff for: material/templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.0c760da9.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.06209087.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

Diff for: src/templates/assets/stylesheets/main/_typeset.scss

+15-3
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,14 @@ kbd {
313313
}
314314

315315
// Unordered list
316-
ul:not([type]) {
316+
ul {
317317
list-style-type: disc;
318+
319+
// Hack: allow to override `list-style-type` via `type`, without breaking
320+
// compatibility for explicitly setting it in CSS - see https://t.ly/izJyH
321+
&[type] {
322+
list-style-type: revert;
323+
}
318324
}
319325

320326
// Unordered and ordered list
@@ -329,15 +335,21 @@ kbd {
329335
}
330336

331337
// Nested ordered list
332-
ol:not([type]) {
338+
ol {
333339
list-style-type: lower-alpha;
334340

335341
// Triply nested ordered list
336-
ol:not([type]) {
342+
ol {
337343
list-style-type: lower-roman;
338344
}
339345
}
340346

347+
// Hack: allow to override `list-style-type` via `type`, without breaking
348+
// compatibility for explicitly setting it in CSS - see https://t.ly/izJyH
349+
&[type] {
350+
list-style-type: revert;
351+
}
352+
341353
// List element
342354
li {
343355
margin-inline-start: px2em(20px);

0 commit comments

Comments
 (0)