Permalink
Browse files

use print.css, add favicon

  • Loading branch information...
1 parent 57763ae commit e610ca09616592de7ef483065eda4f3b71c1c4eb @zzak zzak committed Sep 8, 2012
Showing with 8 additions and 2 deletions.
  1. +4 −1 app.rb
  2. +4 −1 assets/print.css
View
5 app.rb
@@ -8,6 +8,7 @@
get('/download'){ build(true); send_file "#{OUTPUT_DIR}/sinatra-book.pdf", :type => 'application/pdf'; }
get('/book.css') { send_file "#{ASSETS_DIR}/book.css", :type => 'text/css' }
+get('/print.css') { send_file "#{ASSETS_DIR}/print.css", :type => 'text/css' }
get('/download.png') { send_file "#{ASSETS_DIR}/images/download.png", :type => :png }
@@ -16,7 +17,9 @@
<html>
<head>
<title>Sinatra Book</title>
- <link rel="stylesheet" type="text/css" href="/book.css" />
+ <link rel="stylesheet" type="text/css" href="/book.css" media="screen, projection" />
+ <link rel="stylesheet" type="text/css" href="/print.css" media="print" />
+ <link rel="shortcut icon" href="https://github.com/sinatra/resources/raw/master/logo/favicon.ico">
</head>
<body>
<div id="download">
View
@@ -46,4 +46,7 @@ hr
{ display: none; }
#header img
- { width: 296px; }
+ { width: 200px; }
+
+#download
+ { display: none; }

0 comments on commit e610ca0

Please sign in to comment.