2015-07-30 14:56:53 -07:00
|
|
|
// Grav Editor
|
2016-02-26 15:54:06 -08:00
|
|
|
.grav-editor {
|
|
|
|
|
[data-grav-editor] {
|
|
|
|
|
height: 300px;
|
|
|
|
|
}
|
2015-07-30 14:56:53 -07:00
|
|
|
|
2015-08-05 18:50:45 -06:00
|
|
|
.CodeMirror-scroll {
|
|
|
|
|
margin-right: -36px;
|
|
|
|
|
padding-bottom: 36px;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 14:56:53 -07:00
|
|
|
}
|
|
|
|
|
|
2016-02-26 15:54:06 -08:00
|
|
|
.grav-editor-fullscreen {
|
2015-07-30 14:56:53 -07:00
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
right: 0;
|
2015-11-24 17:21:32 -08:00
|
|
|
z-index: 99999;
|
2016-02-26 15:54:06 -08:00
|
|
|
padding: 0 !important;
|
|
|
|
|
margin: 0 !important;
|
2015-07-30 14:56:53 -07:00
|
|
|
|
2016-02-26 15:54:06 -08:00
|
|
|
.grav-editor-content, .CodeMirror-wrap, .grav-editor-preview {
|
2015-07-30 14:56:53 -07:00
|
|
|
height: 100% !important;
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-26 15:54:06 -08:00
|
|
|
.grav-editor-toolbar, .grav-editor-toolbar ul li:first-child a, .grav-editor-toolbar-flip ul li:last-child a {
|
2015-07-30 14:56:53 -07:00
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-01 19:00:29 -08:00
|
|
|
.grav-editor-toolbar {
|
|
|
|
|
@include align-items(stretch);
|
|
|
|
|
@include display(flex);
|
|
|
|
|
@include flex-direction(row);
|
|
|
|
|
|
|
|
|
|
.grav-editor-actions {
|
2016-03-01 22:14:21 -08:00
|
|
|
@include flex(1);
|
2016-03-01 19:00:29 -08:00
|
|
|
}
|
|
|
|
|
.grav-editor-modes {
|
2016-03-01 22:19:13 -08:00
|
|
|
flex-shrink: 0;
|
2016-03-01 19:00:29 -08:00
|
|
|
ul {
|
|
|
|
|
float: right;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-26 15:54:06 -08:00
|
|
|
.grav-editor-toolbar {
|
2015-07-30 14:56:53 -07:00
|
|
|
@include clearfix;
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
&:first-child a {
|
|
|
|
|
border-top-left-radius: 4px;
|
|
|
|
|
}
|
2016-02-26 15:54:06 -08:00
|
|
|
display: inline-block;
|
2015-07-30 14:56:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
2016-02-26 15:54:06 -08:00
|
|
|
display: inline-block;
|
2015-07-30 14:56:53 -07:00
|
|
|
cursor: pointer;
|
2016-02-26 15:54:06 -08:00
|
|
|
background-color: transparent;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
padding: 0.4rem 0.8rem;
|
|
|
|
|
margin-top: -1px;
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
|
|
|
|
&, &:hover, &:active, &:focus {
|
|
|
|
|
outline: 0;
|
|
|
|
|
}
|
2016-03-01 19:00:29 -08:00
|
|
|
}
|
|
|
|
|
}
|
2015-07-30 14:56:53 -07:00
|
|
|
}
|
|
|
|
|
|
2016-03-02 16:39:54 -08:00
|
|
|
.grav-editor-hide-toolbar {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-01 19:00:29 -08:00
|
|
|
.grav-editor-toolbar .grav-editor-modes {
|
|
|
|
|
li {
|
|
|
|
|
&:first-child a {
|
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
&:last-child a {
|
|
|
|
|
border-top-right-radius: 4px;
|
|
|
|
|
}
|
2016-02-26 15:54:06 -08:00
|
|
|
}
|
|
|
|
|
|
2016-03-01 19:00:29 -08:00
|
|
|
a {
|
|
|
|
|
&:hover {
|
|
|
|
|
/*border: 1px solid transparent;
|
|
|
|
|
border-bottom: 1px solid darken($content-bg, 20%);*/
|
|
|
|
|
}
|
2016-02-26 15:54:06 -08:00
|
|
|
}
|
2015-07-30 14:56:53 -07:00
|
|
|
}
|
|
|
|
|
|
2016-02-26 15:54:06 -08:00
|
|
|
.grav-editor-toolbar-flip {
|
2015-07-30 14:56:53 -07:00
|
|
|
float: right;
|
|
|
|
|
ul li:last-child a {
|
|
|
|
|
border-top-right-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-01 19:00:29 -08:00
|
|
|
.grav-editor-content, .grav-editor-preview {
|
2015-07-30 14:56:53 -07:00
|
|
|
@include clearfix;
|
2015-11-24 16:45:20 -08:00
|
|
|
cursor: text;
|
2015-07-30 14:56:53 -07:00
|
|
|
}
|
|
|
|
|
|
2016-03-03 11:26:13 -08:00
|
|
|
.grav-editor-content {
|
|
|
|
|
|
2016-03-03 11:41:16 -08:00
|
|
|
/* PADDING */
|
|
|
|
|
.CodeMirror-lines {
|
|
|
|
|
padding: 10px 0; /* Vertical padding around content */
|
2016-03-03 11:26:13 -08:00
|
|
|
}
|
|
|
|
|
|
2016-03-03 11:41:16 -08:00
|
|
|
.CodeMirror pre {
|
|
|
|
|
padding: 0 15px; /* Horizontal padding of content */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.CodeMirror .CodeMirror-code > div pre {
|
|
|
|
|
padding: 0 4px; /* Horizontal padding of content with gutter / linenumbers */
|
|
|
|
|
}
|
2016-03-03 11:26:13 -08:00
|
|
|
}
|
2015-07-30 14:56:53 -07:00
|
|
|
|
2016-02-26 15:54:06 -08:00
|
|
|
.grav-editor-preview {
|
2015-07-30 14:56:53 -07:00
|
|
|
padding: 20px;
|
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
position: relative;
|
2016-03-01 19:00:29 -08:00
|
|
|
background: #fff;
|
2015-07-30 14:56:53 -07:00
|
|
|
}
|
|
|
|
|
|
2016-02-26 15:54:06 -08:00
|
|
|
.grav-editor-toolbar {
|
2016-03-01 21:56:32 -08:00
|
|
|
[data-hint]:after {
|
|
|
|
|
white-space: nowrap !important;
|
|
|
|
|
max-width: 300px;
|
|
|
|
|
width: auto !important;
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-05 18:43:38 +02:00
|
|
|
p {
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
padding-left: 20px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-09-19 17:08:24 -06:00
|
|
|
// CodeMirror Theme
|
|
|
|
|
.cm-s-paper {
|
2016-02-25 12:22:22 -07:00
|
|
|
$paper-fg: #666;
|
|
|
|
|
$tag: darken($paper-fg, 10%);
|
2014-09-19 17:08:24 -06:00
|
|
|
|
|
|
|
|
&.CodeMirror {
|
|
|
|
|
color: $paper-fg;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-24 21:33:45 -07:00
|
|
|
.cm-link {color: #0082ba;}
|
2014-09-19 17:08:24 -06:00
|
|
|
.cm-comment {color: lighten($paper-fg,10%);}
|
2016-02-25 12:22:22 -07:00
|
|
|
.cm-header {color: darken($paper-fg,5%);}
|
|
|
|
|
.cm-strong {color: darken($paper-fg,10%);}
|
2014-09-19 17:08:24 -06:00
|
|
|
.cm-em {color: darken($paper-fg, 10%);}
|
2016-02-25 12:22:22 -07:00
|
|
|
.cm-string {color: #0082BA;}
|
2014-09-19 17:08:24 -06:00
|
|
|
.cm-tag {color: $tag}
|
|
|
|
|
.cm-bracket {color: lighten($tag, 10%);}
|
|
|
|
|
.cm-hr {color: lighten($paper-fg,40%);font-weight: bold;}
|
|
|
|
|
|
2016-02-24 21:33:45 -07:00
|
|
|
.cm-keyword {color: #0082ba;}
|
|
|
|
|
.cm-atom {color: #9055af;}
|
2014-09-19 17:08:24 -06:00
|
|
|
.cm-meta {color: $paper-fg;}
|
|
|
|
|
|
|
|
|
|
.cm-number {color: #7f8c8d;}
|
|
|
|
|
.cm-def {color: #00f;}
|
|
|
|
|
.cm-variable {color: black;}
|
2016-02-25 12:22:22 -07:00
|
|
|
//.cm-variable-2 {color: #555;}
|
|
|
|
|
//.cm-variable-3 {color: #085;}
|
2014-09-19 17:08:24 -06:00
|
|
|
.cm-property {color: black;}
|
|
|
|
|
.cm-operator {color: black;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.cm-string-2 {color: #f50;}
|
|
|
|
|
.cm-meta {color: #555;}
|
|
|
|
|
.cm-error {color: #f00;}
|
|
|
|
|
.cm-qualifier {color: #555;}
|
|
|
|
|
.cm-builtin {color: #555;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.cm-attribute {color: #7f8c8d;}
|
|
|
|
|
|
|
|
|
|
.cm-quote {color: #888;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.cm-header-1 {font-size: 140%;}
|
|
|
|
|
.cm-header-2 {font-size: 120%;}
|
|
|
|
|
.cm-header-3 {font-size: 110%;}
|
|
|
|
|
|
|
|
|
|
.cm-negative {color: #d44;}
|
|
|
|
|
.cm-positive {color: #292;}
|
|
|
|
|
.cm-header, .cm-strong {font-weight: bold;}
|
|
|
|
|
.cm-em {font-style: italic;}
|
|
|
|
|
.cm-link {text-decoration: underline;}
|
|
|
|
|
|
|
|
|
|
.cm-invalidchar {color: #f00;}
|
|
|
|
|
}
|