From cea339088bea31f6bd3e2f5f362dce9ea7706d63 Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Sun, 13 Dec 2020 01:45:52 +0800
Subject: [PATCH] Improve the checkbox style (#207)
Hotfix: the solution of #203 will affect the layout `archives`
---
_layouts/categories.html | 2 +-
assets/css/_addon/main.scss | 21 ++++++++++++---------
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/_layouts/categories.html b/_layouts/categories.html
index d34ad75..474f983 100644
--- a/_layouts/categories.html
+++ b/_layouts/categories.html
@@ -81,7 +81,7 @@ layout: page
{% if sub_categories_size > 0 %}
-
+
{% for sub_category in sub_categories %}
-
diff --git a/assets/css/_addon/main.scss b/assets/css/_addon/main.scss
index dc79f77..8d3753a 100644
--- a/assets/css/_addon/main.scss
+++ b/assets/css/_addon/main.scss
@@ -862,18 +862,21 @@ div.post-content .table-wrapper {
}// p
ul {
- padding-left: 2rem;
+ &.task-list, &:not([class]) {
+ padding-left: 2rem;
- .task-list-item {
- list-style-type: none;
- }
+ .task-list-item {
+ list-style-type: none;
+ }
- input[type=checkbox] {
- margin: 0 .5rem .25rem -1.3rem;
- vertical-align: middle;
+ input[type=checkbox] {
+ margin: 0 .5rem .25rem -1.3rem;
+ vertical-align: middle;
+ }
}
- }
-}
+ } // ul
+
+} // .post-content
.tag:hover {
@extend %tag-hover;