Skip to content

Commit

Permalink
Change default behavior so that styling isn't up to the browser
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cameron <[email protected]>
  • Loading branch information
JasonLovesDoggo committed Sep 25, 2024
1 parent 2b6beb1 commit 458610f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/vars-common.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$highlight_blue: #2980B9;
$highlight_blue: #7070f4;
$announcement_red: #ae0000;

$base_font_size: 14px;
Expand Down
5 changes: 3 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@
{% compress css %}
{# TODO: once dark mode support is better, enable for all users by deleting the else branch #}
{% if perms.judge.test_site %}
<link rel="stylesheet" href="{{ static(LIGHT_STYLE_CSS) }}" media="(prefers-color-scheme: light)">
<link rel="stylesheet" href="{{ static(DARK_STYLE_CSS) }}" media="(prefers-color-scheme: dark)">
{% if PREFERRED_STYLE_CSS is not none %}
<link rel="stylesheet" href="{{ static(PREFERRED_STYLE_CSS) }}">
{% endif %}
{% else %}
<link rel="stylesheet" href="{{ static(LIGHT_STYLE_CSS) }}">
{% endif %}
Expand Down

0 comments on commit 458610f

Please sign in to comment.