Skip to content

Update site styles #228

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

Merged
merged 4 commits into from
Apr 21, 2025
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
79 changes: 78 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
--ifm-color-primary-light: #8e5de4; /* Slightly lighter than primary */
--ifm-color-primary-lighter: #9a6de7; /* Lighter than primary */
--ifm-color-primary-lightest: #a87deb; /* Lightest tint */
--ifm-code-font-size: 95%; /* Adjusted code font size */
--ifm-code-font-size: 85%; /* Adjusted code font size */
--ifm-font-size-base: 110%; /* Adjusted font size */
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); /* Highlighted code line background in light mode */
--ifm-color-primary-lightest: #a87deb; /* Lightest tint */

/* Shared variables for consistency with homepage */
--primary-color: var(--ifm-color-primary);
Expand Down Expand Up @@ -47,3 +49,78 @@
--feature-icon-bg: var(--ifm-color-emphasis-100, #1d2535);
--light-text: var(--ifm-color-secondary-lightest, #a0a6b1);
}

/* Custom CSS */

/* Reduce navbar text size */
.navbar__item {
font-size: 0.9rem; /* Reduced font size for navbar items */
}

/* Reduce navbar brand/title text size */
.navbar__title {
font-size: .9rem; /* Reduced font size for the navbar title */
}

p {
font-weight: 350;
}

/* Bold hyperlinks */
a {
font-weight: 550;
}

/* Don't bold links in table of contents or github edit button */
.table-of-contents a,
.theme-edit-this-page {
font-weight: normal;
}

/* Adjust bold weight */
p strong,
p b,
li b,
li strong {
font-weight: 550;
}

.markdown h1 {
font-size: 185%;
font-weight: 700;
line-height: 1;
margin-bottom: .9rem !important;
}

.markdown h2 {
font-size: 140%;
font-weight: 620;
line-height: 1.2;
margin-bottom: .9rem !important;
margin-top: 2.5rem !important;
}

.markdown h3 {
font-size: 120%;
font-weight: 600;
line-height: 1;
margin-top: 2.5rem !important;
margin-bottom: .9rem !important;
}

.markdown h4 {
font-size: 120%;
font-weight: 600;
line-height: 1;
}

/* Reduce sidebar text size */
.menu__link {
font-size: 85%; /* Reduced text size in sidebar */
font-weight: 350;
}

/* Adjust light mode sidebar text color */
html[data-theme='light'] .menu__link {
color: #000000de;
}