Possible legacy/unused code #8

Open
opened 2025-10-14 15:48:44 -06:00 by navan · 0 comments
Owner

Originally created by @vihuna on 2/11/2025

For the media query width <= 1050), the CSS selector (here) blockquote .sidenote (specifity 0-1-1) is never going to affect the width and margin-right of the sidenotes, because of the selector .sidenote-toggle:checked + .sidenote (here, with specificity 0-3-0), when the input is checked.

But when the input is not checked, the sidenote is not displayed (because media query width <= 1050)), so it doesn't makes much sense.

Also left: 1rem has no effect here, because the position is static.

*Originally created by @vihuna on 2/11/2025* For the media query `width <= 1050)`, the CSS selector ([here](https://github.com/vincentdoerig/latex-css/blob/master/style.css#L637-L640)) `blockquote .sidenote` (specifity 0-1-1) is never going to affect the `width` and `margin-right` of the sidenotes, because of the selector `.sidenote-toggle:checked + .sidenote` ([here](https://github.com/vincentdoerig/latex-css/blob/master/style.css#L629-L635), with specificity 0-3-0), when the `input` is checked. But when the `input` is not checked, the sidenote is not displayed (because media query `width <= 1050)`), so it doesn't makes much sense. Also `left: 1rem` has no effect [here](https://github.com/vincentdoerig/latex-css/blob/master/style.css#L633), because the position is static.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/latex-css#8
No description provided.