feat(страницы): тот же переключатель темы на ценах, политике, условиях, оплате и статистике; на телефоне — внизу справа
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -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){}})();
|
||||
|
||||
Reference in New Issue
Block a user