Răsfoiți Sursa

Editor: CSS tweaks.

Mr.doob 12 ani în urmă
părinte
comite
09da8bf6d9
2 a modificat fișierele cu 14 adăugiri și 7 ștergeri
  1. 14 6
      editor/index.html
  2. 0 1
      editor/js/Toolbar.js

+ 14 - 6
editor/index.html

@@ -20,8 +20,7 @@
 			button {
 			button {
 
 
 				position: relative;
 				position: relative;
-				left: -3px;
-				top: -3px;
+				margin-top: -2px;
 
 
 			}
 			}
 
 
@@ -59,10 +58,6 @@
 								background-color: #08f;
 								background-color: #08f;
 							}
 							}
 
 
-			.toolbar {
-				background-color: #999;
-				color: #333;
-			}
 
 
 			.sidebar {
 			.sidebar {
 				width: 300px;
 				width: 300px;
@@ -74,6 +69,19 @@
 					margin-bottom: 10px;
 					margin-bottom: 10px;
 				}
 				}
 
 
+			.toolbar {
+				background-color: #999;
+				color: #333;
+			}
+			
+				.toolbar .Panel {
+					padding: 4px;
+				}
+
+				.toolbar button {
+					margin-right: 6px;
+				}
+
 		</style>
 		</style>
 	</head>
 	</head>
 	<body>
 	<body>

+ 0 - 1
editor/js/Toolbar.js

@@ -7,7 +7,6 @@ var Toolbar = function ( editor ) {
 	container.setClass( 'toolbar' );
 	container.setClass( 'toolbar' );
 
 
 	var buttons = new UI.Panel();
 	var buttons = new UI.Panel();
-	buttons.setPadding( '7px' );
 	container.add( buttons );
 	container.add( buttons );
 
 
 	// translate / rotate / scale
 	// translate / rotate / scale