瀏覽代碼

Changed to mobile panel to responsive size.

Yuin Chien 6 年之前
父節點
當前提交
1e1effdbc9
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      files/main.css

+ 4 - 3
files/main.css

@@ -253,14 +253,15 @@ iframe {
 		bottom: 0;
 		bottom: 0;
 		background: white;
 		background: white;
 		box-shadow: 0 0 8px rgba(0,0,0,.1);
 		box-shadow: 0 0 8px rgba(0,0,0,.1);
-		width: 300px;
+		width: calc(100vw - 60px);
+		max-width: 360px;
 		z-index: 10000;
 		z-index: 10000;
 		transition: .25s transform;
 		transition: .25s transform;
 		overflow-x: hidden;
 		overflow-x: hidden;
-		margin-right: -320px;
+		margin-right: -380px;
 	}
 	}
 	#panel.open #contentWrapper {
 	#panel.open #contentWrapper {
-		transform: translate3d(-320px, 0 ,0);
+		transform: translate3d(-380px, 0 ,0);
 	}
 	}
 
 
 	iframe {
 	iframe {