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

doc: make version picker usable on mobile #39958

Closed
wants to merge 1 commit into from
Closed
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
28 changes: 15 additions & 13 deletions doc/api_assets/style.css
Expand Up @@ -165,19 +165,6 @@ em code {
line-height: 1.5rem;
}

#gtoc > ul > li {
display: inline;
border-right: 1px currentColor solid;
margin-right: .4rem;
padding-right: .4rem;
}

#gtoc > ul > li:last-child {
border-right: none;
margin-right: 0;
padding-right: 0;
}

li.version-picker {
position: relative;
}
Expand Down Expand Up @@ -741,6 +728,21 @@ kbd {
outline: var(--brand3) dotted 2px;
}

@media only screen and (min-width: 577px) {
#gtoc > ul > li {
display: inline;
border-right: 1px currentColor solid;
margin-right: .4rem;
padding-right: .4rem;
}

#gtoc > ul > li:last-child {
border-right: none;
margin-right: 0;
padding-right: 0;
}
}

@media only screen and (max-width: 1024px) {
#content {
overflow: visible;
Expand Down