[Rt-commit] rt branch, 4.0/refine-print-css, created. rt-4.0.2-220-g2bedf27

? sunnavy sunnavy at bestpractical.com
Sun Nov 6 05:38:35 EST 2011


The branch, 4.0/refine-print-css has been created
        at  2bedf271b2efe11c63b270d48a1866a06c8df241 (commit)

- Log -----------------------------------------------------------------
commit bba9375660e80662a69e5cc8d56be51f2f617a6b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 1 01:53:41 2011 +0000

    tweak print css for ticket print, changes include
    
    1. increase font size
    2. force background color
    3. hide more elements, #logo, reminders and most action links
    4. show link url

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 160f6ea..b29136d 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -52,7 +52,8 @@
 
 body {
     margin: 1em;
-    font-size: 10pt;
+    font-size: 12pt;
+    background: white;
 }
 
 div#body {
@@ -64,11 +65,9 @@ div#body {
 div#header h1 {
     margin-bottom: 2em;
     position: relative;
-    margin-top: 2em;
-    height: 0;
     width: auto;
     left: 0;
-    overflow: visible;
+    color: black !important;
 }
 
 #header {
@@ -77,11 +76,12 @@ div#header h1 {
 
 #quickbar,
 #nav,
-#header #page-menu,
-#header #page-navigation,
-.titlebox .titlebox-title .widget,
+#page-menu,
+#main-navigation,
+#page-navigation,
+.titlebox-title .widget,
 .ticket-info-links .titlebox-title .right,
-.ticket-info-links .titlebox-content .labeltop .create,
+.ticket-info-links .titlebox-content .create,
 .history .titlebox .titlebox-title .right,
 .ticket-transaction .metadata .actions,
 .ticket-transaction .content .downloadattachment,
@@ -89,14 +89,53 @@ div#header h1 {
 .search-result-actions,
 #comp-Search-Chart #body div,
 #comp-Search-Chart #body form,
-#footer
+#footer,
+#topactions,
+#logo,
+.ticket-info-reminders
 {
-display: none;
+    display: none;
 }
 
 a:link, a:visited {
     background: transparent;
     font-weight: bold !important;
+}
+
+div.ticket-transaction .metadata .type {
+    display: none;
+}
+
+div.titlebox-title .left {
+% if ( lc RT->Config->Get( 'WebDefaultStylesheet', $session{'CurrentUser'} ) =~
+%      /^(?:web2|ballard)$/ ){
+    background: white !important;
+% } else {
+    background: transparent !important;
+% }
+    border: 0 !important;
+}
+
+div.titlebox-title .left * {
+    color: black !important;
+}
+
+div.messagebody a:link:after, a:visited:after {
     text-decoration: underline !important;
+    content: " (" attr(href) ") ";
+}
+
+div.titlebox-title {
+    page-break-after: avoid;
+}
+
+div.ticket-transaction {
+    page-break-inside: avoid;
+}
+
+/* for web2 */
+
+#page-action-menu {
+    display: none;
 }
 

commit d19407b3413214d19e435d7eb519da6b53cf5f33
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 1 13:24:55 2011 +0000

    drop font size, remove outer border and break page before history
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15253 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index b29136d..03ac948 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -52,7 +52,7 @@
 
 body {
     margin: 1em;
-    font-size: 12pt;
+    font-size: 10pt;
     background: white;
 }
 
@@ -116,6 +116,10 @@ div.titlebox-title .left {
     border: 0 !important;
 }
 
+div.titlebox-content {
+    border: 0 !important;
+}
+
 div.titlebox-title .left * {
     color: black !important;
 }
@@ -125,6 +129,10 @@ div.messagebody a:link:after, a:visited:after {
     content: " (" attr(href) ") ";
 }
 
+div.history {
+    page-break-before: always;
+}
+
 div.titlebox-title {
     page-break-after: avoid;
 }

commit dd014e800fd5f03a9b5eec1da7c0ff6857bfbd6a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 1 14:28:37 2011 +0000

    hide string "Ticket metadata", no border for history ...
    
    also squeeze spaces a bit, no quote folding, bold values and normal labels.
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15254 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 03ac948..97f543d 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -118,6 +118,7 @@ div.titlebox-title .left {
 
 div.titlebox-content {
     border: 0 !important;
+    padding-top: 0.5em !important;
 }
 
 div.titlebox-title .left * {
@@ -137,8 +138,30 @@ div.titlebox-title {
     page-break-after: avoid;
 }
 
-div.ticket-transaction {
+#ticket-history, div.ticket-transaction {
     page-break-inside: avoid;
+    border: 0 !important;
+}
+
+/* hide "Ticket metadata" */
+div.summary > div > div.titlebox > div.titlebox-title {
+    display: none !important;
+}
+
+.value {
+    font-weight: bold !important;
+}
+
+.label, .label a, .labeltop, .labeltop a {
+    font-weight: normal !important;
+}
+
+.message-stanza-folder {
+    display: none;
+}
+
+.message-stanza {
+    display: inherit !important;
 }
 
 /* for web2 */

commit b038a472152689e4577934e6cfc0ed65c02b80ee
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 1 14:50:45 2011 +0000

    sequeeze space around title
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15255 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 97f543d..63500e5 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -58,7 +58,8 @@ body {
 
 div#body {
     margin: 0;
-    margin-top: 1em;
+    margin-top: 0;
+    padding: 0;
     border-style: none;
 }
 
@@ -68,10 +69,12 @@ div#header h1 {
     width: auto;
     left: 0;
     color: black !important;
+    padding: 0 !important;
 }
 
 #header {
     padding: 0 !important;
+    margin-top: -2em !important;
 }
 
 #quickbar,

commit 1754803bfda219ea65b1aa876f9e47455b65c94f
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 1 15:48:44 2011 +0000

    tweak for web2 and ballard themes
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15256 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 63500e5..28c2ade 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -110,12 +110,7 @@ div.ticket-transaction .metadata .type {
 }
 
 div.titlebox-title .left {
-% if ( lc RT->Config->Get( 'WebDefaultStylesheet', $session{'CurrentUser'} ) =~
-%      /^(?:web2|ballard)$/ ){
-    background: white !important;
-% } else {
     background: transparent !important;
-% }
     border: 0 !important;
 }
 
@@ -167,6 +162,17 @@ div.summary > div > div.titlebox > div.titlebox-title {
     display: inherit !important;
 }
 
+/* for web2 and ballard*/
+
+div.titlebox {
+    border: 0 !important;
+}
+
+div.history .titlebox-title {
+    padding: 0 !important;
+    margin: 0 !important;
+}
+
 /* for web2 */
 
 #page-action-menu {

commit 4d6d967a158f5d8e340fc814485e50f5e5e62c71
Author: trs <trs at bestpractical.com>
Date:   Fri Sep 2 21:07:47 2011 +0000

    visited didn't keep the messagebody context, but rewrite to use a simpler selector
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15261 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 28c2ade..c323ad7 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -123,7 +123,7 @@ div.titlebox-title .left * {
     color: black !important;
 }
 
-div.messagebody a:link:after, a:visited:after {
+div.messagebody a[href]:after {
     text-decoration: underline !important;
     content: " (" attr(href) ") ";
 }

commit fb9ee9317fcb4734643fa0553e4623deb6d07d90
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Sep 6 02:25:32 2011 +0000

    show reminders, just hide the form
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15264 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index c323ad7..4063a2d 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -95,7 +95,7 @@ div#header h1 {
 #footer,
 #topactions,
 #logo,
-.ticket-info-reminders
+form
 {
     display: none;
 }

commit 78a20b8f8659905f979f5016d1468a5794c1089f
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Sep 6 02:25:44 2011 +0000

    force the color of "More about the requestors"
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15265 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 4063a2d..4f1e60a 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -112,6 +112,7 @@ div.ticket-transaction .metadata .type {
 div.titlebox-title .left {
     background: transparent !important;
     border: 0 !important;
+    color: black !important;
 }
 
 div.titlebox-content {

commit 2fbd5f8e9733b57eda52718fff446bd1325c5d86
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Sep 6 02:25:54 2011 +0000

    do not show folded texts enforcedly
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15266 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 4f1e60a..16d5c52 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -155,14 +155,6 @@ div.summary > div > div.titlebox > div.titlebox-title {
     font-weight: normal !important;
 }
 
-.message-stanza-folder {
-    display: none;
-}
-
-.message-stanza {
-    display: inherit !important;
-}
-
 /* for web2 and ballard*/
 
 div.titlebox {

commit cf052d234eccda2a5fcd9db2a673e10c3a7afc6c
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Sep 7 01:57:46 2011 +0000

    no border for titlebox-title too in case collapsed titleboxes
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15267 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 16d5c52..bbe11b5 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -135,6 +135,7 @@ div.history {
 
 div.titlebox-title {
     page-break-after: avoid;
+    border: 0 !important;
 }
 
 #ticket-history, div.ticket-transaction {

commit f45cb9d02c99cb5328764d2812db5fe637a12deb
Author: trs <trs at bestpractical.com>
Date:   Tue Sep 20 14:00:10 2011 +0000

    Force backgrounds off on all elements rather than piecemeal
    
    This catches titlebox content backgrounds which were missed (at least in
    aileron).  Most browsers won't print backgrounds anyway, but it's useful
    to make it consistently off.
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15286 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index bbe11b5..cebeb63 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -48,12 +48,13 @@
 * {
     float: none;
     position: static;
+    background: transparent !important;
 }
 
 body {
     margin: 1em;
     font-size: 10pt;
-    background: white;
+    background: white !important;
 }
 
 div#body {
@@ -101,7 +102,6 @@ form
 }
 
 a:link, a:visited {
-    background: transparent;
     font-weight: bold !important;
 }
 
@@ -110,7 +110,6 @@ div.ticket-transaction .metadata .type {
 }
 
 div.titlebox-title .left {
-    background: transparent !important;
     border: 0 !important;
     color: black !important;
 }

commit e5b03318091e3f5e8db83db6aa2b113997aa5f11
Author: trs <trs at bestpractical.com>
Date:   Tue Sep 20 14:00:13 2011 +0000

    Page titles should wrap and not have a limited height
    
    While we're at it, remove unnecessary relative positioning contortions
    and just use static positioning.
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15287 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index cebeb63..0e92afa 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -65,17 +65,17 @@ div#body {
 }
 
 div#header h1 {
-    margin-bottom: 2em;
-    position: relative;
+    margin-bottom: 1em;
+    position: static;
+    height: auto;
     width: auto;
-    left: 0;
+    overflow: visible;
     color: black !important;
     padding: 0 !important;
 }
 
 #header {
     padding: 0 !important;
-    margin-top: -2em !important;
 }
 
 #quickbar,

commit 51c71ba692b1a8ae9ad2c568a0a1d711fe342963
Author: trs <trs at bestpractical.com>
Date:   Tue Sep 20 16:19:14 2011 +0000

    Tighten up excess spacing all around the ticket display page
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15288 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 0e92afa..1273b3d 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -96,11 +96,17 @@ div#header h1 {
 #footer,
 #topactions,
 #logo,
-form
+form,
+div.summary + br
 {
     display: none;
 }
 
+/* Hide "Click to load" and "Loading" message. Loaded history is #id > .history */
+#deferred_ticket_history > .titlebox, #delayed_ticket_history > .titlebox {
+    display: none;
+}
+
 a:link, a:visited {
     font-weight: bold !important;
 }
@@ -119,6 +125,15 @@ div.titlebox-content {
     padding-top: 0.5em !important;
 }
 
+/* outer Ticket Metadata titlebox gets no padding, but inside ones do below */
+.summary .titlebox-content {
+    padding: 0 !important;
+}
+
+div.summary .ticket-summary div.titlebox-content {
+    padding: 0.5em 1em 1em 1em !important;
+}
+
 div.titlebox-title .left * {
     color: black !important;
 }
@@ -155,6 +170,10 @@ div.summary > div > div.titlebox > div.titlebox-title {
     font-weight: normal !important;
 }
 
+div.titlebox {
+    margin-bottom: 0;
+}
+
 /* for web2 and ballard*/
 
 div.titlebox {

commit 69ef54af2af8107a9fbedbb14672f657b086738d
Author: trs <trs at bestpractical.com>
Date:   Tue Sep 20 16:19:16 2011 +0000

    Without tab styling, titlebox titles read better left justified
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15289 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 1273b3d..8567e43 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -118,6 +118,8 @@ div.ticket-transaction .metadata .type {
 div.titlebox-title .left {
     border: 0 !important;
     color: black !important;
+    margin: 0 !important;
+    padding-left: 0 !important;
 }
 
 div.titlebox-content {

commit 561fab792e2f9aa5d538487be1548025f5efd04f
Author: trs <trs at bestpractical.com>
Date:   Tue Sep 20 16:19:17 2011 +0000

    Indicate when titleboxes are empty vs. simply collapsed
    
    "Does this ticket have no reminders, or did I just print it collapsed?"
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15290 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 8567e43..f9c0e1b 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -122,6 +122,11 @@ div.titlebox-title .left {
     padding-left: 0 !important;
 }
 
+.titlebox.rolled-up .titlebox-title .left:after {
+    content: " (<&|/l&>collapsed</&>)";
+    font-weight: normal;
+}
+
 div.titlebox-content {
     border: 0 !important;
     padding-top: 0.5em !important;

commit 4ef09ff79df4196cb6b142acae15bb8a6a98dbd7
Author: trs <trs at bestpractical.com>
Date:   Tue Sep 20 16:19:19 2011 +0000

    Don't force a page break before history
    
    Simple new tickets are now often single page affairs instead of a forced
    two pages.  There are cases where a forced page break might be
    desirable, such as on an n-up layout or double-sided printing.  I think
    those cases are fewer than the standard "print one page per physical
    sheet", although there are certain to be organizations with different
    standards.
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15291 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index f9c0e1b..8f4447c 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -150,10 +150,6 @@ div.messagebody a[href]:after {
     content: " (" attr(href) ") ";
 }
 
-div.history {
-    page-break-before: always;
-}
-
 div.titlebox-title {
     page-break-after: avoid;
     border: 0 !important;

commit 2ac596607616d5078d3a8a6acf73bab2c09d9b98
Author: trs <trs at bestpractical.com>
Date:   Tue Sep 20 16:54:57 2011 +0000

    Explicitly force at least 2 lines before/after a page break
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15292 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 8f4447c..19918b3 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -150,6 +150,11 @@ div.messagebody a[href]:after {
     content: " (" attr(href) ") ";
 }
 
+.messagebody {
+    orphans: 2;
+    widows: 2;
+}
+
 div.titlebox-title {
     page-break-after: avoid;
     border: 0 !important;

commit 1d541bfe772345118f301368f20f9430d8b1bef3
Author: trs <trs at bestpractical.com>
Date:   Tue Sep 20 16:54:58 2011 +0000

    Only avoid page breaks inside individual transactions
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15293 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 19918b3..95b3c8c 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -161,10 +161,13 @@ div.titlebox-title {
 }
 
 #ticket-history, div.ticket-transaction {
-    page-break-inside: avoid;
     border: 0 !important;
 }
 
+div.ticket-transaction {
+    page-break-inside: avoid;
+}
+
 /* hide "Ticket metadata" */
 div.summary > div > div.titlebox > div.titlebox-title {
     display: none !important;

commit 9f97a3c34d60a9ec8411adb3c874d889e02a31df
Author: trs <trs at bestpractical.com>
Date:   Tue Sep 20 16:54:59 2011 +0000

    body doesn't need padding and margin, as the browser will handle that
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15294 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 95b3c8c..1fdc7e0 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -52,7 +52,8 @@
 }
 
 body {
-    margin: 1em;
+    margin: 0;
+    padding: 0;
     font-size: 10pt;
     background: white !important;
 }

commit 2bedf271b2efe11c63b270d48a1866a06c8df241
Author: trs <trs at bestpractical.com>
Date:   Fri Sep 30 19:16:34 2011 +0000

    Updates for forms
    
    git-svn-id: svn+ssh://shell.bestpractical.com/svn/bps-private@15319 6641d27c-1bcc-0310-8a77-bef5c512aa61

diff --git a/share/html/NoAuth/css/print.css b/share/html/NoAuth/css/print.css
index 1fdc7e0..33de0bb 100644
--- a/share/html/NoAuth/css/print.css
+++ b/share/html/NoAuth/css/print.css
@@ -49,6 +49,7 @@
     float: none;
     position: static;
     background: transparent !important;
+    overflow: visible !important;
 }
 
 body {
@@ -203,3 +204,17 @@ div.history .titlebox-title {
     display: none;
 }
 
+/* form elements */
+input, select, option {
+    background: white !important;
+    border: 1px solid #666 !important;
+}
+
+option {
+    border: none !important;
+}
+
+option[selected] {
+    font-weight: bold !important;
+}
+

-----------------------------------------------------------------------


More information about the Rt-commit mailing list