284 lines
4.2 KiB
CSS
284 lines
4.2 KiB
CSS
/* Header */
|
|
header {
|
|
z-index: 1000;
|
|
position: fixed;
|
|
z-index: 10000;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 4em;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background-color: white;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.075);
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
padding: 0.5em;
|
|
}
|
|
|
|
@supports (backdrop-filter: none) {
|
|
header {
|
|
background-color: transparent;
|
|
backdrop-filter: blur(16px) invert(0.1);
|
|
}
|
|
}
|
|
|
|
header>* {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
header title {
|
|
display: block;
|
|
flex: 1 1 auto;
|
|
padding: 0 1em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
header a,
|
|
header a:hover {
|
|
color: inherit;
|
|
}
|
|
|
|
header>div:first-child>.action,
|
|
header img {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
header img {
|
|
height: 2.5em;
|
|
}
|
|
|
|
header .action span {
|
|
display: none;
|
|
}
|
|
|
|
header>div div {
|
|
vertical-align: middle;
|
|
position: relative;
|
|
}
|
|
|
|
/* Search */
|
|
#search {
|
|
position: absolute;
|
|
height: 3em;
|
|
width: 50%;
|
|
max-width: 50em;
|
|
left: 50%;
|
|
transform: translate(-50%, 0%);
|
|
}
|
|
|
|
#search #input {
|
|
background-color: rgba(100, 100, 100, 0.2);
|
|
display: flex;
|
|
height: 100%;
|
|
padding: 0em 0.75em;
|
|
border-radius: 0.3em;
|
|
transition: .1s ease all;
|
|
align-items: center;
|
|
z-index: 2;
|
|
}
|
|
|
|
#search input {
|
|
width: 100%;
|
|
border: 0;
|
|
background-color: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
#result-list p {
|
|
margin: 1em;
|
|
}
|
|
#result-list {
|
|
width: 60em;
|
|
max-width: 100%;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
border-color: gray;
|
|
}
|
|
|
|
@media (min-width: 800px) {
|
|
#result-list {
|
|
padding-top: 0;
|
|
border-radius: .5em;
|
|
border-width: 2px;
|
|
border-style: solid;
|
|
background-color: white;
|
|
margin-top: 1em;
|
|
max-height: 80vh;
|
|
left: 50%;
|
|
max-width: 90vw;
|
|
transform: translateX(-50%);
|
|
box-shadow: 0px 2em 50px 10px rgba(0, 0, 0, 0.3)
|
|
}
|
|
}
|
|
|
|
.text-container {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
text-align: left;
|
|
direction: rtl;
|
|
}
|
|
|
|
#search #result {
|
|
padding-top: 1em;
|
|
overflow: hidden;
|
|
background: white;
|
|
display: flex;
|
|
top: -4em;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: left;
|
|
color: rgba(0, 0, 0, 0.6);
|
|
height: 0;
|
|
transition: .2s ease height, .2s ease padding;
|
|
z-index: 1;
|
|
}
|
|
|
|
body.rtl #search #result {
|
|
direction: ltr;
|
|
}
|
|
|
|
#search #result>div>*:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
body.rtl #search #result {
|
|
direction: rtl;
|
|
text-align: right;
|
|
}
|
|
|
|
/* Search Results */
|
|
body.rtl #search #result ul>* {
|
|
direction: ltr;
|
|
text-align: left;
|
|
}
|
|
|
|
#search ul {
|
|
margin-top: 1em;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#search li {
|
|
margin: .5em;
|
|
}
|
|
|
|
#search #result #renew {
|
|
width: 100%;
|
|
text-align: center;
|
|
display: none;
|
|
margin: 1em;
|
|
max-width: none;
|
|
}
|
|
|
|
#search.ongoing #result #renew {
|
|
display: block;
|
|
}
|
|
|
|
#search #result-desktop #renew {
|
|
width: 100%;
|
|
text-align: center;
|
|
display: none;
|
|
margin: 1em;
|
|
max-width: none;
|
|
}
|
|
|
|
#search.ongoing #result-desktop #renew {
|
|
display: block;
|
|
}
|
|
|
|
/* Icon Colors */
|
|
.folder-icons {
|
|
color: var(--icon-blue);
|
|
}
|
|
|
|
.video-icons {
|
|
color: lightskyblue;
|
|
}
|
|
|
|
.image-icons {
|
|
color: lightcoral;
|
|
}
|
|
|
|
.archive-icons {
|
|
color: tan;
|
|
}
|
|
|
|
.audio-icons {
|
|
color: plum;
|
|
}
|
|
|
|
/* Search Input Placeholder */
|
|
#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);
|
|
}
|
|
|
|
/* Search Boxes */
|
|
#search .boxes {
|
|
border: 1px solid rgba(0, 0, 0, 0.075);
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
|
background: #fff;
|
|
margin: 1em;
|
|
}
|
|
|
|
#search .boxes h3 {
|
|
margin: 0;
|
|
font-weight: 500;
|
|
font-size: 1em;
|
|
color: #212121;
|
|
padding: .5em;
|
|
}
|
|
|
|
body.rtl #search .boxes h3 {
|
|
text-align: right;
|
|
}
|
|
|
|
#search .boxes>div {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin: 1em;
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
max-width: 40em;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
#search .boxes>div>div {
|
|
background: var(--blue);
|
|
color: #fff;
|
|
text-align: center;
|
|
width: 10em;
|
|
padding: 1em;
|
|
cursor: pointer;
|
|
margin-bottom: 1em;
|
|
margin-right: 1em;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
#search .boxes p {
|
|
margin: 1em 0 0;
|
|
}
|
|
|
|
#search .boxes i {
|
|
color: #fff !important;
|
|
font-size: 3.5em;
|
|
}
|