Skip to content

Commit c368fd5

Browse files
committed
Invert the SVG in dark mode
1 parent 357e633 commit c368fd5

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

assets/sass/cheat-sheet.scss

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

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

@@ -29,10 +21,6 @@
2921
svg {
3022
height: auto;
3123
width: 100%;
32-
border-radius: 5px;
33-
padding: 5px;
34-
box-sizing: border-box;
35-
background: var(--svg-bg);
3624
}
3725

3826
h3 {

assets/sass/dark-mode.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@
152152
#l10n-versions-dropdown footer a {
153153
color: #6969dd;
154154
}
155+
156+
.cheat-sheet svg {
157+
filter: invert(60%);
158+
}
155159
}
156160
}
157161

0 commit comments

Comments
 (0)