Skip to content

Commit

Permalink
Fix inverted body in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Dec 7, 2023
1 parent 5543649 commit f181d7c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions frontend/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,19 @@ body {
display: block !important;
}

&.invert {
.body {
&.no-invert .body {
color: white;
background: black;

iframe {
filter: invert(1);
}
}

&.invert .body {
color: black;
background: white;
}
}
}

Expand Down Expand Up @@ -481,8 +489,6 @@ header {
flex: 1;
padding: 0;
margin-top: 0.75rem;
color: var(--black);
background: var(--white);

pre {
font-family: Inter, sans-serif;
Expand All @@ -491,7 +497,7 @@ header {

iframe,
pre {
border: 1px solid #ddd;
border: 1px solid var(--table-border);
width: 100%;
height: 100%;
padding: 0.5rem;
Expand Down

0 comments on commit f181d7c

Please sign in to comment.