mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	remove noscript inline style
This commit is contained in:
		| @@ -25,11 +25,6 @@ | |||||||
|         aria-label="search" type="search" autocomplete="off"> |         aria-label="search" type="search" autocomplete="off"> | ||||||
|     <ul id="searchResults" aria-label="search results"></ul> |     <ul id="searchResults" aria-label="search results"></ul> | ||||||
|     <noscript> |     <noscript> | ||||||
|         <style> |  | ||||||
|             #searchInput { |  | ||||||
|                 display: none; |  | ||||||
|             } |  | ||||||
|         </style> |  | ||||||
|         Enable JavaScript to use the search function. |         Enable JavaScript to use the search function. | ||||||
|     </noscript> |     </noscript> | ||||||
| </div> | </div> | ||||||
|   | |||||||
| @@ -85,45 +85,6 @@ | |||||||
| <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}"> | <link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}"> | ||||||
| {{ end -}} | {{ end -}} | ||||||
|  |  | ||||||
| <noscript> |  | ||||||
|     <style> |  | ||||||
|         #theme-toggle, |  | ||||||
|         .top-link { |  | ||||||
|             display: none; |  | ||||||
|         } |  | ||||||
|  |  | ||||||
|     </style> |  | ||||||
|     {{- if (and (ne site.Params.defaultTheme "light") (ne site.Params.defaultTheme "dark")) }} |  | ||||||
|     <style> |  | ||||||
|         @media (prefers-color-scheme: dark) { |  | ||||||
|             :root { |  | ||||||
|                 --theme: rgb(29, 30, 32); |  | ||||||
|                 --entry: rgb(46, 46, 51); |  | ||||||
|                 --primary: rgb(218, 218, 219); |  | ||||||
|                 --secondary: rgb(155, 156, 157); |  | ||||||
|                 --tertiary: rgb(65, 66, 68); |  | ||||||
|                 --content: rgb(196, 196, 197); |  | ||||||
|                 --code-bg: rgb(55, 56, 62); |  | ||||||
|                 --border: rgb(51, 51, 51); |  | ||||||
|             } |  | ||||||
|  |  | ||||||
|             .list { |  | ||||||
|                 background: var(--theme); |  | ||||||
|             } |  | ||||||
|  |  | ||||||
|             .list:not(.dark)::-webkit-scrollbar-track { |  | ||||||
|                 background: 0 0; |  | ||||||
|             } |  | ||||||
|  |  | ||||||
|             .list:not(.dark)::-webkit-scrollbar-thumb { |  | ||||||
|                 border-color: var(--theme); |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|  |  | ||||||
|     </style> |  | ||||||
|     {{- end }} |  | ||||||
| </noscript> |  | ||||||
|  |  | ||||||
| {{- partial "extend_head.html" . -}} | {{- partial "extend_head.html" . -}} | ||||||
|  |  | ||||||
| {{- /* Misc */}} | {{- /* Misc */}} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Wonderfall
					Wonderfall