Skip to content

Commit

Permalink
Convert inline CSS to themeable CSS vars
Browse files Browse the repository at this point in the history
  • Loading branch information
powe97 committed Oct 16, 2023
1 parent 307b680 commit f1cd4ca
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions site/src/assets/styles/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
--not-taken-course: #dc3545;
--overlay-background: #f8f9fa;

/* Used for unofficial schedule warning */
--warning-font-size: 1.7rem;
--warning-border-style: solid;
--warning-border-width: 1px;
--warning-color: #f11;

/* Calendar colors -- used to distinguish classes */
--num-calendar-colors: 7;

Expand Down
12 changes: 12 additions & 0 deletions site/src/assets/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,15 @@ body {
.list-group-item {
background: var(--list-group-item-background);
}

.unofficial-schedule-warning {
text-align: center;
padding-top: 0.5rem;
margin-left: 1rem;
margin-right: 1rem;
padding-bottom: 1rem;
font-size: var(--warning-font-size);
border-style: var(--warning-border-style);
border-width: var(--warning-border-width);
color: var(--warning-color);
}
14 changes: 1 addition & 13 deletions site/src/components/UnofficialScheduleWarning.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@
<div class="row" style="padding-top: 1rem">
<div class="col-lg-1"></div>
<div class="col-lg">
<div
style="
text-align: center;
padding-top: 0.5rem;
margin-left: 1rem;
margin-right: 1rem;
padding-bottom: 1rem;
font-size: 1.7rem;
border-style: solid;
border-width: 1px;
color: #ff1111;
"
>
<div class="unofficial-schedule-warning">
QuACS is currently based off of incomplete data for this semester.<br />
It is still largely a copy/paste of last year's schedule, and is heavily
subject to change.<br />
Expand Down

0 comments on commit f1cd4ca

Please sign in to comment.