Просмотр исходного кода

Editor: Added shadow to info text.

Mr.doob 10 лет назад
Родитель
Сommit
43081ddd1e
3 измененных файлов с 9 добавлено и 0 удалено
  1. 4 0
      editor/css/dark.css
  2. 4 0
      editor/css/light.css
  3. 1 0
      editor/js/Viewport.Info.js

+ 4 - 0
editor/css/dark.css

@@ -33,6 +33,10 @@ input.Number {
 	bottom: 32px;
 }
 
+	#viewport #info {
+		text-shadow: 1px 1px 0px rgba(0,0,0,0.25);
+	}
+
 #player {
 	position: absolute;
 	top: 32px;

+ 4 - 0
editor/css/light.css

@@ -34,6 +34,10 @@ input.Number {
 	bottom: 32px;
 }
 
+	#viewport #info {
+		text-shadow: 1px 1px 0px rgba(0,0,0,0.25);
+	}
+
 #player {
 	position: absolute;
 	top: 32px;

+ 1 - 0
editor/js/Viewport.Info.js

@@ -7,6 +7,7 @@ Viewport.Info = function ( editor ) {
 	var signals = editor.signals;
 
 	var container = new UI.Panel();
+	container.setId( 'info' );
 	container.setPosition( 'absolute' );
 	container.setLeft( '10px' );
 	container.setBottom( '10px' );