76 lines
1.6 KiB
CSS
76 lines
1.6 KiB
CSS
/*
|
|
header
|
|
*/
|
|
|
|
header {
|
|
height: 50px; margin: 0; padding: 0 16px;
|
|
background: #f4f4f6; border-bottom: 1px solid #d0d0d0;
|
|
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
flex-flow: row wrap;
|
|
}
|
|
@media screen and (max-width: 1000px) {
|
|
header {
|
|
height: 75px;
|
|
}
|
|
header .title {
|
|
page-break-after: always;
|
|
}
|
|
}
|
|
|
|
header h1 {
|
|
font-family: Cantarell; font-weight: bold; font-size: 18px;
|
|
color: #181818;
|
|
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: black;
|
|
}
|
|
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 input[type="search"] {
|
|
display: inline-block; width: 250px;
|
|
padding: 5px 35px 5px 10px;
|
|
border: 0; border-radius: 1px;
|
|
font-family: "Segoe UI", Helvetica, "Droid Sans", Arial,sans-serif;
|
|
box-shadow: 0 0 1px rgba(0, 0, 0, .4); transition: .15s ease;
|
|
}
|
|
header input[type="search"] ~ a {
|
|
position: relative; left: -33px;
|
|
}
|
|
header input[type="search"]:focus {
|
|
box-shadow: 0 0 4px rgba(0, 102, 255, .9);
|
|
}
|
|
header input[type="search"] ~ a > svg > path {
|
|
fill: #cccccc; transition: .15s ease;
|
|
}
|
|
header input[type="search"]:focus ~ a > svg > path {
|
|
fill: #333333;
|
|
}
|
|
|
|
#spotlight {
|
|
margin-left: 16px;
|
|
}
|