Browse Source

fix navbar

Manfred Kroehnert 9 years ago
parent
commit
8b8a32b639
4 changed files with 64 additions and 11 deletions
  1. 30 4
      resources/helios.css
  2. 32 5
      resources/helios.less
  3. 1 1
      src/Helios-KeyBindings.js
  4. 1 1
      src/Helios-KeyBindings.st

+ 30 - 4
resources/helios.css

@@ -110,17 +110,28 @@ body[id="helios"] .btn-group > .dropdown-menu {
 body[id="helios"] .navbar-fixed-top {
   font-size: 11px;
   line-height: 16px;
-  min-height: 24px;
+  min-height: 25px;
   margin: 0;
   border: 0;
 }
 body[id="helios"] .navbar-fixed-top .navbar-header {
   border: 0;
-  height: 100%;
+  height: 25px;
   width: 100%;
+  border-bottom: 1px solid #666;
   box-shadow: inset 0px 2px 2px #aaa;
   background: #bababa;
 }
+body[id="helios"] .navbar-fixed-top .navbar-header .nav-tabs {
+  height: 24px;
+}
+body[id="helios"] .navbar-fixed-top .navbar-header .nav-tabs > li > a {
+  -webkit-border-radius: 0;
+  -moz-border-radius: 0;
+  border-radius: 0;
+  margin: 0;
+  height: 24px;
+}
 body[id="helios"] .navbar-fixed-top ul {
   width: 100%;
 }
@@ -211,7 +222,9 @@ body[id="helios"] .navbar-nav > li {
   max-width: 300px;
 }
 body[id="helios"] .navbar-nav .ui-sortable-handle a {
+  height: 24px;
   border: 0;
+  border-left: 1px solid #777;
 }
 body[id="helios"] .navbar-nav > li > a {
   line-height: 22px;
@@ -228,6 +241,16 @@ body[id="helios"] .navbar-nav > li > a span {
 body[id="helios"] .nav > li > a:hover {
   background: transparent;
 }
+body[id="helios"] .navbar-nav .ui-sortable-handle.inactive a {
+  color: #222;
+  background-image: linear-gradient(top, #bfbfbf, #b0b0b0);
+  background-image: -webkit-linear-gradient(top, #bfbfbf, #b0b0b0);
+  background-image: -moz-linear-gradient(top, #bfbfbf, #b0b0b0);
+  background-image: -o-linear-gradient(top, #bfbfbf, #b0b0b0);
+  text-shadow: 0 1px 0 #ddd;
+  box-shadow: 0 0 0;
+}
+body[id="helios"] .navbar-nav > .inactive > a:hover,
 body[id="helios"] .navbar-nav > li > a:hover {
   color: #333;
   background-image: linear-gradient(top, #cfcfcf, #c0c0c0);
@@ -249,7 +272,7 @@ body[id="helios"] .navbar-nav .ui-sortable-handle a {
   text-shadow: 0 1px 0 #ddd;
   box-shadow: 0 0 0;
 }
-body[id="helios"] .navbar-nav .ui-sortable-handle a {
+body[id="helios"] .nav.navbar-nav .ui-sortable-handle a {
   border-left: 1px solid #777;
 }
 body[id="helios"] .nav-pills.nav-stacked > li > a {
@@ -642,6 +665,7 @@ body[id="helios"] .key_helper .command {
   padding: 0;
   display: inline-block;
   width: 50%;
+  height: 20px;
 }
 body[id="helios"] .key_helper .command strong {
   display: inline-block;
@@ -653,9 +677,11 @@ body[id="helios"] .key_helper #binding-helper-main {
   padding: 5px;
   background: #eee;
 }
-body[id="helios"] .key_helper .label.label-default {
+body[id="helios"] .key_helper .label {
   padding: 1px 4px;
   font-family: Menlo, Monaco, "Lucida Console", Courier, monospace;
+  font-size: 100%;
+  line-height: 14px;
   background: transparent;
   color: #0E4561;
   text-shadow: none;

+ 32 - 5
resources/helios.less

@@ -132,17 +132,28 @@ body[id="helios"] {
 	.navbar-fixed-top {
 		font-size: 11px;
 		line-height: 16px;
-		min-height: 24px;
+		min-height: 25px;
 		margin: 0;
 		border: 0;
 
 		.navbar-header {
 			border: 0;
-			height: 100%;
+			height: 25px;
 			width: 100%;
-			//border-bottom: 1px solid #666;
+			border-bottom: 1px solid #666;
 			box-shadow: inset 0px 2px 2px #aaa;
 			background: #bababa;
+			.nav-tabs {
+				height: 24px;
+			}
+			.nav-tabs > li > a {
+				-webkit-border-radius: 0;
+				-moz-border-radius: 0;
+				border-radius: 0;
+				//border: 0;
+				margin: 0;
+				height: 24px;
+			}
 		}
 
 		ul {
@@ -251,7 +262,9 @@ body[id="helios"] {
 			max-width: 300px;
 		}
 		.ui-sortable-handle a {
+			height: 24px;
 			border: 0;
+			border-left: 1px solid #777;
 		}
 	}
 
@@ -273,6 +286,17 @@ body[id="helios"] {
 		background: transparent;
 	}
 
+	.navbar-nav .ui-sortable-handle.inactive a {
+		color: #222;
+		background-image: linear-gradient(top, #bfbfbf, #b0b0b0);
+		background-image: -webkit-linear-gradient(top, #bfbfbf, #b0b0b0);
+		background-image: -moz-linear-gradient(top, #bfbfbf, #b0b0b0);
+		background-image: -o-linear-gradient(top, #bfbfbf, #b0b0b0);
+		text-shadow: 0 1px 0 #ddd;
+		box-shadow: 0 0 0;
+	}
+
+	.navbar-nav > .inactive > a:hover,
 	.navbar-nav > li > a:hover {
 		color: #333;
 		background-image: linear-gradient(top, #cfcfcf, #c0c0c0);
@@ -296,7 +320,7 @@ body[id="helios"] {
 		box-shadow: 0 0 0;
 	}
 
-	.navbar-nav .ui-sortable-handle a {
+	.nav.navbar-nav .ui-sortable-handle a {
 		border-left: 1px solid #777;
 	}
 
@@ -747,6 +771,7 @@ body[id="helios"] {
 			padding: 0;
 			display: inline-block;
 			width: 50%;
+			height: 20px;
 
 			strong {
 				display: inline-block;
@@ -761,9 +786,11 @@ body[id="helios"] {
 			background: #eee;
 		}
 
-		.label.label-default {
+		.label {
 			padding: 1px 4px;
 			font-family: Menlo, Monaco, "Lucida Console", Courier, monospace;
+			font-size: 100%;
+			line-height: 14px;
 			background: transparent;
 			color: #0E4561;
 			text-shadow: none;

+ 1 - 1
src/Helios-KeyBindings.js

@@ -2490,7 +2490,7 @@ $recv($1)._with_((function(){
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx2) {
 //>>excludeEnd("ctx");
-return $recv($recv(html)._tag_("i"))._class_("icon-remove");
+return $recv($recv(html)._tag_("i"))._class_("glyphicon glyphicon-remove");
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
 //>>excludeEnd("ctx");

+ 1 - 1
src/Helios-KeyBindings.st

@@ -599,7 +599,7 @@ renderBindingGroup: aBindingGroup on: html
 renderCloseOn: html
 	html a
 		class: 'close';
-		with: [ (html tag: 'i') class: 'icon-remove' ];
+		with: [ (html tag: 'i') class: 'glyphicon glyphicon-remove' ];
 		onClick: [ self keyBinder deactivate ]
 !