mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-10-31 18:41:07 +03:00 
			
		
		
		
	Add a search box to the page
This commit is contained in:
		
							parent
							
								
									408b8e119a
								
							
						
					
					
						commit
						704a4d884b
					
				
							
								
								
									
										53
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										53
									
								
								index.html
									
									
									
									
									
								
							| @ -245,16 +245,63 @@ | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         .search { | ||||||
|  |             margin: 1rem 1.5rem; | ||||||
|  |             text-align: center; | ||||||
|  |         } | ||||||
|  |         @media (min-width: 45rem) { | ||||||
|  |             .search { | ||||||
|  |                 margin: 1rem 3rem; | ||||||
|  |                 text-align: left; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         .search .search__wrapper { | ||||||
|  |             display: inline-block; | ||||||
|  |             position: relative; | ||||||
|  |         } | ||||||
|  |         .search .search__close { | ||||||
|  |             display: none; | ||||||
|  |             font-size: 1rem; | ||||||
|  |             padding: 6px 12px; | ||||||
|  |             position: absolute; | ||||||
|  |             right: 0; | ||||||
|  |             top: 1px; | ||||||
|  |         } | ||||||
|  |         .search .search__close span { | ||||||
|  |             cursor: pointer; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         .search input { | ||||||
|  |             color: #333; | ||||||
|  |             font-size: 1rem; | ||||||
|  |             padding: 6px 12px; | ||||||
|  |         } | ||||||
|  |         @media (min-width: 45rem) { | ||||||
|  |             .search input { | ||||||
|  |                 width: 250px; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         .search--active .search__close { | ||||||
|  |             display: block; | ||||||
|  |         } | ||||||
|  |         .search--active input { | ||||||
|  |             padding-right: 32px; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         .grid { |         .grid { | ||||||
|             display: flex; |             display: flex; | ||||||
|             flex-wrap: wrap; |             flex-wrap: wrap; | ||||||
|             list-style: none; |             list-style: none; | ||||||
|             margin: 1.5rem; |             margin: 1.5rem; | ||||||
|  |             margin-top: 0; | ||||||
|             padding: 0; |             padding: 0; | ||||||
|         } |         } | ||||||
|         @media (min-width: 45rem) { |         @media (min-width: 45rem) { | ||||||
|             .grid { |             .grid { | ||||||
|                 margin: 3rem; |                 margin: 3rem; | ||||||
|  |                 margin-top: 0; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         @supports (display: grid) { |         @supports (display: grid) { | ||||||
| @ -381,6 +428,12 @@ | |||||||
|     </header> |     </header> | ||||||
|     <main role="main"> |     <main role="main"> | ||||||
|         <p class="hero">Free <abbr title="Scalable Vector Graphic">SVG</abbr> icons for popular brands</p> |         <p class="hero">Free <abbr title="Scalable Vector Graphic">SVG</abbr> icons for popular brands</p> | ||||||
|  |         <div class="search"> | ||||||
|  |             <div class="search__wrapper"> | ||||||
|  |                 <div class="search__close"><span>×</span></div> | ||||||
|  |                 <input type="text" placeholder="Search by brand …" /> | ||||||
|  |             </div> | ||||||
|  |         </div> | ||||||
|         <ul class="grid"> |         <ul class="grid"> | ||||||
|             <li class="grid-item grid-item--ad"> |             <li class="grid-item grid-item--ad"> | ||||||
|                 <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1696&serve=CVYD42T&placement=simpleiconsorg" id="_carbonads_js"></script> |                 <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1696&serve=CVYD42T&placement=simpleiconsorg" id="_carbonads_js"></script> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user