Skip to content

Commit

Permalink
Boost contrast of primary color and more info button slightly for dar…
Browse files Browse the repository at this point in the history
…k mode
  • Loading branch information
js0mmer committed Jan 24, 2024
1 parent 62dc70c commit 3f41f9d
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 18 deletions.
4 changes: 4 additions & 0 deletions site/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ code {
--peterportal-mid-gray: #8d8d8d;
--peterportal-uci-gold: #ffd200;
--peterportal-gray-blue: #f5f6fc;
--zot-blue: var(--peterportal-primary-color-1);
--aldrich-blue: var(--peterportal-primary-color-2);
--ring-road-white: #ffffff;
--petr-gray: #808080;
--border-radius: 8px;
}

Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/RoadmapPage/Course.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.course {
box-shadow: 0px 0px 4px #2484c6;
box-shadow: 0px 0px 4px var(--zot-blue);
background: var(--overlay1);
border-radius: 15px;
height: auto;
Expand All @@ -9,7 +9,7 @@

.name {
font-weight: bold;
color: #2484c6;
color: var(--zot-blue);
font-size: 18px;
}

Expand Down
7 changes: 0 additions & 7 deletions site/src/pages/RoadmapPage/Header.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
* {
--zot-blue: #2484c6;
--aldrich-blue: #74d1f6;
--ring-road-white: #ffffff;
--petr-gray: #808080;
}

.header {
background: linear-gradient(to right, var(--zot-blue), var(--aldrich-blue));
border-radius: var(--border-radius);
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/RoadmapPage/Quarter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.quarter {
background-color: var(--overlay1);
border-radius: 10px;
box-shadow: 0px 0px 4px #2484c6;
box-shadow: 0px 0px 4px var(--zot-blue);
flex: 1 1 30%;
height: fit-content;
margin: 0.75rem;
Expand Down
9 changes: 1 addition & 8 deletions site/src/pages/RoadmapPage/Year.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
* {
--zot-blue: #2484c6;
--aldrich-blue: #74d1f6;
--ring-road-white: #ffffff;
--petr-gray: #808080;
}

[data-theme='dark'] {
.year-settings-btn:hover,
.year-settings-btn:focus,
Expand Down Expand Up @@ -50,7 +43,7 @@

.empty-quarter {
border-radius: 10px;
box-shadow: 0px 0px 4px #2484c6;
box-shadow: 0px 0px 4px var(--zot-blue);
flex: 1 1 30%;
margin: 0.75rem;
}
Expand Down
20 changes: 20 additions & 0 deletions site/src/style/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
--text-dark: #fff;
--text-light: #fff;
--hover: #cacbcd;
--peterportal-primary-color-1: #268cd3;
--zot-blue: var(--peterportal-primary-color-1);

color-scheme: dark;
}
Expand Down Expand Up @@ -61,6 +63,24 @@
background-color: var(--overlay3);
}

.btn-outline-primary {
color: #0f83ff;
border-color: #0f83ff;

&:hover,
&:focus {
color: white;
}

&:hover {
border-color: #007bff;
}

&:focus {
border-color: #2767d4;
}
}

.close {
color: var(--text);
text-shadow: none;
Expand Down

0 comments on commit 3f41f9d

Please sign in to comment.