Skip to content

Commit

Permalink
use print.css, add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Sep 8, 2012
1 parent 57763ae commit e610ca0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app.rb
Expand Up @@ -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 }

Expand All @@ -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">
Expand Down
5 changes: 4 additions & 1 deletion assets/print.css
Expand Up @@ -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.