filebrowser/frontend/src/css/base.css

175 lines
2.2 KiB
CSS

body {
font-family: 'Roboto', sans-serif;
padding-top: 4em;
background-color: #fafafa;
color: #333333;
}
* {
box-sizing: border-box;
}
*,
*:hover,
*:active,
*:focus {
outline: 0
}
a {
text-decoration: none;
}
img {
max-width: 100%;
}
audio,
video {
width: 100%;
}
.mobile-only {
display: none !important;
}
.container {
width: 95%;
max-width: 960px;
margin: 1em auto 0;
}
i.spin {
animation: 1s spin linear infinite, 1s pulse linear infinite;
}
i.pulse-spin {
animation: 1s spin linear infinite, 1s pulse linear infinite;
}
@keyframes pulse {
0% {
background-color: rgba(0, 0, 0, 0);
}
50% {
background-color: rgba(0, 0, 0, .1);
}
100% {
background-color: rgba(0, 0, 0, 0);
}
}
#app {
transition: .2s ease padding;
}
#app.multiple {
padding-bottom: 4em;
}
nav {
width: 16em;
position: fixed;
top: 4em;
left: 0;
}
nav .action {
width: 100%;
display: block;
border-radius: 0;
font-size: 1.1em;
padding: .5em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
nav>div {
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
nav .action>* {
vertical-align: middle;
}
main {
min-height: 1em;
margin: 0 1em 1em auto;
width: calc(100% - 19em);
}
.breadcrumbs {
height: 3em;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.breadcrumbs span,
.breadcrumbs {
display: flex;
align-items: center;
color: #6f6f6f;
}
.breadcrumbs a {
color: inherit;
transition: .1s ease-in;
border-radius: .125em;
}
.breadcrumbs a:hover {
background-color: rgba(0,0,0, 0.05);
}
.breadcrumbs span a {
padding: .2em;
}
#progress {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 3px;
z-index: 9999999999;
}
#progress div {
height: 100%;
background-color: #40c4ff;
width: 0;
transition: .2s ease width;
}
.break-word {
word-break: break-all;
}
#quota {
padding: 1em;
}
#quota > div + div {
margin-top: .5em;
}
#quota .label {
color: #546E7A;
}
#quota .label .metric {
float: right;
}
#quota .bar {
width: 100%;
height: 10px;
background-color: rgba(0,0,0, 0.1);
}
#quota .bar .progress {
width: 0;
height: 100%;
transition: .2s ease width;
background-color: #40c4ff;
}