Skip to content

Commit 6f574aa

Browse files
committed
Improve mobile behavior of HTML site
1 parent 1442b15 commit 6f574aa

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

asciidoc_html.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ template::[source-filter-style]
7070
<!doctype html>
7171
<head>
7272
<meta charset="utf-8">
73+
<meta name="viewport" content="width=device-width, initial-scale=1">
7374
<title>{doctitle} :: Eloquent JavaScript</title>
7475
<link rel=stylesheet href="js/node_modules/codemirror/lib/codemirror.css">
7576
<script src="js/acorn_codemirror.js"></script>

code/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!doctype html>
22
<head>
33
<meta charset="utf-8">
4+
<meta name="viewport" content="width=device-width">
45
<base href="..">
56
<title>Eloquent JavaScript :: Code Sandbox</title>
67

html/backers.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!doctype html>
22
<head>
33
<meta charset="utf-8">
4+
<meta name="viewport" content="width=device-width">
45
<title>Eloquent JavaScript :: Backers</title>
56
<link rel=stylesheet href="css/ejs.css">
67

html/errata.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!doctype html>
22
<head>
33
<meta charset="utf-8">
4+
<meta name="viewport" content="width=device-width">
45
<title>Eloquent JavaScript :: Errata</title>
56
<link rel=stylesheet href="css/ejs.css">
67

html/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!doctype html>
22
<head>
33
<meta charset="utf-8">
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
45
<title>Eloquent JavaScript</title>
56
<link rel=stylesheet href="css/ejs.css">
67
</head>
@@ -47,6 +48,7 @@ <h2>Contents</h2>
4748
<style>
4849
li.contents-intro:before { display: none; }
4950
.toc h3 { position: absolute; margin: 0; top: -2px; right: 0; font-family: inherit; font-weight: normal; font-size: 90%; }
51+
@media screen and (max-width: 500px) { .toc h3 { display: none } }
5052
ul.links { list-style-type: circle; }
5153
img.logo { vertical-align: text-top; padding: 0px 4px; border: 0; }
5254
</style>

0 commit comments

Comments
 (0)