Skip to content

Commit 3678e4f

Browse files
committedNov 1, 2022
滚动条样式 #229
1 parent 65d20db commit 3678e4f

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed
 

‎style/Animation.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,6 @@
164164
animation: menu 0.2s ease-in-out;
165165
}
166166
/*侧栏展开动画*/
167-
#layouts
168-
> .fn__flex
169-
> .fn__flex-column
170-
> .fn__flex
171-
> div[data-type="wnd"]
172-
> .layout-tab-container
173-
> .fn__flex-column
174-
ul::-webkit-scrollbar {
175-
width: 0px; /* 允许滚动但不显示滚动条 */
176-
}
177167
@media screen and (min-width: 1300px) {
178168
#layouts
179169
> .fn__flex

‎style/MI-DocTree.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
opacity: .9;
4646
background-color: #65432103;
4747
backdrop-filter: brightness(0.97);
48-
margin-right: 12px;
48+
margin-right: 7px;
4949
}
5050

5151
.fn__flex-1.fn__flex-column.file-tree.sy__file ul .b3-list-item {

‎style/MI.css

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/* 主界面UI */
22

3-
43
::-webkit-scrollbar {
5-
width: 5px;
4+
width: 5.8px;
65
} /* 这是针对缺省样式 (必须的) */
76
:hover::-webkit-scrollbar {
8-
width: 5px !important;
7+
width: 5.8px !important;
98
}
109

1110
::-webkit-scrollbar-track {
@@ -15,6 +14,7 @@
1514
::-webkit-scrollbar-thumb {
1615
background-color: transparent;
1716
}
17+
1818
:focus-within::-webkit-scrollbar-thumb {
1919
background-color: var(--b3-theme-primary-lighter);
2020
} /* 滑块 */
@@ -33,6 +33,11 @@
3333
background-color: transparent;
3434
} /* 横向滚动条和纵向滚动条相交处尖角 */
3535

36+
/* 有些界面不需要滚动条 */
37+
.b3-tab-bar::-webkit-scrollbar,
38+
.b3-tab-container::-webkit-scrollbar {
39+
width: 0px !important;
40+
}
3641

3742
/* 块滚动条 */
3843
.protyle-scroll .b3-slider {
@@ -73,7 +78,7 @@ body.body--desktop .layout__resize--lr:after {
7378
}
7479

7580
/*【集市】filter 宽度缩窄 #143 */
76-
#bazaarSelect {
81+
#bazaarSelect {
7782
width: 100px;
7883
min-width: 100px;
7984
}
@@ -82,7 +87,11 @@ body.body--desktop .layout__resize--lr:after {
8287
body.body--desktop.android .fn__size200 {
8388
width: 131px;
8489
}
85-
body.body--desktop.android #keymapList > div.fn__flex > label:nth-child(3) > svg,
90+
body.body--desktop.android
91+
#keymapList
92+
> div.fn__flex
93+
> label:nth-child(3)
94+
> svg,
8695
body.body--desktop.android #searchByKey {
8796
display: none;
8897
}
@@ -229,8 +238,6 @@ body.body--mobile #status,
229238
opacity: 1;
230239
} */
231240

232-
233-
234241
/* 文档头部区域美化 */
235242

236243
/* 安卓端 */

0 commit comments

Comments
 (0)