diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2021-06-06 06:59:20 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2021-06-06 06:59:20 -0600 |
commit | 28d1ea21350640ff5da7412b7e096cc09f7cb567 (patch) | |
tree | 2177386769bed078f73a9360d340059f49f409a8 /luevano/test.html | |
parent | 408da9eafe37c7522ab7aeb212df09b46487bcbd (diff) |
refactor css and theme switcher
Diffstat (limited to 'luevano/test.html')
-rw-r--r-- | luevano/test.html | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/luevano/test.html b/luevano/test.html index a451bee..d565914 100644 --- a/luevano/test.html +++ b/luevano/test.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang="en"> +<html class="theme-dark" lang="en"> <head> <base href="https://static.luevano.xyz/"> <meta charset="utf-8"> @@ -17,7 +17,7 @@ <!-- theme related --> <script type="text/javascript" src="scripts/theme.js"></script> - <link id="theme-css" rel="stylesheet" type="text/css" href="css/dark.css"> + <link id="theme-css" rel="stylesheet" type="text/css" href="css/theme.css"> </head> <body> @@ -54,14 +54,7 @@ </ul> </nav> - <div class="theme-switch-container"> - <i class="fas fa-sun"></i> - <label class="switch theme"> - <input id="theme-switch" type="checkbox" onclick="toggleTheme()"> - <span class="slider round"></span> - </label> - <i class="fas fa-moon"></i> - </div> + <button class="theme-switcher" onclick="toggleTheme()"><i class="fas fa-moon"></i><i class="fas fa-sun"></i></button> </header> <main> |