Commit 842ad4a42590484ee12a9e76ffde90a300e9f3b8

Authored by George Dewar
1 parent ae1a3148

Initial implementation

app/assets/stylesheets/print.scss 0 → 100644
... ... @@ -0,0 +1,13 @@
  1 +/* Generic print styles */
  2 +header, nav, nav.main-nav, nav.navbar-collapse, nav.navbar-collapse.collapse {display: none!important;}
  3 +.profiler-results {display: none;}
  4 +
  5 +/* Styles targeted specifically at printing files */
  6 +.tree-ref-holder, .tree-holder .breadcrumb, .blob-commit-info {display: none;}
  7 +.file-title {display: none;}
  8 +.file-holder {border: none;}
  9 +
  10 +.wiki h1, .wiki h2, .wiki h3, .wiki h4, .wiki h5, .wiki h6 {margin-top: 17px; }
  11 +.wiki h1 {font-size: 30px;}
  12 +.wiki h2 {font-size: 22px;}
  13 +.wiki h3 {font-size: 18px; font-weight: bold; }
... ...
app/views/layouts/_head.html.haml
... ... @@ -4,7 +4,8 @@
4 4 = "#{title} | " if defined?(title)
5 5 GitLab
6 6 = favicon_link_tag 'favicon.ico'
7   - = stylesheet_link_tag "application"
  7 + = stylesheet_link_tag "application", :media => "all"
  8 + = stylesheet_link_tag "print", :media => "print"
8 9 = javascript_include_tag "application"
9 10 = csrf_meta_tags
10 11 = include_gon
... ...