PCv5/app/static/css/header.css

71 lines
1.6 KiB
CSS
Raw Normal View History

2018-02-23 23:34:06 +01:00
/*
header
*/
header {
height: 50px; margin: 0; padding: 0 16px;
display: flex; align-items: center; justify-content: space-between;
2019-02-07 17:55:20 +01:00
background: #f4f4f6; border-bottom: 1px solid #d0d0d0;
2018-02-23 23:34:06 +01:00
}
header h1 {
2019-02-07 17:55:20 +01:00
font-family: Cantarell; font-weight: bold; font-size: 18px;
color: #181818;
display: inline;
2018-02-23 23:34:06 +01:00
}
header .spacer {
flex: auto 1 0;
}
header svg {
2018-02-23 23:34:06 +01:00
width: 24px; height: 24px; vertical-align: middle;
transition: .15s ease;
2018-02-23 23:34:06 +01:00
}
header a:hover > svg, header a:focus > svg {
fill: black;
}
header a {
fill: #363636;
cursor: pointer;
2018-02-23 23:34:06 +01:00
}
header form {
/* -24px for the search icon, -2px for the spacing between the search icon
and the field, +16px for spacing with the links */
margin-right: -10px;
}
2018-02-23 23:34:06 +01:00
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;
2018-02-23 23:34:06 +01:00
}
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;
2018-02-23 23:34:06 +01:00
}
2019-02-07 17:55:20 +01:00
#spotlight a {
background: #d23a2f; padding: 8px 18px 6px 18px;
color: white;
2019-02-07 17:55:20 +01:00
height: 24px; line-height: 24px; padding: 6px 12px;
border-radius: 2px; border: 1px solid rgba(0, 0, 255, .1);
2019-02-07 17:55:20 +01:00
}
#spotlight a:hover {
background: #b32a20;
border-color: rgba(128, 128, 255, .05);
2019-02-07 17:55:20 +01:00
}