mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	theme-switch-button: init feature (#15)
* thanks to https://feathericons.com for svgs * can be disabled in site config Params: disableThemeToggle : true
This commit is contained in:
		| @@ -16,6 +16,7 @@ | ||||
|  | ||||
| .logo, | ||||
| .menu { | ||||
|     display: flex; | ||||
|     margin: auto var(--gap); | ||||
| } | ||||
|  | ||||
| @@ -24,8 +25,21 @@ | ||||
|     font-weight: 700; | ||||
| } | ||||
|  | ||||
| .theme-toggle svg{ | ||||
|     height: 18px; | ||||
|     margin: 0 10px; | ||||
| } | ||||
|  | ||||
| body.dark #moon{ | ||||
|     vertical-align: middle; | ||||
|     display: none; | ||||
| } | ||||
|  | ||||
| body:not(.dark) #sun { | ||||
|     display: none; | ||||
| } | ||||
|  | ||||
| .menu { | ||||
|     display: flex; | ||||
|     list-style: none; | ||||
|     word-break: keep-all; | ||||
|     overflow-x: auto; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange