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

fix(docs): fixed responsive menu #2288

Merged
merged 4 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ <h1 class="app-bar__title">{{ page.title }}</h1>
</div>
<details class="details modules-expander">
<summary class="details__summary">
<span class="details__label">Menu</span>
<span class="details__label">Modules</span>
<span class="details__icon" hidden>
<svg class="icon icon--dropdown" aria-hidden="true">
<svg class="icon icon--chevron-down-16" aria-hidden="true">
{% include symbol.html name="chevron-down-12" %}
</svg>
</span>
Expand Down
13 changes: 9 additions & 4 deletions docs/src/less/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,17 @@ figure.highlight {
}

.modules-expander {
background: var(--color-neutral-2);
background: var(--color-loading-fill-elevated);
ArtBlue marked this conversation as resolved.
Show resolved Hide resolved
font-size: var(--font-size-medium);
padding: 4px var(--spacing-200);
}

.modules-expander li {
font-size: var(--font-size-default);
}

.modules-expander__tip {
color: var(--color-neutral-8);
color: var(--color-foreground-primary);
display: none;
font-size: var(--font-size-default);
font-style: italic;
Expand All @@ -95,7 +99,7 @@ figure.highlight {
column-count: 3;
line-height: 1.75em;
list-style-type: none;
margin: 0;
margin: 16px 0 0;
padding: 0;
width: 100%;
}
Expand Down Expand Up @@ -158,7 +162,8 @@ figure.highlight {
text-decoration: none;
}

.modules-expander__list a:visited {
.modules-expander__list a,
.modules-expander__list a.nav-link:visited {
color: var(--color-foreground-accent);
}

Expand Down
Loading
Loading