Browse Source

Tweaked code snippet color theme.
I find dark background intimidating. Specially for newcomers.

Mr.doob 13 years ago
parent
commit
728573269c
2 changed files with 11 additions and 16 deletions
  1. 3 1
      docs/api/core/Face4.html
  2. 8 15
      docs/prettify/threejs.css

+ 3 - 1
docs/api/core/Face4.html

@@ -16,7 +16,9 @@
 
 
 		<h2>Example</h2>
 		<h2>Example</h2>
 
 
-		<code>var face = new THREE.Face4( 0, 1, 2, 3, new THREE.Vector3( 0, 1, 0 ), new THREE.Color( 0xffaa00 ), 0 );</code>
+		<code>var normal = new THREE.Vector3( 0, 1, 0 );
+		var color = new THREE.Color( 0xffaa00 );
+		var face = new THREE.Face4( 0, 1, 2, 3, normal, color, 0 );</code>
 
 
 
 
 		<h2>Constructor</h2>
 		<h2>Constructor</h2>

+ 8 - 15
docs/prettify/threejs.css

@@ -1,22 +1,15 @@
-pre .str, code .str { color: #ad934c; } /* string */
-pre .kwd, code .kwd { color: #ffffa0; } /* keyword */
-pre .com, code .com { color: #709070; } /* comment */
-pre .typ, code .typ { color: #f09041; } /* type */
-pre .lit, code .lit { color: #22c0c4; } /* literal */
-pre .pun, code .pun { color: #cccccc; } /* punctuation */
-pre .pln, code .pln { color: #cccccc; } /* plaintext */
+pre .str, code .str { color: #8000ff; } /* string */
+pre .kwd, code .kwd { color: #30b030; } /* keyword */
+pre .com, code .com { color: #999999; } /* comment */
+pre .typ, code .typ { color: #2194ce; } /* type */
+pre .lit, code .lit { color: #ff0080; } /* literal */
+pre .pun, code .pun { color: #888888; } /* punctuation */
+pre .pln, code .pln { color: #444444; } /* plaintext */
 pre .dec, code .dec { color: #22c0c4; } /* decimal */
 pre .dec, code .dec { color: #22c0c4; } /* decimal */
 
 
 
 
 
 
 pre.prettyprint, code.prettyprint {
 pre.prettyprint, code.prettyprint {
-	background-color: #211e1e;
+	background-color: #f9f9f9;
 	font-family: 'inconsolata';
 	font-family: 'inconsolata';
-	box-shadow: 0 0 0.5em #666;
-	-moz-border-radius: 3px;
-	-webkit-border-radius: 3px;
-	-o-border-radius: 3px;
-	-ms-border-radius: 3px;
-	-khtml-border-radius: 3px;
-	border-radius: 3px;
 }
 }