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

enhance(sidebar,toc): improve style of current item #11063

Merged
merged 8 commits into from
Jul 9, 2024
5 changes: 3 additions & 2 deletions client/src/curriculum/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,14 @@

li > em {
background-color: var(--background-toc-active);
border-bottom-right-radius: 0.25rem;
border-left: 2px solid var(--category-color);
border-top-right-radius: 0.25rem;
display: inline-block;
font-style: normal;
font-variation-settings: normal;
font-weight: 600;
padding: 0.25rem 0.25rem 0.25rem 0.5rem;
width: 100%;
padding: 0.25rem 0.5rem;
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions client/src/document/organisms/sidebar/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@

em {
background-color: var(--background-toc-active);
border-bottom-right-radius: 0.25rem;
border-left: 2px solid var(--category-color);
border-top-right-radius: 0.25rem;
display: inline-block;
font-style: normal;
font-variation-settings: normal;
font-weight: 600;
hyphens: auto;
padding: 0.25rem;
padding-left: 0.5rem;
width: 100%;
caugner marked this conversation as resolved.
Show resolved Hide resolved
padding: 0.25rem 0.5rem;
}

a {
Expand Down
4 changes: 3 additions & 1 deletion client/src/document/organisms/toc/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
&-link.document-toc-link:not(.button) {
border-left: 2px solid var(--border-secondary);
color: var(--text-secondary);
display: block;
display: inline-block;
padding: 0.5rem 1rem;
text-decoration: none;

Expand All @@ -42,7 +42,9 @@

&[aria-current]:not([aria-current=""]):not([aria-current="false"]) {
background-color: var(--background-toc-active);
border-bottom-right-radius: 0.25rem;
border-left: 2px solid var(--category-color);
border-top-right-radius: 0.25rem;
color: var(--text-primary);
font-weight: 600;
}
Expand Down
Loading