<style>
Header, Header * {
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: column;
}
.Header {
flex-grow: 0;
flex-shrink: 0;
flex-direction: row;
background: #333;
align-items: center;
}
.Logo {
flex-grow: 0;
flex-shrink: 1;
min-width: 80px;
height: 80px;
flex-direction: row;
flex-wrap: wrap;
overflow: hidden;
}
.LogoIcon {
flex-grow: 1;
flex-shrink: 0;
font-size: 64px;
text-align: center;
padding: 0 10px;
}
.LogoText {
flex-grow: 0;
flex-shrink: 1;
margin: 0;
padding: 20px;
font: 900 32px sans-serif;
color: #fff;
}
.Center {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 800px;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
overflow-x: hidden;
}
.Links {
flex-direction: row;
flew-wrap: wrap;
align-items: center;
flex-grow: 4;
flex-shrink: 1;
min-width: 50%;
overflow-x: auto;
}
.Link {
margin: 0;
padding: 20px;
font: 600 20px sans-serif;
color: #fff;
text-decoration: none;
}
.Search {
flex: 1;
max-width: 200px;
min-width: 100px;
border: 0;
border-radius: 6px;
padding: 10px 20px;
margin: 10px 20px;
font-size: 20px;
background: #444;
}
.LinkGradient {
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 40px;
}
.LinkGradient-left {
left: 0;
background: linear-gradient(to left, rgba(51, 51, 51, 0), rgba(51, 51, 51, 1));
}
.LinkGradient-right {
right: 0;
background: linear-gradient(to right, rgba(51, 51, 51, 0), rgba(51, 51, 51, 1));
}
.Networks {
flex-grow: 1.5;
flex-shrink: 0;
min-width: calc(64px * 2 + 40px);
flex-direction: row;
flex-wrap: wrap;
max-height: 64px;
}
.Network {
flex-grow: 1;
justify-content: center;
align-items: center;
padding: 10px 6px;
}
</style>
<header class="Header">
<div class="Logo">
<div class="LogoIcon">♥️</div>
<div class="LogoText">Logo</div>
</div>
<div class="Center">
<div class="Links">
<a href="#" class="Link">Lien</a>
<a href="#" class="Link">Lideux</a>
<a href="#" class="Link">Limoche</a>
<a href="#" class="Link">Libeau</a>
<input placeholder="Search" class="Search" />
</div>
<div class="Networks">
<a class="Network">👴</a>
<a class="Network">🐦</a>
<a class="Network">📸</a>
<a class="Network">📌</a>
</div>
<div class="LinkGradient LinkGradient-left"></div>
<div class="LinkGradient LinkGradient-right"></div>
</div>
</header>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.