filebrowser/assets/css/src/sass/main.scss

343 lines
5.5 KiB
SCSS
Raw Normal View History

2015-09-13 19:37:20 +00:00
body {
font-family: 'Roboto', sans-serif;
2015-09-17 16:41:31 +00:00
color : #212121;
height : 100%;
width : 100%;
2015-09-13 19:37:20 +00:00
}
2015-09-15 18:26:18 +00:00
h2 {
margin: .83em 0;
}
2015-09-17 16:41:31 +00:00
nav {
position : fixed;
top : 0;
left : 0;
height : 3em;
width : 100%;
2015-09-15 10:59:48 +00:00
background-color: #263238;
2015-09-17 16:41:31 +00:00
padding : 0 1em;
box-sizing : border-box;
z-index : 999;
color : #eee;
2015-09-14 17:18:26 +00:00
}
2015-09-17 16:41:31 +00:00
nav ul {
margin : 0;
padding: 0;
display: -webkit-box;
/* OLD - iOS 6-, Safari 3.1-6 */
display: -moz-box;
/* OLD - Firefox 19- (buggy but mostly works) */
display: -ms-flexbox;
/* TWEENER - IE 10 */
display: -webkit-flex;
/* NEW - Chrome */
display: flex;
2015-09-14 17:18:26 +00:00
}
2015-09-17 16:41:31 +00:00
nav ul li {
list-style-type: none;
2015-09-17 16:41:31 +00:00
display : inline-block;
vertical-align : middle;
2015-09-14 17:18:26 +00:00
}
2015-09-17 16:41:31 +00:00
nav ul li:last-child {
margin-left: auto;
}
2015-09-17 16:41:31 +00:00
nav img {
2015-09-14 17:18:26 +00:00
height: 2em;
}
2015-09-17 16:41:31 +00:00
nav ul li a {
padding : .5em;
line-height : 2em;
display : block;
text-decoration: none;
2015-09-17 16:41:31 +00:00
color : inherit;
transition : .5s ease background-color;
2015-09-14 17:18:26 +00:00
}
2015-09-17 16:41:31 +00:00
nav ul li a:hover {
background-color: rgba(255, 255, 255, 0.57);
2015-09-14 17:18:26 +00:00
}
2015-09-17 16:41:31 +00:00
.main {
2015-09-15 13:00:14 +00:00
position: fixed;
2015-09-17 16:41:31 +00:00
top : 3em;
left : 0;
width : 100%;
height : calc(100% - 3em);
2015-09-15 13:00:14 +00:00
overflow: auto;
2015-09-15 10:59:48 +00:00
}
2015-09-17 16:41:31 +00:00
header {
color : #fff;
background-color: #37474f;
padding : .67em 0;
}
header h1 {
margin: 0;
}
2015-09-17 20:26:06 +00:00
footer {
background-color: #ddd;
padding : 1.5em 0;
text-align : center;
color : rgba(0,0,0,0.5);
}
footer a {
text-decoration: none;
color : inherit;
}
footer p {
margin: 0;
}
2015-09-15 13:00:14 +00:00
.content {
2015-09-17 16:41:31 +00:00
margin : 1.5em auto;
width : 80%;
2015-09-15 13:00:14 +00:00
max-width: 800px;
2015-09-15 10:59:48 +00:00
}
2015-09-15 18:26:18 +00:00
.hidden {
display: none;
}
2015-09-15 13:00:14 +00:00
/* EDITOR STYLE */
.editor .sidebar {
2015-09-17 16:41:31 +00:00
position : fixed;
left : 0;
top : 3em;
overflow-y : auto;
overflow-x : hidden;
height : calc(100% - 3em);
width : 25%;
2015-09-16 18:34:53 +00:00
background-color: #37474f;
2015-09-17 16:41:31 +00:00
color : #ddd;
box-sizing : border-box;
padding : 1.5em 1em;
2015-09-15 10:59:48 +00:00
}
2015-09-15 13:00:14 +00:00
.editor .container {
2015-09-17 16:41:31 +00:00
position : fixed;
top : 3em;
right : 0;
overflow : hidden;
height : calc(100% - 6em);
width : 75%;
2015-09-15 13:00:14 +00:00
box-sizing: border-box;
2015-09-15 10:59:48 +00:00
}
2015-09-15 18:26:18 +00:00
.editor .sidebar h2 {
2015-09-15 10:59:48 +00:00
margin-top: 0;
}
2015-09-16 18:34:53 +00:00
.editor #preview-area,
.editor textarea {
2015-09-17 16:41:31 +00:00
position : relative;
2015-09-15 13:00:14 +00:00
box-sizing: border-box;
2015-09-17 16:41:31 +00:00
height : 100%;
width : 100%;
border : 0;
padding : 1.5em 10%;
font-size : 1.05em;
2015-09-15 13:00:14 +00:00
}
2015-09-15 18:26:18 +00:00
.editor #preview-area *:first-child {
margin-top: 0;
}
.editor textarea {
2015-09-17 16:41:31 +00:00
resize : none;
2015-09-15 18:26:18 +00:00
font-family: monospace;
}
.editor textarea:focus {
outline: 0;
}
2015-09-15 13:00:14 +00:00
.editor input {
2015-09-17 16:41:31 +00:00
width : 100%;
2015-09-15 18:26:18 +00:00
background-color: rgba(0, 0, 0, 0.25);
2015-09-17 16:41:31 +00:00
color : rgba(255, 255, 255, 0.3);
border : 0;
border-radius : 5px;
padding : .5em 1em;
box-sizing : border-box;
2015-09-13 19:37:20 +00:00
}
2015-09-15 13:00:14 +00:00
.editor input:focus {
2015-09-17 16:41:31 +00:00
color : rgba(255, 255, 255, 0.7);
2015-09-15 18:26:18 +00:00
border: 0;
2015-09-13 19:37:20 +00:00
}
2015-09-15 18:26:18 +00:00
.editor h3 {
2015-09-17 16:41:31 +00:00
font-size : 1em;
2015-09-15 13:00:14 +00:00
font-weight: bold;
2015-09-17 16:41:31 +00:00
margin : 0;
2015-09-15 13:00:14 +00:00
}
.action-bar {
2015-09-17 16:41:31 +00:00
position : fixed;
bottom : 0;
right : 0;
width : 75%;
2015-09-16 18:34:53 +00:00
background-color: #455a64;
2015-09-17 16:41:31 +00:00
height : 3em;
display : flex;
padding : .5em 1em;
box-sizing : border-box;
2015-09-15 13:00:14 +00:00
}
.action-bar .left {
margin-right: auto;
}
.action-bar *:last-child {
margin-left: 1em;
2015-09-14 17:18:26 +00:00
}
2015-09-15 13:00:14 +00:00
/* FORMS ELEMENTS */
2015-09-14 17:18:26 +00:00
form input {
2015-09-17 16:41:31 +00:00
color : rgba(0, 0, 0, 0.41);
width : 15em;
line-height : 1.25em;
margin : .5em 0;
border : 1px solid #fff;
transition : .5s ease-out all;
2015-09-15 10:59:48 +00:00
background-color: transparent;
}
2015-09-14 17:18:26 +00:00
form input:focus {
2015-09-17 16:41:31 +00:00
color : inherit;
outline : 0;
2015-09-16 18:34:53 +00:00
border-bottom: 1px solid #2196f3;
2015-09-14 09:46:31 +00:00
}
2015-09-14 17:18:26 +00:00
form label {
2015-09-17 16:41:31 +00:00
width : 10.5em;
display: inline-block;
2015-09-17 16:41:31 +00:00
margin : .1em 0 0;
2015-09-15 10:59:48 +00:00
}
form fieldset {
2015-09-17 16:41:31 +00:00
border : 0;
margin : 1em 0 0;
padding : 1em 0 0;
2015-09-15 18:26:18 +00:00
border-top: 1px solid rgba(255, 255, 255, 0.25);
2015-09-15 10:59:48 +00:00
}
form legend {
font-size: 1.5em;
}
2015-09-17 20:26:06 +00:00
input[type="file"] {
display: none;
}
2015-09-16 18:34:53 +00:00
button,
input[type="submit"] {
2015-09-17 16:41:31 +00:00
border : 0;
color : #fff;
margin : 0;
padding : .5em 1em;
border-radius : 10px;
font-size : .9em;
width : auto;
line-height : 1em;
2015-09-16 18:34:53 +00:00
background-color: #bbb;
2015-09-17 16:41:31 +00:00
transition : .3s ease all;
2015-09-15 18:26:18 +00:00
}
2015-09-16 18:34:53 +00:00
button,
input[type="submit"],
button:active,
input[type="submit"]:active,
button:hover,
input[type="submit"]:hover,
button:focus,
input[type="submit"]:focus {
2015-09-15 18:26:18 +00:00
outline: 0;
}
2015-09-16 18:34:53 +00:00
button:hover,
input[type="submit"]:hover,
button:active,
input[type="submit"]:active {
2015-09-15 18:26:18 +00:00
background-color: #999;
2015-09-15 10:59:48 +00:00
}
2015-09-16 18:34:53 +00:00
button.default,
input[type="submit"].default {
background-color: #2196f3;
2015-09-15 18:26:18 +00:00
}
2015-09-16 18:34:53 +00:00
button.default:hover,
input[type="submit"].default:hover,
button.default:active,
input[type="submit"].default:active {
background-color: #1e88e5;
2015-09-15 18:26:18 +00:00
}
button.add {
vertical-align: middle;
2015-09-17 16:41:31 +00:00
border-radius : 50%;
height : 1.5em;
width : 1.5em;
font-size : .7em;
padding : 0;
opacity : 0;
2015-09-16 13:19:35 +00:00
}
h3:hover > button.add {
opacity: 1;
2015-09-16 11:18:12 +00:00
}
2015-09-17 20:26:06 +00:00
/* BROWSE */
.left {
text-align: left;
}
.right {
text-align: right;
}
.browse a {
color : inherit;
text-decoration: none;
}
.browse table {
width: 100%;
}
.browse .actions {
background-color: #455a64;
color : #fff;
padding : 1.5em 0;
}
.actions .content {
margin : 0 auto;
display: flex;
}
.actions .fa {
vertical-align: middle;
}
.actions .go-right {
margin-left: auto;
}
.browse tr {
line-height : 2em;
border-bottom: 1px solid rgba(0,0,0,0.03);
}
2015-09-16 11:18:12 +00:00
@import "scrollbar";
2015-09-16 18:34:53 +00:00
@import "notifications";