| 1 |
@import '../node_modules/codemirror-colorpicker/dist/codemirror-colorpicker.css'; |
| 2 |
|
| 3 |
.CodeMirror { |
| 4 |
border: 1px solid #dfdfdf; |
| 5 |
border-radius: 3px; |
| 6 |
height: auto !important; |
| 7 |
background-color: #fff; |
| 8 |
} |
| 9 |
|
| 10 |
.CodeMirror-code { |
| 11 |
outline: none; |
| 12 |
} |
| 13 |
|
| 14 |
.CodeMirror-focused .cm-matchhighlight { |
| 15 |
color: white !important; |
| 16 |
outline: 1px solid green; |
| 17 |
} |
| 18 |
|
| 19 |
/* Add a bit of extra space above the editor */ |
| 20 |
.CodeMirror-sizer { |
| 21 |
|
| 22 |
&::before, &::after { |
| 23 |
display: block; |
| 24 |
color: #bbb; |
| 25 |
} |
| 26 |
|
| 27 |
&::before { |
| 28 |
content: ''; |
| 29 |
padding-bottom: 5px; |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
/* Fix cursor color with rubyblue theme (see https://goo.gl/3HDgRm */ |
| 34 |
.cm-s-rubyblue .CodeMirror-cursor { |
| 35 |
border-left: 1px solid white !important; |
| 36 |
} |
| 37 |
|
| 38 |
[class*="CodeMirror-lint-marker"]*="CodeMirror-lint-marker""], [class*="CodeMirror-lint-message"]*="CodeMirror-lint-message""], .CodeMirror-lint-marker-multiple { |
| 39 |
background-image: none; |
| 40 |
} |
| 41 |
|
| 42 |
.CodeMirror-lint-marker-error, .CodeMirror-lint-marker-warning { |
| 43 |
cursor: help; |
| 44 |
} |
| 45 |
|
| 46 |
.CodeMirror-lint-marker-multiple { |
| 47 |
position: absolute; |
| 48 |
top: 0; |
| 49 |
} |
| 50 |
|
| 51 |
[class*="CodeMirror-lint-marker"]*="CodeMirror-lint-marker""]:before { |
| 52 |
font: normal 18px/1 dashicons; |
| 53 |
position: relative; |
| 54 |
top: -2px; |
| 55 |
} |
| 56 |
|
| 57 |
[class*="CodeMirror-lint-message"]*="CodeMirror-lint-message""]:before { |
| 58 |
font: normal 16px/1 dashicons; |
| 59 |
left: 16px; |
| 60 |
position: absolute; |
| 61 |
} |
| 62 |
|
| 63 |
.CodeMirror-lint-message-error, |
| 64 |
.CodeMirror-lint-message-warning { |
| 65 |
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); |
| 66 |
margin: 5px 0 2px; |
| 67 |
padding: 3px 12px 3px 28px; |
| 68 |
} |
| 69 |
|
| 70 |
.CodeMirror-lint-message-warning { |
| 71 |
background-color: #fff8e5; |
| 72 |
border-left: 4px solid #ffb900; |
| 73 |
} |
| 74 |
|
| 75 |
.CodeMirror-lint-marker-warning::before, .CodeMirror-lint-message-warning::before { |
| 76 |
content: "\f534"; |
| 77 |
color: #f6a306; |
| 78 |
} |
| 79 |
|
| 80 |
.CodeMirror-lint-message-error { |
| 81 |
background-color: #fbeaea; |
| 82 |
border-left: 4px solid #dc3232; |
| 83 |
} |
| 84 |
|
| 85 |
.CodeMirror-lint-marker-error::before, .CodeMirror-lint-message-error::before { |
| 86 |
content: "\f153"; |
| 87 |
color: #dc3232; |
| 88 |
} |
| 89 |
|
| 90 |
.CodeMirror-lint-tooltip { |
| 91 |
background: none; |
| 92 |
border: none; |
| 93 |
border-radius: 0; |
| 94 |
direction: ltr; |
| 95 |
} |
| 96 |
|
| 97 |
.CodeMirror .CodeMirror-matchingbracket { |
| 98 |
background: rgba(255, 150, 0, .3); |
| 99 |
color: inherit; |
| 100 |
} |
| 101 |
|
| 102 |
.CodeMirror .CodeMirror-linenumber { |
| 103 |
color: #666; |
| 104 |
} |
| 105 |
|
| 106 |
.CodeMirror-foldmarker { |
| 107 |
color: inherit; |
| 108 |
margin-left: 0.25em; |
| 109 |
margin-right: 0.25em; |
| 110 |
font-weight: bold; |
| 111 |
} |
| 112 |
|