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

neumanie neumanie@source.lon-capa.org
Fri, 13 Feb 2009 18:56:14 -0000


neumanie		Fri Feb 13 18:56:14 2009 EDT

  Modified files:              
    /loncom/interface	lonaboutme.pm lontemplate.pm loncommon.pm 
  Log:
  Fix static CSS styles
  
  
Index: loncom/interface/lonaboutme.pm
diff -u loncom/interface/lonaboutme.pm:1.93 loncom/interface/lonaboutme.pm:1.94
--- loncom/interface/lonaboutme.pm:1.93	Fri Feb 13 17:26:55 2009
+++ loncom/interface/lonaboutme.pm	Fri Feb 13 18:56:13 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # "About Me" Personal Information
 #
-# $Id: lonaboutme.pm,v 1.93 2009/02/13 17:26:55 neumanie Exp $
+# $Id: lonaboutme.pm,v 1.94 2009/02/13 18:56:13 neumanie Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -290,7 +290,7 @@
 	   &Apache::lonnet::resizeImage(&Apache::lonnet::filelocation('',$syllabus{'uploaded.photourl'}));
 	   #---End Resize---
 
-	   $image=qq{<img name="userPhoto" src="$syllabus{'uploaded.photourl'} " style="float:left;margin-right:10px;" />};
+	   $image=qq{<img name="userPhoto" src="$syllabus{'uploaded.photourl'} " class="LC_AboutMe_Image" />};
 	   
 	   if ($target eq 'tex') {
 	       $image=&Apache::lonxml::xmlparse($r,'tex',$image);
Index: loncom/interface/lontemplate.pm
diff -u loncom/interface/lontemplate.pm:1.15 loncom/interface/lontemplate.pm:1.16
--- loncom/interface/lontemplate.pm:1.15	Fri Feb 13 17:29:39 2009
+++ loncom/interface/lontemplate.pm	Fri Feb 13 18:56:13 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # "Template" Functions to generate html output
 #
-# $Id: lontemplate.pm,v 1.15 2009/02/13 17:29:39 neumanie Exp $
+# $Id: lontemplate.pm,v 1.16 2009/02/13 18:56:13 neumanie Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -76,10 +76,10 @@
 			
 		    if($field eq 'aaa_contactinfo') {
 			if($allowed){
-				$r->print('<div style="clear:left;" >&nbsp;</div>');
+				$r->print('<div class="LC_Clear_AboutMe_Image" >&nbsp;</div>');
 			}
 			&print_template($r,$syllabusfields{$field},$message,$allowed,'LC_ContentBoxSpecialContactInfo');
-			$r->print('<div style="clear:left;" >&nbsp;</div>');
+			$r->print('<div class="LC_Clear_AboutMe_Image" >&nbsp;</div>');
 		    }
  		    else{
 			  &print_template($r,$syllabusfields{$field},$message,$allowed,'LC_ContentBoxSpecial');
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.746 loncom/interface/loncommon.pm:1.747
--- loncom/interface/loncommon.pm:1.746	Fri Feb 13 17:26:55 2009
+++ loncom/interface/loncommon.pm	Fri Feb 13 18:56:13 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.746 2009/02/13 17:26:55 neumanie Exp $
+# $Id: loncommon.pm,v 1.747 2009/02/13 18:56:13 neumanie Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5735,7 +5735,15 @@
 	max-width:25%;
 	min-width:25%;
 }
-
+.LC_AboutMe_Image
+{
+	float:left;
+	margin-right:10px;
+}
+.LC_Clear_AboutMe_Image
+{
+	clear:left;
+}
 dl.LC_ListStyleClean dt {
 	padding-right: 5px;
 	display: table-header-group;
@@ -5811,17 +5819,17 @@
 div.LC_columnSection>* {
 	float: left;
 	margin: 10px 20px 10px 0px;
-	overflow:hidden;	
+	overflow:hidden;
 }
 div.LC_columnSection > .LC_ContentBox,
 div.LC_columnSection > .LC_ContentBoxSpecial
 	{
-	width: 400px;	
+	width: 400px;
 }
 
 .ContentBoxSpecialTemplate
 {
-        border: solid 1px $lg_border_color;	
+        border: solid 1px $lg_border_color;
 }
 .ContentBoxTemplate {
         padding:10px;