openhands commited on
Commit
c52135c
·
1 Parent(s): 8980c87

Use CSS filter for dark mode chart background, leave logos untouched

Browse files

Apply invert filter to entire chart for dark mode background, but
don't re-invert logos - they will be inverted along with the chart
which should make them visible on the dark background.

Files changed (1) hide show
  1. content.py +10 -0
content.py CHANGED
@@ -1013,4 +1013,14 @@ h3 .header-link-icon {
1013
  }
1014
  }
1015
 
 
 
 
 
 
 
 
 
 
 
1016
  """
 
1013
  }
1014
  }
1015
 
1016
+ /* ====== Dark Mode Plotly Charts ====== */
1017
+ /* Invert chart background for dark mode, but leave logos untouched */
1018
+ .dark .js-plotly-plot {
1019
+ filter: invert(0.88) hue-rotate(180deg);
1020
+ }
1021
+
1022
+ /* Re-invert the modebar so icons display correctly */
1023
+ .dark .js-plotly-plot .modebar {
1024
+ filter: invert(1) hue-rotate(180deg);
1025
+ }
1026
  """