[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm lonmenu.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 13 Apr 2007 20:22:17 -0000


albertel		Fri Apr 13 16:22:17 2007 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm loncommon.pm 
  Log:
  - make css names more similar
  - top align main menu tables columns
  
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.213 loncom/interface/lonmenu.pm:1.214
--- loncom/interface/lonmenu.pm:1.213	Fri Apr 13 09:39:32 2007
+++ loncom/interface/lonmenu.pm	Fri Apr 13 16:22:15 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.213 2007/04/13 13:39:32 www Exp $
+# $Id: lonmenu.pm,v 1.214 2007/04/13 20:22:15 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -910,13 +910,13 @@
     undef(@inlineremote);
     undef(%category_members);
     &rawconfig(1);
-    my $output='<table><tr>';
+    my $output='<table id="LC_mainmenu"><tr>';
     for (my $col=1; $col<=2; $col++) {
-        $output.='<td>';
+        $output.='<td class="LC_mainmenu_column">';
         for (my $row=1; $row<=8; $row++) {
             foreach my $cat (keys(%category_members)) {
                if ($category_positions{$cat} ne "$col,$row") { next; }
-               $output.='<table id="LC_menubuttons_mainmenu"><tr><td colspan="4" class="LC_menu_category">'.&mt($category_names{$cat}).'</td></tr>';
+               $output.='<table id="LC_menubuttons_mainmenu"><tr><td colspan="4" class="LC_menubuttons_category">'.&mt($category_names{$cat}).'</td></tr>';
                my %active=();
                foreach my $menu_item (split(/\:/,$category_members{$cat})) {
                   if ($inlineremote[$menu_item]) {
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.521 loncom/interface/loncommon.pm:1.522
--- loncom/interface/loncommon.pm:1.521	Tue Apr 10 22:42:00 2007
+++ loncom/interface/loncommon.pm	Fri Apr 13 16:22:15 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.521 2007/04/11 02:42:00 www Exp $
+# $Id: loncommon.pm,v 1.522 2007/04/13 20:22:15 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3843,13 +3843,17 @@
   text-align: center;
 }
 
+table#LC_mainmenu td.LC_mainmenu_column {
+    vertical-align: top;
+}
+
 .LC_menubuttons_inline_text {
   color: $font;
   font-family: $sans;
   font-size: smaller;
 }
 
-.LC_menu_category {
+.LC_menubuttons_category {
   color: $font;
   font-family: $sans;
   font-size: larger;