Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Sep 18, 2024
1 parent 18723ed commit 2a4476a
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions source/stylesheets/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,6 @@ $color-mode-type: data;
}
}

// Invert images that request it during dark mode
.dark-invert {
filter: invert(100%);
}
// Hide the purple university of sheffield logo during dark mode
.light_only {
display: none;
}

svg .icon {
stroke: var(--bs-body-color);
}
Expand Down Expand Up @@ -670,9 +661,17 @@ div.tab-content {
}

// A few light only rules
@include color-mode(light) {
// Hide the white university of sheffield logo during light mode
.dark-only {
display: none;
}
// Hide the white university of sheffield logo during light mode
[data-bs-theme=light] img.dark-only {
display: none;
}


// Invert images that request it during dark mode
[data-bs-theme=dark] img.dark-invert {
filter: invert(100%);
}
// Hide the purple university of sheffield logo during dark mode
[data-bs-theme=dark] img.light_only {
display: none;
}

0 comments on commit 2a4476a

Please sign in to comment.