Prévisualisation
<div class="gs-searchbar">
<div class="gs-searchbar-wrapper">
<div class="gs-searchbar-left">
<div class="gs-search-icon-wrapper">
<span class="gs-search-icon gs-searchbar-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
</svg>
</span>
</div>
</div>
<div class="gs-searchbar-center">
<div class="gs-searchbar-input-spacer"></div>
<input type="text" class="gs-searchbar-input" maxlength="2048" name="q" autocapitalize="off" autocomplete="off" title="Search" role="combobox" placeholder="Search Google">
</div>
<div class="gs-searchbar-right">
<svg class="gs-voice-search" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="#4285f4" d="m12 15c1.66 0 3-1.31 3-2.97v-7.02c0-1.66-1.34-3.01-3-3.01s-3 1.34-3 3.01v7.02c0 1.66 1.34 2.97 3 2.97z"></path>
<path fill="#34a853" d="m11 18.08h2v3.92h-2z"></path>
<path fill="#fbbc05" d="m7.05 16.87c-1.27-1.33-2.05-2.83-2.05-4.87h2c0 1.45 0.56 2.42 1.47 3.38v0.32l-1.15 1.18z"></path>
<path fill="#ea4335" d="m12 16.93a4.97 5.25 0 0 1 -3.54 -1.55l-1.41 1.49c1.26 1.34 3.02 2.13 4.95 2.13 3.87 0 6.99-2.92 6.99-7h-1.99c0 2.92-2.24 4.93-5 4.93z"></path>
</svg>
</div>
</div>
</div>
.gs-searchbar {
font-size: 14px;
font-family: arial, sans-serif;
color: #202124;
display: flex;
z-index: 3;
height: 44px;
background: white;
border: 1px solid #dfe1e5;
box-shadow: none;
border-radius: 24px;
margin: 0 auto;
width: auto;
max-width: 224px;
}
.gs-searchbar:hover {
box-shadow: 0 1px 6px rgb(32 33 36 / 28%);
border-color: rgba(223,225,229,0);
}
.gs-searchbar-wrapper {
flex: 1;
display: flex;
padding: 5px 8px 0 14px;
}
.gs-searchbar-left {
font-size: 14px;
font-family: arial, sans-serif;
color: #202124;
display: flex;
align-items: center;
padding-right: 13px;
margin-top: -5px;
}
.gs-search-icon-wrapper {
margin: auto;
}
.gs-search-icon {
margin-top: 3px;
color: #9aa0a6;
height: 20px;
line-height: 20px;
width: 20px;
}
.gs-searchbar-icon {
display: inline-block;
fill: currentColor;
height: 24px;
line-height: 24px;
position: relative;
width: 24px;
}
.gs-searchbar-center {
display: flex;
flex: 1;
flex-wrap: wrap;
}
.gs-searchbar-input-spacer {
color: transparent;
flex: 100%;
white-space: pre;
height: 34px;
font-size: 16px;
}
.gs-searchbar-input {
background-color: transparent;
border: none;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, .87);
word-wrap: break-word;
outline: none;
display: flex;
flex: 100%;
margin-top: -37px;
height: 34px;
font-size: 16px;
max-width: 100%;
width: 100%;
}
.gs-searchbar-right {
display: flex;
flex: 0 0 auto;
margin-top: -5px;
align-items: stretch;
flex-direction: row;
}
.gs-searchbar-clear-icon {
margin-right: 12px;
}
.gs-voice-search {
flex: 1 0 auto;
display: flex;
cursor: pointer;
align-items: center;
border: 0;
background: transparent;
outline: none;
padding: 0 8px;
width: 2.8em;
}
License MIT
Original author:
TimTrayler
Copyright - 2026 TimTrayler (Tim Trayler)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.