Pārlūkot izejas kodu

Minor style update

Leonardo Jeanteur 3 gadi atpakaļ
vecāks
revīzija
8137b5e85d
4 mainītis faili ar 12 papildinājumiem un 2 dzēšanām
  1. 4 0
      bin/style.css
  2. 4 0
      bin/style.less
  3. 2 2
      hide/comp/TileSelector.hx
  4. 2 0
      hide/comp/cdb/Table.hx

+ 4 - 0
bin/style.css

@@ -332,6 +332,10 @@ input[type=checkbox]:checked:after {
   text-align: left;
   overflow: hidden;
 }
+.hide-tileselect .dim-edit {
+  margin-left: 2px;
+  margin-right: 2px;
+}
 .hide-tileselect .flex-scroll {
   height: 600px;
   width: 800px;

+ 4 - 0
bin/style.less

@@ -371,6 +371,10 @@ input[type=checkbox] {
 	border : 1px solid #666;
 	text-align: left;
 	overflow: hidden;
+	.dim-edit {
+		margin-left: 2px;
+		margin-right: 2px;
+	}
 	.flex-scroll {
 		height: 600px;
 		width: 800px;

+ 2 - 2
hide/comp/TileSelector.hx

@@ -114,7 +114,7 @@ class TileSelector extends Component {
 			tex.onChange = function() this.file = tex.path;
 		}
 		if( allowSizeSelect ) {
-			var widthEdit = new Element('<span>Width:<input type="number" value="${size.width}">px</span>').appendTo(tool.element);
+			var widthEdit = new Element('<span class="dim-edit">Width:<input type="number" value="${size.width}">px</span>').appendTo(tool.element);
 			widthEdit.find("input").on("blur",function(e:js.jquery.Event) {
 				var nsize = Std.parseInt(e.getThis().val());
 				if( this.size.width != nsize && nsize != null && nsize > 0 )
@@ -122,7 +122,7 @@ class TileSelector extends Component {
 			}).on("keydown", function(e:js.jquery.Event) {
 				if( e.keyCode == 13 ) widthEdit.find("input").blur();
 			});
-			var heightEdit = new Element('<span>Height:<input type="number" value="${size.height}">px</span>').appendTo(tool.element);
+			var heightEdit = new Element('<span class="dim-edit">Height:<input type="number" value="${size.height}">px</span>').appendTo(tool.element);
 			heightEdit.find("input").on("blur",function(e:js.jquery.Event) {
 				var nsize = Std.parseInt(e.getThis().val());
 				if( this.size.height != nsize && nsize != null && nsize > 0 )

+ 2 - 0
hide/comp/cdb/Table.hx

@@ -229,6 +229,8 @@ class Table extends Component {
 		var content = sep.find("span");
 		var toggle = sep.find("a");
 		var title = if( sheet.props.separatorTitles != null ) sheet.props.separatorTitles[sindex] else null;
+		if( title != null )
+			sep.addClass('separator-$title');
 
 		function getLines() {
 			var snext = 0, sref = -1;