html,body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: #000;
background-size: contain;
background-position: bottom left;
}
html,body,input,button,textarea,.fileUploadButton {
font-size: 12px;
font-family: sans-serif;
}
.header {
width: 100%;
padding: 5px;
background: black;
color: white;
}
/* modal */
.modal {
width: 100%;
height: 100%;
position: fixed;
top: 0; left: 0;
background: rgba(0,0,0,0.9);
display: none;
}
.modal.visible {
display: block;
}
.modal .inner {
padding: 10px;
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(-50%,-50%,0);
background: white;
border-radius: 2px;
}
/* forms */
h1 {
margin-top: 0;
}
.form > div {
margin-bottom: 10px;
}
label {
width: 150px;
display: inline-block;
}
input {
width: 200px;
border: 1px solid #888;
padding: 5px;
}
textarea {
width: 320px;
height: 160px;
padding: 5px;
border: 1px solid #888;
margin-top: 10px;
}
/* file browser */
.folders, .folder {
background: white;
margin: 5px;
border: 1px solid #888;
max-width: 400px;
}
.list .name {
cursor: pointer;
color: #08f;
text-decoration: underline;
min-width: 200px;
}
.list div {
padding: 5px;
}
.list > div:nth-child(2n+1) {
background: white;
}
.list > div:nth-child(2n+2) {
background: #f8f8f8;
}
.list > div:hover {
background: #eee;
}
.list > div > span {
display: inline-block;
}
.heading {
display: flex;
flex-direction: row;
justify-content: center;
align-content: center;
background: #333;
color: white;
}
.heading b {
padding: 5px;
}
.heading > div {
flex: 1;
}
.heading .buttons {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-content: flex-end;
}
button,
.fileUploadButton {
position: relative;
overflow: hidden;
padding: 5px;
display: inline-block;
background: #888;
color: white;
border: 0;
margin-left: 1px;
cursor: pointer;
}
.desktop button:hover,
.desktop .fileUploadButton:hover {
background: #666;
}
button:first-child {
margin: 0;
}
.fileUploadButton input {
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.fileUploadButton span {
cursor: pointer;
}