updates
This commit is contained in:
parent
ce74cab3a6
commit
92d7a5870c
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,145 @@
|
|||
/* EDITOR GENERAL STYLES */
|
||||
.editor .sidebar {
|
||||
overflow-y : auto;
|
||||
overflow-x : hidden;
|
||||
color : #37474f;
|
||||
box-sizing : border-box;
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
.editor .container {
|
||||
overflow : hidden;
|
||||
width : 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.editor.full .container {
|
||||
position: fixed;
|
||||
top : 3em;
|
||||
right : 0;
|
||||
width : 75%;
|
||||
height : calc(100% - 6em);
|
||||
}
|
||||
|
||||
.editor .sidebar h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.editor #preview-area,
|
||||
.editor textarea {
|
||||
position : relative;
|
||||
box-sizing: border-box;
|
||||
height : 100%;
|
||||
width : 100%;
|
||||
border : 0;
|
||||
padding : 1.5em 10%;
|
||||
font-size : 1.05em;
|
||||
}
|
||||
|
||||
.editor #preview-area *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.editor textarea {
|
||||
resize : none;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.editor textarea:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.editor input {
|
||||
width : 100%;
|
||||
background-color: rgba(0, 0, 0, 0.25);
|
||||
color : rgba(255, 255, 255, 0.3);
|
||||
border : 0;
|
||||
border-radius : 5px;
|
||||
padding : .5em 1em;
|
||||
box-sizing : border-box;
|
||||
}
|
||||
|
||||
.editor input:focus {
|
||||
color : rgba(255, 255, 255, 0.7);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.editor h3 {
|
||||
font-size : 1em;
|
||||
margin : 0 0 .25em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.action-bar {
|
||||
position : fixed;
|
||||
bottom : 0;
|
||||
right : 0;
|
||||
width : 100%;
|
||||
background-color: #455a64;
|
||||
height : 3em;
|
||||
display : flex;
|
||||
padding : .5em 1em;
|
||||
box-sizing : border-box;
|
||||
z-index : 999;
|
||||
}
|
||||
|
||||
.action-bar .left {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.action-bar *:last-child {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
/* EDITOR FRONTMATTER ONLY STYLES */
|
||||
.frontmatter-only .box,
|
||||
.content-only .box {
|
||||
height: calc(100% - 6em);
|
||||
}
|
||||
|
||||
.frontmatter-only .sidebar {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.frontmatter-only input {
|
||||
color: rgba(255,255,255,.4);
|
||||
}
|
||||
|
||||
.frontmatter-only input:focus {
|
||||
color: rgba(255,255,255,.85);
|
||||
}
|
||||
|
||||
.frontmatter-only .action-bar input,
|
||||
.frontmatter-only .action-bar input:focus {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.frontmatter-only fieldset {
|
||||
border-top: 1px solid rgba(0,0,0,.1);
|
||||
}
|
||||
|
||||
.frontmatter-only h3 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
/* EDITOR CONTENT ONLY STYLES */
|
||||
.content-only #content-area,
|
||||
.content-only #preview-area {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* EDITOR FULL STYLES */
|
||||
.full .sidebar {
|
||||
position : fixed;
|
||||
left : 0;
|
||||
top : 3em;
|
||||
width : 25%;
|
||||
padding : 1.5em 1em;
|
||||
background-color: #37474f;
|
||||
color : #ddd;
|
||||
height : calc(100% - 3em);
|
||||
}
|
||||
|
||||
.full .action-bar {
|
||||
width: 75%;
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
/* FORMS ELEMENTS */
|
||||
form input {
|
||||
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;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
form input:focus {
|
||||
color : inherit;
|
||||
outline : 0;
|
||||
border-bottom: 1px solid #2196f3;
|
||||
}
|
||||
|
||||
form label {
|
||||
width : 10.5em;
|
||||
display: inline-block;
|
||||
margin : .1em 0 0;
|
||||
}
|
||||
|
||||
form fieldset {
|
||||
border : 0;
|
||||
margin : 1em 0 0;
|
||||
padding : 1em 0 0;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
form legend {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
input[type="file"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button,
|
||||
input[type="submit"] {
|
||||
border : 0;
|
||||
color : #fff;
|
||||
margin : 0;
|
||||
padding : .5em 1em;
|
||||
border-radius : 10px;
|
||||
font-size : .9em;
|
||||
width : auto;
|
||||
line-height : 1em;
|
||||
background-color: #bbb;
|
||||
transition : .3s ease all;
|
||||
}
|
||||
|
||||
button,
|
||||
input[type="submit"],
|
||||
button:active,
|
||||
input[type="submit"]:active,
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
button:focus,
|
||||
input[type="submit"]:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
button:active,
|
||||
input[type="submit"]:active,
|
||||
button:focus,
|
||||
input[type="submit"]:focus {
|
||||
background-color: #999;
|
||||
color : #fff;
|
||||
}
|
||||
|
||||
button.default,
|
||||
input[type="submit"].default {
|
||||
background-color: #2196f3;
|
||||
}
|
||||
|
||||
button.default:hover,
|
||||
input[type="submit"].default:hover,
|
||||
button.default:active,
|
||||
input[type="submit"].default:active {
|
||||
background-color: #1e88e5;
|
||||
}
|
||||
|
||||
button.add {
|
||||
vertical-align: middle;
|
||||
border-radius : 50%;
|
||||
height : 1.5em;
|
||||
width : 1.5em;
|
||||
font-size : .7em;
|
||||
padding : 0;
|
||||
opacity : 0;
|
||||
}
|
||||
|
||||
h3:hover > button.add {
|
||||
opacity: 1;
|
||||
}
|
|
@ -69,7 +69,7 @@ nav ul li a:hover {
|
|||
left : 0;
|
||||
width : 100%;
|
||||
height : calc(100% - 3em);
|
||||
overflow: auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
header {
|
||||
|
@ -111,248 +111,8 @@ main {
|
|||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* EDITOR GENERAL STYLES */
|
||||
.editor .sidebar {
|
||||
overflow-y : auto;
|
||||
overflow-x : hidden;
|
||||
color : #37474f;
|
||||
box-sizing : border-box;
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
.editor .container {
|
||||
overflow : hidden;
|
||||
width : 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.editor.full .container {
|
||||
position: fixed;
|
||||
top : 3em;
|
||||
right : 0;
|
||||
width : 75%;
|
||||
height : calc(100% - 6em);
|
||||
}
|
||||
|
||||
.editor .sidebar h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.editor #preview-area,
|
||||
.editor textarea {
|
||||
position : relative;
|
||||
box-sizing: border-box;
|
||||
height : 100%;
|
||||
width : 100%;
|
||||
border : 0;
|
||||
padding : 1.5em 10%;
|
||||
font-size : 1.05em;
|
||||
}
|
||||
|
||||
.editor #preview-area *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.editor textarea {
|
||||
resize : none;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.editor textarea:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.editor input {
|
||||
width : 100%;
|
||||
background-color: rgba(0, 0, 0, 0.25);
|
||||
color : rgba(255, 255, 255, 0.3);
|
||||
border : 0;
|
||||
border-radius : 5px;
|
||||
padding : .5em 1em;
|
||||
box-sizing : border-box;
|
||||
}
|
||||
|
||||
.editor input:focus {
|
||||
color : rgba(255, 255, 255, 0.7);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.editor h3 {
|
||||
font-size : 1em;
|
||||
margin : 0 0 .25em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.action-bar {
|
||||
position : fixed;
|
||||
bottom : 0;
|
||||
right : 0;
|
||||
width : 100%;
|
||||
background-color: #455a64;
|
||||
height : 3em;
|
||||
display : flex;
|
||||
padding : .5em 1em;
|
||||
box-sizing : border-box;
|
||||
z-index : 999;
|
||||
}
|
||||
|
||||
.action-bar .left {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.action-bar *:last-child {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
/* EDITOR FRONTMATTER ONLY STYLES */
|
||||
.frontmatter-only .box,
|
||||
.content-only .box {
|
||||
height: calc(100% - 6em);
|
||||
}
|
||||
|
||||
.frontmatter-only .sidebar {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.frontmatter-only input {
|
||||
color: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.frontmatter-only input:focus {
|
||||
color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.frontmatter-only .action-bar input,
|
||||
.frontmatter-only .action-bar input:focus {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.frontmatter-only fieldset {
|
||||
border-top: 1px solid rgba(0,0,0,.1);
|
||||
}
|
||||
|
||||
.frontmatter-only h3 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
/* EDITOR CONTENT ONLY STYLES */
|
||||
.content-only #content-area,
|
||||
.content-only #preview-area {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* EDITOR FULL STYLES */
|
||||
.full .sidebar {
|
||||
position : fixed;
|
||||
left : 0;
|
||||
top : 3em;
|
||||
width : 25%;
|
||||
padding : 1.5em 1em;
|
||||
background-color: #37474f;
|
||||
color : #ddd;
|
||||
height : calc(100% - 3em);
|
||||
}
|
||||
|
||||
.full .action-bar {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
/* FORMS ELEMENTS */
|
||||
form input {
|
||||
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;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
form input:focus {
|
||||
color : inherit;
|
||||
outline : 0;
|
||||
border-bottom: 1px solid #2196f3;
|
||||
}
|
||||
|
||||
form label {
|
||||
width : 10.5em;
|
||||
display: inline-block;
|
||||
margin : .1em 0 0;
|
||||
}
|
||||
|
||||
form fieldset {
|
||||
border : 0;
|
||||
margin : 1em 0 0;
|
||||
padding : 1em 0 0;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
form legend {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
input[type="file"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button,
|
||||
input[type="submit"] {
|
||||
border : 0;
|
||||
color : #fff;
|
||||
margin : 0;
|
||||
padding : .5em 1em;
|
||||
border-radius : 10px;
|
||||
font-size : .9em;
|
||||
width : auto;
|
||||
line-height : 1em;
|
||||
background-color: #bbb;
|
||||
transition : .3s ease all;
|
||||
}
|
||||
|
||||
button,
|
||||
input[type="submit"],
|
||||
button:active,
|
||||
input[type="submit"]:active,
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
button:focus,
|
||||
input[type="submit"]:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
button:active,
|
||||
input[type="submit"]:active {
|
||||
background-color: #999;
|
||||
}
|
||||
|
||||
button.default,
|
||||
input[type="submit"].default {
|
||||
background-color: #2196f3;
|
||||
}
|
||||
|
||||
button.default:hover,
|
||||
input[type="submit"].default:hover,
|
||||
button.default:active,
|
||||
input[type="submit"].default:active {
|
||||
background-color: #1e88e5;
|
||||
}
|
||||
|
||||
button.add {
|
||||
vertical-align: middle;
|
||||
border-radius : 50%;
|
||||
height : 1.5em;
|
||||
width : 1.5em;
|
||||
font-size : .7em;
|
||||
padding : 0;
|
||||
opacity : 0;
|
||||
}
|
||||
|
||||
h3:hover > button.add {
|
||||
opacity: 1;
|
||||
}
|
||||
@import 'editor';
|
||||
@import 'forms';
|
||||
|
||||
/* BROWSE */
|
||||
.left {
|
||||
|
|
Loading…
Reference in New Issue