fix: simplify preference controls
This commit is contained in:
+3
-8
@@ -284,9 +284,10 @@
|
||||
.preference-trigger {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
width: 38px;
|
||||
min-height: 38px;
|
||||
padding: 0 11px;
|
||||
padding: 0;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 9px;
|
||||
background: rgba(255, 255, 255, .025);
|
||||
@@ -310,8 +311,6 @@
|
||||
font: 500 17px/1 "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
|
||||
}
|
||||
.preference-icon--globe { font-size: 16px; }
|
||||
.preference-chevron { color: var(--text-faint); font: 700 13px/1 var(--mono); transition: transform .2s ease; }
|
||||
.preference-menu.open .preference-chevron { transform: rotate(180deg); }
|
||||
.preference-popover {
|
||||
position: absolute;
|
||||
top: calc(100% + 10px);
|
||||
@@ -1037,8 +1036,6 @@
|
||||
<div class="preference-menu" id="themeSwitch">
|
||||
<button class="preference-trigger" type="button" aria-haspopup="menu" aria-expanded="false" aria-label="外观模式" data-i18n-aria="theme_label">
|
||||
<span class="preference-icon" data-theme-current-icon aria-hidden="true">◐</span>
|
||||
<span class="preference-trigger-label" data-theme-current>Auto</span>
|
||||
<span class="preference-chevron" aria-hidden="true">⌄</span>
|
||||
</button>
|
||||
<div class="preference-popover" role="menu">
|
||||
<button class="preference-item" type="button" role="menuitemradio" aria-checked="true" data-theme-option="system" aria-label="跟随系统" data-i18n-aria="theme_system">
|
||||
@@ -1055,8 +1052,6 @@
|
||||
<div class="preference-menu" id="langSwitch">
|
||||
<button class="preference-trigger" type="button" aria-haspopup="menu" aria-expanded="false" aria-label="语言切换" data-i18n-aria="lang_label">
|
||||
<span class="preference-icon preference-icon--globe" aria-hidden="true">◎</span>
|
||||
<span class="preference-trigger-label" data-language-current>简体中文</span>
|
||||
<span class="preference-chevron" aria-hidden="true">⌄</span>
|
||||
</button>
|
||||
<div class="preference-popover" role="menu">
|
||||
<button class="preference-item" type="button" role="menuitemradio" aria-checked="true" data-lang="zh">
|
||||
|
||||
Reference in New Issue
Block a user