2016-03-16 23:34:25 +00:00
|
|
|
@import '../constants/colors';
|
2016-03-23 05:58:16 +00:00
|
|
|
@import '../constants/dimensions';
|
2016-07-20 23:16:28 +00:00
|
|
|
@import '../constants/fonts';
|
2016-03-16 23:34:25 +00:00
|
|
|
|
2016-05-01 19:56:30 +00:00
|
|
|
.editor {
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100% !important;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.CodeMirror {
|
2016-04-10 06:59:05 +00:00
|
|
|
height: 100% !important;
|
2016-04-06 04:21:42 +00:00
|
|
|
width: 100%;
|
2016-07-20 23:16:28 +00:00
|
|
|
font-family: $font-monospace;
|
2016-05-01 19:56:30 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding-top: $padding-sm;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror,
|
|
|
|
.cm-s-seti.CodeMirror, // Hack because seti theme is dumb
|
|
|
|
.CodeMirror-gutters,
|
|
|
|
.CodeMirror-scrollbar-filler,
|
|
|
|
.CodeMirror-gutter-filler {
|
|
|
|
// Let the background behind show through
|
2016-07-22 21:35:49 +00:00
|
|
|
background-color: transparent !important;
|
2016-05-01 19:56:30 +00:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linenumber, .CodeMirror-guttermarker-subtle {
|
|
|
|
color: $hl-xl !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-scroll {
|
|
|
|
cursor: text; // Show text cursor everywhere (not just in .Codemirror-lines)
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-lines {
|
|
|
|
// Scroll past the end
|
2016-07-29 16:29:14 +00:00
|
|
|
padding-bottom: 50px;
|
2016-05-01 19:56:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-placeholder {
|
|
|
|
color: $hl-xxl;
|
|
|
|
}
|
2016-03-16 23:34:25 +00:00
|
|
|
|
2016-06-18 22:57:23 +00:00
|
|
|
.CodeMirror-lint-marker-error {
|
|
|
|
width: 100%;
|
|
|
|
height: 1em;
|
|
|
|
display: flex;
|
|
|
|
background: none;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&::after {
|
2016-06-18 23:02:01 +00:00
|
|
|
color: darken($danger, 10);
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
2016-06-19 00:08:14 +00:00
|
|
|
font-size: 0.7em; // because the circle is so large
|
2016-06-18 23:02:01 +00:00
|
|
|
content: '⬤';
|
2016-06-18 22:57:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-06 20:18:26 +00:00
|
|
|
&.editor--readonly .CodeMirror-cursors,
|
|
|
|
&.editor--readonly .CodeMirror-activeline-background {
|
2016-05-01 19:56:30 +00:00
|
|
|
opacity: 0;
|
2016-03-24 05:26:04 +00:00
|
|
|
}
|
2016-03-16 23:34:25 +00:00
|
|
|
}
|
2016-06-18 22:57:23 +00:00
|
|
|
|
|
|
|
// This has to be outside because it's moved to the body element
|
|
|
|
.CodeMirror-lint-tooltip {
|
|
|
|
background-color: $bg-light;
|
|
|
|
color: $font-light-bg;
|
|
|
|
border-radius: 0;
|
|
|
|
font-size: $font-size-md;
|
|
|
|
padding: $padding-xs $padding-sm;
|
|
|
|
|
|
|
|
.CodeMirror-lint-message-error {
|
|
|
|
background-image: none;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2016-06-20 06:43:35 +00:00
|
|
|
|
|
|
|
/* Based on Sublime Text's Monokai theme */
|
2016-07-22 21:35:49 +00:00
|
|
|
.editor:not(.editor--light-theme) {
|
|
|
|
.cm-s-default.CodeMirror {
|
|
|
|
color: #f8f8f2;
|
|
|
|
}
|
2016-06-20 06:43:35 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default div.CodeMirror-selected {
|
|
|
|
//background: #49483E;
|
|
|
|
background: $hl-xl;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default .CodeMirror-line::selection, .cm-s-default .CodeMirror-line > span::selection, .cm-s-default .CodeMirror-line > span > span::selection {
|
|
|
|
//background: rgba(73, 72, 62, .99);
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default .CodeMirror-line::-moz-selection, .cm-s-default .CodeMirror-line > span::-moz-selection, .cm-s-default .CodeMirror-line > span > span::-moz-selection {
|
|
|
|
//background: rgba(73, 72, 62, .99);
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default .CodeMirror-gutters {
|
|
|
|
//background: #272822;
|
|
|
|
border-right: 0px;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default .CodeMirror-guttermarker {
|
|
|
|
color: white;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default .CodeMirror-guttermarker-subtle {
|
|
|
|
color: #d0d0d0;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default .CodeMirror-linenumber {
|
|
|
|
color: #d0d0d0;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default .CodeMirror-cursor {
|
|
|
|
border-left: 1px solid #f8f8f0;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-comment {
|
|
|
|
color: #75715e;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-atom {
|
|
|
|
color: lighten($surprise, 5);
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-number {
|
|
|
|
color: lighten($surprise, 5);
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-property, .cm-s-default span.cm-attribute {
|
|
|
|
color: lighten($success, 5);
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-keyword {
|
|
|
|
color: #f92672;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-builtin {
|
|
|
|
color: #66d9ef;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-string {
|
|
|
|
color: lighten($notice, 5);
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-variable {
|
|
|
|
color: #f8f8f2;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-variable-2 {
|
|
|
|
color: #9effff;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-variable-3 {
|
|
|
|
color: #66d9ef;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-def {
|
|
|
|
color: #fd971f;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-bracket {
|
|
|
|
color: #f8f8f2;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-tag {
|
|
|
|
color: #f92672;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-header {
|
|
|
|
color: lighten($surprise, 5);
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-link {
|
|
|
|
color: lighten($surprise, 5);
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default span.cm-error {
|
|
|
|
background: #f92672;
|
|
|
|
color: #f8f8f0;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default .CodeMirror-activeline-background {
|
|
|
|
background: $hl-md;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.cm-s-default .CodeMirror-matchingbracket {
|
|
|
|
text-decoration: underline;
|
|
|
|
color: white !important;
|
|
|
|
}
|
2016-07-06 20:18:26 +00:00
|
|
|
}
|
|
|
|
|
2016-07-22 21:35:49 +00:00
|
|
|
.editor--light-theme {
|
|
|
|
.cm-s-default span {
|
|
|
|
color: $hl;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-default span.cm-string {
|
|
|
|
color: saturate(darken($notice, 30), 100);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-default span.cm-property, .cm-s-default span.cm-attribute {
|
|
|
|
color: saturate(darken($success, 15), 100);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-default span.cm-atom,
|
|
|
|
.cm-s-default span.cm-number {
|
|
|
|
color: saturate(darken($surprise, 30), 100);
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-default .CodeMirror-activeline-background {
|
|
|
|
background: $hl-md;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-default .CodeMirror-matchingbracket {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2016-06-20 06:43:35 +00:00
|
|
|
}
|