2017-03-28 22:45:23 +00:00
|
|
|
@import '../constants/colors';
|
|
|
|
|
2017-03-12 00:31:23 +00:00
|
|
|
/* Based on Sublime Text's Monokai theme */
|
|
|
|
.editor {
|
|
|
|
.CodeMirror {
|
|
|
|
color: var(--color-font);
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-selected {
|
|
|
|
background: var(--color-font);
|
|
|
|
opacity: 0.2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-gutters {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-guttermarker {
|
|
|
|
color: var(--color-font);
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-guttermarker-subtle {
|
|
|
|
color: var(--hl-lg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linenumber {
|
|
|
|
color: var(--hl);
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-cursor {
|
|
|
|
border-left: 1px solid var(--color-font);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-animate-fat-cursor,
|
|
|
|
&.cm-fat-cursor .CodeMirror-cursor {
|
|
|
|
background-color: rgba(255, 139, 147, 0.5) !important;
|
|
|
|
border-bottom: 2px solid #d60000 !important;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-meta,
|
|
|
|
.cm-qualifier {
|
|
|
|
color: var(--color-font);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-atom {
|
|
|
|
color: var(--color-surprise);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-number {
|
|
|
|
color: var(--color-surprise);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-keyword {
|
2017-07-25 04:15:24 +00:00
|
|
|
color: var(--color-surprise);
|
2017-03-12 00:31:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.cm-builtin {
|
|
|
|
color: var(--color-info);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-string {
|
|
|
|
color: var(--color-notice);
|
|
|
|
}
|
|
|
|
|
2017-07-25 04:15:24 +00:00
|
|
|
.cm-attribute {
|
|
|
|
color: var(--color-success);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-property {
|
2017-03-12 00:31:23 +00:00
|
|
|
color: var(--color-success);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-variable {
|
2017-07-25 04:15:24 +00:00
|
|
|
color: var(--color-warning);
|
2017-03-12 00:31:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.cm-variable-2 {
|
|
|
|
color: var(--color-info);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-variable-3 {
|
|
|
|
color: var(--color-surprise);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-def {
|
|
|
|
color: var(--color-warning);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-bracket {
|
|
|
|
color: var(--color-font);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-tag {
|
|
|
|
color: var(--color-danger);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-header {
|
|
|
|
color: var(--color-surprise);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-link {
|
|
|
|
color: var(--color-surprise);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-comment {
|
2017-03-28 22:45:23 +00:00
|
|
|
font-style: italic;
|
2017-03-12 00:31:23 +00:00
|
|
|
color: var(--hl);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-error {
|
|
|
|
background: var(--color-danger);
|
|
|
|
color: var(--color-font-danger);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-clickable {
|
|
|
|
text-decoration: underline;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-clickable:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-matchingbracket {
|
|
|
|
color: inherit !important;
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-color: var(--color-notice);
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-nunjucks-variable {
|
|
|
|
color: var(--color-surprise);
|
|
|
|
}
|
|
|
|
|
2017-03-28 22:45:23 +00:00
|
|
|
.cm-curl-in {
|
|
|
|
color: var(--color-success);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-curl-out {
|
|
|
|
color: var(--color-notice);
|
|
|
|
}
|
|
|
|
|
2017-03-29 02:21:49 +00:00
|
|
|
.cm-curl-data {
|
|
|
|
color: var(--color-surprise);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-curl-prefix {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2017-03-28 22:45:23 +00:00
|
|
|
.cm-curl-header {
|
|
|
|
font-weight: bold;
|
|
|
|
display: inline-block;
|
|
|
|
padding-top: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-curl-comment {
|
|
|
|
color: var(--hl);
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2017-03-12 00:31:23 +00:00
|
|
|
.cm-nunjucks-tag {
|
|
|
|
color: var(--color-info);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-nunjucks-comment {
|
|
|
|
color: var(--hl);
|
|
|
|
}
|
|
|
|
}
|