diff --git a/Instructor/static/css/rubrics/rubric_table.css b/Instructor/static/css/rubrics/rubric_table.css index 9954c47..aab751a 100644 --- a/Instructor/static/css/rubrics/rubric_table.css +++ b/Instructor/static/css/rubrics/rubric_table.css @@ -1,7 +1,8 @@ /*!* This file describes styles for Rubrics *!*/ .rubric-graded td.selected, .rubric-grading td.selected { - background-color: #edffdd !important; + background-color: var(--bs-teal) !important; + filter: grayscale(55%); } .rubric-grading td { @@ -9,7 +10,7 @@ } .rubric-grading td:hover { - background-color: #c8eeb7 !important; + background-color: var(--bs-teal) !important; } .rubric-editing .cell { diff --git a/Main/static/js/base.js b/Main/static/js/base.js index 6b475e4..f2c3525 100644 --- a/Main/static/js/base.js +++ b/Main/static/js/base.js @@ -2,7 +2,11 @@ $(document).ready(function (){ /** * This function will run when the document loads. * It sets the title of the page to whatever is in the #pageHeader element. + * It also falls back to light theme in case the browser doesn't support prefers-color-scheme */ document.title = `${$("#pageHeader").text()} | CodeReview`; + if (window.matchMedia(`(prefers-color-scheme: light)`).media === "not all") { + $("#light-theme-css").attr('media', "screen") + } }); diff --git a/Main/templates/base.html b/Main/templates/base.html index a7f6a12..f6d47e7 100644 --- a/Main/templates/base.html +++ b/Main/templates/base.html @@ -10,6 +10,7 @@ +