Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #27 from MohammedFadin/master

Added Responsive Support
  • Loading branch information...
commit 59821bf657cea4b964b4309ea8fab4a241d9af05 2 parents 6a1707e + 32c9489
@felixge authored
Showing with 26 additions and 8 deletions.
  1. +3 −2 Makefile
  2. +20 −6 public/css/screen.css
  3. +3 −0  template/meta.html
View
5 Makefile
@@ -1,10 +1,11 @@
GUIDES = $(notdir $(wildcard guide/*.pdc))
HTML_GUIDES = $(addprefix public/,$(GUIDES:.pdc=.html))
PANDOC_DEFAULT_OPTIONS = \
- -5 \
+ --to html5 \
-c css/screen.css \
-B template/header.html \
- -A template/footer.html
+ -A template/footer.html \
+ -H template/meta.html
PANDOC_GUIDE_OPTIONS = \
-B template/navigation.html \
--toc
View
26 public/css/screen.css
@@ -1,3 +1,22 @@
+@media only screen and (min-width: 1224px){
+ .container{
+ width: 960px;
+ margin: 0 auto;
+ }
+}
+
+@media only screen and (orientation: portrait){
+ code{
+ white-space: pre-wrap; /* No code overlap */
+ }
+}
+
+@media only screen and (orientation: landscape){
+ code{
+ white-space: pre-wrap;
+ }
+}
+
body{
font-family: Georgia,serif;
}
@@ -14,11 +33,6 @@ a:visited{
color: #B950B7;
}
-.container{
- width: 960px;
- margin: 0 auto;
-}
-
.shell, pre.sourceCode{
-moz-border-radius: 5px;
padding: 10px;
@@ -41,7 +55,7 @@ h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover{
text-decoration: underline;
}
-code.sourceCode span.kw { color: #C6C5FE; font-weight: bold; }
+code.sourceCode span.kw { color: #C6C5FE; font-weight: bold; }
code.sourceCode span.dt { color: #fff; }
code.sourceCode span.dv { color: #FF73FD; }
code.sourceCode span.bn { color: #40a070; }
View
3  template/meta.html
@@ -0,0 +1,3 @@
+<meta name="description" content="Unofficial guide to Node.JS">
+<meta name="author" content="Felix Geisendörfer">
+<meta name="viewport" content="width=device-width, initial-scale=1">
Please sign in to comment.
Something went wrong with that request. Please try again.