Skip to content

Commit 48cf8e2

Browse files
committed
style: 调整导航菜单样式,优化尺寸和交互效果
1 parent 2f9b134 commit 48cf8e2

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

docs/intro/quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
```bash
1818
# 克隆稳定版本
19-
git clone --branch v0.2.2 --depth 1 https://github.com/xerrors/Yuxi-Know.git
19+
git clone --branch v0.3.0-beta2 --depth 1 https://github.com/xerrors/Yuxi-Know.git
2020
cd Yuxi-Know
2121
```
2222

2323
::: warning 版本说明
24-
- `v0.2.2`: 当前稳定版本(推荐)
25-
- `v0.3.0-beta`:最新的 Beta 测试版
24+
- `v0.2.2`: 稳定版本
25+
- `v0.3.0-beta2`:最新的 Beta 测试版
2626
- `main`: 最新开发版本(不稳定,新特性可能会导致新 bug)
2727
:::
2828

web/src/layouts/AppLayout.vue

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -332,18 +332,40 @@ div.header, #app-router-view {
332332
display: flex;
333333
align-items: center;
334334
justify-content: center;
335-
width: 44px;
336-
height: 44px;
337-
padding: 10px;
335+
width: 40px;
336+
height: 40px;
337+
padding: 4px;
338338
border: 1px solid transparent;
339-
border-radius: 8px;
339+
border-radius: 12px;
340340
background-color: transparent;
341341
color: #222;
342342
font-size: 20px;
343343
transition: background-color 0.2s ease-in-out;
344344
margin: 0;
345345
text-decoration: none;
346346
cursor: pointer;
347+
outline: none;
348+
349+
& > svg:focus {
350+
outline: none;
351+
}
352+
& > svg:focus-visible {
353+
outline: none;
354+
}
355+
356+
&.active {
357+
background-color: var(--gray-150);
358+
font-weight: bold;
359+
color: var(--main-color);
360+
}
361+
362+
&.warning {
363+
color: red;
364+
}
365+
366+
&:hover {
367+
color: var(--main-color);
368+
}
347369
348370
&.github {
349371
padding: 10px 12px;
@@ -399,32 +421,15 @@ div.header, #app-router-view {
399421
}
400422
}
401423
402-
&.active {
403-
text-shadow: 0 0 15px var(--main-300);
404-
font-weight: bold;
405-
color: var(--main-color);
406-
}
424+
&.setting {
425+
margin: 8px 0;
407426
408-
&.warning {
409-
color: red;
410-
}
411-
412-
&:hover {
413-
color: var(--main-color);
427+
&:hover {
428+
cursor: pointer;
429+
}
414430
}
415431
}
416432
417-
.setting {
418-
width: auto;
419-
font-size: 20px;
420-
color: #333;
421-
margin-bottom: 8px;
422-
padding: 16px 12px;
423-
424-
&:hover {
425-
cursor: pointer;
426-
}
427-
}
428433
}
429434
430435

0 commit comments

Comments
 (0)