Skip to content

Commit 204e6df

Browse files
committed
🎨 Consistent use of ::
1 parent a687134 commit 204e6df

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

‎src/styles/checkboxes-modal.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
background: var(--checkbox-bg);
4343
}
4444

45-
input[type=checkbox]:checked:after {
45+
input[type=checkbox]:checked::after {
4646
transform: none;
4747
-webkit-mask-image: none;
4848
background: unset;

‎src/templates/CHECKBOXES.eta‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ li[data-task="<%~ ts.data %>"] {
8282
color: var(--<%~ root %>-li-<%= i %>);
8383
background-color: var(--<%~ root %>-li-bg-<%= i %>);
8484
}
85-
div[data-task="<%~ ts.data %>"] input[type=checkbox]:checked,
86-
li[data-task="<%~ ts.data %>"] input[type=checkbox]:checked {
85+
div[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked,
86+
div[data-task="<%~ ts.data %>"] > p > input[type=checkbox]:checked,
87+
li[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked,
88+
li[data-task="<%~ ts.data %>"] > input[type=checkbox]:checked {
8789
color: var(--checkbox-color);
8890
background: var(--<%~ root %>-checkbox-bg-<%= i %>);
8991
<% if (ts.checkbox.preventClick) { %>
@@ -94,8 +96,10 @@ li[data-task="<%~ ts.data %>"] input[type=checkbox]:checked {
9496
border: 0px;
9597
<% } %>
9698
}
97-
div[data-task="<%~ ts.data %>"] input[type=checkbox]:checked:after,
98-
li[data-task="<%~ ts.data %>"] 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 {
99103
transform: none;
100104
-webkit-mask-image: none;
101105
background: unset;

0 commit comments

Comments
 (0)