patch: fixed sticky sidebar on mobile

This commit is contained in:
venus
2026-09-15 09:18:27 -05:00
parent 835ac40cd2
commit f77b43c766
3 changed files with 25 additions and 6 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,700;1,400&family=Inter:ital,wght@0,400;0,500;0,700;1,400&family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet">
<!-- Modular Bundled Stylesheet -->
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="/assets/css/main.css?v=1.1">
{% block head %}{% endblock %}
</head>
+22 -3
View File
@@ -2,13 +2,32 @@
Article Workspace & Markdown Prose (components/article.css)
========================================================================== */
/* Left Sticky Sidebar */
/* Left Sticky Sidebar (Sticky on multi-column desktop, natural flow on mobile/single-column) */
.article-sidebar {
display: flex;
flex-direction: column;
gap: var(--tile-gap);
position: sticky;
top: 16px;
position: static;
}
@media (min-width: 961px) {
.article-sidebar {
position: sticky;
top: 16px;
max-height: calc(100vh - 32px);
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--border-color) transparent;
}
}
@media (max-width: 960px) {
.article-sidebar {
position: static !important;
top: auto !important;
max-height: none !important;
overflow: visible !important;
}
}
.sidebar-tile {