/* header */ header { height: 50px; margin: 0; padding: 0 16px; background: var(--background); border-bottom: var(--border); display: flex; align-items: center; justify-content: space-between; flex-flow: row wrap; /* When the search field occupies the rightmost position, the calculated position of the svg icon (on the right) might overflow from the header and induce horizontal scrolling. */ overflow: hidden; } @media screen and (max-width: 1199px) { #spotlight { display: none; } header input[type="search"] { width: 200px; } } @media screen and (max-width: 849px) { header .form { display: none; } } header .title a { color: inherit; } header .title h1 { font-family: Cantarell; font-weight: bold; font-size: 18px; display: inline; } header .spacer { flex: 1 0 auto; } header .links { margin-left: 16px; } header svg { width: 24px; height: 24px; vertical-align: middle; transition: .15s ease; } header a:hover > svg, header a:focus > svg { fill: var(--text); } header a { fill: #363636; cursor: pointer; } header .form { /* The search icon is draws inside the input field but its space is allocated on the right. Apply a negative margin to compensate this: -24px for the search icon -2px for the spacing between the search icon and the field */ margin-right: -26px; } header .form input[type="search"] { display: inline-block; width: 250px; padding: 5px 35px 5px 10px; } header .form input[type="search"] ~ a { position: relative; left: -33px; opacity: .7; } header .form input[type="search"] ~ a > svg > path { fill: var(--text); } header .form input[type="search"] ~ a:hover, header .form input[type="search"]:focus ~ a { opacity: 1; } #spotlight { margin-left: 16px; } #spotlight a { display: block; } #server-speed-warning { background: var(--warn); color: var(--warn-text); text-align: center; border-radius: 2px; padding: 4px; margin: 0 8px; font-weight: bold; text-shadow: 0 1px 1px rgba(0,0,0,.5); }