From 7efeafe7db4d753f70458507cbcd680ba9da7ef7 Mon Sep 17 00:00:00 2001 From: Chai Zhang Date: Fri, 31 Jan 2025 15:01:54 -0500 Subject: [PATCH 01/70] Hid the Donate $4 button on the landing page --- tcf_website/templates/landing/landing.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcf_website/templates/landing/landing.html b/tcf_website/templates/landing/landing.html index f72ace8d1..848204060 100644 --- a/tcf_website/templates/landing/landing.html +++ b/tcf_website/templates/landing/landing.html @@ -194,8 +194,8 @@

About Us

We keep our servers running through university grants and your donations. Just $4 keeps our servers up for a day, so we can keep serving you the best content.

- Donate $4 - today + From aee5a70d9578044621bf5d9a410f668b253afc4c Mon Sep 17 00:00:00 2001 From: jo-hya <137954049+jo-hya@users.noreply.github.com> Date: Sun, 2 Feb 2025 15:11:43 -0500 Subject: [PATCH 02/70] tcf-style.css darkmode vars --- package-lock.json | 7 ++++ package.json | 3 ++ tcf_website/static/base/tcf-style.css | 59 +++++++++++++++++++++++---- 3 files changed, 60 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8885b7c73..4dac6c3aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,9 @@ "name": "thecourseforum", "version": "2.0.0", "license": "GPL-3.0-or-later", + "dependencies": { + "thecourseforum": "file:" + }, "devDependencies": { "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", @@ -2503,6 +2506,10 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, + "node_modules/thecourseforum": { + "resolved": "", + "link": true + }, "node_modules/tsconfig-paths": { "version": "3.15.0", "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", diff --git a/package.json b/package.json index d4d2f3540..fae7dd867 100644 --- a/package.json +++ b/package.json @@ -25,5 +25,8 @@ "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-promise": "^6.1.1", "prettier": "^3.2.5" + }, + "dependencies": { + "thecourseforum": "file:" } } diff --git a/tcf_website/static/base/tcf-style.css b/tcf_website/static/base/tcf-style.css index f7d5f577a..ed399716b 100644 --- a/tcf_website/static/base/tcf-style.css +++ b/tcf_website/static/base/tcf-style.css @@ -4,14 +4,55 @@ /* Use these variables in CSS stylesheets */ :root { - --main-color: #274f97; /* Indigo/Dark blue */ - --secondary-color: #4077c4; - --accent-color: #d75626; /* Orange */ - --dark-color: #545454; /* Dark grey, for headers/buttons */ - --shadow-color: #a6a6a6; /* Medium grey, used for shadows */ - --shaded-color: #cfcfcf; /* Medium light grey, used for shading */ - --background-color: #ebebeb; /* Light grey, used for backgrounds */ + /* Light Mode Colors */ + --main-color-light: #274f97; /* Indigo/Dark blue */ + --secondary-color-light: #4077c4; + --accent-color-light: #d75626; /* Orange */ + --dark-color-light: #545454; /* Dark grey, for headers/buttons */ + --shadow-color-light: #a6a6a6; /* Medium grey, used for shadows */ + --shaded-color-light: #cfcfcf; /* Medium light grey, used for shading */ + --background-color-light: #ebebeb; /* Light grey, used for backgrounds */ /* Note: Can use Bootstrap "light" color and white color */ + + /* Dark Mode Colors */ + --main-color-dark: #274F97; /* Indigo/Dark blue */ + --secondary-color-dark: #4873B7; + --accent-color-dark: #D75626; /* Orange */ + --dark-color-dark: #000000; /* Dark grey, for headers/buttons */ + --shadow-color-dark: #ffffff; /* Medium grey, used for shadows */ + --shaded-color-dark: #333333; /* Medium light grey, used for shading */ + --background-color-dark: #000000; /* Light grey, used for backgrounds */ + --test: #ff0099; + + /* Default to Light Mode + --main-color: var(--main-color-light); + --secondary-color: var(--secondary-color-light); + --accent-color: var(--accent-color-light); + --dark-color: var(--dark-color-light); + --shadow-color: var(--shadow-color-light); + --shaded-color: var(--shaded-color-light); + --background-color: var(--background-color-light); + */ + + /* Default to Dark Mode */ + --main-color: var(--main-color-dark); + --secondary-color: var(--secondary-color-dark); + --accent-color: var(--accent-color-dark); + --dark-color: var(--dark-color-dark); + --shadow-color: var(--shadow-color-dark); + --shaded-color: var(--shaded-color-dark); + --background-color: var(--background-color-dark); +} + +/* Dark Mode Overrides */ +[data-theme="dark"] { + --main-color: var(--main-color-dark); + --secondary-color: var(--secondary-color-dark); + --accent-color: var(--accent-color-dark); + --dark-color: var(--dark-color-dark); + --shadow-color: var(--shadow-color-dark); + --shaded-color: var(--shaded-color-dark); + --background-color: var(--background-color-dark); } /*************DEFAULT STYLES**************/ @@ -43,7 +84,7 @@ a { } a:hover, .hover-tcf-orange:hover { - color: var(--accent-color); + color: var(--test); text-decoration: none; cursor: pointer; } @@ -68,7 +109,7 @@ ul { /* Main color: Indigo/Dark blue */ .text-tcf-indigo { - color: var(--main-color); + color: var(--main-color-); } .bg-tcf-indigo { background-color: var(--main-color); From aa2e3f5c92845ea31caf579fbb93b6daea4abbf4 Mon Sep 17 00:00:00 2001 From: Chai Zhang Date: Sun, 2 Feb 2025 15:12:31 -0500 Subject: [PATCH 03/70] Change clock to inline svg and change clock icon color --- tcf_website/static/icons/icons.css | 13 ++++++++++++- tcf_website/templates/landing/landing.html | 8 ++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/tcf_website/static/icons/icons.css b/tcf_website/static/icons/icons.css index 1f483d92f..4f06ae01e 100644 --- a/tcf_website/static/icons/icons.css +++ b/tcf_website/static/icons/icons.css @@ -16,7 +16,7 @@ height: 1em; } -.fa-clock { +/* .fa-clock { width: 1em; height: 1em; background-image: url("../icons/img/fa-clock.svg"); @@ -24,6 +24,17 @@ background-size: contain; background-position: center; vertical-align: middle; +} */ + +.fa-clock { + width: 1em; + height: 1em; + /* background-image: url("../icons/img/fa-clock.svg"); */ + background-repeat: no-repeat; + background-size: contain; + background-position: center; + vertical-align: middle; + color: var(--dark-mode-white); } .fa-arrow-right { diff --git a/tcf_website/templates/landing/landing.html b/tcf_website/templates/landing/landing.html index 848204060..5c0e8f688 100644 --- a/tcf_website/templates/landing/landing.html +++ b/tcf_website/templates/landing/landing.html @@ -29,9 +29,13 @@

theCourseForum

- + + + + + From 7071ae773f55338dcc3e7e0081c7d4d28fe6510f Mon Sep 17 00:00:00 2001 From: jo-hya <137954049+jo-hya@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:29:04 -0500 Subject: [PATCH 04/70] removed dash --- tcf_website/static/base/tcf-style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcf_website/static/base/tcf-style.css b/tcf_website/static/base/tcf-style.css index ed399716b..f474f5be9 100644 --- a/tcf_website/static/base/tcf-style.css +++ b/tcf_website/static/base/tcf-style.css @@ -109,7 +109,7 @@ ul { /* Main color: Indigo/Dark blue */ .text-tcf-indigo { - color: var(--main-color-); + color: var(--main-color); } .bg-tcf-indigo { background-color: var(--main-color); From c98e25b11949d656f81139b2175768f079be109b Mon Sep 17 00:00:00 2001 From: Chai Date: Sun, 9 Feb 2025 14:34:22 -0500 Subject: [PATCH 05/70] Landing page dark-mode half done --- tcf_website/static/base/tcf-style.css | 99 ++++++++++++--------- tcf_website/static/icons/icons.css | 11 ++- tcf_website/static/landing/landing.css | 2 +- tcf_website/templates/landing/landing.html | 29 +++++- tcf_website/templates/search/searchbar.html | 3 +- 5 files changed, 98 insertions(+), 46 deletions(-) diff --git a/tcf_website/static/base/tcf-style.css b/tcf_website/static/base/tcf-style.css index ed399716b..d17e31c9d 100644 --- a/tcf_website/static/base/tcf-style.css +++ b/tcf_website/static/base/tcf-style.css @@ -4,47 +4,37 @@ /* Use these variables in CSS stylesheets */ :root { - /* Light Mode Colors */ - --main-color-light: #274f97; /* Indigo/Dark blue */ - --secondary-color-light: #4077c4; - --accent-color-light: #d75626; /* Orange */ - --dark-color-light: #545454; /* Dark grey, for headers/buttons */ - --shadow-color-light: #a6a6a6; /* Medium grey, used for shadows */ - --shaded-color-light: #cfcfcf; /* Medium light grey, used for shading */ - --background-color-light: #ebebeb; /* Light grey, used for backgrounds */ + --main-color: #274f97; /* Indigo/Dark blue */ + --secondary-color: #4077c4; + --accent-color: #d75626; /* Orange */ + --dark-color: #545454; /* Dark grey, for headers/buttons */ + --shadow-color: #a6a6a6; /* Medium grey, used for shadows */ + --shaded-color: #cfcfcf; /* Medium light grey, used for shading */ + --background-color: #ebebeb; /* Light grey, used for backgrounds */ + --overall-backrgound-color: #f8f9fa; + --navbar-color: white; + /* #f8f9fa is the og background color styled by .bg-light in _background_variant.scss */ /* Note: Can use Bootstrap "light" color and white color */ - - /* Dark Mode Colors */ - --main-color-dark: #274F97; /* Indigo/Dark blue */ - --secondary-color-dark: #4873B7; - --accent-color-dark: #D75626; /* Orange */ - --dark-color-dark: #000000; /* Dark grey, for headers/buttons */ - --shadow-color-dark: #ffffff; /* Medium grey, used for shadows */ - --shaded-color-dark: #333333; /* Medium light grey, used for shading */ - --background-color-dark: #000000; /* Light grey, used for backgrounds */ - --test: #ff0099; - - /* Default to Light Mode - --main-color: var(--main-color-light); - --secondary-color: var(--secondary-color-light); - --accent-color: var(--accent-color-light); - --dark-color: var(--dark-color-light); - --shadow-color: var(--shadow-color-light); - --shaded-color: var(--shaded-color-light); - --background-color: var(--background-color-light); - */ - - /* Default to Dark Mode */ - --main-color: var(--main-color-dark); - --secondary-color: var(--secondary-color-dark); - --accent-color: var(--accent-color-dark); - --dark-color: var(--dark-color-dark); - --shadow-color: var(--shadow-color-dark); - --shaded-color: var(--shaded-color-dark); - --background-color: var(--background-color-dark); } -/* Dark Mode Overrides */ +/* only main-color (tcf blue) and accent-color (tcf organge) are being utilized by the landing page */ +body.dark-mode { + --main-color: white; + --secondary-color: orange; + --accent-color: yellow; + --dark-color: green; + --shadow-color: blue; + --shaded-color: purple; + --overall-background-color: black; + --h1-text-color: white; + --h4-card-title-color: white; + --p-card-text-color: white; + --card-background-color: #333333; + --navbar-color: #333333; + --input-color: #333333; +} + +/* Dark Mode Overrides [data-theme="dark"] { --main-color: var(--main-color-dark); --secondary-color: var(--secondary-color-dark); @@ -53,7 +43,7 @@ --shadow-color: var(--shadow-color-dark); --shaded-color: var(--shaded-color-dark); --background-color: var(--background-color-dark); -} +} */ /*************DEFAULT STYLES**************/ h1, @@ -70,6 +60,12 @@ h6, .h6 { /* Default heading font: Lato (others are fallbacks) */ font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; + /* Chai: initially didn't have a color element, this color element overrides color in _reboot.cscc */ + /* color: var(--h4-card-title-color); */ +} + +h1, .h1 { + color: var(--h1-text-color); } body { @@ -109,10 +105,12 @@ ul { /* Main color: Indigo/Dark blue */ .text-tcf-indigo { - color: var(--main-color-); + color: var(--main-color); } .bg-tcf-indigo { - background-color: var(--main-color); + /* background-color: var(--main-color); */ + /* Chai: this banner color should be tcf blue no matter if theme is light or dark */ + background-color: #274f97; } .border-tcf-indigo { border-color: var(--main-color); @@ -165,6 +163,25 @@ ul { border-color: var(--background-color); } +/* OVERRIDES scss stylings */ +/* Chai: background color on landing page is being styled by .bg-light in _background-variant.scss, has to have !important to override the !important in the scss */ +.bg-light { + background-color: var(--overall-background-color) !important; +} + +/* Chai: card background color is being styled by .card in _card.scss; color will be card-background-color when in dark-mode */ +.card { + background-color: var(--card-background-color); +} + +p { + color: var(--p-card-text-color); +} + +.form-control { + background-color: var(--input-color); +} + /* Note: Can use Bootstrap "light" color .text-light .bg-light diff --git a/tcf_website/static/icons/icons.css b/tcf_website/static/icons/icons.css index 4f06ae01e..7d1f0469c 100644 --- a/tcf_website/static/icons/icons.css +++ b/tcf_website/static/icons/icons.css @@ -1,3 +1,8 @@ +body.dark-mode { + --main-color: blue; +} +/* this blue is being override by --main-color in tcf-style.css */ + .fa { display: inline-block; font-style: normal; /* Reset any inherited styles */ @@ -34,7 +39,7 @@ background-size: contain; background-position: center; vertical-align: middle; - color: var(--dark-mode-white); + color: var(--main-color); } .fa-arrow-right { @@ -54,6 +59,7 @@ background-size: contain; background-position: center; vertical-align: middle; + color: var(--main-color); } .fa-book { @@ -187,10 +193,11 @@ .fa-chevron-down { width: 1em; height: 1em; - background-image: url("../icons/img/fa-chevron-down.svg"); + /* background-image: url("../icons/img/fa-chevron-down.svg"); */ background-repeat: no-repeat; background-size: contain; background-position: center; + color: var(--main-color); } .fa-thumbs-up { diff --git a/tcf_website/static/landing/landing.css b/tcf_website/static/landing/landing.css index e817d1c59..e16a0c08b 100644 --- a/tcf_website/static/landing/landing.css +++ b/tcf_website/static/landing/landing.css @@ -6,7 +6,7 @@ /* Navbar */ nav.navbar { - background-color: white; + background-color: var(--navbar-color); } nav.navbar img.logo { diff --git a/tcf_website/templates/landing/landing.html b/tcf_website/templates/landing/landing.html index 5c0e8f688..fc237f584 100644 --- a/tcf_website/templates/landing/landing.html +++ b/tcf_website/templates/landing/landing.html @@ -58,6 +58,11 @@

theCourseForum

{% endif %} + + + @@ -222,7 +227,8 @@

FAQs

- {{ i.question }} + + {{ i.question }}

{{ i.answer | safe }} @@ -355,5 +361,26 @@

Follow {% endblock %} diff --git a/tcf_website/templates/search/searchbar.html b/tcf_website/templates/search/searchbar.html index afab90aa4..68db29488 100644 --- a/tcf_website/templates/search/searchbar.html +++ b/tcf_website/templates/search/searchbar.html @@ -6,7 +6,8 @@ placeholder="Search for a class or professor..." aria-label="Search" name="q" value="{{query}}">
From 8b6de80cf459cd4ec62a152719554cb19f825599 Mon Sep 17 00:00:00 2001 From: blairezh <113472440+blairezh@users.noreply.github.com> Date: Sat, 15 Feb 2025 21:39:59 -0500 Subject: [PATCH 06/70] color changes for profile page --- tcf_website/static/profile/profile.css | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tcf_website/static/profile/profile.css b/tcf_website/static/profile/profile.css index e9ea58161..0fb58117a 100644 --- a/tcf_website/static/profile/profile.css +++ b/tcf_website/static/profile/profile.css @@ -1,3 +1,8 @@ + +.container-fluid { + background-color: var(--overall-background-color); +} + .user_delete { align-items: end; } @@ -6,3 +11,26 @@ display: flex; justify-content: space-between; } + +h2, h4 { + color: var(--h4-card-title-color); + /*explicitly written to override scss file*/ + margin-top: 0; + margin-bottom: .5rem; + font-weight: 500; + line-height: 1.2; + font-size: 26px; +} + +small, label { + color: var(--p-card-text-color); /*small is a gray color*/ +} + +.form-control { + color: var(--p-card-text-color); + background-color: var(--text-input-background); +} + +.card { + background-color: var(--card-background-color); +} From 19b91a84cac7e465059a5bbcd591b8323211ab78 Mon Sep 17 00:00:00 2001 From: jo-hya <137954049+jo-hya@users.noreply.github.com> Date: Sun, 16 Feb 2025 14:23:46 -0500 Subject: [PATCH 07/70] dark mode for browse, department, and icons --- tcf_website/static/base/tcf-style.css | 8 +++++--- tcf_website/static/browse/browse.css | 5 ++++- tcf_website/static/department/department.css | 7 +++++++ tcf_website/static/icons/icons.css | 5 ++++- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/tcf_website/static/base/tcf-style.css b/tcf_website/static/base/tcf-style.css index d17e31c9d..3500ea2f3 100644 --- a/tcf_website/static/base/tcf-style.css +++ b/tcf_website/static/base/tcf-style.css @@ -11,7 +11,8 @@ --shadow-color: #a6a6a6; /* Medium grey, used for shadows */ --shaded-color: #cfcfcf; /* Medium light grey, used for shading */ --background-color: #ebebeb; /* Light grey, used for backgrounds */ - --overall-backrgound-color: #f8f9fa; + --overall-background-color: #f8f9fa; + --card-background-color: white; --navbar-color: white; /* #f8f9fa is the og background color styled by .bg-light in _background_variant.scss */ /* Note: Can use Bootstrap "light" color and white color */ @@ -20,11 +21,12 @@ /* only main-color (tcf blue) and accent-color (tcf organge) are being utilized by the landing page */ body.dark-mode { --main-color: white; - --secondary-color: orange; - --accent-color: yellow; + --secondary-color: #4873B7; + --accent-color: #d75626; --dark-color: green; --shadow-color: blue; --shaded-color: purple; + --background-color: black; --overall-background-color: black; --h1-text-color: white; --h4-card-title-color: white; diff --git a/tcf_website/static/browse/browse.css b/tcf_website/static/browse/browse.css index 7ececb17e..8920ff65c 100644 --- a/tcf_website/static/browse/browse.css +++ b/tcf_website/static/browse/browse.css @@ -1,3 +1,7 @@ +body { + color: var(--h1-text-color); +} + .schools { margin-top: 30px; } @@ -19,7 +23,6 @@ .school > .card-header { background-color: var(--secondary-color); - color: white; } .school-body { diff --git a/tcf_website/static/department/department.css b/tcf_website/static/department/department.css index e69de29bb..e79fed554 100644 --- a/tcf_website/static/department/department.css +++ b/tcf_website/static/department/department.css @@ -0,0 +1,7 @@ +body { + color: var(--h1-text-color); +} + +.bg-white { + background-color: var(--card-background-color) !important; +} \ No newline at end of file diff --git a/tcf_website/static/icons/icons.css b/tcf_website/static/icons/icons.css index 6f854a5b4..78190deec 100644 --- a/tcf_website/static/icons/icons.css +++ b/tcf_website/static/icons/icons.css @@ -2,6 +2,10 @@ body.dark-mode { --main-color: blue; } /* this blue is being override by --main-color in tcf-style.css */ +/* changes all icons to white if dark-mode is enabled */ +body.dark-mode .fa { + filter: invert(100%) brightness(150%); +} .fa { display: inline-block; @@ -59,7 +63,6 @@ body.dark-mode { background-size: contain; background-position: center; vertical-align: middle; - color: var(--main-color); } .fa-book { From 44416ea01b4c11a1f115f710295fa1143664fdd2 Mon Sep 17 00:00:00 2001 From: jo-hya <137954049+jo-hya@users.noreply.github.com> Date: Sun, 16 Feb 2025 14:57:56 -0500 Subject: [PATCH 08/70] added accurate colors to dark mode --- tcf_website/static/base/tcf-style.css | 18 +++++++++--------- tcf_website/static/browse/browse.css | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/tcf_website/static/base/tcf-style.css b/tcf_website/static/base/tcf-style.css index 3500ea2f3..4d17fcd29 100644 --- a/tcf_website/static/base/tcf-style.css +++ b/tcf_website/static/base/tcf-style.css @@ -11,28 +11,28 @@ --shadow-color: #a6a6a6; /* Medium grey, used for shadows */ --shaded-color: #cfcfcf; /* Medium light grey, used for shading */ --background-color: #ebebeb; /* Light grey, used for backgrounds */ - --overall-background-color: #f8f9fa; - --card-background-color: white; - --navbar-color: white; + --overall-background-color: #faf8f9; + --card-background-color: #ffffff; + --navbar-color: #ffffff; /* #f8f9fa is the og background color styled by .bg-light in _background_variant.scss */ /* Note: Can use Bootstrap "light" color and white color */ } /* only main-color (tcf blue) and accent-color (tcf organge) are being utilized by the landing page */ body.dark-mode { - --main-color: white; + --main-color: #ffffff; --secondary-color: #4873B7; --accent-color: #d75626; --dark-color: green; - --shadow-color: blue; - --shaded-color: purple; + --shadow-color: #ffffff; + --shaded-color: #333333; --background-color: black; --overall-background-color: black; - --h1-text-color: white; - --h4-card-title-color: white; + --navbar-color: #333333; + --h1-text-color: #ffffff; + --h4-card-title-color: #ffffff; --p-card-text-color: white; --card-background-color: #333333; - --navbar-color: #333333; --input-color: #333333; } diff --git a/tcf_website/static/browse/browse.css b/tcf_website/static/browse/browse.css index 8920ff65c..c46882ab8 100644 --- a/tcf_website/static/browse/browse.css +++ b/tcf_website/static/browse/browse.css @@ -23,6 +23,7 @@ body { .school > .card-header { background-color: var(--secondary-color); + color: white; /* change to text variable when they r made */ } .school-body { From 166dc02c3f524049c2e1aeeff5f111fc10424fd9 Mon Sep 17 00:00:00 2001 From: Chai Date: Sun, 23 Feb 2025 15:27:04 -0500 Subject: [PATCH 09/70] Added basic dark mode variables for universal use --- tcf_website/static/base/tcf-style.css | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tcf_website/static/base/tcf-style.css b/tcf_website/static/base/tcf-style.css index 4d17fcd29..ad2794e75 100644 --- a/tcf_website/static/base/tcf-style.css +++ b/tcf_website/static/base/tcf-style.css @@ -20,7 +20,7 @@ /* only main-color (tcf blue) and accent-color (tcf organge) are being utilized by the landing page */ body.dark-mode { - --main-color: #ffffff; + /* --main-color: #ffffff; --secondary-color: #4873B7; --accent-color: #d75626; --dark-color: green; @@ -33,7 +33,16 @@ body.dark-mode { --h4-card-title-color: #ffffff; --p-card-text-color: white; --card-background-color: #333333; - --input-color: #333333; + --input-color: #333333; */ + + --background-color: black; + --card-background-color: #333333; + --input-background-color: #545454; + --input-text-color: #a6a6a6; + --accent-text-color: #d75626; + --basic-text-color: white; + --icon-color: white; + --input-border-color: #a6a6a6; } /* Dark Mode Overrides From b9b200cdddffa0fa28c43682dadd586dcd178006 Mon Sep 17 00:00:00 2001 From: jo-hya <137954049+jo-hya@users.noreply.github.com> Date: Sat, 1 Mar 2025 03:36:13 -0500 Subject: [PATCH 10/70] dark mode changes to browse and department --- tcf_website/static/browse/browse.css | 6 +++--- tcf_website/static/department/department.css | 6 +++--- tcf_website/static/icons/icons.css | 4 ---- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/tcf_website/static/browse/browse.css b/tcf_website/static/browse/browse.css index c46882ab8..632415937 100644 --- a/tcf_website/static/browse/browse.css +++ b/tcf_website/static/browse/browse.css @@ -1,5 +1,5 @@ -body { - color: var(--h1-text-color); +body.dark-mode { + color: var(--basic-text-color); } .schools { @@ -23,7 +23,7 @@ body { .school > .card-header { background-color: var(--secondary-color); - color: white; /* change to text variable when they r made */ + color: white; /* need a variable in light mode for white text? */ } .school-body { diff --git a/tcf_website/static/department/department.css b/tcf_website/static/department/department.css index e79fed554..1cca8709f 100644 --- a/tcf_website/static/department/department.css +++ b/tcf_website/static/department/department.css @@ -1,6 +1,6 @@ -body { - color: var(--h1-text-color); -} +body.dark-mode { + color: var(--basic-text-color); + } .bg-white { background-color: var(--card-background-color) !important; diff --git a/tcf_website/static/icons/icons.css b/tcf_website/static/icons/icons.css index 78190deec..57bc654b1 100644 --- a/tcf_website/static/icons/icons.css +++ b/tcf_website/static/icons/icons.css @@ -1,7 +1,3 @@ -body.dark-mode { - --main-color: blue; -} -/* this blue is being override by --main-color in tcf-style.css */ /* changes all icons to white if dark-mode is enabled */ body.dark-mode .fa { filter: invert(100%) brightness(150%); From 4d1273bcf66ca8175b8bd9ea47b1ea4699f74802 Mon Sep 17 00:00:00 2001 From: blairezh <113472440+blairezh@users.noreply.github.com> Date: Sat, 1 Mar 2025 17:12:56 -0500 Subject: [PATCH 11/70] create review page css refactor --- tcf_website/static/base/tcf-style.css | 11 ++++++++++- tcf_website/static/reviews/new_review.css | 19 +++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/tcf_website/static/base/tcf-style.css b/tcf_website/static/base/tcf-style.css index ad2794e75..27f6c790a 100644 --- a/tcf_website/static/base/tcf-style.css +++ b/tcf_website/static/base/tcf-style.css @@ -190,7 +190,16 @@ p { } .form-control { - background-color: var(--input-color); + background-color: var(--input-background-color); + color: var(--input-text-color); +} + +.form-control::placeholder { + color: var(--input-text-color); +} + +.forcontrol:disabled { + background-color: var(--background-color); } /* Note: Can use Bootstrap "light" color diff --git a/tcf_website/static/reviews/new_review.css b/tcf_website/static/reviews/new_review.css index cbe0fa7ea..f03dcec3c 100644 --- a/tcf_website/static/reviews/new_review.css +++ b/tcf_website/static/reviews/new_review.css @@ -1,12 +1,22 @@ /* For the Review Form in new_review.html and edit_review.html */ +body.body { + --background-color: black; + --card-background-color: #333333; + --input-background-color: #545454; + --input-text-color: #a6a6a6; + --accent-text-color: #d75626; + --basic-text-color: white; + --icon-color: white; + --input-border-color: #a6a6a6; +} .new-review .review-form-header { color: var(--accent-color); } .new-review select:disabled { - color: var(--shadow-color); - background-color: var(--shaded-color); + color: var(--input-text-color); + background-color: var(--background-color); } .required-field::after { @@ -27,3 +37,8 @@ #progressbar-message { margin-bottom: 0px; } + +h1, label, p { + color: var(--basic-text-color); +} + From 6a1768aa74f0773ac52b3eb41c825bbc88f1aacb Mon Sep 17 00:00:00 2001 From: blairezh <113472440+blairezh@users.noreply.github.com> Date: Sat, 1 Mar 2025 17:17:04 -0500 Subject: [PATCH 12/70] removed dark mode class --- tcf_website/static/reviews/new_review.css | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tcf_website/static/reviews/new_review.css b/tcf_website/static/reviews/new_review.css index f03dcec3c..5a1d5d5b8 100644 --- a/tcf_website/static/reviews/new_review.css +++ b/tcf_website/static/reviews/new_review.css @@ -1,14 +1,4 @@ /* For the Review Form in new_review.html and edit_review.html */ -body.body { - --background-color: black; - --card-background-color: #333333; - --input-background-color: #545454; - --input-text-color: #a6a6a6; - --accent-text-color: #d75626; - --basic-text-color: white; - --icon-color: white; - --input-border-color: #a6a6a6; -} .new-review .review-form-header { color: var(--accent-color); From 232cc4b5d66791c844456165d697a07d3ef775d2 Mon Sep 17 00:00:00 2001 From: blairezh <113472440+blairezh@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:13:05 -0500 Subject: [PATCH 13/70] dark mode vars for profile --- tcf_website/static/profile/profile.css | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tcf_website/static/profile/profile.css b/tcf_website/static/profile/profile.css index 0fb58117a..9f76368a1 100644 --- a/tcf_website/static/profile/profile.css +++ b/tcf_website/static/profile/profile.css @@ -1,6 +1,6 @@ .container-fluid { - background-color: var(--overall-background-color); + background-color: var(--background-color); } .user_delete { @@ -13,7 +13,7 @@ } h2, h4 { - color: var(--h4-card-title-color); + color: var(--basic-text-color); /*explicitly written to override scss file*/ margin-top: 0; margin-bottom: .5rem; @@ -22,13 +22,8 @@ h2, h4 { font-size: 26px; } -small, label { - color: var(--p-card-text-color); /*small is a gray color*/ -} - -.form-control { - color: var(--p-card-text-color); - background-color: var(--text-input-background); +.form-row { + color: var(--basic-text-color); } .card { From 660fed8bc032c500c1b3dc53e39a9b2aaf3ef999 Mon Sep 17 00:00:00 2001 From: blairezh <113472440+blairezh@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:20:19 -0500 Subject: [PATCH 14/70] dark mode var in review.css --- tcf_website/static/reviews/review.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tcf_website/static/reviews/review.css b/tcf_website/static/reviews/review.css index 43566f1bd..df485ec0f 100644 --- a/tcf_website/static/reviews/review.css +++ b/tcf_website/static/reviews/review.css @@ -1,3 +1,14 @@ +body.body { + --background-color: black; + --card-background-color: #333333; + --input-background-color: #545454; + --input-text-color: #a6a6a6; + --accent-text-color: #d75626; + --basic-text-color: white; + --icon-color: white; + --input-border-color: #a6a6a6; +} + .review-content .review-text-body.collapse:not(.show) { display: block; height: 12rem; @@ -41,3 +52,7 @@ .tooltip-inner { margin: 0; } + +.review-text-body { + color: var(--basic-text-color); +} From bc2f018d15981048e9a378a7eef79e5351a4e25f Mon Sep 17 00:00:00 2001 From: blairezh <113472440+blairezh@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:22:35 -0500 Subject: [PATCH 15/70] review_stats dark mode var --- tcf_website/static/reviews/review_stats.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tcf_website/static/reviews/review_stats.css b/tcf_website/static/reviews/review_stats.css index 000dc351d..741946787 100644 --- a/tcf_website/static/reviews/review_stats.css +++ b/tcf_website/static/reviews/review_stats.css @@ -1,3 +1,14 @@ +body.body { + --background-color: black; + --card-background-color: #333333; + --input-background-color: #545454; + --input-text-color: #a6a6a6; + --accent-text-color: #d75626; + --basic-text-color: white; + --icon-color: white; + --input-border-color: #a6a6a6; +} + .large-stats { padding-top: 15px; padding-bottom: 10px; @@ -11,3 +22,7 @@ font-size: 20px; } } + +h1, h2 { + color: var(--basic-text-color); +} \ No newline at end of file From 72d4d2b7e27b5c14f1e5d188d4e4ef71d9ae6748 Mon Sep 17 00:00:00 2001 From: Chai Date: Sun, 2 Mar 2025 14:53:14 -0500 Subject: [PATCH 16/70] partly styled landing page --- tcf_website/static/base/tcf-style.css | 18 +++++++++++++++--- tcf_website/templates/landing/landing.html | 4 ++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/tcf_website/static/base/tcf-style.css b/tcf_website/static/base/tcf-style.css index 27f6c790a..517133ba9 100644 --- a/tcf_website/static/base/tcf-style.css +++ b/tcf_website/static/base/tcf-style.css @@ -14,6 +14,9 @@ --overall-background-color: #faf8f9; --card-background-color: #ffffff; --navbar-color: #ffffff; + /* newly added */ + --basic-text-color: #212529; + /* #f8f9fa is the og background color styled by .bg-light in _background_variant.scss */ /* Note: Can use Bootstrap "light" color and white color */ } @@ -36,6 +39,7 @@ body.dark-mode { --input-color: #333333; */ --background-color: black; + --landing-page-background-color: black; --card-background-color: #333333; --input-background-color: #545454; --input-text-color: #a6a6a6; @@ -76,7 +80,15 @@ h6, } h1, .h1 { - color: var(--h1-text-color); + color: var(--basic-text-color); +} + +h4, .h4 { + color: var(--basic-text-color); +} + +h6, .h6 { + color: var(--basic-text-color); } body { @@ -177,7 +189,7 @@ ul { /* OVERRIDES scss stylings */ /* Chai: background color on landing page is being styled by .bg-light in _background-variant.scss, has to have !important to override the !important in the scss */ .bg-light { - background-color: var(--overall-background-color) !important; + background-color: var(--landing-page-background-color) !important; } /* Chai: card background color is being styled by .card in _card.scss; color will be card-background-color when in dark-mode */ @@ -186,7 +198,7 @@ ul { } p { - color: var(--p-card-text-color); + color: var(--basic-text-color); } .form-control { diff --git a/tcf_website/templates/landing/landing.html b/tcf_website/templates/landing/landing.html index 0ff86b7f5..dc03c92df 100644 --- a/tcf_website/templates/landing/landing.html +++ b/tcf_website/templates/landing/landing.html @@ -148,7 +148,7 @@

Write a Review

-

We'll connect you to courses you'll love, and make enrollment stress +

We'll connect you to courses you'll love, and make enrollment stress free.

@@ -180,7 +180,7 @@
{{ member.name }}