summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Rose <sam@gitlab.com>2017-05-10 10:10:57 -0400
committerSam Rose <sam@gitlab.com>2017-05-10 10:16:46 -0400
commit5b376e654ac656088e0a6e5c3e63c341cac97043 (patch)
treedd1ba938d1fd7eb1bbc6bbae3e9efbbba9cdd3d3
parent46a6fb38809fe8482fd8fb60fcfd979226e1321e (diff)
downloadgitlab-ce-5b376e654ac656088e0a6e5c3e63c341cac97043.tar.gz
Include blob content when printing page31781-print-rendered-files-not-possible
-rw-r--r--app/assets/stylesheets/print.scss8
-rw-r--r--changelogs/unreleased/31781-print-rendered-files-not-possible.yml4
2 files changed, 9 insertions, 3 deletions
diff --git a/app/assets/stylesheets/print.scss b/app/assets/stylesheets/print.scss
index 6cc1cc8e263..136d0c79467 100644
--- a/app/assets/stylesheets/print.scss
+++ b/app/assets/stylesheets/print.scss
@@ -28,9 +28,6 @@ nav.navbar-collapse.collapse,
.profiler-results,
.tree-ref-holder,
.tree-holder .breadcrumb,
-.blob-commit-info,
-.file-title,
-.file-holder,
.nav,
.btn,
ul.notes-form,
@@ -43,6 +40,11 @@ ul.notes-form,
display: none!important;
}
+pre {
+ page-break-before: avoid;
+ page-break-inside: auto;
+}
+
.page-gutter {
padding-top: 0;
padding-left: 0;
diff --git a/changelogs/unreleased/31781-print-rendered-files-not-possible.yml b/changelogs/unreleased/31781-print-rendered-files-not-possible.yml
new file mode 100644
index 00000000000..14915823ff7
--- /dev/null
+++ b/changelogs/unreleased/31781-print-rendered-files-not-possible.yml
@@ -0,0 +1,4 @@
+---
+title: Include the blob content when printing a blob page
+merge_request: 11247
+author: