hyper-console 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +49 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +235 -0
- data/LICENSE.txt +21 -0
- data/README.md +135 -0
- data/Rakefile +27 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/hyper-console.gemspec +34 -0
- data/lib/hyper-console-client.js +90197 -0
- data/lib/hyper-console-client.min.js +1914 -0
- data/lib/hyper-console.rb +14 -0
- data/lib/hyperloop/console/client_components.rb +244 -0
- data/lib/hyperloop/console/engine.rb +11 -0
- data/lib/hyperloop/console/evaluate.rb +18 -0
- data/lib/hyperloop/console/hyper-console-client-manifest.rb +26 -0
- data/lib/hyperloop/console/hyper_console.rb +100 -0
- data/lib/hyperloop/console/object_space.rb +53 -0
- data/lib/hyperloop/console/ruby.js +285 -0
- data/lib/hyperloop/console/sources/codemirror.js +9231 -0
- data/lib/hyperloop/console/sources/jquery-2.1.4.js +9210 -0
- data/lib/hyperloop/console/sources/react-dom.js +18939 -0
- data/lib/hyperloop/console/sources/react.js +3987 -0
- data/lib/hyperloop/console/version.rb +5 -0
- data/lib/react/config/client.rb +21 -0
- data/screen_shot.png +0 -0
- data/vendor/assets/stylesheets/hyper-console-client.css +559 -0
- metadata +255 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
# dummy up React::Config so it doesn't complain
|
3
|
+
|
4
|
+
module React
|
5
|
+
module Config
|
6
|
+
extend self
|
7
|
+
def environment=(value)
|
8
|
+
config[:environment] = value
|
9
|
+
end
|
10
|
+
|
11
|
+
def config
|
12
|
+
@config ||= default_config
|
13
|
+
end
|
14
|
+
|
15
|
+
def default_config
|
16
|
+
{
|
17
|
+
environment: 'express'
|
18
|
+
}
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/screen_shot.png
ADDED
Binary file
|
@@ -0,0 +1,559 @@
|
|
1
|
+
/* Syntax Highlighting */
|
2
|
+
|
3
|
+
.c { color: #999988; font-style: italic } /* Comment */
|
4
|
+
.err { color: #a61717; background-color: #e3d2d2 } /* Error */
|
5
|
+
.k { color: #000000; font-weight: bold } /* Keyword */
|
6
|
+
.o { color: #000000; font-weight: bold } /* Operator */
|
7
|
+
.cm { color: #999988; font-style: italic } /* Comment.Multiline */
|
8
|
+
.cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
|
9
|
+
.c1 { color: #999988; font-style: italic } /* Comment.Single */
|
10
|
+
.cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
|
11
|
+
.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
|
12
|
+
.ge { color: #000000; font-style: italic } /* Generic.Emph */
|
13
|
+
.gr { color: #aa0000 } /* Generic.Error */
|
14
|
+
.gh { color: #999999 } /* Generic.Heading */
|
15
|
+
.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
|
16
|
+
.go { color: #888888 } /* Generic.Output */
|
17
|
+
.gp { color: #555555 } /* Generic.Prompt */
|
18
|
+
.gs { font-weight: bold } /* Generic.Strong */
|
19
|
+
.gu { color: #aaaaaa } /* Generic.Subheading */
|
20
|
+
.gt { color: #aa0000 } /* Generic.Traceback */
|
21
|
+
.kc { color: #000000; font-weight: bold } /* Keyword.Constant */
|
22
|
+
.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
|
23
|
+
.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
|
24
|
+
.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
|
25
|
+
.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
|
26
|
+
.kt { color: #445588; font-weight: bold } /* Keyword.Type */
|
27
|
+
.m { color: #009999 } /* Literal.Number */
|
28
|
+
.s { color: #d01040 } /* Literal.String */
|
29
|
+
.na { color: #008080 } /* Name.Attribute */
|
30
|
+
.nb { color: #0086B3 } /* Name.Builtin */
|
31
|
+
.nc { color: #445588; font-weight: bold } /* Name.Class */
|
32
|
+
.no { color: #008080 } /* Name.Constant */
|
33
|
+
.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
|
34
|
+
.ni { color: #800080 } /* Name.Entity */
|
35
|
+
.ne { color: #990000; font-weight: bold } /* Name.Exception */
|
36
|
+
.nf { color: #990000; font-weight: bold } /* Name.Function */
|
37
|
+
.nl { color: #990000; font-weight: bold } /* Name.Label */
|
38
|
+
.nn { color: #555555 } /* Name.Namespace */
|
39
|
+
.nt { color: #000080 } /* Name.Tag */
|
40
|
+
.nv { color: #008080 } /* Name.Variable */
|
41
|
+
.ow { color: #000000; font-weight: bold } /* Operator.Word */
|
42
|
+
.w { color: #bbbbbb } /* Text.Whitespace */
|
43
|
+
.mf { color: #009999 } /* Literal.Number.Float */
|
44
|
+
.mh { color: #009999 } /* Literal.Number.Hex */
|
45
|
+
.mi { color: #009999 } /* Literal.Number.Integer */
|
46
|
+
.mo { color: #009999 } /* Literal.Number.Oct */
|
47
|
+
.sb { color: #d01040 } /* Literal.String.Backtick */
|
48
|
+
.sc { color: #d01040 } /* Literal.String.Char */
|
49
|
+
.sd { color: #d01040 } /* Literal.String.Doc */
|
50
|
+
.s2 { color: #d01040 } /* Literal.String.Double */
|
51
|
+
.se { color: #d01040 } /* Literal.String.Escape */
|
52
|
+
.sh { color: #d01040 } /* Literal.String.Heredoc */
|
53
|
+
.si { color: #d01040 } /* Literal.String.Interpol */
|
54
|
+
.sx { color: #d01040 } /* Literal.String.Other */
|
55
|
+
.sr { color: #009926 } /* Literal.String.Regex */
|
56
|
+
.s1 { color: #d01040 } /* Literal.String.Single */
|
57
|
+
.ss { color: #990073 } /* Literal.String.Symbol */
|
58
|
+
.bp { color: #999999 } /* Name.Builtin.Pseudo */
|
59
|
+
.vc { color: #008080 } /* Name.Variable.Class */
|
60
|
+
.vg { color: #008080 } /* Name.Variable.Global */
|
61
|
+
.vi { color: #008080 } /* Name.Variable.Instance */
|
62
|
+
.il { color: #009999 } /* Literal.Number.Integer.Long */
|
63
|
+
|
64
|
+
.highlight {
|
65
|
+
margin-bottom: 25px;
|
66
|
+
}
|
67
|
+
|
68
|
+
.highlight pre {
|
69
|
+
color: #999;
|
70
|
+
font-size: 16px;
|
71
|
+
padding: 0 12px;
|
72
|
+
line-height: 28px;
|
73
|
+
margin-bottom: 30px;
|
74
|
+
white-space: pre;
|
75
|
+
overflow-x: auto;
|
76
|
+
word-break: inherit;
|
77
|
+
word-wrap: inherit;
|
78
|
+
}
|
79
|
+
|
80
|
+
.highlight table {
|
81
|
+
width: 100%;
|
82
|
+
table-layout: fixed;
|
83
|
+
}
|
84
|
+
.highlight td {
|
85
|
+
padding: 0;
|
86
|
+
}
|
87
|
+
|
88
|
+
.highlight tr {
|
89
|
+
border: solid 1px #ddd;
|
90
|
+
}
|
91
|
+
.highlight .gutter {
|
92
|
+
width: 50px;
|
93
|
+
}
|
94
|
+
|
95
|
+
.gl {
|
96
|
+
background: #fafafa;
|
97
|
+
border-right: 1px solid #ddd;
|
98
|
+
color: #999;
|
99
|
+
|
100
|
+
/* Stop line numbers being visually selected */
|
101
|
+
-webkit-touch-callout: none;
|
102
|
+
-webkit-user-select: none;
|
103
|
+
-khtml-user-select: none;
|
104
|
+
-moz-user-select: none;
|
105
|
+
-ms-user-select: none;
|
106
|
+
user-select: none;
|
107
|
+
}
|
108
|
+
|
109
|
+
/* BASICS */
|
110
|
+
|
111
|
+
.CodeMirror {
|
112
|
+
/* Set height, width, borders, and global font properties here */
|
113
|
+
font-family: monospace;
|
114
|
+
height: 300px;
|
115
|
+
color: black;
|
116
|
+
}
|
117
|
+
|
118
|
+
/* PADDING */
|
119
|
+
|
120
|
+
.CodeMirror-lines {
|
121
|
+
padding: 0px 0; /* Vertical padding around content */
|
122
|
+
}
|
123
|
+
.CodeMirror pre {
|
124
|
+
padding: 0 4px; /* Horizontal padding of content */
|
125
|
+
color: white;
|
126
|
+
}
|
127
|
+
|
128
|
+
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
129
|
+
background-color: white; /* The little square between H and V scrollbars */
|
130
|
+
}
|
131
|
+
|
132
|
+
/* GUTTER */
|
133
|
+
|
134
|
+
.CodeMirror-gutters {
|
135
|
+
border-right: 1px solid #ddd;
|
136
|
+
background-color: #CDE9FF;
|
137
|
+
white-space: nowrap;
|
138
|
+
}
|
139
|
+
.CodeMirror-linenumbers {}
|
140
|
+
.CodeMirror-linenumber {
|
141
|
+
padding: 0 3px 0 5px;
|
142
|
+
min-width: 20px;
|
143
|
+
text-align: right;
|
144
|
+
color: #999;
|
145
|
+
white-space: nowrap;
|
146
|
+
}
|
147
|
+
|
148
|
+
.CodeMirror-guttermarker { color: black; }
|
149
|
+
.CodeMirror-guttermarker-subtle { color: #999; }
|
150
|
+
|
151
|
+
/* CURSOR */
|
152
|
+
|
153
|
+
.CodeMirror-cursor {
|
154
|
+
border-left: 1px solid black;
|
155
|
+
border-right: none;
|
156
|
+
width: 0;
|
157
|
+
}
|
158
|
+
/* Shown when moving in bi-directional text */
|
159
|
+
.CodeMirror div.CodeMirror-secondarycursor {
|
160
|
+
border-left: 1px solid silver;
|
161
|
+
}
|
162
|
+
.cm-fat-cursor .CodeMirror-cursor {
|
163
|
+
width: auto;
|
164
|
+
border: 0 !important;
|
165
|
+
background: #7e7;
|
166
|
+
}
|
167
|
+
.cm-fat-cursor div.CodeMirror-cursors {
|
168
|
+
z-index: 1;
|
169
|
+
}
|
170
|
+
|
171
|
+
.cm-animate-fat-cursor {
|
172
|
+
width: auto;
|
173
|
+
border: 0;
|
174
|
+
-webkit-animation: blink 1.06s steps(1) infinite;
|
175
|
+
-moz-animation: blink 1.06s steps(1) infinite;
|
176
|
+
animation: blink 1.06s steps(1) infinite;
|
177
|
+
background-color: #7e7;
|
178
|
+
}
|
179
|
+
@-moz-keyframes blink {
|
180
|
+
0% {}
|
181
|
+
50% { background-color: transparent; }
|
182
|
+
100% {}
|
183
|
+
}
|
184
|
+
@-webkit-keyframes blink {
|
185
|
+
0% {}
|
186
|
+
50% { background-color: transparent; }
|
187
|
+
100% {}
|
188
|
+
}
|
189
|
+
@keyframes blink {
|
190
|
+
0% {}
|
191
|
+
50% { background-color: transparent; }
|
192
|
+
100% {}
|
193
|
+
}
|
194
|
+
|
195
|
+
/* Can style cursor different in overwrite (non-insert) mode */
|
196
|
+
.CodeMirror-overwrite .CodeMirror-cursor {}
|
197
|
+
|
198
|
+
.cm-tab { display: inline-block; text-decoration: inherit; }
|
199
|
+
|
200
|
+
.CodeMirror-rulers {
|
201
|
+
position: absolute;
|
202
|
+
left: 0; right: 0; top: -50px; bottom: -20px;
|
203
|
+
overflow: hidden;
|
204
|
+
}
|
205
|
+
.CodeMirror-ruler {
|
206
|
+
border-left: 1px solid #ccc;
|
207
|
+
top: 0; bottom: 0;
|
208
|
+
position: absolute;
|
209
|
+
}
|
210
|
+
|
211
|
+
/* DEFAULT THEME */
|
212
|
+
|
213
|
+
.cm-s-default .cm-header {color: blue;}
|
214
|
+
.cm-s-default .cm-quote {color: #090;}
|
215
|
+
.cm-negative {color: #d44;}
|
216
|
+
.cm-positive {color: #292;}
|
217
|
+
.cm-header, .cm-strong {font-weight: bold;}
|
218
|
+
.cm-em {font-style: italic;}
|
219
|
+
.cm-link {text-decoration: underline;}
|
220
|
+
.cm-strikethrough {text-decoration: line-through;}
|
221
|
+
|
222
|
+
.cm-s-default .cm-keyword {color: #708;}
|
223
|
+
.cm-s-default .cm-atom {color: #219;}
|
224
|
+
.cm-s-default .cm-number {color: #164;}
|
225
|
+
.cm-s-default .cm-def {color: #00f;}
|
226
|
+
.cm-s-default .cm-variable,
|
227
|
+
.cm-s-default .cm-punctuation,
|
228
|
+
.cm-s-default .cm-property,
|
229
|
+
.cm-s-default .cm-operator {}
|
230
|
+
.cm-s-default .cm-variable-2 {color: #05a;}
|
231
|
+
.cm-s-default .cm-variable-3 {color: #085;}
|
232
|
+
.cm-s-default .cm-comment {color: #a50;}
|
233
|
+
.cm-s-default .cm-string {color: #a11;}
|
234
|
+
.cm-s-default .cm-string-2 {color: #f50;}
|
235
|
+
.cm-s-default .cm-meta {color: #555;}
|
236
|
+
.cm-s-default .cm-qualifier {color: #555;}
|
237
|
+
.cm-s-default .cm-builtin {color: #30a;}
|
238
|
+
.cm-s-default .cm-bracket {color: #997;}
|
239
|
+
.cm-s-default .cm-tag {color: #170;}
|
240
|
+
.cm-s-default .cm-attribute {color: #00c;}
|
241
|
+
.cm-s-default .cm-hr {color: #999;}
|
242
|
+
.cm-s-default .cm-link {color: #00c;}
|
243
|
+
|
244
|
+
.cm-s-default .cm-error {color: #f00;}
|
245
|
+
.cm-invalidchar {color: #f00;}
|
246
|
+
|
247
|
+
.CodeMirror-composing { border-bottom: 2px solid; }
|
248
|
+
|
249
|
+
/* Default styles for common addons */
|
250
|
+
|
251
|
+
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
252
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
253
|
+
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
|
254
|
+
.CodeMirror-activeline-background {background: #e8f2ff;}
|
255
|
+
|
256
|
+
/* STOP */
|
257
|
+
|
258
|
+
/* The rest of this file contains styles related to the mechanics of
|
259
|
+
the editor. You probably shouldn't touch them. */
|
260
|
+
|
261
|
+
.CodeMirror {
|
262
|
+
position: relative;
|
263
|
+
overflow: hidden;
|
264
|
+
background: #272822;
|
265
|
+
}
|
266
|
+
|
267
|
+
.CodeMirror-scroll {
|
268
|
+
overflow: scroll !important; /* Things will break if this is overridden */
|
269
|
+
/* 30px is the magic margin used to hide the element's real scrollbars */
|
270
|
+
/* See overflow: hidden in .CodeMirror */
|
271
|
+
margin-bottom: -30px; margin-right: -30px;
|
272
|
+
padding-bottom: 30px;
|
273
|
+
height: 100%;
|
274
|
+
outline: none; /* Prevent dragging from highlighting the element */
|
275
|
+
position: relative;
|
276
|
+
}
|
277
|
+
.CodeMirror-sizer {
|
278
|
+
position: relative;
|
279
|
+
border-right: 30px solid transparent;
|
280
|
+
}
|
281
|
+
|
282
|
+
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
283
|
+
before actual scrolling happens, thus preventing shaking and
|
284
|
+
flickering artifacts. */
|
285
|
+
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
286
|
+
position: absolute;
|
287
|
+
z-index: 6;
|
288
|
+
display: none;
|
289
|
+
}
|
290
|
+
.CodeMirror-vscrollbar {
|
291
|
+
right: 0; top: 0;
|
292
|
+
overflow-x: hidden;
|
293
|
+
overflow-y: scroll;
|
294
|
+
}
|
295
|
+
.CodeMirror-hscrollbar {
|
296
|
+
bottom: 0; left: 0;
|
297
|
+
overflow-y: hidden;
|
298
|
+
overflow-x: scroll;
|
299
|
+
}
|
300
|
+
.CodeMirror-scrollbar-filler {
|
301
|
+
right: 0; bottom: 0;
|
302
|
+
}
|
303
|
+
.CodeMirror-gutter-filler {
|
304
|
+
left: 0; bottom: 0;
|
305
|
+
}
|
306
|
+
|
307
|
+
.CodeMirror-gutters {
|
308
|
+
position: absolute; left: 0; top: 0;
|
309
|
+
min-height: 100%;
|
310
|
+
z-index: 3;
|
311
|
+
}
|
312
|
+
.CodeMirror-gutter {
|
313
|
+
white-space: normal;
|
314
|
+
height: 100%;
|
315
|
+
display: inline-block;
|
316
|
+
vertical-align: top;
|
317
|
+
margin-bottom: -30px;
|
318
|
+
}
|
319
|
+
.CodeMirror-gutter-wrapper {
|
320
|
+
position: absolute;
|
321
|
+
z-index: 4;
|
322
|
+
background: none !important;
|
323
|
+
border: none !important;
|
324
|
+
}
|
325
|
+
.CodeMirror-gutter-background {
|
326
|
+
position: absolute;
|
327
|
+
top: 0; bottom: 0;
|
328
|
+
z-index: 4;
|
329
|
+
}
|
330
|
+
.CodeMirror-gutter-elt {
|
331
|
+
position: absolute;
|
332
|
+
cursor: default;
|
333
|
+
z-index: 4;
|
334
|
+
}
|
335
|
+
.CodeMirror-gutter-wrapper {
|
336
|
+
-webkit-user-select: none;
|
337
|
+
-moz-user-select: none;
|
338
|
+
user-select: none;
|
339
|
+
}
|
340
|
+
|
341
|
+
.CodeMirror-lines {
|
342
|
+
cursor: text;
|
343
|
+
min-height: 1px; /* prevents collapsing before first draw */
|
344
|
+
}
|
345
|
+
.CodeMirror pre {
|
346
|
+
/* Reset some styles that the rest of the page might have set */
|
347
|
+
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
|
348
|
+
border-width: 0;
|
349
|
+
background: transparent;
|
350
|
+
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
351
|
+
font-size: inherit;
|
352
|
+
margin: 0;
|
353
|
+
white-space: pre;
|
354
|
+
word-wrap: normal;
|
355
|
+
line-height: inherit;
|
356
|
+
color: white;
|
357
|
+
z-index: 2;
|
358
|
+
position: relative;
|
359
|
+
overflow: visible;
|
360
|
+
-webkit-tap-highlight-color: transparent;
|
361
|
+
-webkit-font-variant-ligatures: contextual;
|
362
|
+
font-variant-ligatures: contextual;
|
363
|
+
}
|
364
|
+
.CodeMirror-wrap pre {
|
365
|
+
word-wrap: break-word;
|
366
|
+
white-space: pre-wrap;
|
367
|
+
word-break: normal;
|
368
|
+
}
|
369
|
+
|
370
|
+
.CodeMirror-linebackground {
|
371
|
+
position: absolute;
|
372
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
373
|
+
z-index: 0;
|
374
|
+
}
|
375
|
+
|
376
|
+
.CodeMirror-linewidget {
|
377
|
+
position: relative;
|
378
|
+
z-index: 2;
|
379
|
+
overflow: auto;
|
380
|
+
}
|
381
|
+
|
382
|
+
.CodeMirror-widget {}
|
383
|
+
|
384
|
+
.CodeMirror-code {
|
385
|
+
outline: none;
|
386
|
+
}
|
387
|
+
|
388
|
+
/* Force content-box sizing for the elements where we expect it */
|
389
|
+
.CodeMirror-scroll,
|
390
|
+
.CodeMirror-sizer,
|
391
|
+
.CodeMirror-gutter,
|
392
|
+
.CodeMirror-gutters,
|
393
|
+
.CodeMirror-linenumber {
|
394
|
+
-moz-box-sizing: content-box;
|
395
|
+
box-sizing: content-box;
|
396
|
+
}
|
397
|
+
|
398
|
+
.CodeMirror-measure {
|
399
|
+
position: absolute;
|
400
|
+
width: 100%;
|
401
|
+
height: 0;
|
402
|
+
overflow: hidden;
|
403
|
+
visibility: hidden;
|
404
|
+
}
|
405
|
+
|
406
|
+
.CodeMirror-cursor {
|
407
|
+
position: absolute;
|
408
|
+
pointer-events: none;
|
409
|
+
}
|
410
|
+
.CodeMirror-measure pre { position: static; }
|
411
|
+
|
412
|
+
div.CodeMirror-cursors {
|
413
|
+
visibility: hidden;
|
414
|
+
position: relative;
|
415
|
+
z-index: 3;
|
416
|
+
}
|
417
|
+
div.CodeMirror-dragcursors {
|
418
|
+
visibility: visible;
|
419
|
+
}
|
420
|
+
|
421
|
+
.CodeMirror-focused div.CodeMirror-cursors {
|
422
|
+
visibility: visible;
|
423
|
+
}
|
424
|
+
|
425
|
+
.CodeMirror-selected { background: #d9d9d9; }
|
426
|
+
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
427
|
+
.CodeMirror-crosshair { cursor: crosshair; }
|
428
|
+
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
|
429
|
+
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
|
430
|
+
|
431
|
+
.cm-searching {
|
432
|
+
background: #ffa;
|
433
|
+
background: rgba(255, 255, 0, .4);
|
434
|
+
}
|
435
|
+
|
436
|
+
/* Used to force a border model for a node */
|
437
|
+
.cm-force-border { padding-right: .1px; }
|
438
|
+
|
439
|
+
@media print {
|
440
|
+
/* Hide the cursor when printing */
|
441
|
+
.CodeMirror div.CodeMirror-cursors {
|
442
|
+
visibility: hidden;
|
443
|
+
}
|
444
|
+
}
|
445
|
+
|
446
|
+
/* See issue #2901 */
|
447
|
+
.cm-tab-wrap-hack:after { content: ''; }
|
448
|
+
|
449
|
+
/* Help users use markselection to safely style text background */
|
450
|
+
span.CodeMirror-selectedtext { background: none; }
|
451
|
+
|
452
|
+
textarea.code.inline + div.CodeMirror div.CodeMirror-lines {
|
453
|
+
padding: 0px!important; /* added !important as padding is an inline stlye */
|
454
|
+
}
|
455
|
+
|
456
|
+
/* Github standard styling */
|
457
|
+
|
458
|
+
.cm-s-github {
|
459
|
+
font-size: 0.9em;
|
460
|
+
line-height: 1.4em;
|
461
|
+
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
462
|
+
letter-spacing: 0.0px;
|
463
|
+
word-spacing: 0px;
|
464
|
+
color: #000000;
|
465
|
+
}
|
466
|
+
|
467
|
+
.cm-s-github .CodeMirror-gutters {
|
468
|
+
box-shadow: 1px 0 2px 0 rgba(0, 0, 0, 0.5);
|
469
|
+
-webkit-box-shadow: 1px 0 2px 0 rgba(0, 0, 0, 0.5);
|
470
|
+
padding-right: 10px;
|
471
|
+
z-index: 3;
|
472
|
+
border: none;
|
473
|
+
}
|
474
|
+
.cm-s-github div.CodeMirror-cursor {
|
475
|
+
border-left: 1px solid white;
|
476
|
+
}
|
477
|
+
.CodeMirror-scroll {
|
478
|
+
}
|
479
|
+
.cm-s-github .CodeMirror-activeline-background {
|
480
|
+
background: #00000012;
|
481
|
+
}
|
482
|
+
.cm-s-github .CodeMirror-selected {
|
483
|
+
background: #BCD5FA;
|
484
|
+
}
|
485
|
+
.cm-s-github .cm-comment {
|
486
|
+
font-style: italic;
|
487
|
+
color: #999988;
|
488
|
+
}
|
489
|
+
.cm-s-github .cm-number {
|
490
|
+
color: null;
|
491
|
+
}
|
492
|
+
.cm-s-github .cm-atom {
|
493
|
+
color: #9e75bf;
|
494
|
+
}
|
495
|
+
.cm-s-github .cm-string {
|
496
|
+
color: #e6db5f;
|
497
|
+
}
|
498
|
+
.cm-s-github .cm-variable-2 {
|
499
|
+
color: red;
|
500
|
+
}
|
501
|
+
.cm-s-github .cm-variable {
|
502
|
+
color: #96c726;
|
503
|
+
}
|
504
|
+
.cm-s-github .cm-property {
|
505
|
+
color: #49c4ef;
|
506
|
+
font-weight: bold;
|
507
|
+
}
|
508
|
+
.cm-s-github .cm-keyword {
|
509
|
+
color: #e42369;
|
510
|
+
font-weight: bold;
|
511
|
+
}
|
512
|
+
.cm-s-github .cm-tag {
|
513
|
+
color: #96c726;
|
514
|
+
}
|
515
|
+
|
516
|
+
.cm-s-github .cm-operator {
|
517
|
+
color: white;
|
518
|
+
}
|
519
|
+
.cm-s-github .CodeMirror-linenumber {
|
520
|
+
color: italic;
|
521
|
+
}
|
522
|
+
|
523
|
+
|
524
|
+
/* CSS override for codemirror-live-edit */
|
525
|
+
|
526
|
+
.CodeMirror {border-top: 0px solid white; border-bottom: 0px solid white; height: auto;}
|
527
|
+
.cm-s-default span.cm-arrow { color: red; }
|
528
|
+
.codemirror-live-edit { margin: 3rem 0 3rem 0;}
|
529
|
+
|
530
|
+
.card {
|
531
|
+
background-color: #272822;
|
532
|
+
border: 0;
|
533
|
+
height: 100%;
|
534
|
+
}
|
535
|
+
|
536
|
+
.card-header {
|
537
|
+
font-size: 14px;
|
538
|
+
padding: 0.5rem 1.25rem;
|
539
|
+
margin-bottom: 0;
|
540
|
+
color: white;
|
541
|
+
background-color: #0071C1;
|
542
|
+
border-bottom: 4px solid #ccc;
|
543
|
+
}
|
544
|
+
|
545
|
+
body {
|
546
|
+
margin: 0;
|
547
|
+
background-color: #272822;
|
548
|
+
}
|
549
|
+
|
550
|
+
span.syntax-error:first-child:before {
|
551
|
+
content: '\25CF';
|
552
|
+
color: red;
|
553
|
+
margin-right: .5rem;
|
554
|
+
}
|
555
|
+
|
556
|
+
.response-line {
|
557
|
+
font-style: italic !important;
|
558
|
+
color: #999988 !important;
|
559
|
+
}
|