feat(страницы): тот же переключатель темы на ценах, политике, условиях, оплате и статистике; на телефоне — внизу справа

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-18 02:15:37 +10:00
co-authored by Claude Code
parent 3204879d87
commit d9c20b7c68
7 changed files with 103 additions and 0 deletions
+1
View File
@@ -47,6 +47,7 @@ html { color-scheme: light; }
:root[data-theme="dark"] .compare-good { color: #5fc27e; }
:root[data-theme="dark"] .compare-bad { color: #ff8585; }
#theme-fab { position: fixed; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; font-size: 1rem; line-height: 1; }
@media (max-width: 640px) { #theme-fab { top: auto; bottom: .9rem; right: .9rem; } }
</style>
<script>
(function(){try{var t=localStorage.getItem('theme');if(t!=='dark'&&t!=='light'){t=(window.matchMedia&&matchMedia('(prefers-color-scheme: dark)').matches)?'dark':'light';}document.documentElement.setAttribute('data-theme',t);}catch(e){}})();