fix(layout): show article sidebar on tablet widths

This commit is contained in:
2026-08-14 13:25:32 +08:00
parent 6b25aff9ff
commit 92a4631dff
2 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -59,7 +59,7 @@
*
* Desktop columns use Grid so the sidebar is always a real second column.
* The float rules below remain as a narrow-screen compatibility fallback;
* below 992px the sidebar is intentionally hidden.
* below 768px the sidebar is intentionally hidden.
* ============================================================ */
main.container,
@@ -196,7 +196,7 @@ body.site-layout-3 .sidebar,
* leave the sidebar outside the visible painting area when a parent clips
* horizontal overflow. Put the two direct children in explicit grid columns
* instead, so widgets cannot be positioned off-canvas. */
@media (min-width: 992px) {
@media (min-width: 768px) {
body.site-layout-2 main.container,
body.site-layout-2 main.content-shell,
body.site-layout-2 .site-main.container {
@@ -256,6 +256,7 @@ body.site-layout-3 .sidebar,
body.site-layout-2 main.container > .sidebar,
body.site-layout-2 main.content-shell > .sidebar,
body.site-layout-2 .site-main.container > .sidebar {
display: block;
float: none;
grid-column: 2;
grid-row: 1;
@@ -267,6 +268,7 @@ body.site-layout-3 .sidebar,
body.site-layout-3 main.container > .sidebar,
body.site-layout-3 main.content-shell > .sidebar,
body.site-layout-3 .site-main.container > .sidebar {
display: block;
float: none;
grid-column: 1;
grid-row: 1;
+3 -1
View File
@@ -168,7 +168,9 @@
document.addEventListener('DOMContentLoaded', function () {
initCountUp();
initCountdown();
initMarquee();
if (typeof initMarquee === 'function') {
initMarquee();
}
initTilt();
initFpsDetection();
});