Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Fix smartphone style

Kazuhito Hokamurabf6873c6b588
diff --git a/lib/template.html b/lib/template.html
index 7a27ec07..38e2e00d 100644
--- a/lib/template.html
+++ b/lib/template.html
@@ -3,6 +3,7 @@
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="mocha.css" />
</head>
<body>
diff --git a/mocha.css b/mocha.css
index 3b8afb1a..463fb8be 100644
--- a/mocha.css
+++ b/mocha.css
@@ -229,3 +229,13 @@ code .init { color: #2F6FAD }
code .string { color: #5890AD }
code .keyword { color: #8A6343 }
code .number { color: #2F6FAD }
+
+@media screen and (max-device-width: 480px) {
+ body {
+ padding: 60px 0px;
+ }
+
+ #stats {
+ position: absolute;
+ }
+}
diff --git a/test/browser/index.html b/test/browser/index.html
index 4960892e..7663f6a5 100644
--- a/test/browser/index.html
+++ b/test/browser/index.html
@@ -2,6 +2,7 @@
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../mocha.css" />
<script src="../../mocha.js"></script>
<script>mocha.setup('bdd')</script>
diff --git a/test/browser/large.html b/test/browser/large.html
index edfba9eb..1804b3a0 100644
--- a/test/browser/large.html
+++ b/test/browser/large.html
@@ -2,6 +2,7 @@
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../mocha.css" />
<script src="../../mocha.js"></script>
<script>mocha.setup('bdd')</script>
diff --git a/test/browser/opts.html b/test/browser/opts.html
index 31d29524..ec49a418 100644
--- a/test/browser/opts.html
+++ b/test/browser/opts.html
@@ -2,6 +2,7 @@
<head>
<title>Mocha</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../../mocha.css" />
<script src="../../mocha.js"></script>
<script>