feat(страницы): тот же переключатель темы на ценах, политике, условиях, оплате и статистике; на телефоне — внизу справа
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -50,6 +50,7 @@ html { color-scheme: light; }
|
||||
:root[data-theme="dark"] input { background: #262019; color: var(--text); }
|
||||
:root[data-theme="dark"] button:hover { background: #c2564a; }
|
||||
#theme-fab { position: fixed; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--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