mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-26 16:52:08 +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 />
|
<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"}" />
|
<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>
|
</button>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@media screen and (min-width: 900px) {
|
||||||
|
span {
|
||||||
|
display: none;
|
||||||
|
margin-left: 0.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue
Block a user