mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	search: init Search feature (#105)
* based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993 * modified working for PaperMod * fetches current lang index.json for search * add fuse.js v6.4.3 LICENSE: Apache License 2.0 * bundled fastsearch and fusejs as search.js Co-authored-by: Craig Mod <stuff@craigmod.com>
This commit is contained in:
		
							
								
								
									
										40
									
								
								assets/css/search.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								assets/css/search.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,40 @@ | ||||
| .searchbox input { | ||||
|     padding: 4px 10px; | ||||
|     width: 100%; | ||||
|     color: var(--primary); | ||||
|     font-weight: bold; | ||||
|     border: 2px solid var(--tertiary); | ||||
|     border-radius: var(--radius); | ||||
| } | ||||
|  | ||||
| .searchbox input:focus { | ||||
|     border-color: var(--secondary); | ||||
| } | ||||
|  | ||||
| #searchResults li { | ||||
|     list-style: none; | ||||
|     border-radius: var(--radius); | ||||
|     padding: 10px; | ||||
|     margin: 10px 0; | ||||
|     position: relative; | ||||
|     font-weight: 500; | ||||
| } | ||||
|  | ||||
| #searchResults { | ||||
|     margin: 10px 0; | ||||
|     width: 100%; | ||||
| } | ||||
|  | ||||
| #searchResults li:active { | ||||
|     transition: transform .1s; | ||||
|     transform: scale(.98); | ||||
| } | ||||
|  | ||||
| #searchResults a { | ||||
|     position: absolute; | ||||
|     width: 100%; | ||||
|     height: 100%; | ||||
|     top: 0px; | ||||
|     left: 0px; | ||||
|     outline: none; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange