Skip to content

Commit c8a19c4

Browse files
committed
Invert the SVG in dark mode
1 parent 73d3de7 commit c8a19c4

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

assets/sass/cheat-sheet.scss

Lines changed: 0 additions & 9 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

@@ -32,7 +24,6 @@
3224
border-radius: 5px;
3325
padding: 5px;
3426
box-sizing: border-box;
35-
background: var(--svg-bg);
3627
}
3728

3829
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)