88body {
99 height : 100% ;
1010 overflow : hidden;
11- background : # f6f8fa ; /* 可选:与浅色侧边栏统一,也可保留原色。这里建议同步 */
11+ background : # f6f8fa ;
1212}
1313
1414# app {
1515 display : flex;
1616 height : 100vh ;
1717}
1818
19- /* 左侧可滚动侧边栏 —— 改为浅色 */
19+ /* 左侧侧边栏 —— 浅色,隐藏滚动条 */
2020# sidebar {
2121 width : 120px ;
22- background : # f6f8fa ; /* 浅灰背景 */
23- color : # 24292f ; /* 深灰文字 */
22+ background : # f6f8fa ;
23+ color : # 24292f ;
2424 display : flex;
2525 flex-direction : column;
2626 align-items : center;
2727 padding-top : 16px ;
28- border-right : 1px solid # d0d7de ; /* 浅灰边框 */
28+ border-right : 1px solid # d0d7de ;
2929 overflow-y : auto;
30- scrollbar-width : thin;
31- scrollbar-color : # adbac7 # f6f8fa ; /* thumb + track */
32- }
33-
34- /* 滚动条 - WebKit */
35- # sidebar ::-webkit-scrollbar {
36- width : 6px ;
37- }
3830
39- # sidebar ::-webkit-scrollbar-track {
40- background : # f6f8fa ;
31+ /* 隐藏滚动条 */
32+ scrollbar-width : none; /* Firefox */
33+ -ms-overflow-style : none; /* IE/Edge */
4134}
4235
43- # sidebar ::-webkit-scrollbar-thumb {
44- background : # adbac7 ;
45- border-radius : 3px ;
36+ # sidebar ::-webkit-scrollbar {
37+ display : none; /* WebKit */
4638}
4739
48- /* 列表项样式 */
40+ /* 列表与按钮 */
4941# sidebar ul {
5042 list-style : none;
5143 width : 100% ;
5951 padding : 8px 0 ;
6052}
6153
62- /* 按钮*/
6354# sidebar button {
6455 width : 80px ;
6556 height : 36px ;
@@ -75,11 +66,11 @@ body {
7566}
7667
7768# sidebar button : hover {
78- background : # eaeef5 ; /* hover 浅蓝灰 */
69+ background : # eaeef5 ;
7970 border-color : # 8c959e ;
8071}
8172
82- /* 右侧编辑器区域 —— 完全不动 */
73+ /* 右侧编辑器区域 */
8374# editor-container {
8475 flex : 1 ;
8576 height : 100% ;
@@ -90,16 +81,19 @@ body {
9081 height : 100% ;
9182 width : 100% ;
9283}
93- # sidebar {
94- overflow-y : auto;
95- }
9684
97- /* WebKit (Chrome, Safari) */
98- # sidebar ::-webkit-scrollbar {
99- display : none;
100- }
101-
102- /* Firefox */
103- # sidebar {
104- scrollbar-width : none;
85+ /* 隐藏 Ace 编辑器滚动条 */
86+ # editor .ace_scrollbar {
87+ opacity : 0 !important ;
88+ pointer-events : none !important ;
89+ }
90+ # editor ,
91+ # editor .ace_scroller {
92+ scrollbar-width : none !important ;
93+ -ms-overflow-style : none !important ;
94+ }
95+ # editor ::-webkit-scrollbar ,
96+ # editor .ace_scroller ::-webkit-scrollbar ,
97+ # editor .ace_scrollbar ::-webkit-scrollbar {
98+ display : none !important ;
10599}
0 commit comments