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

dark/light mode style changes #60

Merged
merged 4 commits into from
Sep 6, 2023
Merged
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
89 changes: 82 additions & 7 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@

body {
font-family: 'Source Sans Pro';
color: var(--ifr-color-neutral-90);
}

[data-theme='dark'] body {
color: var(--ifr-color-neutral-10);
}

.landingPage {
Expand Down Expand Up @@ -221,7 +226,6 @@ body {
--ifm-color-primary-lightest: #fd338b;
--ifm-link-color: var(--ifm-color-primary);
--ifr-color-neutral-10: #fbfafb;
--ifr-color-neutral-90: #1c1533;
}

/* Dark mode styles */
Expand All @@ -239,6 +243,14 @@ html[data-theme='dark'] {
--ifm-background-color: #1c1533;
}

[data-theme='dark'] .landingPage {
background: radial-gradient(
circle,
rgba(52, 52, 79, 1) 0%,
rgba(28, 21, 51, 1) 60%
);
}

[data-theme='dark'] .navbar {
background-color: #3d3751;
}
Expand All @@ -258,10 +270,73 @@ html[data-theme='dark'] {
text-decoration: none;
}

[data-theme='dark'] .landingPage {
background: radial-gradient(
circle,
rgba(52, 52, 79, 1) 0%,
rgba(28, 21, 51, 1) 60%
);
/* Doc file styles */

.language-diff,
.language-python,
.language-yaml,
.language-java,
.language-xml,
.language-binary {
--prism-background-color: var(--ifr-color-neutral-white);
}

[data-theme='dark'] .language-diff,
[data-theme='dark'] .language-python,
[data-theme='dark'] .language-yaml,
[data-theme='dark'] .language-java,
[data-theme='dark'] .language-xml,
[data-theme='dark'] .language-binary {
--prism-background-color: var(--ifr-color-neutral-80);
}

/* left side bar */

.theme-doc-sidebar-item-category li .menu__link.menu__link--active,
.theme-doc-sidebar-menu li .menu__link.menu__link--active {
color: var(--ifm-color-primary);
}

.theme-doc-sidebar-item-category li .menu__link,
.theme-doc-sidebar-menu li .menu__link {
color: var(--ifr-color-neutral-90);
}

[data-theme='dark'] .theme-doc-sidebar-item-category li .menu__link,
[data-theme='dark'] .theme-doc-sidebar-menu li .menu__link {
color: var(--ifr-color-neutral-10);
}
[data-theme='dark']
.theme-doc-sidebar-item-category
li
[data-theme='dark']
.menu__link.menu__link--active,
.theme-doc-sidebar-menu li .menu__link.menu__link--active {
color: var(--ifm-color-primary);
}

/* Right side bar */

.table-of-contents li a {
color: var(--ifr-color-neutral-90);
}

.table-of-contents li a.table-of-contents__link--active {
color: var(--ifm-color-primary);
}

[data-theme='dark'] .table-of-contents li a {
color: var(--ifr-color-neutral-10);
}

[data-theme='dark'] .table-of-contents li a.table-of-contents__link--active {
color: var(--ifm-color-primary);
}

.table-of-contents {
border-color: var(--ifr-color-neutral-20);
}

[data-theme='dark'] .table-of-contents {
border-color: var(--ifr-color-neutral-70);
}
Loading