瀏覽代碼

better style for hover previews

jomo 10 年之前
父節點
當前提交
0b97aeee8d
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      public/stylesheets/style.css

+ 3 - 2
public/stylesheets/style.css

@@ -129,9 +129,9 @@ h4 {
   left: 0;
   right: 0;
   position: absolute;
-  bottom: -240px;
+  bottom: -260px;
   padding-left: 10px;
-  padding-top: 200px;
+  height: 220px;
   background-position: 10px center;
   background-repeat: no-repeat;
   font-size: 14px;
@@ -143,6 +143,7 @@ h4 {
 .code .preview-placeholder {
   display: block;
   font-weight: bold;
+  line-height: 200px;
 }
 
 .code .preview-placeholder:hover {