2018-10-19 16:36:38 +00:00
|
|
|
$syntax-consul: #69499a;
|
|
|
|
$syntax-dark-gray: #535f73;
|
2021-10-07 18:21:11 +00:00
|
|
|
:root {
|
|
|
|
--syntax-light-grey: #dde3e7;
|
|
|
|
--syntax-light-gray: #a4a4a4;
|
|
|
|
--syntax-light-grey-blue: #6c7b81;
|
|
|
|
--syntax-dark-grey: #788290;
|
|
|
|
--syntax-faded-gray: #eaeaea;
|
|
|
|
// Product colors
|
|
|
|
--syntax-atlas: #127eff;
|
|
|
|
--syntax-vagrant: #2f88f7;
|
|
|
|
--syntax-consul: #{$syntax-consul};
|
|
|
|
--syntax-terraform: #822ff7;
|
|
|
|
--syntax-serf: #dd4e58;
|
|
|
|
--syntax-packer: #1ddba3;
|
|
|
|
|
|
|
|
// Our colors
|
|
|
|
--syntax-gray: lighten(#000, 89%);
|
|
|
|
--syntax-red: #ff3d3d;
|
|
|
|
--syntax-green: #39b54a;
|
|
|
|
--syntax-dark-gray: #{$syntax-dark-gray};
|
|
|
|
|
|
|
|
--syntax-gutter-grey: #2a2f36;
|
|
|
|
--syntax-yellow: rgb(var(--tone-yellow-500));
|
|
|
|
}
|
2018-10-19 16:36:38 +00:00
|
|
|
.CodeMirror {
|
|
|
|
max-width: 1150px;
|
|
|
|
min-height: 300px;
|
|
|
|
height: auto;
|
|
|
|
/* adds some space at the bottom of the editor for when a horizonal-scroll has appeared */
|
|
|
|
padding-bottom: 20px;
|
|
|
|
}
|
|
|
|
.CodeMirror-scroll {
|
|
|
|
overflow-x: hidden !important;
|
|
|
|
}
|
|
|
|
.CodeMirror-lint-tooltip {
|
|
|
|
background-color: #f9f9fa;
|
2021-10-07 18:21:11 +00:00
|
|
|
border: 1px solid var(--syntax-light-gray);
|
2018-10-19 16:36:38 +00:00
|
|
|
border-radius: 0;
|
2021-10-07 18:21:11 +00:00
|
|
|
color: lighten(#000, 13%);
|
|
|
|
font-family: var(--typo-family-mono);
|
2018-10-19 16:36:38 +00:00
|
|
|
font-size: 13px;
|
|
|
|
padding: 7px 8px 9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-hashi {
|
|
|
|
&.CodeMirror {
|
|
|
|
width: 100%;
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--black)) !important;
|
2018-10-19 16:36:38 +00:00
|
|
|
color: #cfd2d1 !important;
|
|
|
|
border: none;
|
2021-10-07 18:21:11 +00:00
|
|
|
font-family: var(--typo-family-mono);
|
2018-10-19 16:36:38 +00:00
|
|
|
-webkit-font-smoothing: auto;
|
|
|
|
line-height: 1.4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-gutters {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-dark-grey);
|
|
|
|
background-color: var(--syntax-gutter-grey);
|
2018-10-19 16:36:38 +00:00
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-cursor {
|
|
|
|
border-left: solid thin #f8f8f0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linenumber {
|
|
|
|
color: #6d8a88;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.CodeMirror-focused div.CodeMirror-selected {
|
|
|
|
background: rgb(33, 66, 131);
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-line::selection,
|
|
|
|
.CodeMirror-line > span::selection,
|
|
|
|
.CodeMirror-line > span > span::selection {
|
|
|
|
background: rgb(33, 66, 131);
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-line::-moz-selection,
|
|
|
|
.CodeMirror-line > span::-moz-selection,
|
|
|
|
.CodeMirror-line > span > span::-moz-selection {
|
2021-10-07 18:21:11 +00:00
|
|
|
background: rgb(var(--white) / 10%);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-comment {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-light-grey);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-string,
|
|
|
|
span.cm-string-2 {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-packer);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-number {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-serf);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-variable {
|
|
|
|
color: lighten($syntax-consul, 20%);
|
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-variable-2 {
|
|
|
|
color: lighten($syntax-consul, 20%);
|
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-def {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-packer);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-operator {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-gray);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
span.cm-keyword {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-yellow);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-atom {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-serf);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-meta {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-packer);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-tag {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-packer);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-attribute {
|
|
|
|
color: #9fca56;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-qualifier {
|
|
|
|
color: #9fca56;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-property {
|
|
|
|
color: lighten($syntax-consul, 20%);
|
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-variable-3 {
|
|
|
|
color: #9fca56;
|
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-builtin {
|
|
|
|
color: #9fca56;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-activeline-background {
|
|
|
|
background: #101213;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-matchingbracket {
|
|
|
|
text-decoration: underline;
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--white)) !important;
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.readonly-codemirror {
|
|
|
|
.CodeMirror-cursors {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cm-s-hashi {
|
|
|
|
span {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-light-grey);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-string,
|
|
|
|
span.cm-string-2 {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-faded-gray);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-number {
|
|
|
|
color: lighten($syntax-dark-gray, 30%);
|
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-property {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--white));
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
span.cm-variable-2 {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: var(--syntax-light-grey-blue);
|
2018-10-19 16:36:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|