mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	header: add Language switch (#54)
* language-switch: init * header: move logo-switches together
This commit is contained in:
		| @@ -7,17 +7,18 @@ | ||||
|     max-width: calc(var(--nav-width) + var(--gap) * 2); | ||||
|     margin-inline-start: auto; | ||||
|     margin-inline-end: auto; | ||||
|     line-height: var(--header-height); | ||||
| } | ||||
|  | ||||
| .nav a { | ||||
|     display: block; | ||||
|     line-height: var(--header-height); | ||||
| } | ||||
|  | ||||
| .logo, | ||||
| .menu { | ||||
|     display: flex; | ||||
|     margin: auto var(--gap); | ||||
|     flex-wrap: inherit; | ||||
| } | ||||
|  | ||||
| .logo a { | ||||
| @@ -40,7 +41,7 @@ | ||||
|     user-select: none; | ||||
| } | ||||
|  | ||||
| body.dark #moon{ | ||||
| body.dark #moon { | ||||
|     vertical-align: middle; | ||||
|     display: none; | ||||
| } | ||||
| @@ -68,3 +69,22 @@ body:not(.dark) #sun { | ||||
|     font-weight: 500; | ||||
|     border-bottom: 2px solid currentColor; | ||||
| } | ||||
|  | ||||
| .lang-switch ul { | ||||
|     display: inline-flex; | ||||
| } | ||||
|  | ||||
| .lang-switch a { | ||||
|     font-size: 16px; | ||||
|     font-weight: 500; | ||||
|     margin: 0 8px; | ||||
| } | ||||
|  | ||||
| .lang-switch li { | ||||
|     display: inline-flex; | ||||
| } | ||||
|  | ||||
| .logo-switches { | ||||
|     display: inline-flex; | ||||
|     flex-wrap: inherit; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange