浏览代码

ensure that any buttons and inputs will not mess up navbar alignment

Owen Versteeg 11 年之前
父节点
当前提交
9ba4c56c39
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      less/navbar.less

+ 5 - 0
less/navbar.less

@@ -25,6 +25,11 @@
 	}
 }
 
+.navbar input, .navbar button {
+	margin-top: -20px; 
+	/* This ensures that any buttons and inputs in the navbar will not mess up its vertical alignment */
+}
+
 @media (max-width:500px) {
 	.navbar a {
 		text-align: center;