227 lines
3.3 KiB
CSS
227 lines
3.3 KiB
CSS
header {
|
|
z-index: 1000;
|
|
background-color: #fff;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.075);
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
padding: 0;
|
|
display: flex;
|
|
}
|
|
|
|
header a,
|
|
header a:hover {
|
|
color: inherit;
|
|
}
|
|
|
|
header>div:first-child>.action,
|
|
header img {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
header img {
|
|
height: 2.5em;
|
|
}
|
|
|
|
header>div:first-child>.action {
|
|
display: none;
|
|
}
|
|
|
|
header>div {
|
|
display: flex;
|
|
width: 100%;
|
|
padding: 0.5em 0.5em 0.5em 1em;
|
|
align-items: center;
|
|
}
|
|
|
|
header .action span {
|
|
display: none;
|
|
}
|
|
|
|
header>div div {
|
|
vertical-align: middle;
|
|
position: relative;
|
|
}
|
|
|
|
header>div:first-child {
|
|
height: 4em;
|
|
}
|
|
|
|
header>div:last-child {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
header .search-button {
|
|
display: none;
|
|
}
|
|
|
|
|
|
/* * * * * * * * * * * * * * * *
|
|
* MORE?? *
|
|
* * * * * * * * * * * * * * * */
|
|
|
|
#more {
|
|
display: none;
|
|
}
|
|
|
|
#file-only {
|
|
display: inline-block;
|
|
border-right: 1px solid rgba(0, 0, 0, 0.075);
|
|
padding-right: .3em;
|
|
margin-right: .3em;
|
|
transition: .2s ease opacity, visibility;
|
|
visibility: visible;
|
|
}
|
|
|
|
#file-only.disabled {
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
}
|
|
|
|
#download ul.active {
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
#more ul.active {
|
|
right: .5em;
|
|
top: 4.5em;
|
|
}
|
|
|
|
|
|
/* * * * * * * * * * * * * * * *
|
|
* SEARCH BAR *
|
|
* * * * * * * * * * * * * * * */
|
|
|
|
#search {
|
|
position: relative;
|
|
height: 100%;
|
|
width: 100%;
|
|
max-width: 25em;
|
|
}
|
|
|
|
#search.active {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
height: 100%;
|
|
z-index: 9999;
|
|
}
|
|
|
|
#search #input {
|
|
background-color: #f5f5f5;
|
|
display: flex;
|
|
padding: 0.75em;
|
|
border-radius: 0.3em;
|
|
transition: .1s ease all;
|
|
align-items: center;
|
|
z-index: 2;
|
|
}
|
|
|
|
#search.active #input {
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.075);
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
background-color: #fff;
|
|
height: 4em;
|
|
}
|
|
|
|
#search.active>div {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
#search.active i,
|
|
#search.active input {
|
|
color: #212121;
|
|
}
|
|
|
|
#search #input>.action,
|
|
#search #input>i {
|
|
margin-right: 0.3em;
|
|
user-select: none;
|
|
}
|
|
|
|
#search input {
|
|
width: 100%;
|
|
border: 0;
|
|
outline: 0;
|
|
background-color: transparent;
|
|
}
|
|
|
|
#search #result {
|
|
visibility: visible;
|
|
max-height: none;
|
|
background-color: #fff;
|
|
text-align: left;
|
|
color: #ccc;
|
|
padding: 0;
|
|
height: 0;
|
|
transition: .1s ease height, .1s ease padding;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
z-index: 1;
|
|
}
|
|
|
|
#search.active #result {
|
|
padding: .5em;
|
|
height: calc(100% - 4em);
|
|
}
|
|
|
|
#search ul {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#search li {
|
|
margin-bottom: .5em;
|
|
}
|
|
|
|
#search #result div {
|
|
white-space: pre-wrap;
|
|
white-space: -moz-pre-wrap;
|
|
white-space: -pre-wrap;
|
|
white-space: -o-pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
#search #result p {
|
|
width: 100%;
|
|
text-align: center;
|
|
display: none;
|
|
margin: 0;
|
|
max-width: none;
|
|
}
|
|
|
|
#search.ongoing #result p {
|
|
display: block;
|
|
}
|
|
|
|
#search.active #result i {
|
|
color: #ccc;
|
|
text-align: center;
|
|
margin: 0 auto;
|
|
display: table;
|
|
}
|
|
|
|
#search::-webkit-input-placeholder {
|
|
color: rgba(255, 255, 255, .5);
|
|
}
|
|
|
|
#search:-moz-placeholder {
|
|
opacity: 1;
|
|
color: rgba(255, 255, 255, .5);
|
|
}
|
|
|
|
#search::-moz-placeholder {
|
|
opacity: 1;
|
|
color: rgba(255, 255, 255, .5);
|
|
}
|
|
|
|
#search:-ms-input-placeholder {
|
|
color: rgba(255, 255, 255, .5);
|
|
}
|