소스 검색

feat: 添加对移动端的适配

gamehu 3 달 전
부모
커밋
0c38254f70
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      source/_data/styles.styl

+ 17 - 0
source/_data/styles.styl

@@ -526,3 +526,20 @@ code, pre {
     width: 100%;
   }
 }
+
+@media (max-width: 767px) {
+  .main-inner {
+    width: 100% !important;
+  }
+
+  .post-block {
+    margin-top: 20px;
+    margin-bottom: 20px;
+    padding: 20px 16px;
+    border-radius: 12px;
+  }
+
+  .post {
+    padding: 16px;
+  }
+}