fix(theme): stop sun/moon overlap and restore dark float contrast

Drive toggle glyphs with html.dark/body theme classes only, drop
inline display styles that lost to !important CSS, and give the
float rail a solid surface + brighter ink in dark mode.
This commit is contained in:
2026-07-25 10:18:19 +08:00
parent b5f13c4a1f
commit 2898922a17
7 changed files with 103 additions and 30 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ if (!function_exists('aksrt_nav_mobile_content')) :
$top_btns .= '<a href="javascript:;" class="toggle-theme toggle-radius" id="theme-toggle-mobile" title="'
. esc_attr__('切换亮暗色', 'aksrt') . '">';
$top_btns .= '<i class="fas fa-moon theme-icon-moon" aria-hidden="true"></i>';
$top_btns .= '<i class="fas fa-sun theme-icon-sun" aria-hidden="true" style="display:none"></i>';
$top_btns .= '<i class="fas fa-sun theme-icon-sun" aria-hidden="true"></i>';
$top_btns .= '</a>';
}
if ($m_layout !== 'center' && !empty($ctx['search_enabled'])) {
+1 -1
View File
@@ -310,7 +310,7 @@ if (!function_exists('aksrt_menu_button')) :
$radius_but .= '<a href="javascript:;" class="toggle-theme toggle-radius" id="theme-toggle-desktop" title="'
. esc_attr__('切换亮暗色', 'aksrt') . '">';
$radius_but .= '<i class="fas fa-moon theme-icon-moon" aria-hidden="true"></i>';
$radius_but .= '<i class="fas fa-sun theme-icon-sun" aria-hidden="true" style="display:none"></i>';
$radius_but .= '<i class="fas fa-sun theme-icon-sun" aria-hidden="true"></i>';
$radius_but .= '</a>';
}
if (function_exists('aksrt_get_translate_language_btn')) {