Skip to content

Commit 5693eb9

Browse files
committed
Improve Demo
1 parent 86478ce commit 5693eb9

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

demo/src/3024-night.css

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,34 @@
88
99
*/
1010

11-
.cm-s-3024-night.CodeMirror { background: #090300; color: #d6d5d4; }
12-
.cm-s-3024-night div.CodeMirror-selected { background: #3a3432; }
11+
.cm-s-3024-night.CodeMirror { background: #131414; color: #ccc; }
12+
.cm-s-3024-night div.CodeMirror-selected { background: #4a5964; }
1313
.cm-s-3024-night .CodeMirror-line::selection, .cm-s-3024-night .CodeMirror-line > span::selection, .cm-s-3024-night .CodeMirror-line > span > span::selection { background: rgba(58, 52, 50, .99); }
1414
.cm-s-3024-night .CodeMirror-line::-moz-selection, .cm-s-3024-night .CodeMirror-line > span::-moz-selection, .cm-s-3024-night .CodeMirror-line > span > span::-moz-selection { background: rgba(58, 52, 50, .99); }
15-
.cm-s-3024-night .CodeMirror-gutters { background: #090300; border-right: 0px; }
15+
.cm-s-3024-night .CodeMirror-gutters { background: #131414; border-right: 0px; }
1616
.cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; }
1717
.cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; }
18-
.cm-s-3024-night .CodeMirror-linenumber { color: #5c5855; }
18+
.cm-s-3024-night .CodeMirror-linenumber { color: #515151; }
1919

20-
.cm-s-3024-night .CodeMirror-cursor { border-left: 1px solid #807d7c; }
20+
.cm-s-3024-night .CodeMirror-cursor { border-left: 1px solid #999; }
2121

22-
.cm-s-3024-night span.cm-comment { color: #cdab53; }
23-
.cm-s-3024-night span.cm-atom { color: #a16a94; }
24-
.cm-s-3024-night span.cm-number { color: #a16a94; }
22+
.cm-s-3024-night span.cm-comment { color: #969896; }
23+
.cm-s-3024-night span.cm-atom { color: #dc7069; }
24+
.cm-s-3024-night span.cm-number { color: #de935f; }
2525

26-
.cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute { color: #01a252; }
27-
.cm-s-3024-night span.cm-keyword { color: #db2d20; }
28-
.cm-s-3024-night span.cm-string { color: #fded02; }
26+
.cm-s-3024-night span.cm-property { color: #81a2be; }
27+
.cm-s-3024-night span.cm-attribute { color: #dc7069; }
28+
.cm-s-3024-night span.cm-keyword { color: #b294bb; }
29+
.cm-s-3024-night span.cm-string { color: #b5bd68; }
2930

30-
.cm-s-3024-night span.cm-variable { color: #01a252; }
31-
.cm-s-3024-night span.cm-variable-2 { color: #01a0e4; }
32-
.cm-s-3024-night span.cm-def { color: #e8bbd0; }
33-
.cm-s-3024-night span.cm-bracket { color: #d6d5d4; }
34-
.cm-s-3024-night span.cm-tag { color: #db2d20; }
31+
.cm-s-3024-night span.cm-variable { color: #eee; }
32+
.cm-s-3024-night span.cm-variable-2 { color: #89b6c5; }
33+
.cm-s-3024-night span.cm-variable-3 { color: #6abe79; }
34+
.cm-s-3024-night span.cm-def { color: #de935f; }
35+
.cm-s-3024-night span.cm-bracket { color: #ccc; }
36+
.cm-s-3024-night span.cm-tag { color: #f0c674; }
3537
.cm-s-3024-night span.cm-link { color: #a16a94; }
36-
.cm-s-3024-night span.cm-error { background: #db2d20; color: #807d7c; }
38+
.cm-s-3024-night span.cm-error { background: #F2777a; color: #eee ; }
3739

38-
.cm-s-3024-night .CodeMirror-activeline-background { background: #2F2F2F; }
39-
.cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
40+
.cm-s-3024-night .CodeMirror-activeline-background { background: hsla(0,0%,100%,0.05); }
41+
.cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: #ccc !important; }

demo/src/docs.css

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
src: local('Source Sans Pro'), local('SourceSansPro-Regular'), url(//themes.googleusercontent.com/static/fonts/sourcesanspro/v5/ODelI1aHBYDBqgeIAH2zlBM0YzuT7MdOe03otPbuUS0.woff) format('woff');
66
}
77

8-
body, html { margin: 0; padding: 0; height: 100%; }
8+
body, html { margin: 0; padding: 0; height: 100%; color: #fff; }
99
section, article { display: block; padding: 0; }
1010

1111
body {
12-
background: #f8f8f8;
12+
background: #303133;
1313
font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
1414
line-height: 1.5;
1515
}
@@ -23,18 +23,18 @@ h2, h3, h1 {
2323
h1 { font-size: 140%; }
2424
h2 { font-size: 120%; }
2525
h3 { font-size: 110%; }
26-
article > h2:first-child, section:first-child > h2 { margin-top: 0; }
26+
article > h2:first-child, section:first-child > h2 { margin-top: 0; color: #fff; }
2727

2828
#nav h1 {
2929
margin-right: 12px;
3030
margin-top: 0;
3131
margin-bottom: 2px;
32-
color: #d30707;
32+
color: #fff;
3333
letter-spacing: .5px;
3434
}
3535

3636
a, a:visited, a:link, .quasilink {
37-
color: #A21313;
37+
color: #fff;
3838
}
3939

4040
em {
@@ -48,10 +48,8 @@ em {
4848
article {
4949
max-width: 700px;
5050
margin: 0 0 0 160px;
51-
border-left: 2px solid #E30808;
52-
border-right: 1px solid #ddd;
5351
padding: 30px 50px 100px 50px;
54-
background: white;
52+
background: #262729;
5553
z-index: 2;
5654
position: relative;
5755
min-height: 100%;
@@ -114,14 +112,13 @@ article {
114112
}
115113

116114
#nav ul a {
117-
color: black;
115+
color: #fff;
118116
padding: 0 7px 1px 11px;
119117
}
120118

121119
#nav ul a.active, #nav ul a:hover {
122-
border-bottom: 1px solid #E30808;
123120
margin-bottom: -1px;
124-
color: #E30808;
121+
color: #fff;
125122
}
126123

127124
#logo {
@@ -131,7 +128,7 @@ article {
131128
}
132129

133130
section {
134-
border-top: 1px solid #E30808;
131+
border-top: 1px solid #fff;
135132
margin: 1.5em 0;
136133
}
137134

@@ -193,7 +190,7 @@ section.first {
193190
}
194191

195192
.actionlink.fund {
196-
color: #b00;
193+
color: #fff;
197194
left: 50%;
198195
margin-left: 15px;
199196
}
@@ -262,11 +259,12 @@ pre {
262259

263260
code {
264261
padding: 0 2px;
262+
color: #fff ;
265263
}
266264

267265
strong {
268-
text-decoration: underline;
269266
font-weight: normal;
267+
color: #fff ;
270268
}
271269

272270
.field {

lambdacalc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
CodeMirror.defineMode("lambdacalc", function(_config, modeConfig) {
1717

1818
// Modes for different types of symbols
19-
const DEFNAME = "builtin";
19+
const DEFNAME = "variable-2";
2020
const EQUALS = "text";
2121
const BRACKETS = "bracket";
22-
const LAMBDA = "atom";
22+
const LAMBDA = "keyword";
2323
const DOT = LAMBDA;
24-
const PREDEF = "text";
24+
const PREDEF = "variable";
2525
const BOUND = "text";
26-
const ARGS = "variable";
27-
const HOLE = "variable-2";
26+
const ARGS = "def";
27+
const HOLE = "atom";
2828
const NUMBER = "number";
29-
const EMPTY = "variable-3";
29+
const EMPTY = "text";
3030
const UNDEF = "error";
3131
const REDEF = "error";
3232
const FAIL = "error";

0 commit comments

Comments
 (0)