Merge pull request #6612 from Datacom/feature/print_styles_pr
Print Styles
This commit is contained in:
commit
12778fbe19
2 changed files with 15 additions and 1 deletions
13
app/assets/stylesheets/print.scss
Normal file
13
app/assets/stylesheets/print.scss
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/* Generic print styles */
|
||||||
|
header, nav, nav.main-nav, nav.navbar-collapse, nav.navbar-collapse.collapse {display: none!important;}
|
||||||
|
.profiler-results {display: none;}
|
||||||
|
|
||||||
|
/* Styles targeted specifically at printing files */
|
||||||
|
.tree-ref-holder, .tree-holder .breadcrumb, .blob-commit-info {display: none;}
|
||||||
|
.file-title {display: none;}
|
||||||
|
.file-holder {border: none;}
|
||||||
|
|
||||||
|
.wiki h1, .wiki h2, .wiki h3, .wiki h4, .wiki h5, .wiki h6 {margin-top: 17px; }
|
||||||
|
.wiki h1 {font-size: 30px;}
|
||||||
|
.wiki h2 {font-size: 22px;}
|
||||||
|
.wiki h3 {font-size: 18px; font-weight: bold; }
|
|
@ -4,7 +4,8 @@
|
||||||
= "#{title} | " if defined?(title)
|
= "#{title} | " if defined?(title)
|
||||||
GitLab
|
GitLab
|
||||||
= favicon_link_tag 'favicon.ico'
|
= favicon_link_tag 'favicon.ico'
|
||||||
= stylesheet_link_tag "application"
|
= stylesheet_link_tag "application", :media => "all"
|
||||||
|
= stylesheet_link_tag "print", :media => "print"
|
||||||
= javascript_include_tag "application"
|
= javascript_include_tag "application"
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
= include_gon
|
= include_gon
|
||||||
|
|
Loading…
Reference in a new issue