TPAC: Create a meaningful bookbag class
authorDan Scott <dscott@laurentian.ca>
Thu, 20 Oct 2011 03:18:28 +0000 (23:18 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 20 Oct 2011 03:18:28 +0000 (23:18 -0400)
Combine two meaningless opac-auto classes into a single bookbag class.
Also give a max-width to the bookbag description to prevent action
buttons from sprawling off to the right side of the screen.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/myopac/lists.tt2
Open-ILS/web/css/skin/default/opac/semiauto.css
Open-ILS/web/css/skin/default/opac/style.css

index c298acb..7de4253 100644 (file)
             </thead>
             <tbody>
                 [% UNLESS bbag.items.size %]
-                <tr><td colspan="4" class="opac-auto-171 opac-auto-097">
+                <tr><td colspan="4" class="list_is_empty">
                     [% l("This list contains no items.") %]
                 </td></tr>
                 [% END %]
index d51ef6c..67ea799 100644 (file)
@@ -9,7 +9,6 @@
 .qtype_selector_margin { margin-right: 7px; }
 .warning_box { margin-top: 10px; }
 .pad-bottom-five { padding: 5px; }
-.opac-auto-097 { padding: 8px 0px 6px 0px; width: 100%; border: 0; }
 .item_list_padding { padding: 8px 0px 6px 0px; border: 0; }
 .opac-auto-102 { padding-bottom: 7px; }
 .opac-auto-108 { padding-left: 5px; }
@@ -30,7 +29,6 @@
 .nowrap { white-space: nowrap; }
 .opac-auto-164 { white-space: nowrap; padding-left: 5px; }
 .full-width { width: 100%; }
-.opac-auto-171 { font-size: 120%; text-align: center; font-style: italic; }
 #search_box { width: 162px; }
 .selector_actions_for_list { width: 175px; margin-right: 11px; }
 .selector_actions_for_list_inner_option { margin-left: 2em; } /* XXX ".opac-auto-179 optgroup option" doesn't work!? */
index b124496..d71a036 100644 (file)
@@ -1165,6 +1165,7 @@ h2.bookbag-name { margin-bottom: 0em; padding-bottom: 0em; }
 .bookbag-description {
     padding-top: 0em;
     font-style: italic;
+    max-width: 40em;
 }
 table.bookbag-specific {
     border-right: 1px solid #999;
@@ -1190,6 +1191,15 @@ table.bookbag-specific {
 .bookbag-specific td.list_actions {
     white-space: nowrap !important;
 }
+
+.list_is_empty {
+    padding: 8px 0px 6px 0px;
+    width: 100%;
+    border: 0;
+    font-size: 120%;
+    text-align: center;
+    font-style: italic;
+}
 .save-notes { padding-bottom: 1.5ex; }
 
 /* Moved from semiauto.css */