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

docs: fix contrast + sidebar style #576

Merged
merged 1 commit into from May 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/src/components/LeftSidebar/LeftSidebar.astro
Expand Up @@ -82,15 +82,14 @@ const sidebar = SIDEBAR[langCode];
.nav-group-title {
font-size: 1rem;
font-weight: 700;
padding: 0.1rem 1rem;
text-transform: uppercase;
padding: 0.1rem 2.5rem;
margin-bottom: 0.5rem;
}

.nav-link a {
font-size: 1rem;
margin: 1px 0 1px 1px;
padding: 0.3rem 1rem;
padding: 0.375rem 2.5rem;
font: inherit;
color: inherit;
text-decoration: none;
Expand All @@ -103,7 +102,7 @@ const sidebar = SIDEBAR[langCode];
}

.nav-link a[aria-current='page'] {
color: var(--theme-text-accent);
color: var(--theme-text-accent-contrast);
background-color: var(--theme-bg-accent);
font-weight: 500;
}
Expand Down
1 change: 0 additions & 1 deletion docs/src/layouts/MainLayout.astro
Expand Up @@ -93,7 +93,6 @@ const githubEditUrl = `${CONFIG.GITHUB_EDIT_URL}/${currentFile}`;

#grid-left {
display: flex;
padding-left: 2rem;
position: sticky;
grid-column: 1;
}
Expand Down
1 change: 0 additions & 1 deletion docs/src/styles/index.css
Expand Up @@ -406,7 +406,6 @@ h2.heading {
font-size: 1rem;
font-weight: 700;
padding: 0.1rem 1rem;
text-transform: uppercase;
margin-bottom: 0.5rem;
}

Expand Down
2 changes: 2 additions & 0 deletions docs/src/styles/theme.css
Expand Up @@ -73,6 +73,7 @@
--theme-accent-opacity: 0.1;
--theme-accent: hsla(var(--color-green), 1);
--theme-text-accent: hsla(var(--color-green), 1);
--theme-text-accent-contrast: hsla(var(--color-base-green), 24%, 1);
--theme-divider: hsla(var(--color-border-putty), 1);
--theme-link-text: rgb(12 100 188);
--theme-text: hsla(var(--color-black), 1);
Expand Down Expand Up @@ -103,6 +104,7 @@ body {
--theme-accent-opacity: 0.15;
--theme-accent: hsla(var(--color-green), 1);
--theme-text-accent: hsla(var(--color-green), 1);
--theme-text-accent-contrast: hsla(var(--color-base-green), 40%, 1);
--theme-divider: hsla(var(--color-gray-10), 1);
--theme-link-text: rgb(0 145 255);
--theme-text: hsla(var(--color-white), 1);
Expand Down