浏览代码

landing/index.css: Align Landing-folder and path

The Landing folder was not in vertical alignment with the Landing-path.
This fixes the vertical alignment by setting the :before which handles
the baseline problem and also sets the line-height to 1em to ensure the
alignment is correct.
AbdealiJK 8 年之前
父节点
当前提交
f1adedc294
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      src/landing/index.css

+ 7 - 3
src/landing/index.css

@@ -121,9 +121,13 @@
   background-origin: content-box;
   background-repeat: no-repeat;
   clear: none;
-  padding-top: 2px;
-  height: 12px;
-  width: 12px;
+  height: 1em;
+  width: 1em;
+  line-height: 1em;
+}
+
+.jp-Landing-folder:empty:before {
+  content: "\00a0";
 }
 
 .jp-Landing-path {