瀏覽代碼

feat(hugo): 使用移动端专用背景图

Daily Deploy Bot 15 小時之前
父節點
當前提交
be88831d28
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      site/static/css/site.css

+ 11 - 0
site/static/css/site.css

@@ -65,6 +65,17 @@ body {
   background-attachment: fixed, scroll, scroll, local;
 }
 
+/* 移动端优化:使用移动端专属背景图 */
+@media (max-width: 720px) {
+  body {
+    background-image: url("../background-mobile.png");
+    background-size: cover;
+    background-position: center;
+    background-repeat: no-repeat;
+    background-attachment: scroll;
+  }
+}
+
 a {
   color: var(--accent);
   text-decoration: none;