Author: david
Date: Wed Sep 28 15:42:33 2011
New Revision: 9865

Log:
Hide page title <h1> by default.  Add 'do-print' class for exceptions (e.g. box 
list)

Modified:
   trunk/apps/qubit/modules/physicalobject/templates/boxListSuccess.php
   trunk/css/print.css

Modified: trunk/apps/qubit/modules/physicalobject/templates/boxListSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/templates/boxListSuccess.php        
Tue Sep 27 18:35:54 2011        (r9864)
+++ trunk/apps/qubit/modules/physicalobject/templates/boxListSuccess.php        
Wed Sep 28 15:42:33 2011        (r9865)
@@ -3,7 +3,7 @@
   <?php echo link_to('Close', array($resource, 'module' => 'physicalobject')) 
?>
 </div>
 
-<h1><?php echo sfConfig::get('app_ui_label_physicalobject') ?></h1>
+<h1 class="do-print"><?php echo sfConfig::get('app_ui_label_physicalobject') 
?></h1>
 
 <h1 class="label">
   <?php echo $resource->getLabel() ?>

Modified: trunk/css/print.css
==============================================================================
--- trunk/css/print.css Tue Sep 27 18:35:54 2011        (r9864)
+++ trunk/css/print.css Wed Sep 28 15:42:33 2011        (r9865)
@@ -38,17 +38,6 @@
   width: 100%;
 }
 
-h1
-{
-  prince-bookmark-level: none;
-  font-size: 16pt;
-}
-
-h1.label
-{
-  font-size: 14pt;
-}
-
 h1,
 h2,
 h3,
@@ -59,59 +48,83 @@
   page-break-after: avoid;
 }
 
-#sidebar-first
+td
 {
-  display: none;
+  vertical-align: top;
 }
 
-#preview-message
+th
+{
+  vertical-align: bottom;
+}
+
+.no-print
 {
   display: none;
 }
 
-#print-date
+.field
 {
-  padding: 2px 4px;
-  float: right;
-  display: block;
+  text-align: justify;
 }
 
-#sfWebDebug
+/* Hide warnings and error messages */
+div.messages
 {
   display: none;
 }
 
-#result-count
+h1
 {
-  text-align: center;
-  color: #CCC;
+  prince-bookmark-level: none;
+  font-size: 16pt;
+  display: none; /* Don't print page title <h1> by default */
 }
 
-td
+/* DO print this h1 */
+h1.do-print
 {
-  vertical-align: top;
+  display: block;
 }
 
-th
+h1.label
 {
-  vertical-align: bottom;
+  font-size: 14pt;
+  display: block;
 }
 
-.field
+/* Show 'Part of' for context in archival descriptions */
+h1.part-of
 {
-  text-align: justify;
+  display: block;
+  font: inherit;
 }
 
-/* Hide warnings and error messages */
-div.messages
+#sidebar-first
 {
   display: none;
 }
 
-/* Show 'Part of' for context in archival descriptions */
-h1.part-of
+#preview-message
 {
+  display: none;
+}
+
+#print-date
+{
+  padding: 2px 4px;
+  float: right;
   display: block;
-  font: inherit;
+}
+
+#sfWebDebug
+{
+  display: none;
+}
+
+#result-count
+{
+  text-align: center;
+  color: #CCC;
 }
 

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to