2018-02-23 23:34:06 +01:00
|
|
|
/*
|
|
|
|
header
|
|
|
|
*/
|
|
|
|
|
|
|
|
header {
|
2019-02-09 11:32:08 +01:00
|
|
|
height: 50px; margin: 0; padding: 0 16px;
|
2020-07-13 22:54:34 +02:00
|
|
|
background: var(--background); border-bottom: var(--border);
|
2019-02-09 22:42:16 +01:00
|
|
|
|
|
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
|
|
flex-flow: row wrap;
|
2019-03-31 12:17:55 +02:00
|
|
|
|
|
|
|
/* 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;
|
|
|
|
}
|
2018-02-23 23:34:06 +01:00
|
|
|
}
|
|
|
|
|
2019-02-10 15:46:53 +01:00
|
|
|
header .title a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
header .title h1 {
|
2019-02-07 17:55:20 +01:00
|
|
|
font-family: Cantarell; font-weight: bold; font-size: 18px;
|
|
|
|
display: inline;
|
2018-02-23 23:34:06 +01:00
|
|
|
}
|
|
|
|
|
2019-02-09 11:32:08 +01:00
|
|
|
header .spacer {
|
2019-02-09 22:42:16 +01:00
|
|
|
flex: 1 0 auto;
|
2019-02-09 11:32:08 +01:00
|
|
|
}
|
|
|
|
|
2019-02-09 21:18:12 +01:00
|
|
|
header .links {
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
2018-11-12 23:27:49 +01:00
|
|
|
header svg {
|
2018-02-23 23:34:06 +01:00
|
|
|
width: 24px; height: 24px; vertical-align: middle;
|
2018-11-12 23:27:49 +01:00
|
|
|
transition: .15s ease;
|
2018-02-23 23:34:06 +01:00
|
|
|
}
|
2018-11-12 23:27:49 +01:00
|
|
|
header a:hover > svg, header a:focus > svg {
|
2020-07-13 22:54:34 +02:00
|
|
|
fill: var(--text);
|
2019-02-08 21:14:25 +01:00
|
|
|
}
|
|
|
|
header a {
|
2019-02-09 11:32:08 +01:00
|
|
|
fill: #363636;
|
2019-02-08 21:14:25 +01:00
|
|
|
cursor: pointer;
|
2018-02-23 23:34:06 +01:00
|
|
|
}
|
|
|
|
|
2019-03-31 12:17:55 +02:00
|
|
|
header .form {
|
2019-02-09 21:18:12 +01:00
|
|
|
/* 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;
|
2019-02-08 21:14:25 +01:00
|
|
|
}
|
2019-03-31 12:17:55 +02:00
|
|
|
header .form input[type="search"] {
|
2018-11-16 23:15:43 +01:00
|
|
|
display: inline-block; width: 250px;
|
2018-11-12 23:27:49 +01:00
|
|
|
padding: 5px 35px 5px 10px;
|
2018-02-23 23:34:06 +01:00
|
|
|
}
|
2019-03-31 12:17:55 +02:00
|
|
|
header .form input[type="search"] ~ a {
|
2018-02-23 23:34:06 +01:00
|
|
|
position: relative; left: -33px;
|
2020-07-13 22:54:34 +02:00
|
|
|
opacity: .7;
|
2018-02-23 23:34:06 +01:00
|
|
|
}
|
2019-03-31 12:17:55 +02:00
|
|
|
header .form input[type="search"] ~ a > svg > path {
|
2020-07-13 22:54:34 +02:00
|
|
|
fill: var(--text);
|
2018-02-23 23:34:06 +01:00
|
|
|
}
|
2020-07-13 22:54:34 +02:00
|
|
|
header .form input[type="search"] ~ a:hover,
|
|
|
|
header .form input[type="search"]:focus ~ a {
|
|
|
|
opacity: 1;
|
2018-02-23 23:34:06 +01:00
|
|
|
}
|
|
|
|
|
2020-07-13 22:54:34 +02:00
|
|
|
|
2019-02-08 21:14:25 +01:00
|
|
|
#spotlight {
|
|
|
|
margin-left: 16px;
|
2018-02-23 23:34:06 +01:00
|
|
|
}
|
2019-02-10 10:03:11 +01:00
|
|
|
#spotlight a {
|
|
|
|
display: block;
|
|
|
|
}
|