Browse Source

minor css cleanup

trethaller 4 years ago
parent
commit
a83f3d0425
3 changed files with 11 additions and 12 deletions
  1. 5 3
      bin/style.css
  2. 4 7
      bin/style.less
  3. 2 2
      hide/view/Prefab.hx

+ 5 - 3
bin/style.css

@@ -336,7 +336,7 @@ input[type=checkbox]:checked:after {
 }
 .hide-toolbar .layout-btn {
   position: absolute;
-  right: 31px;
+  right: 26px;
 }
 .hide-toolbar .close-btn {
   position: absolute;
@@ -344,7 +344,6 @@ input[type=checkbox]:checked:after {
 }
 .hide-toolbar .toolbar-label,
 .hide-toolbar .menu {
-  margin-right: 5px;
   display: inline-block;
   min-width: 20px;
   padding: 2px;
@@ -365,7 +364,6 @@ input[type=checkbox]:checked:after {
 .hide-toolbar .button,
 .hide-toolbar .toggle,
 .scene-partition .show-cols-btn {
-  margin-right: 5px;
   display: inline-block;
   user-select: none;
   border: 1px solid #5a5a5a;
@@ -435,6 +433,10 @@ input[type=checkbox]:checked:after {
   margin-left: 5px;
   min-width: 100px;
 }
+.prefab-toolbar .button,
+.prefab-toolbar .toggle {
+  margin-right: 5px;
+}
 .hide-list {
   width: 100%;
   min-height: 200px;

+ 4 - 7
bin/style.less

@@ -381,7 +381,7 @@ input[type=checkbox] {
 
 	.layout-btn {
 		position: absolute;
-		right: 31px;
+		right: 26px;
 	}
 
 	.close-btn {
@@ -390,7 +390,6 @@ input[type=checkbox] {
 	}
 
 	.toolbar-label, .menu {
-		margin-right : 5px;
 		display: inline-block;
 		min-width : 20px;
 		padding : 2px;
@@ -410,7 +409,6 @@ input[type=checkbox] {
 	}
 
 	.button, .toggle {
-		margin-right : 5px;
 		display: inline-block;
 		user-select:none;
 		border: 1px solid rgb(90,90,90);
@@ -479,11 +477,10 @@ input[type=checkbox] {
 	}
 }
 
-.tools-buttons {
-	.select, .button, .menu {
-		
+.prefab-toolbar {
+	.button, .toggle {
+		margin-right : 5px;
 	}
-
 }
 
 .hide-list {

+ 2 - 2
hide/view/Prefab.hx

@@ -297,7 +297,7 @@ class Prefab extends FileView {
 		element.html('
 			<div class="flex vertical">
 				<div style="flex: 0 0 30px;">
-					<span class="tools-buttons"></span>
+					<span class="prefab-toolbar"></span>
 				</div>
 
 				<div class="scene-partition" style="display: flex; flex-direction: row; flex: 1; overflow: hidden;">
@@ -353,7 +353,7 @@ class Prefab extends FileView {
 			</div>
 		');
 
-		tools = new hide.comp.Toolbar(null,element.find(".tools-buttons"));
+		tools = new hide.comp.Toolbar(null,element.find(".prefab-toolbar"));
 		layerToolbar = new hide.comp.Toolbar(null,element.find(".layer-buttons"));
 		currentVersion = undo.currentID;