PCv5/app/static/less/header.less

106 lines
2.0 KiB
Plaintext

@import "vars";
header {
margin: 0; padding: 8px 16px;
background: var(--background); border-bottom: var(--border);
display: flex; align-items: center; justify-content: space-between;
flex-flow: row wrap;
overflow: hidden;
.title {
margin: 4px 0;
a {
color: inherit;
}
h1 {
font-family: Cantarell; font-weight: bold; font-size: 18px;
display: inline;
}
}
.spacer {
flex: 1 0 auto;
}
.links {
margin-left: 16px;
}
.form {
margin-right: -26px;
@media screen and (max-width: @tiny) {
display: none;
}
input[type="search"] {
display: inline-block; width: 250px;
padding: 5px 35px 5px 10px;
@media screen and (max-width: @small) {
width: 200px;
}
@media screen and (min-width: @normal) {
font-size: 14px;
}
&:focus {
& ~ a {
opacity: 1;
}
}
& ~ a {
position: relative; left: -33px;
opacity: .7;
& > svg > path {
fill: var(--text);
}
}
}
a {
fill: #363636;
cursor: pointer;
&:hover, &:focus {
& > svg {
fill: var(--text);
}
}
}
svg {
width: 24px; height: 24px; vertical-align: middle;
transition: .15s ease;
}
}
#spotlight {
margin-left: 16px;
@media screen and (max-width: @small) {
display: none;
}
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);
}