File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Spectre.Docs/Components/Shared Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 108108 <!-- Search Box (only show if ShowSearch is true) -->
109109 @if (ShowSearch )
110110 {
111- <div class =" relative hidden md:block " >
111+ <div class =" relative w-8 md:w-32 lg:w-64 bg-base-100 dark:bg-base-800/50 border border-base-200 dark:border-base-700 rounded-full lg:rounded-md " >
112112 <input
113113 id =" search-input"
114114 type =" text"
115- placeholder =" Search..."
116- class =" transition-all w-32 lg:w-64 px-3 py-2 pl-10 pr-4 text-sm bg-base-100 dark:bg-base-800 border border-base-200 dark:border-base-700 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400 focus:border-transparent text-base-900 dark:text-base-100 placeholder-base-500 dark:placeholder-base-400"
115+ class =" transition-all text-xs lg:text-sm w-full h-8 lg:h-10 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500/50 dark:focus:ring-primary-400/50 focus:border-transparent"
117116 readonly
118117 />
119- <svg class =" absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-base-500 dark:text-base-400 pointer-events-none" fill =" none" stroke =" currentColor" viewBox =" 0 0 24 24" >
118+ <svg class =" transition-all absolute left-2 top-1/2 transform -translate-y-1/2 w-4 h-4 text-base-500 dark:text-base-400 pointer-events-none" fill =" none" stroke =" currentColor" viewBox =" 0 0 24 24" >
120119 <circle cx =" 11" cy =" 11" r =" 8" ></circle >
121120 <path d =" M21 21l-4.35-4.35" ></path >
122121 </svg >
122+ <div class =" transition-all text-xs md:text-sm hidden md:block absolute left-10 top-1/2 transform -translate-y-1/2 text-base-600 dark:text-base-400 pointer-events-none" >Search </div >
123123 </div >
124124 }
125125
You can’t perform that action at this time.
0 commit comments