fix(顶栏): 暗色下个人菜单里「暗色」那一行是黑字,看不清;指上去也没有高亮
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b8a9d89f0
commit
bb1585942a
1 file changed
+16
-2
@@ -427,17 +427,31 @@ const options = computed<Array<DropdownOption | DropdownDividerOption>>(() => {
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<!-- 暗色开关那一行是 render 出来挂在 dropdown 里的(teleport 到 body),scoped 够不着 -->
|
<!-- 暗色开关那一行是 render 出来挂在 dropdown 里的(teleport 到 body),scoped 够不着。
|
||||||
|
字色、悬停底色要自己取 dropdown 的变量:teleport 出去就不在主题的容器里了,继承到的是
|
||||||
|
body 的黑字,暗色下黑字压在深灰底上看不见 -->
|
||||||
<style>
|
<style>
|
||||||
.theme-row {
|
.theme-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 0 14px 0 12px;
|
margin: 0 4px;
|
||||||
|
padding: 0 10px 0 8px;
|
||||||
|
border-radius: var(--n-border-radius);
|
||||||
|
color: var(--n-option-text-color);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.theme-row:hover {
|
||||||
|
color: var(--n-option-text-color-hover);
|
||||||
|
background-color: var(--n-option-color-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.theme-row > svg {
|
||||||
|
color: var(--n-prefix-color);
|
||||||
|
}
|
||||||
|
|
||||||
.theme-row .theme-label {
|
.theme-row .theme-label {
|
||||||
flex: 1 1 0;
|
flex: 1 1 0;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
|||||||
Reference in new issue
Block a user