Skip to content

Commit 0358214

Browse files
committed
Try to make SVG visible in dark mode
1 parent 340e25a commit 0358214

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

assets/sass/cheat-sheet.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
@import "variables";
22

3+
:root {
4+
--svg-bg: transparent;
5+
}
6+
7+
:root[data-theme="dark"] {
8+
--svg-bg: #777;
9+
}
10+
311
.cheat-sheet {
412
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
513

@@ -21,6 +29,10 @@
2129
svg {
2230
height: auto;
2331
width: 100%;
32+
border-radius: 5px;
33+
padding: 5px;
34+
box-sizing: border-box;
35+
background: var(--svg-bg);
2436
}
2537

2638
h3 {

0 commit comments

Comments
 (0)