浏览代码

Improved print styles and CSV download buttons

pull/3/head
Adrian Short 14 年前
父节点
当前提交
efe0096970
共有 5 个文件被更改,包括 17 次插入2 次删除
  1. +6
    -0
      public/print.css
  2. +7
    -0
      public/style.css
  3. +2
    -0
      views/layout.haml
  4. +1
    -1
      views/service.haml
  5. +1
    -1
      views/supplier.haml

+ 6
- 0
public/print.css 查看文件

@@ -6,4 +6,10 @@
body
{
margin: 0 auto;
}

a, a:visited
{
color: #000;
background-color: #fff;
}

+ 7
- 0
public/style.css 查看文件

@@ -120,3 +120,10 @@ tr
{
border: 0;
}

.download a, .download a:visited
{
margin: 15px 0;
padding: 7px;
background-color: red;
}

+ 2
- 0
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

+ 1
- 1
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


+ 1
- 1
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


正在加载...
取消
保存