css lint
This commit is contained in:
1 parent
537fe27f2e
commit
3c0383d500
13 files changed
+249
-294
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/* EDITOR GENERAL STYLES */
|
||||
.editor .sidebar {
|
||||
.editor .frontmatter {
|
||||
overflow-y : auto;
|
||||
overflow-x : hidden;
|
||||
color : #37474f;
|
||||
@@ -7,27 +7,16 @@
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
.editor .container {
|
||||
overflow : hidden;
|
||||
width : 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.full .container {
|
||||
position: fixed;
|
||||
top : 3em;
|
||||
right : 0;
|
||||
width : 75%;
|
||||
height : calc(100% - 6em);
|
||||
}
|
||||
|
||||
.editor .sidebar h2 {
|
||||
.editor .frontmatter h2 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.editor #content-area {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.editor #preview-area,
|
||||
.editor textarea,
|
||||
.CodeMirror {
|
||||
.editor .CodeMirror {
|
||||
position : relative;
|
||||
box-sizing: border-box;
|
||||
height : 100%;
|
||||
@@ -37,40 +26,16 @@
|
||||
font-size : 1.05em;
|
||||
}
|
||||
|
||||
.CodeMirror {
|
||||
.editor .CodeMirror {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.cm-s-mdn-like.CodeMirror {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.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 .cm-s-mdn-like.CodeMirror {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.editor h3 {
|
||||
@@ -79,7 +44,7 @@
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.action-bar {
|
||||
.toolbar {
|
||||
position : fixed;
|
||||
bottom : 0;
|
||||
right : 0;
|
||||
@@ -92,11 +57,11 @@
|
||||
z-index : 999;
|
||||
}
|
||||
|
||||
.action-bar .left {
|
||||
.toolbar .left {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.action-bar *:last-child {
|
||||
.toolbar *:last-child {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
@@ -106,7 +71,7 @@
|
||||
height: calc(100% - 6em);
|
||||
}
|
||||
|
||||
.frontmatter-only .sidebar {
|
||||
.frontmatter-only .frontmatter {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -123,8 +88,8 @@
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.frontmatter-only .action-bar input,
|
||||
.frontmatter-only .action-bar input:focus {
|
||||
.frontmatter-only .toolbar input,
|
||||
.frontmatter-only .toolbar input:focus {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -150,13 +115,13 @@ input:-ms-input-placeholder {
|
||||
}
|
||||
|
||||
/* EDITOR CONTENT ONLY STYLES */
|
||||
.content-only #content-area,
|
||||
.content-only #preview-area {
|
||||
.editor.content-only #content-area,
|
||||
.editor.content-only #preview-area {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* EDITOR FULL STYLES */
|
||||
.full .sidebar {
|
||||
.editor.complete .frontmatter {
|
||||
position : fixed;
|
||||
left : 0;
|
||||
top : 3em;
|
||||
@@ -167,12 +132,22 @@ input:-ms-input-placeholder {
|
||||
height : calc(100% - 3em);
|
||||
}
|
||||
|
||||
.full .action-bar {
|
||||
.editor.complete .container {
|
||||
position : fixed;
|
||||
top : 3em;
|
||||
right : 0;
|
||||
width : 75%;
|
||||
max-width: none;
|
||||
height : calc(100% - 6em);
|
||||
margin : 1.5em auto;
|
||||
}
|
||||
|
||||
.editor.complete .toolbar {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.full .cm-s-mdn-like.CodeMirror {
|
||||
.editor.complete .cm-s-mdn-like.CodeMirror {
|
||||
width : auto;
|
||||
margin: 3em 10%;
|
||||
height: calc(100% - 6em);
|
||||
margin: 0 10%;
|
||||
height: calc(100% - 3em);
|
||||
}
|
||||
Reference in new issue
Block a user