Skip to content

Commit 59821bf

Browse files
committed
Merge pull request felixge#27 from MohammedFadin/master
Added Responsive Support
2 parents 6a1707e + 32c9489 commit 59821bf

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
GUIDES = $(notdir $(wildcard guide/*.pdc))
22
HTML_GUIDES = $(addprefix public/,$(GUIDES:.pdc=.html))
33
PANDOC_DEFAULT_OPTIONS = \
4-
-5 \
4+
--to html5 \
55
-c css/screen.css \
66
-B template/header.html \
7-
-A template/footer.html
7+
-A template/footer.html \
8+
-H template/meta.html
89
PANDOC_GUIDE_OPTIONS = \
910
-B template/navigation.html \
1011
--toc

public/css/screen.css

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
@media only screen and (min-width: 1224px){
2+
.container{
3+
width: 960px;
4+
margin: 0 auto;
5+
}
6+
}
7+
8+
@media only screen and (orientation: portrait){
9+
code{
10+
white-space: pre-wrap; /* No code overlap */
11+
}
12+
}
13+
14+
@media only screen and (orientation: landscape){
15+
code{
16+
white-space: pre-wrap;
17+
}
18+
}
19+
120
body{
221
font-family: Georgia,serif;
322
}
@@ -14,11 +33,6 @@ a:visited{
1433
color: #B950B7;
1534
}
1635

17-
.container{
18-
width: 960px;
19-
margin: 0 auto;
20-
}
21-
2236
.shell, pre.sourceCode{
2337
-moz-border-radius: 5px;
2438
padding: 10px;
@@ -41,7 +55,7 @@ h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover{
4155
text-decoration: underline;
4256
}
4357

44-
code.sourceCode span.kw { color: #C6C5FE; font-weight: bold; }
58+
code.sourceCode span.kw { color: #C6C5FE; font-weight: bold; }
4559
code.sourceCode span.dt { color: #fff; }
4660
code.sourceCode span.dv { color: #FF73FD; }
4761
code.sourceCode span.bn { color: #40a070; }

template/meta.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<meta name="description" content="Unofficial guide to Node.JS">
2+
<meta name="author" content="Felix Geisendörfer">
3+
<meta name="viewport" content="width=device-width, initial-scale=1">

0 commit comments

Comments
 (0)