Skip to content

Commit 9389d31

Browse files
committed
minor css adjustment
1 parent 333c94b commit 9389d31

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/stylesheets/responsive.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,20 @@ article .typography h2 {
6060
white-space: nowrap !important;
6161
}
6262

63+
/* 方法3:如果上面不生效,使用更具体的选择器 */
64+
div[data-slot="sidebar-content"].no-scrollbar {
65+
scrollbar-width: thin !important;
66+
}
6367

64-
/* :root {
65-
--sidebar-width: 30rem;
66-
} */
68+
div[data-slot="sidebar-content"].no-scrollbar::-webkit-scrollbar {
69+
display: block !important;
70+
width: 1px !important;
71+
}
72+
73+
.sidebar .text-sidebar-foreground,
74+
div.text-sidebar-foreground.sticky {
75+
height: calc(100svh - var(--header-height) - 20px) !important;
76+
}
6777

6878
/*
6979
* Responsive Enhancements for OpenJudge Documentation

0 commit comments

Comments
 (0)