Skip to content

Commit

Permalink
Check the check
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Apr 17, 2024
1 parent 15b3dab commit 71a5334
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions server/vb/templates/check.dhtml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,25 @@
margin: 1.5rem 0;
}
</style>
<main style="background-color: {{ school.logo.bg_color }};
color: {{ school.logo.bg_text_color }}">
<main data-bg-color="{{ school.logo.bg_color }}"
data-color="{{ school.logo.bg_text_color }}">
<style>
me {
--main-color: transparent;
--main-bg-color: transparent;
color: var(--main-color);
background-color: var(--main-bg-color);
}
</style>
<script>
(function() {
const self = me();
onloadAdd(() => {
self.style.setProperty('--main-color', self.dataset.color);
self.style.setProperty('--main-bg-color', self.dataset.bgColor);
});
})();
</script>
<div class="container">
{% if current_contest %}
{% include "components/countdown.dhtml" with contest=current_contest %}
Expand Down

0 comments on commit 71a5334

Please sign in to comment.