Skip to content

Commit 1d2b9c1

Browse files
matsestCopilot
andauthored
fix: reduce css duplication
Review suggestion by Copilot Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e89698e commit 1d2b9c1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/assets/stylesheets/toc.css

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
outline: none;
2121
}
2222

23-
.toc__container:where(:has(#toc-list:checked)) & {
23+
.toc__container:where(:has(#toc-list:checked), .toc__container--force-list) & {
2424
display: flex;
2525
flex-direction: column;
2626
row-gap: calc(var(--block-space) * 0.3);
@@ -250,12 +250,6 @@
250250

251251
/* Forced view states when selector is disabled */
252252
.toc__container--force-list {
253-
.toc {
254-
display: flex;
255-
flex-direction: column;
256-
row-gap: calc(var(--block-space) * 0.3);
257-
}
258-
259253
.toc__leaf {
260254
align-items: center;
261255
column-gap: 1ch;

0 commit comments

Comments
 (0)