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: re-enable version dropdown on small screens #10

Merged
merged 3 commits into from
Mar 5, 2024
Merged
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
41 changes: 40 additions & 1 deletion site/assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ code {
color-scheme: dark;
}

nav.td-sidebar-nav a.active {
background-color: transparent;
font-weight: bold;
}

// make version dropdown highling not-so-obnoxious
ul.dropdown-menu {
--bs-dropdown-bg: #0f1443;
}

ul.dropdown-menu > li {
--bs-dropdown-link-hover-bg: color-mix(in srgb, var(--bs-body-bg) 95%, white);
--bs-dropdown-link-hover-bg: color-mix(in srgb, #0f1443 95%, white);
}

// right-align top menu version dropdown
Expand Down Expand Up @@ -62,4 +71,34 @@ video.td-content {
padding: 0.25em 0;
padding-left: 0.75em;
line-height: 1.5em;
}

// enable version dropdown on small screens
@media screen and (max-width: 991.98px) {
div#main_navbar {
overflow: visible;
font-size: 16px;
}

ul.navbar-nav {
overflow-x: visible !important;
padding-top: 0 !important;
}

li.nav-item {
display: inherit !important;
}

nav.td-navbar {
min-height: auto;
height: 56px;
}

nav.td-navbar > div.container-fluid {
flex-direction: row !important;
}

ul.dropdown-menu {
inset: 0px auto auto 0px !important;
}
}