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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 23 Jun 2006 02:56:30 -0000


albertel		Thu Jun 22 22:56:30 2006 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - all the top nav elements line up in ie 5.5 6.0, opera 8.0 opera 9.0, firefox 1.0 konqeror, and no supurious td borders
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.391 loncom/interface/loncommon.pm:1.392
--- loncom/interface/loncommon.pm:1.391	Thu Jun 22 16:48:56 2006
+++ loncom/interface/loncommon.pm	Thu Jun 22 22:56:29 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.391 2006/06/22 20:48:56 albertel Exp $
+# $Id: loncommon.pm,v 1.392 2006/06/23 02:56:29 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3120,6 +3120,9 @@
     my $mail_other           = '#99BBBB';
     my $mail_other_hover     = '#669999';
     my $table_header         = '#DDDDDD';
+
+    my $border = ($env{'browser.type'} eq 'explorer') ? '0px 2px 0px 2px'
+	                                              : '0px 3px 0px 4px';
     return <<END;
 h1, h2, h3, th { font-family: $sans }
 a:focus { color: red; background: yellow } 
@@ -3136,33 +3139,24 @@
   color: green;
 }
 
-table#LC_top_nav, table#LC_menubuttons, table#LC_nav_location {
+table#LC_top_nav, table#LC_menubuttons {
   width: 100%;
   background: $pgbg;
-  border: 0px;
-  border-spacing: 2px 2px;
-  padding: 0px;
-  margin: 0px;
-  border-collapse: separate;
-}
-table#LC_title_bar {
-  width: 100%;
-  border: 0;
-  border-spacing: 0px 0px;
-  padding: 0px 2px 0px 2px;
-  background: $pgbg;
-  font-family: $sans;
-  border-collapse: separate;
+  border: 2px;
+  border-collapse: seperate;
 }
-table#LC_breadcrumbs {
+
+table#LC_title_bar, table#LC_breadcrumbs, table#LC_nav_location {
   width: 100%;
-  border: 0;
-  border-spacing: 0px;
-  padding: 0px 2px 0px 2px;
+  border-color: $pgbg;
+  border-style: solid;
+  border-width: $border;
+
   background: $pgbg;
   font-family: $sans;
-  border-collapse: separate;
+  border-collapse: collapse;
 }
+
 table#LC_title_bar.LC_with_remote {
   width: 100%;
   border: 0;
@@ -3207,6 +3201,7 @@
 }
 table#LC_top_nav td {
   background: $tabbg;
+  border: 0px;
 }
 table#LC_top_nav td a, div#LC_top_nav a {
   color: $font;
@@ -3333,7 +3328,6 @@
   background: $tabbg;
 }
 
-
 table#LC_cstr_controls {
   width: 100%;
   border-collapse: collapse;