Skip to content
Open
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
11 changes: 11 additions & 0 deletions website/src/css/docs-secondary-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ html.plugin-docs {
}
}

// The menu is left-aligned with its toggle, which sits about 236px from the
// left edge, so on narrow screens the 170px menu extends past the viewport
// (even while hidden) and makes the page scroll sideways. Align it to the
// toggle's right edge instead.
@media (max-width: 480px) {
[class*="versionDropdown"] .dropdown__menu {
left: auto;
right: 0;
}
}

[data-theme="dark"] [class*="dropdown"] {
.dropdown__menu {
background-color: color-mix(in srgb, var(--light), black 40%);
Expand Down