Skip to content

Commit

Permalink
Added print CSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Dec 22, 2010
1 parent 9a63fa0 commit 903f416
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/_layout.html
Expand Up @@ -3,6 +3,7 @@
<head>
<title>{{title}}</title>
<link href="screen.css" media="screen,projection" rel="stylesheet" type="text/css">
<link href="print.css" media="print" rel="stylesheet" type="text/css">
</head>
<body>
<div id="header">
Expand All @@ -20,5 +21,7 @@
<h1>{{title}}</h1>
{{body}}
</div>
<div id="footer">
</div>
</body>
</html>
40 changes: 40 additions & 0 deletions doc/print.css
@@ -0,0 +1,40 @@
body {
font-family: Baskerville, Palatino, "Palatino Linotype", Georgia, serif;
font-size: 12pt;
margin: 2em 4em;
}
h1, h2, h3, h4, #header {
font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}
h1 { font-size: 18pt; }
h2 { font-size: 16pt; }
h3 { font-size: 14pt; }
h4 { font-size: 12pt; }
pre, code {
font-family: "Menlo", "Consolas", "New Courier", Courier, monospace;
font-size: 10pt;
color: #060;
}


#header .title {
text-align: right;
font-weight: bolder;
font-size: 28pt;
}
.title a {
text-decoration: none;
color: #600;
}
#header .navigation {
display: none;
}


#content {
margin-top: 2em;
}

#footer {
margin: 2em 0;
}
4 changes: 4 additions & 0 deletions doc/screen.css
Expand Up @@ -49,3 +49,7 @@ pre, code {
#content {
margin-top: 2em;
}

#footer {
margin: 2em 0;
}

0 comments on commit 903f416

Please sign in to comment.