Browse Source

Center color box on the line #2827

QuentinRillet 8 years ago
parent
commit
1b0b621fac
2 changed files with 1 additions and 1 deletions
  1. 1 0
      inspector/sass/_detailPanel.scss
  2. 0 1
      inspector/src/gui/ColorPickerElement.ts

+ 1 - 0
inspector/sass/_detailPanel.scss

@@ -111,6 +111,7 @@
   // The div displaying a color
   .color-element {
       @extend .element-viewer;
+      top: 2px;
   }
 
   // The div displaying a texture element

+ 0 - 1
inspector/src/gui/ColorPickerElement.ts

@@ -13,7 +13,6 @@ module INSPECTOR {
             let scheduler = Scheduler.getInstance();
             this._div.className = 'color-element';
             this._div.style.backgroundColor = this._toRgba(color);
-            this._div.style.top = "5px";
             this.pline = propertyLine;
 
             this._input = Helpers.CreateInput();