Skip to content

Commit 797ec17

Browse files
authored
fix: dark mode print (#1337)
1 parent eade0fb commit 797ec17

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unfold/styles.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
@import 'tailwindcss';
22
@plugin '@tailwindcss/typography';
3-
@custom-variant dark (&:where(.dark, .dark *));
3+
4+
@custom-variant dark {
5+
@media not print {
6+
&:where(.dark, .dark *) {
7+
@slot
8+
}
9+
}
10+
}
11+
412
@source inline("h-3 w-3 h-[64px] w-[65px]! left-[65px] dark:hover:bg-white/[.06] translate-x-1/4 -translate-y-1/4");
513
@source inline("{-,}{top,bottom,left,right}-{0..6}");
614
@source inline("rounded rounded-{t,r,b,l} rounded-{t,r,b,l}-default");

0 commit comments

Comments
 (0)