Skip to content

Commit 3d27e45

Browse files
committed
🐛 Fix checkbox rendering; Fixes #20
1 parent 42f72cd commit 3d27e45

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/templates/CHECKBOXES.eta

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function defineColors(i, ts) {
5757
--<%~ root %>-li-<%= i %>: <% tR += getForeground(li, false) %>;
5858
--<%~ root %>-li-bg-<%= i %>: <% tR += getBackground(li, false) %>;
5959
}
60-
.theme-dark .print,
60+
.theme-dark .print:not(.published-container),
6161
.theme-light {
6262
--<%~ root %>-checkbox-<%= i %>: <% tR += getForeground(ts.checkbox, true) %>;
6363
--<%~ root %>-checkbox-bg-<%= i %>: <% tR += getBackground(ts.checkbox, true) %>;
@@ -85,7 +85,7 @@ li[data-task="<%~ ts.data %>"] {
8585
div[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked,
8686
div[data-task="<%~ ts.data %>"] > p > input[type=checkbox]:checked,
8787
li[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked,
88-
li[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked {
88+
li[data-task="<%~ ts.data %>"] > p > input[type=checkbox]:checked {
8989
color: var(--checkbox-color);
9090
background: var(--<%~ root %>-checkbox-bg-<%= i %>);
9191
<% if (ts.checkbox.preventClick) { %>
@@ -96,10 +96,10 @@ li[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked {
9696
border: 0px;
9797
<% } %>
9898
}
99-
div[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked::after,
100-
div[data-task="<%~ ts.data %>"] > p > input[type=checkbox]:checked::after,
101-
li[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked::after
102-
li[data-task="<%~ ts.data %>"] > p > input[type=checkbox]:checked::after {
99+
div[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked:after,
100+
div[data-task="<%~ ts.data %>"] > p > input[type=checkbox]:checked:after,
101+
li[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked:after,
102+
li[data-task="<%~ ts.data %>"] > p > input[type=checkbox]:checked:after {
103103
transform: none;
104104
-webkit-mask-image: none;
105105
background: unset;

0 commit comments

Comments
 (0)