|
@@ -422,6 +422,26 @@ code,
|
|
background-color: var(--navbar-background-color);
|
|
background-color: var(--navbar-background-color);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+@media only screen and (min-width: 768px) {
|
|
|
|
+ .wy-side-nav-search {
|
|
|
|
+ /* Keep the search field visible when scrolling down */
|
|
|
|
+ position: fixed;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /* Simulate a drop shadow that only affects the bottom edge */
|
|
|
|
+ /* This is used to indicate the search bar is fixed */
|
|
|
|
+ .wy-side-nav-search::after {
|
|
|
|
+ content: '';
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ bottom: -8px;
|
|
|
|
+ width: 300px;
|
|
|
|
+ height: 8px;
|
|
|
|
+ pointer-events: none;
|
|
|
|
+ background: linear-gradient(hsla(0, 0%, 0%, 0.2), transparent);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
.wy-side-nav-search > a:hover,
|
|
.wy-side-nav-search > a:hover,
|
|
.wy-side-nav-search .wy-dropdown > a:hover {
|
|
.wy-side-nav-search .wy-dropdown > a:hover {
|
|
background-color: var(--navbar-background-color-hover);
|
|
background-color: var(--navbar-background-color-hover);
|
|
@@ -494,6 +514,14 @@ code,
|
|
width: 308px;
|
|
width: 308px;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+@media only screen and (min-width: 768px) {
|
|
|
|
+ .wy-menu-vertical {
|
|
|
|
+ /* Account for the fixed logo and search form */
|
|
|
|
+ /* (prevents the navbar from being hidden behind it) */
|
|
|
|
+ margin-top: 330px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
.wy-menu-vertical a {
|
|
.wy-menu-vertical a {
|
|
color: var(--navbar-level-1-color);
|
|
color: var(--navbar-level-1-color);
|
|
}
|
|
}
|