2
0
Эх сурвалжийг харах

Editor: Refactor fixed border colors to css classes

jlewin 12 жил өмнө
parent
commit
b0f634adcd

+ 7 - 1
editor/index.html

@@ -49,7 +49,7 @@
 					}
 					}
 
 
 						#menubar .menu .options hr {
 						#menubar .menu .options hr {
-							border-color: #ddd;
+							border-color: #444;
 						}
 						}
 
 
 						#menubar .menu .options .option {
 						#menubar .menu .options .option {
@@ -72,9 +72,15 @@
 				overflow: auto;
 				overflow: auto;
 			}
 			}
 
 
+
 				#sidebar .Panel {
 				#sidebar .Panel {
 					margin-bottom: 10px;
 					margin-bottom: 10px;
+				}
+
+				#sidebar > .Panel {
 					color: #888;
 					color: #888;
+					padding: 10px;
+					border-top: 1px solid #333;
 				}
 				}
 
 
 				#sidebar #outliner .type {
 				#sidebar #outliner .type {

+ 0 - 2
editor/js/Sidebar.Animation.js

@@ -6,8 +6,6 @@ Sidebar.Animation = function ( editor ) {
 	var possibleAnimations = {};
 	var possibleAnimations = {};
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPadding( '10px' );
 	container.setDisplay( 'none' );
 	container.setDisplay( 'none' );
 
 
 	container.add( new UI.Text( 'Animation' ) );
 	container.add( new UI.Text( 'Animation' ) );

+ 0 - 2
editor/js/Sidebar.Geometry.CircleGeometry.js

@@ -1,8 +1,6 @@
 Sidebar.Geometry.CircleGeometry = function ( signals, object ) {
 Sidebar.Geometry.CircleGeometry = function ( signals, object ) {
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPaddingTop( '10px' );
 
 
 	var geometry = object.geometry;
 	var geometry = object.geometry;
 
 

+ 0 - 2
editor/js/Sidebar.Geometry.CubeGeometry.js

@@ -1,8 +1,6 @@
 Sidebar.Geometry.CubeGeometry = function ( signals, object ) {
 Sidebar.Geometry.CubeGeometry = function ( signals, object ) {
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPaddingTop( '10px' );
 
 
 	var geometry = object.geometry;
 	var geometry = object.geometry;
 
 

+ 0 - 2
editor/js/Sidebar.Geometry.CylinderGeometry.js

@@ -1,8 +1,6 @@
 Sidebar.Geometry.CylinderGeometry = function ( signals, object ) {
 Sidebar.Geometry.CylinderGeometry = function ( signals, object ) {
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPaddingTop( '10px' );
 
 
 	var geometry = object.geometry;
 	var geometry = object.geometry;
 
 

+ 0 - 2
editor/js/Sidebar.Geometry.IcosahedronGeometry.js

@@ -1,8 +1,6 @@
 Sidebar.Geometry.IcosahedronGeometry = function ( signals, object ) {
 Sidebar.Geometry.IcosahedronGeometry = function ( signals, object ) {
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPaddingTop( '10px' );
 
 
 	var geometry = object.geometry;
 	var geometry = object.geometry;
 
 

+ 0 - 2
editor/js/Sidebar.Geometry.PlaneGeometry.js

@@ -1,8 +1,6 @@
 Sidebar.Geometry.PlaneGeometry = function ( signals, object ) {
 Sidebar.Geometry.PlaneGeometry = function ( signals, object ) {
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPaddingTop( '10px' );
 
 
 	var geometry = object.geometry;
 	var geometry = object.geometry;
 
 

+ 0 - 2
editor/js/Sidebar.Geometry.SphereGeometry.js

@@ -1,8 +1,6 @@
 Sidebar.Geometry.SphereGeometry = function ( signals, object ) {
 Sidebar.Geometry.SphereGeometry = function ( signals, object ) {
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPaddingTop( '10px' );
 
 
 	var geometry = object.geometry;
 	var geometry = object.geometry;
 
 

+ 0 - 2
editor/js/Sidebar.Geometry.TorusGeometry.js

@@ -1,8 +1,6 @@
 Sidebar.Geometry.TorusGeometry = function ( signals, object ) {
 Sidebar.Geometry.TorusGeometry = function ( signals, object ) {
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPaddingTop( '10px' );
 
 
 	var geometry = object.geometry;
 	var geometry = object.geometry;
 
 

+ 0 - 2
editor/js/Sidebar.Geometry.TorusKnotGeometry.js

@@ -1,8 +1,6 @@
 Sidebar.Geometry.TorusKnotGeometry = function ( signals, object ) {
 Sidebar.Geometry.TorusKnotGeometry = function ( signals, object ) {
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPaddingTop( '10px' );
 
 
 	var geometry = object.geometry;
 	var geometry = object.geometry;
 
 

+ 0 - 2
editor/js/Sidebar.Geometry.js

@@ -3,8 +3,6 @@ Sidebar.Geometry = function ( editor ) {
 	var signals = editor.signals;
 	var signals = editor.signals;
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPadding( '10px' );
 	container.setDisplay( 'none' );
 	container.setDisplay( 'none' );
 
 
 	container.add( new UI.Text().setValue( 'GEOMETRY' ) );
 	container.add( new UI.Text().setValue( 'GEOMETRY' ) );

+ 0 - 2
editor/js/Sidebar.Material.js

@@ -20,8 +20,6 @@ Sidebar.Material = function ( editor ) {
 	};
 	};
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPadding( '10px' );
 	container.setDisplay( 'none' );
 	container.setDisplay( 'none' );
 
 
 	container.add( new UI.Text().setValue( 'MATERIAL' ) );
 	container.add( new UI.Text().setValue( 'MATERIAL' ) );

+ 0 - 2
editor/js/Sidebar.Object3D.js

@@ -3,8 +3,6 @@ Sidebar.Object3D = function ( editor ) {
 	var signals = editor.signals;
 	var signals = editor.signals;
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setBorderTop( '1px solid #ccc' );
-	container.setPadding( '10px' );
 	container.setDisplay( 'none' );
 	container.setDisplay( 'none' );
 
 
 	var objectType = new UI.Text().setTextTransform( 'uppercase' );
 	var objectType = new UI.Text().setTextTransform( 'uppercase' );

+ 0 - 2
editor/js/Sidebar.Renderer.js

@@ -13,8 +13,6 @@ Sidebar.Renderer = function ( editor ) {
 	};
 	};
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setPadding( '10px' );
-	container.setBorderTop( '1px solid #ccc' );
 
 
 	container.add( new UI.Text( 'RENDERER' ) );
 	container.add( new UI.Text( 'RENDERER' ) );
 	container.add( new UI.Break(), new UI.Break() );
 	container.add( new UI.Break(), new UI.Break() );

+ 0 - 3
editor/js/Sidebar.Scene.js

@@ -3,9 +3,6 @@ Sidebar.Scene = function ( editor ) {
 	var signals = editor.signals;
 	var signals = editor.signals;
 
 
 	var container = new UI.Panel();
 	var container = new UI.Panel();
-	container.setPadding( '10px' );
-	container.setBorderTop( '1px solid #ccc' );
-
 
 
 	container.add( new UI.Text( 'SCENE' ) );
 	container.add( new UI.Text( 'SCENE' ) );
 	container.add( new UI.Break(), new UI.Break() );
 	container.add( new UI.Break(), new UI.Break() );