[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm structuretags.pm /interface loncommon.pm

bisitz bisitz@source.lon-capa.org
Tue, 30 Jun 2009 10:18:52 -0000


bisitz		Tue Jun 30 10:18:52 2009 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm structuretags.pm 
    /loncom/interface	loncommon.pm 
  Log:
  Nice looking <hr>s:
  - Re-use style from construction space
  - Make this style standard for all <hr>s
  - Removed now unused style "LC_edit_problem_divide"
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.312 loncom/homework/lonhomework.pm:1.313
--- loncom/homework/lonhomework.pm:1.312	Tue Jun  9 16:33:55 2009
+++ loncom/homework/lonhomework.pm	Tue Jun 30 10:18:47 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.312 2009/06/09 16:33:55 bisitz Exp $
+# $Id: lonhomework.pm,v 1.313 2009/06/30 10:18:47 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -715,10 +715,10 @@
             'onclick="javascript:setmode(this.form,'."'editxml'".')" />
             <input type="button" name="submitmode" value="'.&mt('Edit').'" '.
             'onclick="javascript:setmode(this.form,'."'edit'".')" />
-            <hr class="LC_edit_problem_divide" />
+            <hr />
             <input type="button" name="submitmode" value="'.&mt("View").'" '.
             'onclick="javascript:setmode(this.form,'."'view'".')" />
-            <hr class="LC_edit_problem_divide" />
+            <hr />
             </div>
             </form>';
     &Apache::lonxml::add_messages(\$result);
@@ -792,7 +792,7 @@
     }
     &Apache::lonhtmlcommon::Update_PrgWin($request,\%prog_state,
 					  &mt('Analyzing Results'));
-    $request->print('<hr class="LC_edit_problem_divide" />'
+    $request->print('<hr />'
                    .'<h3>'
                    .&mt('List of possible answers')
                    .'</h3>'
@@ -971,7 +971,7 @@
                 <input type="submit" name="submitbutton" accesskey="s" value="'.&mt('Save').'"  />
                 <input type="submit" name="submitbutton" accesskey="v" value="'.&mt('Save and View').'" />
               </div>
-              <hr class="LC_edit_problem_divide" />
+              <hr />
 	      '.&Apache::lonxml::message_location().'
             </div>
             '  . '
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.452 loncom/homework/structuretags.pm:1.453
--- loncom/homework/structuretags.pm:1.452	Wed Jun 17 15:27:20 2009
+++ loncom/homework/structuretags.pm	Tue Jun 30 10:18:47 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.452 2009/06/17 15:27:20 bisitz Exp $
+# $Id: structuretags.pm,v 1.453 2009/06/30 10:18:47 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -386,7 +386,7 @@
 '.&mt('Problem Editing').&Apache::loncommon::help_open_menu('Problem Editing','Problem_Editor_XML_Index',5,'Authoring').'
 </div>'.
 &problem_edit_buttons().'
-<hr class="LC_edit_problem_divide" />
+<hr />
 '.&Apache::lonxml::message_location().'
 </div>
 '.
@@ -396,9 +396,9 @@
 sub problem_edit_footer {
     return '</td></tr></table><br />
 <div class="LC_edit_problem_footer">
-  <hr class="LC_edit_problem_divide" />'.
+  <hr />'.
 &problem_edit_buttons().'
-  <hr class="LC_edit_problem_divide" />
+  <hr />
 </div>
 '.
 
@@ -515,7 +515,7 @@
      <input type="submit" name="clear_style_file" accesskey="d" value="'.&mt('Show Default View').'" />
      <input type="submit" name="resetdata" accesskey="r" value="'.&mt('Reset Submissions').'" />
    </div>
-   <hr class="LC_edit_problem_divide" />
+   <hr />
    <div class="LC_edit_problem_header_randomize_row">
      <input type="submit" name="newrandomization" accesskey="a" value="'.&mt('New Randomization').'" />
      <input type="submit" name="changerandseed" value="'.&mt('Change Random Seed To:').'" />
@@ -539,7 +539,7 @@
 
     $result.='
    </div>
-   <hr class="LC_edit_problem_divide" />
+   <hr />
    <div>';
     $result.='<input type="hidden" name="problemmode" value="view" />';
     $result .= '<input type="button" name="submitmode" accesskey="e" value="'.&mt('Edit').'" '.
@@ -548,7 +548,7 @@
                'onclick="javascript:setmode(this.form,'."'editxml'".')" />';
     $result.='
    </div>
-   <hr class="LC_edit_problem_divide" />
+   <hr />
    '.&Apache::lonxml::message_location().'
 </div>';
     return $result;
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.845 loncom/interface/loncommon.pm:1.846
--- loncom/interface/loncommon.pm:1.845	Wed Jun 17 15:27:14 2009
+++ loncom/interface/loncommon.pm	Tue Jun 30 10:18:52 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.845 2009/06/17 15:27:14 bisitz Exp $
+# $Id: loncommon.pm,v 1.846 2009/06/30 10:18:52 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4605,6 +4605,14 @@
   background: yellow 
 }
 
+hr {
+  clear: both;
+  color: $tabbg;
+  background-color: $tabbg;
+  height: 3px;
+  border: none;
+}
+
 form, .inline { 
    display: inline; 
 }
@@ -5728,14 +5736,6 @@
   padding-bottom: 5px;
 }
 
-hr.LC_edit_problem_divide {
-  clear: both;
-  color: $tabbg;
-  background-color: $tabbg;
-  height: 3px;
-  border: none;
-}
-
 img.stift{
   border-width: 0;
   vertical-align: middle;