Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing some contrast issues of the text in darkmode. #65

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ html {
}

body {
font-family: "Poppins", sans-serif;
font-family: 'Poppins', sans-serif;
}

#preloader {
Expand All @@ -26,7 +26,7 @@ body {
/* centers the loading animation horizontally one the screen */
top: 50%;
/* centers the loading animation vertically one the screen */
background-image: url("book.gif");
background-image: url('book.gif');
z-index: 9999;
/* path to your loading animation */
background-repeat: no-repeat;
Expand Down Expand Up @@ -818,3 +818,17 @@ body {
.darkmode-toggle {
z-index: 1031;
}

/* Fixing Darkmode Text Contrast */

body.darkmode--activated .header-details h1,
body.darkmode--activated .video-details h2 {
color: whitesmoke;
}

body.darkmode--activated .header-details p,
body.darkmode--activated .video-details p,
body.darkmode--activated .testimonial,
body.darkmode--activated .overview {
color: rgb(209, 209, 209);
}