mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-25 01:04:24 +01:00
Docs: Fix Nav Bar and wrong command in docs (#2889)
This commit is contained in:
@@ -301,9 +301,17 @@ html[data-theme="light"] .hide-in-light {
|
||||
border-bottom: 1px solid var(--border-divider);
|
||||
}
|
||||
|
||||
/* Smooth transitions for navbar items */
|
||||
.navbar__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: opacity 0.3s ease, transform 0.3s ease;
|
||||
}
|
||||
|
||||
.navbar__toggle {
|
||||
transition: opacity 0.3s ease, transform 0.3s ease;
|
||||
opacity: 0;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
|
||||
/* Dropdown styles */
|
||||
@@ -329,6 +337,42 @@ html[data-theme="light"] .hide-in-light {
|
||||
margin-left: 8px !important;
|
||||
}
|
||||
|
||||
/* Force hamburger menu to appear earlier to prevent navbar overlap with smooth transitions */
|
||||
@media (max-width: 1350px) {
|
||||
.navbar__item {
|
||||
opacity: 0;
|
||||
transform: translateX(-10px);
|
||||
pointer-events: none;
|
||||
/* Use visibility instead of display for smoother transitions */
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.navbar__toggle {
|
||||
opacity: 1 !important;
|
||||
transform: scale(1) !important;
|
||||
display: inherit !important;
|
||||
}
|
||||
|
||||
.navbar-sidebar {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
/* Ensure navbar items are visible above the breakpoint */
|
||||
@media (min-width: 1351px) {
|
||||
.navbar__item {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
pointer-events: auto;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.navbar__toggle {
|
||||
opacity: 0;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
}
|
||||
|
||||
.carousel-image {
|
||||
width: 100%; /* Make the image fill the width */
|
||||
object-fit: cover; /* Ensure the image covers the area while maintaining aspect ratio */
|
||||
|
||||
Reference in New Issue
Block a user