108 lines
1.9 KiB
CSS
108 lines
1.9 KiB
CSS
/* Currently 3 screen sizes supported :
|
|
- micro: < 500px
|
|
- tiny: < 850px
|
|
- small: < 1200px
|
|
- normal: >= 1200px
|
|
|
|
Ex:
|
|
@media screen and (max-width: @var)
|
|
*/
|
|
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;
|
|
}
|
|
header .title {
|
|
margin: 4px 0;
|
|
}
|
|
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 .form {
|
|
margin-right: -26px;
|
|
}
|
|
@media screen and (max-width: 849px) {
|
|
header .form {
|
|
display: none;
|
|
}
|
|
}
|
|
header .form input[type="search"] {
|
|
display: inline-block;
|
|
width: 250px;
|
|
padding: 5px 35px 5px 10px;
|
|
}
|
|
@media screen and (max-width: 1199px) {
|
|
header .form input[type="search"] {
|
|
width: 200px;
|
|
}
|
|
}
|
|
@media screen and (min-width: 1449px) {
|
|
header .form input[type="search"] {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
header .form input[type="search"]:focus ~ a {
|
|
opacity: 1;
|
|
}
|
|
header .form input[type="search"] ~ a {
|
|
position: relative;
|
|
left: -33px;
|
|
opacity: 0.7;
|
|
}
|
|
header .form input[type="search"] ~ a > svg > path {
|
|
fill: var(--text);
|
|
}
|
|
header .form a {
|
|
fill: #363636;
|
|
cursor: pointer;
|
|
}
|
|
header .form a:hover > svg,
|
|
header .form a:focus > svg {
|
|
fill: var(--text);
|
|
}
|
|
header .form svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
vertical-align: middle;
|
|
transition: 0.15s ease;
|
|
}
|
|
header #spotlight {
|
|
margin-left: 16px;
|
|
}
|
|
@media screen and (max-width: 1199px) {
|
|
header #spotlight {
|
|
display: none;
|
|
}
|
|
}
|
|
header #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, 0.5);
|
|
}
|