From efe0096970737eb22ef4fd9e8945e2c1a5d44841 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Mon, 7 Jun 2010 00:13:32 +0100 Subject: [PATCH] Improved print styles and CSV download buttons --- public/print.css | 6 ++++++ public/style.css | 7 +++++++ views/layout.haml | 2 ++ views/service.haml | 2 +- views/supplier.haml | 2 +- 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/public/print.css b/public/print.css index edfde0f..49acddd 100644 --- a/public/print.css +++ b/public/print.css @@ -6,4 +6,10 @@ body { margin: 0 auto; +} + +a, a:visited +{ + color: #000; + background-color: #fff; } \ No newline at end of file diff --git a/public/style.css b/public/style.css index edaabdc..2b9623d 100644 --- a/public/style.css +++ b/public/style.css @@ -120,3 +120,10 @@ tr { border: 0; } + +.download a, .download a:visited +{ + margin: 15px 0; + padding: 7px; + background-color: red; +} diff --git a/views/layout.haml b/views/layout.haml index b3a857f..29cfe25 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -36,3 +36,5 @@ %a{ :href => '/suppliers' } Suppliers %p %a{ :href => '/about' } About this website + %p + %a{ :href => 'http://adrianshort.co.uk/' } Designed by Adrian Short diff --git a/views/service.haml b/views/service.haml index 1ff0ece..e55f1d2 100644 --- a/views/service.haml +++ b/views/service.haml @@ -8,7 +8,7 @@ %a{ :href => '/services' } Services %li = @service.name - %p + %p.noprint.download %a{ :href => "/services/#{@service.id}.csv" } Download data as CSV diff --git a/views/supplier.haml b/views/supplier.haml index 09808e0..d62cfe4 100644 --- a/views/supplier.haml +++ b/views/supplier.haml @@ -9,7 +9,7 @@ %li = @supplier.name - %p.noprint + %p.noprint.download %a{ :href => "/suppliers/#{@supplier.id}.csv" } Download data as CSV