Files
filebrowser/assets/src/css/header.css
T

260 lines
3.7 KiB
CSS
Raw Normal View History

2017-06-28 11:45:41 +01:00
header {
2017-07-04 16:55:36 +01:00
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;
2017-06-28 11:45:41 +01:00
}
2017-07-10 10:30:51 +01:00
header .overlay {
width: 0;
height: 0;
}
2017-06-28 11:45:41 +01:00
header a,
header a:hover {
2017-07-04 16:55:36 +01:00
color: inherit;
2017-06-28 11:45:41 +01:00
}
2017-07-04 16:55:36 +01:00
header>div:first-child>.action,
2017-06-28 22:20:28 +01:00
header img {
2017-07-04 16:55:36 +01:00
margin-right: 1em;
}
header img {
height: 2.5em;
}
header>div:first-child>.action {
display: none;
2017-06-28 22:20:28 +01:00
}
2017-06-28 11:45:41 +01:00
header>div {
2017-07-04 16:55:36 +01:00
display: flex;
width: 100%;
padding: 0.5em 0.5em 0.5em 1em;
align-items: center;
2017-06-28 11:45:41 +01:00
}
header .action span {
2017-07-04 16:55:36 +01:00
display: none;
2017-06-28 11:45:41 +01:00
}
header>div div {
2017-07-04 16:55:36 +01:00
vertical-align: middle;
position: relative;
2017-06-28 11:45:41 +01:00
}
2017-08-08 11:33:10 +01:00
header>div:last-child div {
2017-07-10 10:30:51 +01:00
display: flex;
}
2017-07-04 16:55:36 +01:00
header>div:first-child {
height: 4em;
2017-06-28 11:45:41 +01:00
}
2017-07-04 16:55:36 +01:00
header>div:last-child {
justify-content: flex-end;
2017-06-28 11:45:41 +01:00
}
2017-07-04 17:15:38 +01:00
header .search-button {
display: none;
}
2017-06-28 19:26:07 +01:00
#more {
2017-07-04 16:55:36 +01:00
display: none;
2017-06-28 19:26:07 +01:00
}
2017-06-28 11:45:41 +01:00
#search {
2017-07-04 16:55:36 +01:00
position: relative;
height: 100%;
width: 100%;
max-width: 25em;
2017-06-28 11:45:41 +01:00
}
#search.active {
2017-07-04 11:47:24 +01:00
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;
}
2017-07-04 16:55:36 +01:00
#search.active>div {
2017-07-04 11:47:24 +01:00
border-radius: 0 !important;
2017-06-28 11:45:41 +01:00
}
#search.active i,
#search.active input {
2017-07-04 16:55:36 +01:00
color: #212121;
2017-06-28 11:45:41 +01:00
}
2017-07-04 16:55:36 +01:00
#search #input>.action,
#search #input>i {
margin-right: 0.3em;
user-select: none;
2017-06-28 11:45:41 +01:00
}
#search input {
2017-07-04 16:55:36 +01:00
width: 100%;
border: 0;
outline: 0;
background-color: transparent;
2017-06-28 11:45:41 +01:00
}
2017-07-04 11:47:24 +01:00
#search #result {
visibility: visible;
max-height: none;
2017-08-08 11:33:10 +01:00
background-color: #f8f8f8;
2017-07-04 11:47:24 +01:00
text-align: left;
padding: 0;
2017-08-08 11:33:10 +01:00
color: rgba(0, 0, 0, 0.6);
2017-07-04 11:47:24 +01:00
height: 0;
transition: .1s ease height, .1s ease padding;
overflow-x: hidden;
overflow-y: auto;
z-index: 1;
2017-06-28 11:45:41 +01:00
}
2017-08-08 11:33:10 +01:00
#search #result>div>*:first-child {
margin-top: 0;
}
2017-07-04 11:47:24 +01:00
#search.active #result {
padding: .5em;
height: calc(100% - 4em);
2017-06-28 11:45:41 +01:00
}
2017-07-04 11:47:24 +01:00
#search ul {
padding: 0;
margin: 0;
list-style: none;
2017-06-28 11:45:41 +01:00
}
2017-07-04 11:47:24 +01:00
#search li {
margin-bottom: .5em;
2017-06-28 11:45:41 +01:00
}
2017-08-08 11:33:10 +01:00
#search #result>div {
max-width: 45em;
margin: 0 auto;
2017-06-28 11:45:41 +01:00
}
2017-08-08 11:33:10 +01:00
#search #result #renew {
2017-07-04 11:47:24 +01:00
width: 100%;
text-align: center;
display: none;
margin: 0;
max-width: none;
2017-06-28 11:45:41 +01:00
}
2017-08-08 11:33:10 +01:00
#search.ongoing #result #renew {
2017-07-04 11:47:24 +01:00
display: block;
2017-06-28 11:45:41 +01:00
}
2017-07-04 11:47:24 +01:00
#search.active #result i {
color: #ccc;
2017-08-04 16:15:07 +01:00
}
2017-08-08 11:33:10 +01:00
#search.active #result>p>i {
2017-07-04 11:47:24 +01:00
text-align: center;
margin: 0 auto;
display: table;
2017-06-28 11:45:41 +01:00
}
2017-08-04 16:15:07 +01:00
#search.active #result ul li a {
display: flex;
align-items: center;
padding: .3em 0;
}
#search.active #result ul li a i {
margin-right: .3em;
}
2017-06-28 11:45:41 +01:00
#search::-webkit-input-placeholder {
2017-07-04 11:47:24 +01:00
color: rgba(255, 255, 255, .5);
2017-06-28 11:45:41 +01:00
}
#search:-moz-placeholder {
2017-07-04 11:47:24 +01:00
opacity: 1;
color: rgba(255, 255, 255, .5);
2017-06-28 11:45:41 +01:00
}
#search::-moz-placeholder {
2017-07-04 11:47:24 +01:00
opacity: 1;
color: rgba(255, 255, 255, .5);
2017-06-28 11:45:41 +01:00
}
#search:-ms-input-placeholder {
2017-07-04 11:47:24 +01:00
color: rgba(255, 255, 255, .5);
}
2017-08-08 11:33:10 +01:00
#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 0;
}
#search .boxes h3 {
margin: 0;
font-weight: 500;
font-size: 1em;
color: #212121;
padding: .5em;
}
#search .boxes>div {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-right: -1em;
margin-bottom: -1em;
}
#search .boxes>div>div {
background: #2196F3;
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;
}