From 000c188d0c2c2402fa28a98ca2c98a63b1d0ff5a Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 4 Sep 2018 16:36:29 +0200 Subject: [PATCH] Ticket print: Firefox multi-page fix, remove colors, show meta Incorporates the Firefox multi-page fixes (display: flex print bug) from @MrGeneration see #2162 --- app/assets/stylesheets/print.scss | 103 ++++++++++++++++++++++++++++-- 1 file changed, 96 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/print.scss b/app/assets/stylesheets/print.scss index 7ba5cd0fa..cca07b00e 100644 --- a/app/assets/stylesheets/print.scss +++ b/app/assets/stylesheets/print.scss @@ -11,11 +11,29 @@ border-bottom: 1px solid hsl(0,0%,90%); } -html, -body { +html { height: auto; } +body, +.content { + background: none; + color: black; +} + +// Disable flex to allow multi page prints in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=939897 +body, +#app, +#app > .content.active, +.tabsSidebar-holder, +main { + display: block; +} + +#app { + min-width: 0; +} + /* Dashboard @@ -59,13 +77,84 @@ body { } .tabsSidebar-sidebarSpacer { - margin-right: 0; -} - -.article-meta .article-meta-key { - display: none; + margin: 0; + transition: none; } .textBubble-content { height: auto !important; +} + +.tabsSidebar-tabsSpacer { + padding: 0 !important; +} + +.ticket-article, +.article-new { + max-width: none; + padding-left: 0; + padding-right: 0; +} + +.ticketZoom { + background: none; +} + +.textBubble { + padding: 20px; + border: 1px solid !important; + background: white !important; +} + +.bubble-arrow:after { + background: white !important; + border-color: black !important; +} + +.article-meta { + color: black; + background: none; + border: 1px dashed hsl(240,2%,60%); + padding: 11px 10px 1px; + + &.top { + border-bottom-width: 0; + } + + &.bottom { + border-top-width: 0; + padding-top: 7px; + padding-bottom: 3px; + } + + &-clip { + height: auto !important; + } + + &-icon { + fill: currentColor; + } +} + +.article-content { + color: inherit; + + a[href]:after { + content: none !important; + } +} + +.article-content-meta { + opacity: 1 !important; + display: block !important; + transform: none !important; + position: static; +} + +.attachments.attachments--list { + border-color: currentColor !important; +} + +.avatar { + border: 1px solid black; } \ No newline at end of file