Skip to content
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
53 changes: 53 additions & 0 deletions assets/scss/_custom_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1118,3 +1118,56 @@ $brand-grad: linear-gradient(180deg, #479EEB 0%, #3788D0 100%);
.verify .code-wrapper { grid-template-columns: 1fr; }
}
}

// =====================================================================
// Mobile navbar + slide-out drawer — light-theme polish (global)
// =====================================================================
@media (max-width: 991.98px) {
// my desktop right-group override forced display:flex even on mobile;
// restore the intended "hidden below lg" so the narrow bar isn't crowded
.td-navbar .search-input-box { display: none !important; }
}
.td-navbar .sidebar-button .iconfont.icon-menu { color: #4b5563; }
.td-navbar .sidebar-button:hover .iconfont.icon-menu { color: #1F1F20; }

// dimmed backdrop
.sidebar-mask { background-color: #0f131a; opacity: .38; }

// the drawer panel
.sidebar {
top: 64px; // sit flush under the 4rem navbar
width: 19rem; max-width: 86vw;
background: #fff;
border-right: 1px solid #e6e9ee;
box-shadow: 0 24px 60px -18px rgba(17, 24, 39, .35);
padding: 12px 10px 24px;

.nav-links { padding: 0; }
.nav-links .nav-item, .nav-links .repo-link { border: 0; margin: 0; }

// top-level links
.nav-links a.nav-link {
display: block; padding: 10px 14px; border-radius: 9px;
color: #4b5563; font-weight: 600; font-size: 15px; line-height: 1.3;
&:hover { background: #eef5fd; color: #1F1F20; }
&.router-link-active, &.active { color: #2c6cb0; background: #eef5fd; }
}

// dropdown groups (中文资料 / Links)
.dropdown-wrapper { margin-top: 4px; }
.dropdown-wrapper .dropdown-title {
display: flex; align-items: center; justify-content: space-between;
padding: 10px 14px; border-radius: 9px;
color: #8a93a3; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
cursor: pointer;
&:hover { background: #f4f7fb; color: #4b5563; }
}
.dropdown-wrapper .nav-dropdown { margin: 2px 0 8px; padding: 0; list-style: none; }
.dropdown-wrapper .nav-dropdown .dropdown-item a {
display: block; padding: 8px 14px 8px 22px; border-radius: 8px;
color: #5b6573; font-size: 14px; font-weight: 500;
&:hover { background: #eef5fd; color: $brand; }
}
// hide the little caret arrows; the groups read fine as labels
.dropdown-wrapper .dropdown-title .arrow { display: none; }
}
Loading