瀏覽代碼

Favour Z-Index Approach

torres126 6 年之前
父節點
當前提交
367f1ba6c3
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      libretto/style.css

+ 7 - 3
libretto/style.css

@@ -820,10 +820,9 @@ body:not(.libretto-has-header-image) .title-block {
   border-bottom: none;
   bottom: 0;
   color: #faf9f5;
-  left: 50%;
+  left: 20%;
   position: absolute;
   text-shadow: 0 1px 0 #000;
-  transform: translateX(-50%);
   z-index: 1;
 }
 
@@ -1082,6 +1081,11 @@ a:active {
   padding: 0 5px 0 0;
 }
 
+#site-navigation .menu {
+  position: relative;
+  z-index: 2;
+}
+
 #site-navigation .menu li {
   margin: 0;
 }
@@ -2646,7 +2650,7 @@ object {
   }
 
   .title-block .site-logo-link {
-    display: inline-block;
+    display: block;
     margin-bottom: 1.5rem;
   }