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

Applied the new styling (#961) from docs for better readability #76

Merged
merged 1 commit into from
Apr 26, 2024
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
38 changes: 38 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@
--color-cta-background-blue: #6270a4;
--ifm-heading-font-family: Apax, sans-serif;
--ifm-font-family-base: Inter, sans-serif;
--ifm-heading-font-weight: 400;
--ifm-h2-font-size: 1.5rem;
/* text margins */
--ifm-heading-margin-top: 1rem;
--ifm-paragraph-margin-bottom: 2rem;
--ifm-leading: 2rem;
/* paddings */
--ifm-spacing-vertical: 2.2rem;
--ifm-spacing-horizontal: 2.2rem;
--ifm-alert-padding-vertical: 1rem;
--ifm-alert-padding-horizontal: 1.2rem;
--ifm-navbar-padding-vertical: calc(var(--ifm-spacing-vertical) * 0.2);
--ifm-navbar-padding-horizontal: calc(var(--ifm-spacing-horizontal) * 0.5);
}

html[data-theme='dark'] {
Expand All @@ -46,6 +59,31 @@ html[data-theme='dark'] {
suffix: '';
}

.markdown h1:first-child {
--ifm-h1-font-size: 2.2rem;
}

.markdown > h2 {
--ifm-h2-font-size: 1.5rem;
}

.menu {
font-size: 0.95rem;
}

/* notification and warning boxes */
.admonition_node_modules-\@docusaurus-theme-classic-lib-theme-Admonition-Layout-styles-module {
margin-bottom: 2em !important;
}
.admonition_node_modules-\@docusaurus-theme-classic-lib-theme-Admonition-Layout-styles-module p {
margin: 0 0 1rem;
}

/* main content window top padding */
.padding-top--md {
padding-top: 2rem !important;
}

.header-github-link:hover {
opacity: 0.6;
}
Expand Down
Loading