]> git.draconx.ca Git - homepage.git/commit
Update css_darkmode to handle media queries under @supports.
authorNick Bowler <nbowler@draconx.ca>
Fri, 4 Nov 2022 07:15:43 +0000 (03:15 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 4 Nov 2022 07:15:43 +0000 (03:15 -0400)
commit5e2eaac44dfd84ac3878853e352d5752867c4196
treee860f7dcbac22056ddc35ae857a9f375d931c552
parent466a4c7c22997ce016719a051d72af8371bb8863
Update css_darkmode to handle media queries under @supports.

This filter currently does not "see" anything within a @supports block,
so the hoisting of dark-mode media queries inside such a block is not
properly done.

Fix this by restructuring the filter to recurse down into these blocks.
lib/css-darkmode.rb