Skip to content

Commit 91c1e4c

Browse files
committed
Improve the checkbox style (cotes2020#207)
Hotfix: the solution of cotes2020#203 will affect the layout `archives`
1 parent c1ef1f8 commit 91c1e4c

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

_layouts/categories.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<!-- Sub-categories -->
8282
{% if sub_categories_size > 0 %}
8383
<div id="{{ LIST_PREFIX }}{{ group_index }}" class="collapse show" aria-expanded="true">
84-
<ul class="list-group pl-0">
84+
<ul class="list-group">
8585
{% for sub_category in sub_categories %}
8686
<li class="list-group-item">
8787
<i class="far fa-folder fa-fw"></i>

assets/css/_addon/main.scss

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -862,18 +862,21 @@ div.post-content .table-wrapper {
862862
}// p
863863

864864
ul {
865-
padding-left: 2rem;
865+
&.task-list, &:not([class]) {
866+
padding-left: 2rem;
866867

867-
.task-list-item {
868-
list-style-type: none;
869-
}
868+
.task-list-item {
869+
list-style-type: none;
870+
}
870871

871-
input[type=checkbox] {
872-
margin: 0 .5rem .25rem -1.3rem;
873-
vertical-align: middle;
872+
input[type=checkbox] {
873+
margin: 0 .5rem .25rem -1.3rem;
874+
vertical-align: middle;
875+
}
874876
}
875-
}
876-
}
877+
} // ul
878+
879+
} // .post-content
877880

878881
.tag:hover {
879882
@extend %tag-hover;

0 commit comments

Comments
 (0)