Commit 12778fbe19b23d8e36c42d3e08cff9e90848571f
Exists in
spb-stable
and in
3 other branches
Merge pull request #6612 from Datacom/feature/print_styles_pr
Print Styles
Showing
2 changed files
with
15 additions
and
1 deletions
Show diff stats
@@ -0,0 +1,13 @@ | @@ -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,7 +4,8 @@ | ||
4 | = "#{title} | " if defined?(title) | 4 | = "#{title} | " if defined?(title) |
5 | GitLab | 5 | GitLab |
6 | = favicon_link_tag 'favicon.ico' | 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 | = javascript_include_tag "application" | 9 | = javascript_include_tag "application" |
9 | = csrf_meta_tags | 10 | = csrf_meta_tags |
10 | = include_gon | 11 | = include_gon |