Bläddra i källkod

Some more layout love.

Mr.doob 13 år sedan
förälder
incheckning
b6d5c32985
2 ändrade filer med 15 tillägg och 13 borttagningar
  1. 3 3
      docs/api/cameras/PerspectiveCamera.html
  2. 12 10
      docs/index.html

+ 3 - 3
docs/api/cameras/PerspectiveCamera.html

@@ -40,7 +40,7 @@ Formula based on <a href="http://www.bobatkins.com/photography/technical/field_o
 <div>
 Sets an offset in a larger frustum. This is useful for multi-window or multi-monitor/multi-machine setups.<br /><br />
 
-For example, if you have 3x2 monitors and each monitor is 1920x1080 and the monitors are in grid like this:<br /><br />
+For example, if you have 3x2 monitors and each monitor is 1920x1080 and the monitors are in grid like this:<br />
 
 <pre>+---+---+---+
 | A | B | C |
@@ -49,7 +49,7 @@ For example, if you have 3x2 monitors and each monitor is 1920x1080 and the moni
 +---+---+---+
 </pre>
 
-then for each monitor you would call it like this:<br /><br />
+then for each monitor you would call it like this:<br />
 
 <code>var w = 1920;
 var h = 1080;
@@ -68,7 +68,7 @@ camera.setOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
 camera.setOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
 //--F--
 camera.setOffset( fullWidth, fullHeight, w * 2, h * 1, w, h );
-</code><br />
+</code>
 
 Note there is no reason monitors have to be the same size or in a grid.
 </div>

+ 12 - 10
docs/index.html

@@ -9,15 +9,10 @@
 				padding: 0;
 				color: #555;
 				font-family: Arial, sans-serif;
+				font-size: 15px;
 				overflow: hidden;
 			}
 
-			h1 {
-				color: #999;
-				font-size: 18px;
-				margin-top: 30px;
-			}
-
 			#panel	{
 
 				position: fixed;
@@ -26,11 +21,14 @@
 
 				padding-left: 20px;
 
-				font-size: 15px;
-
 				overflow: auto;
 
 			}
+				#panel h1 {
+					color: #999;
+					font-size: 18px;
+					margin-top: 30px;
+				}
 
 				#panel ul {
 					list-style-type: none;
@@ -45,6 +43,7 @@
 				#viewer h1 {
 					color: #444;
 					font-size: 25px;
+					margin-top: 25px;
 				}
 
 				#viewer h2 {
@@ -54,7 +53,7 @@
 				}
 
 				#viewer h3 {
-					font-size: 15px;
+					font-size: 16px;
 					margin-top: 30px;
 				}
 
@@ -62,9 +61,12 @@
 					padding-left: 30px;
 				}
 
+				#viewer pre, code {
+					margin-top: 20px;
+					margin-bottom: 20px;
+				}
 				#viewer code {
 					display: block;
-					margin: 0px;
 					width: 90%;
 					padding: 20px;
 					white-space: pre;