Skip to content

Commit 1332c29

Browse files
update sidebar width
1 parent f1c3570 commit 1332c29

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

source/_data/navigation-en.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ home:
2626
description: API documents for Ktorm's classes and functions.
2727

2828
main:
29+
- text: GETTING STARTED
30+
type: label
31+
2932
- text: Overview
3033
type: link
3134
path: '/'

source/_data/navigation-zh-cn.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ home:
2626
description: 查看 Ktorm 中类与函数的 API 文档
2727

2828
main:
29-
- text: 概述
29+
- text: 开始
30+
type: label
31+
32+
- text: 简介
3033
type: link
3134
path: zh-cn/
3235

33-
- text: 快速开始
36+
- text: 快速上手
3437
type: link
3538
path: zh-cn/quick-start.html
3639

themes/doc/source/style/_doc/navigation.scss

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@
192192
padding-left: 0px;
193193

194194
&__item {
195-
margin-left: $doc-sidebar-left-margin;
195+
margin-left: 34px;
196+
margin-right: 22px;
196197
list-style: none;
197198
line-height: 30px;
198199
font-size: $doc-sidebar-font-size-normal;
@@ -211,17 +212,15 @@
211212
}
212213

213214
&--label{
215+
margin-left: 22px;
216+
margin-top: 10px;
217+
padding-top: 5px;
218+
padding-bottom: 5px;
214219
border-top: $doc-sidebar-item-border;
215-
margin-left: 0px;
216-
padding-left: $doc-sidebar-left-margin;
217220
font-weight: $doc-sidebar-font-weight-bold;
218221
font-size: $doc-sidebar-font-size-small;
219-
padding-bottom: 5px;
220-
padding-top: 5px;
221-
margin-top: 10px;
222222
color: $doc-sidebar-label-color;
223223

224-
225224
&:first-of-type{
226225
border-top: initial;
227226
}
@@ -249,7 +248,7 @@
249248
}
250249
&--current.doc-sidebar-list__item--no-children > a::before {
251250
position: absolute;
252-
left: 2.2rem;
251+
left: 22px;
253252
display: block;
254253
width: 1rem;
255254
height: 1rem;
@@ -284,7 +283,7 @@
284283
// Sidebar children list
285284
.doc-sidebar-list {
286285
&__children-list {
287-
padding-left: 10px;
286+
padding-left: 12px;
288287
}
289288

290289
&__children-list--hidden {
@@ -293,12 +292,11 @@
293292
}
294293

295294
.doc-sidebar-list__item {
296-
297295
&--child {
298296
margin-left: 0;
299297
}
300298

301-
&--has-children > .doc-sidebar-list__toc-list{
299+
&--has-children > .doc-sidebar-list__toc-list {
302300
padding-left: 24px;
303301
}
304302

@@ -308,7 +306,7 @@
308306

309307
&:before {
310308
position: absolute;
311-
left: 2.2rem;
309+
left: 22px;
312310
display: block;
313311
width: 1rem;
314312
height: 1rem;

themes/doc/source/style/_doc/search.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.doc-search-form {
2-
max-width: 186px;
2+
width: 236px;
33

44
&__input[type="search"] {
55
width: 100%;

themes/doc/source/style/_doc/vars.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ $doc-navbar-width-collapsed: $doc-navbar-height !default;
2626

2727
// sidebar
2828
// ------
29-
$doc-sidebar-width: 230px !default;
29+
$doc-sidebar-width: 280px !default;
3030
$doc-sidebar-width-collapsed: $doc-navbar-width-collapsed !default;
31-
$doc-sidebar-left-margin: 40px !default;
3231
$doc-sidebar-background-color: $doc-navbar-background-color !default;
3332
$doc-sidebar-color: $dc-gray30 !default;
3433
$doc-sidebar-label-color: $dc-gray20 !default;

0 commit comments

Comments
 (0)