Skip to content

Commit 7285732

Browse files
committed
Tweaked code snippet color theme.
I find dark background intimidating. Specially for newcomers.
1 parent d17f3de commit 7285732

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

docs/api/core/Face4.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ <h1>[name]</h1>
1616

1717
<h2>Example</h2>
1818

19-
<code>var face = new THREE.Face4( 0, 1, 2, 3, new THREE.Vector3( 0, 1, 0 ), new THREE.Color( 0xffaa00 ), 0 );</code>
19+
<code>var normal = new THREE.Vector3( 0, 1, 0 );
20+
var color = new THREE.Color( 0xffaa00 );
21+
var face = new THREE.Face4( 0, 1, 2, 3, normal, color, 0 );</code>
2022

2123

2224
<h2>Constructor</h2>

docs/prettify/threejs.css

+8-15
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
1-
pre .str, code .str { color: #ad934c; } /* string */
2-
pre .kwd, code .kwd { color: #ffffa0; } /* keyword */
3-
pre .com, code .com { color: #709070; } /* comment */
4-
pre .typ, code .typ { color: #f09041; } /* type */
5-
pre .lit, code .lit { color: #22c0c4; } /* literal */
6-
pre .pun, code .pun { color: #cccccc; } /* punctuation */
7-
pre .pln, code .pln { color: #cccccc; } /* plaintext */
1+
pre .str, code .str { color: #8000ff; } /* string */
2+
pre .kwd, code .kwd { color: #30b030; } /* keyword */
3+
pre .com, code .com { color: #999999; } /* comment */
4+
pre .typ, code .typ { color: #2194ce; } /* type */
5+
pre .lit, code .lit { color: #ff0080; } /* literal */
6+
pre .pun, code .pun { color: #888888; } /* punctuation */
7+
pre .pln, code .pln { color: #444444; } /* plaintext */
88
pre .dec, code .dec { color: #22c0c4; } /* decimal */
99

1010

1111

1212
pre.prettyprint, code.prettyprint {
13-
background-color: #211e1e;
13+
background-color: #f9f9f9;
1414
font-family: 'inconsolata';
15-
box-shadow: 0 0 0.5em #666;
16-
-moz-border-radius: 3px;
17-
-webkit-border-radius: 3px;
18-
-o-border-radius: 3px;
19-
-ms-border-radius: 3px;
20-
-khtml-border-radius: 3px;
21-
border-radius: 3px;
2215
}

0 commit comments

Comments
 (0)