Improve the checkbox style (#207)

Hotfix: the solution of #203 will affect the layout `archives`
This commit is contained in:
Cotes Chung 2020-12-13 01:45:52 +08:00
parent 07d29ec9bf
commit cea339088b
2 changed files with 13 additions and 10 deletions

View file

@ -81,7 +81,7 @@ layout: page
<!-- Sub-categories --> <!-- Sub-categories -->
{% if sub_categories_size > 0 %} {% if sub_categories_size > 0 %}
<div id="{{ LIST_PREFIX }}{{ group_index }}" class="collapse show" aria-expanded="true"> <div id="{{ LIST_PREFIX }}{{ group_index }}" class="collapse show" aria-expanded="true">
<ul class="list-group pl-0"> <ul class="list-group">
{% for sub_category in sub_categories %} {% for sub_category in sub_categories %}
<li class="list-group-item"> <li class="list-group-item">
<i class="far fa-folder fa-fw"></i> <i class="far fa-folder fa-fw"></i>

View file

@ -862,18 +862,21 @@ div.post-content .table-wrapper {
}// p }// p
ul { ul {
padding-left: 2rem; &.task-list, &:not([class]) {
padding-left: 2rem;
.task-list-item { .task-list-item {
list-style-type: none; list-style-type: none;
} }
input[type=checkbox] { input[type=checkbox] {
margin: 0 .5rem .25rem -1.3rem; margin: 0 .5rem .25rem -1.3rem;
vertical-align: middle; vertical-align: middle;
}
} }
} } // ul
}
} // .post-content
.tag:hover { .tag:hover {
@extend %tag-hover; @extend %tag-hover;