From c3ac728f048c06bc7d6e54e83c358c18da58c662 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Mon, 2 Mar 2026 11:32:58 +0800 Subject: [PATCH] feat(task-lists): update checked task item styles --- assets/css/_page/_single/_index.scss | 14 ++++++++------ layouts/_partials/init/index.html | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/assets/css/_page/_single/_index.scss b/assets/css/_page/_single/_index.scss index f176bc2d..30160b64 100644 --- a/assets/css/_page/_single/_index.scss +++ b/assets/css/_page/_single/_index.scss @@ -231,21 +231,23 @@ li[data-task] { list-style: none; color: fixit-var(task-color); + .checkbox-icon { margin: 0 .25em 0 -1.5em; color: fixit-var(checkbox-color); } } - li[data-task='x'], - li[data-task='-'] { - text-decoration: line-through rgba(145, 145, 145, 0.6); - @include set-fixit-var(task-color, fixit-var(secondary)); - } li[data-task='x'] { - @include set-fixit-var(checkbox-color, fixit-var(primary)); + @include set-fixit-var(checkbox-color, fixit-var(secondary)); + + .checkbox-icon { + opacity: 0.6; + } } li[data-task='-'] { opacity: 0.6; + text-decoration: line-through rgba(145, 145, 145, 0.6); + @include set-fixit-var(task-color, fixit-var(secondary)); } li[data-task='/'] { @include set-fixit-var(task-color, fixit-var(success)); diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 91c009f2..51e60cf7 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v0.4.3-20260228121121-2199c7f1" -}} +{{- hugo.Store.Set "version" "v0.4.3-20260302033259-93d0b52c" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}