Skip to content

Commit 05c25c9

Browse files
authored
fix: dark mode (Timeline, Activity, Raw Data) (#575)
* Set a proper background color for `.vis-tooltip` in dark mode * Correctly darken uncategorized event rectangles on hover * Add dark mode icons for sorting arrows
1 parent 80db006 commit 05c25c9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

static/dark.css

+20
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ hr {
166166
color: #e9ebf0 !important;
167167
}
168168

169+
.vis-tooltip {
170+
background-color: #282c32 !important;
171+
}
172+
169173
#visualization *, svg,
170174
.nav.nav-tabs,
171175
.btn-outline-secondary {
@@ -181,6 +185,10 @@ svg.appsummary g rect[style="fill: rgb(204, 204, 204);"] {
181185
fill: #666666 !important;
182186
}
183187

188+
svg.appsummary g rect[style="fill: rgb(184, 184, 184);"] {
189+
fill: #555555 !important;
190+
}
191+
184192
svg path[style="fill: rgb(255, 255, 255);"] {
185193
fill: #23272d !important;
186194
}
@@ -220,4 +228,16 @@ div[style="color: rgb(85, 85, 85); font-size: 0.9em;"] {
220228

221229
.bg-light {
222230
background-color: #1a1d24 !important;
231+
}
232+
233+
[aria-sort="none"] {
234+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none' fill='white' opacity='.4'%3E%3Cpath d='m51 1 25 23 24 22H1l25-22zm0 100 25-23 24-22H1l25 22z'/%3E%3C/svg%3E") !important;
235+
}
236+
237+
[aria-sort="ascending"] {
238+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none' fill='white'%3E%3Cpath opacity='.8' d='m51 1 25 23 24 22H1l25-22z'/%3E%3Cpath opacity='.4' d='m51 101 25-23 24-22H1l25 22z'/%3E%3C/svg%3E") !important;
239+
}
240+
241+
[aria-sort="descending"] {
242+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none' fill='white'%3E%3Cpath opacity='.4' d='m51 1 25 23 24 22H1l25-22z'/%3E%3Cpath opacity='.8' d='m51 101 25-23 24-22H1l25 22z'/%3E%3C/svg%3E") !important;
223243
}

0 commit comments

Comments
 (0)