diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-07-17 20:42:27 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-07-17 20:42:27 -0700 |
commit | 8b6e38dd3c63fbf1badc2fb6492fa9523e0048d9 (patch) | |
tree | 641934797ce635642e84ee70ddcb9614de4a8cfe | |
parent | 302856eb79a41cfccb288fdf23e0e3eba857234b (diff) | |
download | my_new_personal_website-8b6e38dd3c63fbf1badc2fb6492fa9523e0048d9.tar.xz my_new_personal_website-8b6e38dd3c63fbf1badc2fb6492fa9523e0048d9.zip |
add print stylesheet
Diffstat (limited to '')
-rw-r--r-- | source/css/print.css | 15 | ||||
-rw-r--r-- | templates/template.html | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/source/css/print.css b/source/css/print.css new file mode 100644 index 00000000..392281ea --- /dev/null +++ b/source/css/print.css @@ -0,0 +1,15 @@ +body { + font-size: 8pt; +} + +article { + position: static; + width: 90%; + padding: 5%; +} + +nav, footer .rfooter .cc-icon, footer .rfooter .atom-icon, footer .rfooter .rss-icon { + width: 0; + height: 0; + visibility: hidden; +} diff --git a/templates/template.html b/templates/template.html index 9df99064..4ebc4d27 100644 --- a/templates/template.html +++ b/templates/template.html @@ -30,9 +30,10 @@ $for(header-includes)$ $header-includes$ $endfor$ <link href='/css/normalize.css' media="all" rel="stylesheet" type="text/css"/> -<link href='/css/theme.css' media="only screen" rel="stylesheet" type="text/css"/> +<link href='/css/theme.css' media="all" rel="stylesheet" type="text/css"/> <link href='/css/theme-narrow.css' media="only screen and (max-width: 980px)" rel="stylesheet" type="text/css"/> <link href='/css/theme-enlarge.css' media="only screen and (max-width: 980px) and (orientation: portrait)" rel="stylesheet" type="text/css"/> +<link href='/css/print.css' media="print" rel="stylesheet" type="text/css"/> <link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css"/> <link href="//fonts.googleapis.com/css?family=Droid+Sans+Mono" rel="stylesheet" type="text/css"/> <script> |