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

? sunnavy sunnavy at bestpractical.com
Mon Nov 7 12:44:14 EST 2011


The branch, 4.0/refine-print-css has been created
        at  6290e01758bcfe908b1f77d13b88e6c9fe092da2 (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 f05cec5a272d1f08cfc3335ae4713c154db5d0d7
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

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 7ad260abf441ad821b1e55a2189b999c97ce134a
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.

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 bb4db08d9b186cfa28a90665cd0777e14776cf0e
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 1 14:50:45 2011 +0000

    sequeeze space around title

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 60e8ff715195d452c9914b11cd66554594148a89
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Sep 1 15:48:44 2011 +0000

    tweak for web2 and ballard themes

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 d815ce80161efbde2e76a9448ae721ed7e8b4fdb
Author: Thomas Sibley <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

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 a8f48997534eba5509c57fabc884f62e1118ed29
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Sep 6 02:25:32 2011 +0000

    show reminders, just hide the form

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 5b92928923ceefbdf63a974254eabb6d38b6a41e
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Sep 6 02:25:44 2011 +0000

    force the color of "More about the requestors"

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 cf6d7c05d536e56e991fbe9f86f2ba2167e10f7b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Sep 6 02:25:54 2011 +0000

    do not show folded texts enforcedly

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 da90158e41e91573715731fd04b3595486adb843
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

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 8625fed37840aa7c9e577b2f761d8c7f4c3baedc
Author: Thomas Sibley <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.

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 6b0ce674c5ec51fd615f5125f063dfb3eba6661f
Author: Thomas Sibley <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.

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 ca11550c4e2d8125d4c1c29dc734a1edc1445ca6
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Sep 20 16:19:14 2011 +0000

    Tighten up excess spacing all around the ticket display page

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 e620b6d18e67e58e06d5e10a2a27411d51f5519b
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Sep 20 16:19:16 2011 +0000

    Without tab styling, titlebox titles read better left justified

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 89a4fe7245212d9850e3a5263640c9d190179f70
Author: Thomas Sibley <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?"

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 32410db102e6d074951476cf4a19ae529a7e5ef6
Author: Thomas Sibley <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.

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 7cd86e0e991d84a9bb7cab36bdd6f3e4c3c29da5
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Sep 20 16:54:57 2011 +0000

    Explicitly force at least 2 lines before/after a page break

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 db3497168ebe34f72955545cf5344bf11198c751
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Sep 20 16:54:58 2011 +0000

    Only avoid page breaks inside individual transactions

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 4419e37bcac2a874195fb4de1ae994e16a2ecda5
Author: Thomas Sibley <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

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 6290e01758bcfe908b1f77d13b88e6c9fe092da2
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Fri Sep 30 19:16:34 2011 +0000

    Updates for forms

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