css lint
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
$(document).ready(function() {
|
||||
$(document).pjax('a', '#main');
|
||||
$(document).pjax('a', '#content');
|
||||
});
|
||||
|
||||
$(document).on('ready pjax:success', function() {
|
||||
|
||||
32
assets/src/sass/_browse.scss
Normal file
32
assets/src/sass/_browse.scss
Normal file
@@ -0,0 +1,32 @@
|
||||
.browse a {
|
||||
color : inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.browse table {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.browse .actions {
|
||||
background-color: #455a64;
|
||||
color : #fff;
|
||||
padding : 1.5em 0;
|
||||
}
|
||||
|
||||
.browse .actions .container {
|
||||
margin : 0 auto;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.browse .actions .fa {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.browse .actions .go-right {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.browse tr {
|
||||
line-height : 2em;
|
||||
border-bottom: 1px solid rgba(0,0,0,0.03);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -1,18 +1,21 @@
|
||||
/* FORMS ELEMENTS */
|
||||
form input {
|
||||
color : rgba(0, 0, 0, 0.41);
|
||||
width : 15em;
|
||||
line-height : 1.25em;
|
||||
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;
|
||||
margin : .5em 0;
|
||||
border : 1px solid #fff;
|
||||
line-height : 1.25em;
|
||||
transition : .5s ease-out all;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
form input:focus {
|
||||
color : inherit;
|
||||
outline : 0;
|
||||
border-bottom: 1px solid #2196f3;
|
||||
color : rgba(255, 255, 255, 0.7);
|
||||
border : 0;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
form label {
|
||||
@@ -28,10 +31,6 @@ form fieldset {
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
form legend {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
input[type="file"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
49
assets/src/sass/_navigation.scss
Normal file
49
assets/src/sass/_navigation.scss
Normal file
@@ -0,0 +1,49 @@
|
||||
nav {
|
||||
position : fixed;
|
||||
top : 0;
|
||||
left : 0;
|
||||
height : 3em;
|
||||
width : 100%;
|
||||
background-color: #263238;
|
||||
padding : 0 1em;
|
||||
box-sizing : border-box;
|
||||
z-index : 999;
|
||||
color : #eee;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
margin : 0;
|
||||
padding: 0;
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
list-style-type: none;
|
||||
display : inline-block;
|
||||
vertical-align : middle;
|
||||
}
|
||||
|
||||
nav ul li:last-child {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
nav img {
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
nav ul li a {
|
||||
padding : .5em;
|
||||
line-height : 2em;
|
||||
display : block;
|
||||
text-decoration: none;
|
||||
color : inherit;
|
||||
transition : .5s ease background-color;
|
||||
}
|
||||
|
||||
nav ul li a:hover {
|
||||
background-color: rgba(255, 255, 255, 0.57);
|
||||
}
|
||||
@@ -1,69 +1,20 @@
|
||||
@import "navigation";
|
||||
@import "scrollbar";
|
||||
@import "notifications";
|
||||
@import "animations";
|
||||
@import 'editor';
|
||||
@import 'forms';
|
||||
@import "browse";
|
||||
|
||||
body {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
color : #212121;
|
||||
height : 100%;
|
||||
width : 100%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: .83em 0;
|
||||
}
|
||||
|
||||
nav {
|
||||
position : fixed;
|
||||
top : 0;
|
||||
left : 0;
|
||||
height : 3em;
|
||||
font-family : 'Roboto', sans-serif;
|
||||
color : #212121;
|
||||
background-color: #ddd;
|
||||
height : 100%;
|
||||
width : 100%;
|
||||
background-color: #263238;
|
||||
padding : 0 1em;
|
||||
box-sizing : border-box;
|
||||
z-index : 999;
|
||||
color : #eee;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
list-style-type: none;
|
||||
display : inline-block;
|
||||
vertical-align : middle;
|
||||
}
|
||||
|
||||
nav ul li:last-child {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
nav img {
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
nav ul li a {
|
||||
padding : .5em;
|
||||
line-height : 2em;
|
||||
display : block;
|
||||
text-decoration: none;
|
||||
color : inherit;
|
||||
transition : .5s ease background-color;
|
||||
}
|
||||
|
||||
nav ul li a:hover {
|
||||
background-color: rgba(255, 255, 255, 0.57);
|
||||
}
|
||||
|
||||
.box {
|
||||
#content {
|
||||
position: fixed;
|
||||
top : 3em;
|
||||
left : 0;
|
||||
@@ -72,6 +23,16 @@ nav ul li a:hover {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.full {
|
||||
position: fixed;
|
||||
height : calc(100% - 3em);
|
||||
width : 100%;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: .83em 0;
|
||||
}
|
||||
|
||||
header {
|
||||
color : #fff;
|
||||
background-color: #37474f;
|
||||
@@ -82,27 +43,7 @@ header h1 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
main {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.content {
|
||||
.container {
|
||||
margin : 1.5em auto;
|
||||
width : 80%;
|
||||
max-width: 800px;
|
||||
@@ -111,50 +52,11 @@ main {
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
@import 'editor';
|
||||
@import 'forms';
|
||||
|
||||
/* 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);
|
||||
}
|
||||
@import "scrollbar";
|
||||
@import "notifications";
|
||||
@import "animations";
|
||||
}
|
||||
Reference in New Issue
Block a user