소스 검색

fix: 优化手机样式

Signed-off-by: longjin <longjin@DragonOS.org>
longjin 1 주 전
부모
커밋
0b72827f6d
1개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 12 1
      templates/assets/css/main.css

+ 12 - 1
templates/assets/css/main.css

@@ -1,7 +1,6 @@
 /* DragonOS镜像站首页样式 */
 #wrapper {
   margin: 0 5%;
-  padding: 0 1rem;
   overflow-x: hidden;
   position: relative;
   width: 90%;
@@ -544,6 +543,18 @@ footer::before {
   margin: 2rem 0;
 }
 
+@media screen and (max-width: 768px) {
+  .download-info {
+    flex-direction:column;
+    align-items: center;
+    gap: 1.5rem;
+  }
+  .download-item {
+    width: 90% !important;
+    max-width: 320px;
+  }
+}
+
 .download-item {
   background: rgba(255, 255, 255, 0.98);
   padding: 2.5rem 2rem;