Beautify stuff and remove useless stuff

Former-commit-id: 4011c8fdf2e371a7c4b5bd869358abbb816cf3cd [formerly ea701dcc1585c3293ebe12bbf7e44fce2783c7d2] [formerly 94530d6438acaac29e48e6fb87935137eb494356 [formerly b66f6bd78ac5c34837af076c5d6470976ea6b42c]]
Former-commit-id: af893939aa40b62b4879a0222fd5b5d5862f4463 [formerly 82093eb578ddb6a12f6a19aff054033c72601ecb]
Former-commit-id: 09c904479b844653c2f7b636afde3aea6b933421
This commit is contained in:
Henrique Dias 2017-07-04 16:55:36 +01:00
parent 520e5c7763
commit 9c0c2d7a02
7 changed files with 407 additions and 401 deletions

View File

@ -107,7 +107,6 @@ export default {
'req', 'req',
'user', 'user',
'reload', 'reload',
'baseURL',
'multiple' 'multiple'
]), ]),
isListing () { isListing () {

View File

@ -1,116 +1,117 @@
body { body {
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
padding-top: 4em; padding-top: 4em;
background-color: #f8f8f8; background-color: #f8f8f8;
user-select: none; user-select: none;
} }
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
*, *,
*:hover, *:hover,
*:active, *:active,
*:focus { *:focus {
outline: 0 outline: 0
} }
a { a {
text-decoration: none; text-decoration: none;
} }
img { img {
max-width: 100%; max-width: 100%;
} }
audio, audio,
video { video {
width: 100%; width: 100%;
} }
pre { pre {
padding: 1em; padding: 1em;
border: 1px solid #e6e6e6; border: 1px solid #e6e6e6;
border-radius: 0.5em; border-radius: 0.5em;
background-color: #f5f5f5; background-color: #f5f5f5;
white-space: pre-wrap; white-space: pre-wrap;
white-space: -moz-pre-wrap; white-space: -moz-pre-wrap;
white-space: -pre-wrap; white-space: -pre-wrap;
white-space: -o-pre-wrap; white-space: -o-pre-wrap;
word-wrap: break-word; word-wrap: break-word;
} }
input, button { input,
button {
outline: 0 !important; outline: 0 !important;
} }
input[type="submit"], input[type="submit"],
button { button {
border: 0; border: 0;
padding: .5em 1em; padding: .5em 1em;
margin-left: .5em; margin-left: .5em;
border-radius: .1em; border-radius: .1em;
cursor: pointer; cursor: pointer;
background: #2196f3; background: #2196f3;
color: #fff; color: #fff;
border: 1px solid rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.05);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
transition: .1s ease all; transition: .1s ease all;
} }
input[type="submit"]:hover, input[type="submit"]:hover,
button:hover { button:hover {
background-color: #1E88E5; background-color: #1E88E5;
} }
.mobile-only { .mobile-only {
display: none !important; display: none !important;
} }
.container { .container {
width: 95%; width: 95%;
max-width: 960px; max-width: 960px;
margin: 1em auto 0; margin: 1em auto 0;
} }
i.spin { i.spin {
animation: 1s spin linear infinite; animation: 1s spin linear infinite;
} }
#app { #app {
transition: .2s ease padding; transition: .2s ease padding;
} }
#app.multiple { #app.multiple {
padding-bottom: 4em; padding-bottom: 4em;
} }
nav { nav {
width: 16em; width: 16em;
position: fixed; position: fixed;
top: 4em; top: 4em;
left: 0; left: 0;
} }
nav .action { nav .action {
width: 100%; width: 100%;
display: block; display: block;
border-radius: 0; border-radius: 0;
font-size: 1.1em; font-size: 1.1em;
padding: .5em; padding: .5em;
} }
nav > div { nav>div {
border-top: 1px solid rgba(0, 0, 0, 0.05); border-top: 1px solid rgba(0, 0, 0, 0.05);
} }
nav .action>* { nav .action>* {
vertical-align: middle; vertical-align: middle;
} }
main { main {
min-height: 1em; min-height: 1em;
margin: 0 1em 0 auto; margin: 0 1em 0 auto;
width: calc(100% - 19em); width: calc(100% - 19em);
} }

View File

@ -1,93 +1,101 @@
header { header {
z-index: 1000; z-index: 1000;
background-color: #fff; background-color: #fff;
border-bottom: 1px solid rgba(0, 0, 0, 0.075); border-bottom: 1px solid rgba(0, 0, 0, 0.075);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
padding: 0; padding: 0;
display: flex; display: flex;
} }
header a, header a,
header a:hover { header a:hover {
color: inherit; color: inherit;
}
header>div:first-child>.action,
header img {
margin-right: 1em;
} }
header img { header img {
height: 2.5em; height: 2.5em;
margin-right: 1em; }
vertical-align: middle;
header>div:first-child>.action {
display: none;
} }
header>div { header>div {
display: flex; display: flex;
width: 100%; width: 100%;
padding: 0.5em 0.5em 0.5em 1em; padding: 0.5em 0.5em 0.5em 1em;
align-items: center; align-items: center;
} }
header .action span { header .action span {
display: none; display: none;
} }
header>div div { header>div div {
vertical-align: middle; vertical-align: middle;
position: relative; position: relative;
} }
header > div:first-child { header>div:first-child {
height: 4em; height: 4em;
} }
header > div:last-child { header>div:last-child {
justify-content: flex-end; justify-content: flex-end;
} }
/* * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * *
* MORE?? * * MORE?? *
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
#more { #more {
display: none; display: none;
} }
#file-only { #file-only {
display: inline-block; display: inline-block;
border-right: 1px solid rgba(0, 0, 0, 0.075); border-right: 1px solid rgba(0, 0, 0, 0.075);
padding-right: .3em; padding-right: .3em;
margin-right: .3em; margin-right: .3em;
transition: .2s ease opacity, visibility; transition: .2s ease opacity, visibility;
visibility: visible; visibility: visible;
} }
#file-only.disabled { #file-only.disabled {
opacity: 0; opacity: 0;
visibility: hidden; visibility: hidden;
} }
#download ul.active { #download ul.active {
top: 0; top: 0;
right: 0; right: 0;
} }
#more ul.active { #more ul.active {
right: .5em; right: .5em;
top: 4.5em; top: 4.5em;
} }
/* * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * *
* SEARCH BAR * * SEARCH BAR *
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
#search { #search {
position: relative; position: relative;
height: 100%; height: 100%;
width: 100%; width: 100%;
max-width: 25em; max-width: 25em;
} }
#search.active { #search.active {
@ -117,26 +125,26 @@ header > div:last-child {
height: 4em; height: 4em;
} }
#search.active > div { #search.active>div {
border-radius: 0 !important; border-radius: 0 !important;
} }
#search.active i, #search.active i,
#search.active input { #search.active input {
color: #212121; color: #212121;
} }
#search #input > .action, #search #input>.action,
#search #input > i { #search #input>i {
margin-right: 0.3em; margin-right: 0.3em;
user-select: none; user-select: none;
} }
#search input { #search input {
width: 100%; width: 100%;
border: 0; border: 0;
outline: 0; outline: 0;
background-color: transparent; background-color: transparent;
} }
#search #result { #search #result {
@ -212,4 +220,3 @@ header > div:last-child {
#search:-ms-input-placeholder { #search:-ms-input-placeholder {
color: rgba(255, 255, 255, .5); color: rgba(255, 255, 255, .5);
} }

View File

@ -1,236 +1,236 @@
#listing h2 { #listing h2 {
margin: 0 0 0 0.5em; margin: 0 0 0 0.5em;
font-size: .9em; font-size: .9em;
color: rgba(0, 0, 0, 0.38); color: rgba(0, 0, 0, 0.38);
font-weight: 500; font-weight: 500;
} }
#listing .item div:last-of-type * { #listing .item div:last-of-type * {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
} }
#listing>div { #listing>div {
display: flex; display: flex;
padding: 0; padding: 0;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: flex-start; justify-content: flex-start;
position: relative; position: relative;
} }
#listing .item { #listing .item {
background-color: #fff; background-color: #fff;
position: relative; position: relative;
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
color: #6f6f6f; color: #6f6f6f;
transition: .1s ease all; transition: .1s ease all;
align-items: center; align-items: center;
cursor: pointer; cursor: pointer;
} }
#listing .item div:last-of-type { #listing .item div:last-of-type {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
} }
#listing .item p { #listing .item p {
margin: 0; margin: 0;
} }
#listing .item .size, #listing .item .size,
#listing .item .modified { #listing .item .modified {
font-size: 0.9em; font-size: 0.9em;
} }
#listing .item .name { #listing .item .name {
font-weight: bold; font-weight: bold;
} }
#listing .item i { #listing .item i {
font-size: 4em; font-size: 4em;
margin-right: 0.1em; margin-right: 0.1em;
vertical-align: bottom; vertical-align: bottom;
} }
.message { .message {
text-align: center; text-align: center;
font-size: 2em; font-size: 2em;
margin: 1em auto; margin: 1em auto;
display: block !important; display: block !important;
width: 95%; width: 95%;
color: rgba(0, 0, 0, 0.3); color: rgba(0, 0, 0, 0.3);
font-weight: 500; font-weight: 500;
} }
.message i { .message i {
font-size: 2.5em; font-size: 2.5em;
margin-bottom: .2em; margin-bottom: .2em;
display: block; display: block;
} }
#listing.mosaic { #listing.mosaic {
padding-top: 1em; padding-top: 1em;
} }
#listing.mosaic .item { #listing.mosaic .item {
width: calc(33% - 1em); width: calc(33% - 1em);
margin: .5em; margin: .5em;
padding: 0.5em; padding: 0.5em;
border-radius: 0.2em; border-radius: 0.2em;
box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12); box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12);
} }
#listing.mosaic .item:hover { #listing.mosaic .item:hover {
box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24) !important;
} }
#listing.mosaic .header { #listing.mosaic .header {
display: none; display: none;
} }
#listing.mosaic .item div:first-of-type { #listing.mosaic .item div:first-of-type {
width: 5em; width: 5em;
} }
#listing.mosaic .item div:last-of-type { #listing.mosaic .item div:last-of-type {
width: calc(100% - 5vw); width: calc(100% - 5vw);
} }
#listing.list { #listing.list {
flex-direction: column; flex-direction: column;
padding-top: 3.25em; padding-top: 3.25em;
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
margin: 0; margin: 0;
} }
#listing.list .item { #listing.list .item {
width: 100%; width: 100%;
margin: 0; margin: 0;
border: 1px solid rgba(0, 0, 0, 0.1); border: 1px solid rgba(0, 0, 0, 0.1);
padding: 1em; padding: 1em;
border-top: 0; border-top: 0;
} }
#listing.list h2 { #listing.list h2 {
display: none; display: none;
} }
#listing .item[aria-selected=true] { #listing .item[aria-selected=true] {
background: #2196f3 !important; background: #2196f3 !important;
color: #fff !important; color: #fff !important;
} }
#listing.list .item div:first-of-type { #listing.list .item div:first-of-type {
width: 3em; width: 3em;
} }
#listing.list .item div:first-of-type i { #listing.list .item div:first-of-type i {
font-size: 2em; font-size: 2em;
} }
#listing.list .item div:last-of-type { #listing.list .item div:last-of-type {
width: calc(100% - 3em); width: calc(100% - 3em);
display: flex; display: flex;
align-items: center; align-items: center;
} }
#listing.list .item .name { #listing.list .item .name {
width: 50%; width: 50%;
} }
#listing.list .item .size { #listing.list .item .size {
width: 25%; width: 25%;
} }
#listing .item.header { #listing .item.header {
display: none !important; display: none !important;
background-color: #ccc; background-color: #ccc;
} }
#listing.list .header i { #listing.list .header i {
font-size: 1.5em; font-size: 1.5em;
vertical-align: middle; vertical-align: middle;
margin-left: .2em; margin-left: .2em;
} }
#listing.list .item.header { #listing.list .item.header {
display: flex !important; display: flex !important;
background: #f8f8f8; background: #f8f8f8;
position: fixed; position: fixed;
width: calc(100% - 19em); width: calc(100% - 19em);
top: 4em; top: 4em;
right: 1em; right: 1em;
z-index: 999; z-index: 999;
padding: .85em; padding: .85em;
border: 0; border: 0;
border-bottom: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1);
} }
#listing.list .item.header>div:first-child { #listing.list .item.header>div:first-child {
width: 0; width: 0;
} }
#listing.list .item.header .name { #listing.list .item.header .name {
margin-right: 3em; margin-right: 3em;
} }
#listing.list .header a { #listing.list .header a {
color: inherit; color: inherit;
} }
#listing.list .item.header>div:first-child { #listing.list .item.header>div:first-child {
width: 0; width: 0;
} }
#listing.list .name { #listing.list .name {
font-weight: normal; font-weight: normal;
} }
#listing.list .item.header .name { #listing.list .item.header .name {
margin-right: 3em; margin-right: 3em;
} }
#listing.list .header span { #listing.list .header span {
vertical-align: middle; vertical-align: middle;
} }
#listing.list .header i { #listing.list .header i {
opacity: 0; opacity: 0;
transition: .1s ease all; transition: .1s ease all;
} }
#listing.list .header p:hover i, #listing.list .header p:hover i,
#listing.list .header .active i { #listing.list .header .active i {
opacity: 1; opacity: 1;
} }
#listing.list .item.header .active { #listing.list .item.header .active {
font-weight: bold; font-weight: bold;
} }
#listing #multiple-selection { #listing #multiple-selection {
position: fixed; position: fixed;
bottom: -4em; bottom: -4em;
left: 0; left: 0;
z-index: 99999; z-index: 99999;
width: 100%; width: 100%;
background-color: #2196f3; background-color: #2196f3;
height: 4em; height: 4em;
display: flex !important; display: flex !important;
padding: 0.5em 0.5em 0.5em 1em; padding: 0.5em 0.5em 0.5em 1em;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
transition: .2s ease bottom; transition: .2s ease bottom;
} }
#listing #multiple-selection.active { #listing #multiple-selection.active {
bottom: 0; bottom: 0;
} }
#listing #multiple-selection p, #listing #multiple-selection p,
#listing #multiple-selection i { #listing #multiple-selection i {
color: #fff; color: #fff;
} }

View File

@ -19,12 +19,19 @@
height: 100%; height: 100%;
width: 13em; width: 13em;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
transition: .2s ease-in-out left;
left: -14em;
} }
header>div:first-child>.action {
#listing.list .item.header, main { display: inherit;
}
header img {
display: none;
}
#listing.list .item.header,
main {
width: calc(100% - 2em); width: calc(100% - 2em);
} }
main { main {
margin: 0 1em; margin: 0 1em;
width: calc(100% - 2em); width: calc(100% - 2em);

View File

@ -1,67 +1,67 @@
.prompt { .prompt {
position: fixed; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
background: #fff; background: #fff;
border: 1px solid rgba(0, 0, 0, 0.075); border: 1px solid rgba(0, 0, 0, 0.075);
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
padding: 2em; padding: 2em;
max-width: 25em; max-width: 25em;
width: 90%; width: 90%;
max-height: 95%; max-height: 95%;
z-index: 99999; z-index: 99999;
animation: .1s show forwards; animation: .1s show forwards;
} }
.overlay { .overlay {
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
height: 100%; height: 100%;
width: 100%; width: 100%;
z-index: 9999; z-index: 9999;
animation: .1s show forwards; animation: .1s show forwards;
} }
.prompt h3 { .prompt h3 {
margin: 0; margin: 0;
font-weight: 500; font-weight: 500;
font-size: 1.5em; font-size: 1.5em;
} }
.prompt p { .prompt p {
font-size: .9em; font-size: .9em;
color: rgba(0, 0, 0, 0.8); color: rgba(0, 0, 0, 0.8);
margin: .5em 0 1em; margin: .5em 0 1em;
} }
.prompt input { .prompt input {
width: 100%; width: 100%;
border: 1px solid #dadada; border: 1px solid #dadada;
line-height: 1; line-height: 1;
padding: .3em; padding: .3em;
} }
.prompt code { .prompt code {
word-wrap: break-word; word-wrap: break-word;
} }
.prompt div { .prompt div {
margin-top: 1em; margin-top: 1em;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
flex-direction: row-reverse; flex-direction: row-reverse;
} }
.prompt .cancel { .prompt .cancel {
background-color: #ECEFF1; background-color: #ECEFF1;
color: #37474F; color: #37474F;
} }
.prompt .cancel:hover { .prompt .cancel:hover {
background-color: #e9eaeb; background-color: #e9eaeb;
} }
@ -70,83 +70,83 @@
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
.file-list { .file-list {
max-height: 50vh; max-height: 50vh;
overflow: auto; overflow: auto;
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
width: 100%; width: 100%;
} }
.file-list li { .file-list li {
width: 100%; width: 100%;
user-select: none; user-select: none;
border-radius: .2em; border-radius: .2em;
padding: .3em; padding: .3em;
} }
.file-list li[aria-selected=true] { .file-list li[aria-selected=true] {
background: #2196f3 !important; background: #2196f3 !important;
color: #fff !important; color: #fff !important;
transition: .1s ease all; transition: .1s ease all;
} }
.file-list li:hover { .file-list li:hover {
background-color: #e9eaeb; background-color: #e9eaeb;
cursor: pointer; cursor: pointer;
} }
.file-list li:before { .file-list li:before {
content: "folder"; content: "folder";
color: #6f6f6f; color: #6f6f6f;
vertical-align: middle; vertical-align: middle;
line-height: 1.4; line-height: 1.4;
font-family: 'Material Icons'; font-family: 'Material Icons';
font-size: 1.75em; font-size: 1.75em;
margin-right: .25em; margin-right: .25em;
} }
.file-list li[aria-selected=true]:before { .file-list li[aria-selected=true]:before {
color: white; color: white;
} }
.prompt#download { .prompt#download {
max-width: 15em; max-width: 15em;
} }
.prompt#download button { .prompt#download button {
width: 100%; width: 100%;
display: block; display: block;
margin: 0 0 1em; margin: 0 0 1em;
background-color: #ECEFF1; background-color: #ECEFF1;
color: #37474F; color: #37474F;
} }
.prompt#download button:last-of-type { .prompt#download button:last-of-type {
margin-bottom: 0; margin-bottom: 0;
} }
.help { .help {
max-width: 24em; max-width: 24em;
} }
.help ul { .help ul {
padding: 0; padding: 0;
margin: 1em 0; margin: 1em 0;
list-style: none; list-style: none;
} }
@keyframes show { @keyframes show {
0% { 0% {
display: none; display: none;
opacity: 0; opacity: 0;
} }
1% { 1% {
display: block; display: block;
opacity: 0; opacity: 0;
} }
100% { 100% {
display: block; display: block;
opacity: 1; opacity: 1;
} }
} }

View File

@ -5,187 +5,179 @@
@import "./prompts.css"; @import "./prompts.css";
@import "./listing.css"; @import "./listing.css";
/* * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * *
* ACTION * * ACTION *
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
.action { .action {
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
transition: 0.2s ease all; transition: 0.2s ease all;
border: 0; border: 0;
margin: 0; margin: 0;
color: #546E7A; color: #546E7A;
border-radius: 50%; border-radius: 50%;
background: transparent; background: transparent;
padding: 0; padding: 0;
box-shadow: 0 0 0 0; box-shadow: 0 0 0 0;
vertical-align: middle; vertical-align: middle;
text-align: left; text-align: left;
position: relative; position: relative;
} }
.action.disabled { .action.disabled {
opacity: 0.2; opacity: 0.2;
cursor: not-allowed; cursor: not-allowed;
} }
.action i { .action i {
padding: 0.4em; padding: 0.4em;
-webkit-transition: 0.2s ease-in-out all; -webkit-transition: 0.2s ease-in-out all;
transition: 0.2s ease-in-out all; transition: 0.2s ease-in-out all;
border-radius: 50%; border-radius: 50%;
} }
.action:hover { .action:hover {
background-color: rgba(0, 0, 0, .1); background-color: rgba(0, 0, 0, .1);
} }
.action ul { .action ul {
position: absolute; position: absolute;
top: 0; top: 0;
color: #7d7d7d; color: #7d7d7d;
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
flex-direction: column; flex-direction: column;
display: flex; display: flex;
} }
.action ul li { .action ul li {
line-height: 1; line-height: 1;
padding: .7em; padding: .7em;
transition: .1s ease background-color; transition: .1s ease background-color;
} }
.action ul li:hover { .action ul li:hover {
background-color: rgba(0, 0, 0, 0.04); background-color: rgba(0, 0, 0, 0.04);
} }
#click-overlay { #click-overlay {
display: none; display: none;
position: fixed; position: fixed;
cursor: pointer; cursor: pointer;
top: 0; top: 0;
left: 0; left: 0;
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
#click-overlay.active { #click-overlay.active {
display: block; display: block;
} }
.action .counter { .action .counter {
display: block; display: block;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0; right: 0;
background: #2196f3; background: #2196f3;
color: #fff; color: #fff;
border-radius: 50%; border-radius: 50%;
font-size: .75em; font-size: .75em;
width: 1.5em; width: 1.5em;
height: 1.5em; height: 1.5em;
text-align: center; text-align: center;
line-height: 1.25em; line-height: 1.25em;
border: 2px solid white; border: 2px solid white;
} }
/* PREVIEWER */ /* PREVIEWER */
#previewer { #previewer {
background-color: rgba(0, 0, 0, 0.9); background-color: rgba(0, 0, 0, 0.9);
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 9999; z-index: 9999;
overflow: hidden; overflow: hidden;
} }
#previewer .bar { #previewer .bar {
width: 100%; width: 100%;
text-align: right; text-align: right;
display: flex; display: flex;
padding: 0.5em 0.5em 0.5em 1em; padding: 0.5em 0.5em 0.5em 1em;
height: 3.7em; height: 3.7em;
} }
#previewer .action:first-of-type { #previewer .action:first-of-type {
margin-right: auto; margin-right: auto;
} }
#previewer .action i { #previewer .action i {
color: #fff; color: #fff;
} }
#previewer .action:hover { #previewer .action:hover {
background-color: rgba(255, 255, 255, 0.3) background-color: rgba(255, 255, 255, 0.3)
} }
#previewer .action span { #previewer .action span {
display: none; display: none;
} }
#previewer .preview { #previewer .preview {
margin: 2em auto 4em; margin: 2em auto 4em;
max-width: 80%; max-width: 80%;
text-align: center; text-align: center;
height: calc(100vh - 9.7em); height: calc(100vh - 9.7em);
} }
#previewer .preview pre { #previewer .preview pre {
text-align: left; text-align: left;
overflow: auto; overflow: auto;
} }
#previewer .preview pre, #previewer .preview pre,
#previewer .preview video, #previewer .preview video,
#previewer .preview img { #previewer .preview img {
max-height: 100%; max-height: 100%;
margin: 0; margin: 0;
} }
#previewer .pdf { #previewer .pdf {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
#previewer h2.message { #previewer h2.message {
color: rgba(255,255,255,0.5) color: rgba(255, 255, 255, 0.5)
} }
/* * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * *
* PROMPT * * PROMPT *
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * *
* FOOTER * * FOOTER *
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
.credits { .credits {
font-size: 0.6em; font-size: 0.6em;
margin: 3em 2.5em; margin: 3em 2.5em;
color: #a5a5a5; color: #a5a5a5;
} }
.credits a, .credits a,
.credits a:hover { .credits a:hover {
color: inherit; color: inherit;
cursor: pointer; cursor: pointer;
} }
@ -194,10 +186,10 @@
* * * * * * * * * * * * * * * */ * * * * * * * * * * * * * * * */
@keyframes spin { @keyframes spin {
100% { 100% {
-webkit-transform: rotate(-360deg); -webkit-transform: rotate(-360deg);
transform: rotate(-360deg); transform: rotate(-360deg);
} }
} }
@import './mobile.css'; @import './mobile.css';