mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-23 00:22:59 +05:30
fix more issues with the theme switch (closes #83)
This commit is contained in:
parent
af11ef4c80
commit
04041ecf63
@ -15,7 +15,16 @@
|
||||
|
||||
<DarkMode bind:theme />
|
||||
|
||||
<button on:click={toggle} class="cursor-pointer flex items-center py-1 px-0 bg-transparent border-0 font-[var(--font-primary)]">
|
||||
<button on:click={toggle} class="cursor-pointer flex items-center py-1 px-0 bg-transparent border-0 font-[var(--font-primary)] color-[var(--text)]">
|
||||
<div class="i-fa6-solid:{theme === "dark" ? "sun" : "moon"}" />
|
||||
<span class="ml-1 sm:hidden">Toggle theme</span>
|
||||
<span class="ml-2">Toggle theme</span>
|
||||
</button>
|
||||
|
||||
<style>
|
||||
@media screen and (min-width: 900px) {
|
||||
span {
|
||||
display: none;
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user