diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-23 23:22:13 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-23 23:22:13 +0100 |
commit | 885d534f28acdff0d2afc44ebeb9b203d749b8b7 (patch) | |
tree | 14d89398f1f7e947846f2ecdf37eb76ecc60ea4a /web | |
parent | c07a5bce1a4815453e643309697e92eff5cbf667 (diff) | |
download | taginfo-885d534f28acdff0d2afc44ebeb9b203d749b8b7.tar taginfo-885d534f28acdff0d2afc44ebeb9b203d749b8b7.tar.gz |
CSS for printing
Diffstat (limited to 'web')
-rw-r--r-- | web/public/css/taginfo.css | 6 | ||||
-rw-r--r-- | web/views/key.erb | 4 | ||||
-rw-r--r-- | web/views/layout.erb | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/web/public/css/taginfo.css b/web/public/css/taginfo.css index e9b3cd4..584d2d6 100644 --- a/web/public/css/taginfo.css +++ b/web/public/css/taginfo.css @@ -7,6 +7,12 @@ body { line-height: 130%; } +@media print { + .no-print { + display: none !important; + } +} + img { border: 0 none; } diff --git a/web/views/key.erb b/web/views/key.erb index 1382dad..cd7f869 100644 --- a/web/views/key.erb +++ b/web/views/key.erb @@ -1,5 +1,5 @@ <div class="pre"> - <div id="tools"> + <div id="tools" class="no-print"> <% if @count_all_values < 1000 %> <%= xapi_link('*', @key) %> <%= josm_link('*', @key) %> <% else %> @@ -20,7 +20,7 @@ <p><span title="<%= t.pages.key.description_from_wiki %>" tipsy="w"><%= @desc %></span></p> </div> <div id="tabs"> - <ul> + <ul class="no-print"> <li><a href="#overview"><%= t.taginfo.overview %></a></li> <li><a href="#values"><%= t.osm.values %></a></li> <li><a href="#keys"><%= t.taginfo.key_combinations %></a></li> diff --git a/web/views/layout.erb b/web/views/layout.erb index 050b673..ba71b91 100644 --- a/web/views/layout.erb +++ b/web/views/layout.erb @@ -15,7 +15,7 @@ <div id="header_date" title="<%= t.taginfo.data_from_description %>" tipsy="ne"> <%= t.taginfo.data_from %>: <%= @data_until %> UTC </div> - <div id="header_forms"> + <div id="header_forms" class="no-print"> <form id="set_language" action="/switch_locale"> <input type="hidden" name="url" value="<%= request.path %>"/> <select id="locale" name="locale"> @@ -41,7 +41,7 @@ <div id="main"> <%= yield %> </div> - <div id="footer"> + <div id="footer" class="no-print"> <div id="footer_left"> <a class="extlink" href="http://www.openstreetmap.org/"><b>OpenStreetMap</b> - The Free Wiki World Map</a> </div> |