[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm lonmenu.pm lonnavmaps.pm
tempelho
tempelho@source.lon-capa.org
Thu, 04 Dec 2008 08:56:28 -0000
This is a MIME encoded message
--tempelho1228380988
Content-Type: text/plain
tempelho Thu Dec 4 08:56:28 2008 EDT
Modified files:
/loncom/interface loncommon.pm lonmenu.pm lonnavmaps.pm
Log:
CSS Classes added (LC_fontsize_*); Old hard coded Styles replaced; Removed redundant CSS-Styles
--tempelho1228380988
Content-Type: text/plain
Content-Disposition: attachment; filename="tempelho-20081204085628.txt"
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.704 loncom/interface/loncommon.pm:1.705
--- loncom/interface/loncommon.pm:1.704 Wed Dec 3 13:09:03 2008
+++ loncom/interface/loncommon.pm Thu Dec 4 08:56:28 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.704 2008/12/03 13:09:03 muellerd Exp $
+# $Id: loncommon.pm,v 1.705 2008/12/04 08:56:28 tempelho Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -271,7 +271,7 @@
}
}
&Apache::lonnet::logthis(
- "<font color=yellow>INFO: Read file types</font>");
+ "<span style='color:yellow;'>INFO: Read file types</span>");
$readit=1;
} # end of unless($readit)
@@ -926,7 +926,7 @@
if ($text ne "") {
$template .=
"<table bgcolor='#3333AA' cellspacing='1' cellpadding='1' border='0'><tr>".
- "<td bgcolor='#5555FF'><span class=\"LC_nobreak\"><a target=\"_top\" href=\"$link\"><font color='#FFFFFF' size='2'>$text</font></a>";
+ "<td bgcolor='#5555FF'><a target=\"_top\" href=\"$link\"><span style=\"color:#FFFFFF;font-size:10pt;\">$text</span></a>";
}
# Add the graphic
@@ -935,7 +935,7 @@
$template .= <<"ENDTEMPLATE";
<a target="_top" href="$link" title="$title"><img src="$helpicon" border="0" alt="(Help: $topic)" /></a>
ENDTEMPLATE
- if ($text ne '') { $template.='</span></td></tr></table>' };
+ if ($text ne '') { $template.='</td></tr></table>' };
return $template;
}
@@ -1128,7 +1128,7 @@
{
$template .=
"<table bgcolor='#AA3333' cellspacing='1' cellpadding='1' border='0'><tr>".
- "<td bgcolor='#FF5555'><a target=\"_top\" href=\"$link\"><font color='#FFFFFF' size='2'>$text</font></a>";
+ "<td bgcolor='#FF5555'><a target=\"_top\" href=\"$link\"><span style=\"color:#FFFFFF;font-size:10pt;\">$text</span></a>";
}
# Add the graphic
@@ -1173,7 +1173,7 @@
{
$template .=
"<table bgcolor='#337733' cellspacing='1' cellpadding='1' border='0'><tr>".
- "<td bgcolor='#448844'><a target=\"_top\" href=\"$link\"><font color='#FFFFFF' size='2'>$text</font></a>";
+ "<td bgcolor='#448844'><a target=\"_top\" href=\"$link\"><span style=\"color:#FFFFFF; font-size:10pt;\">$text</span></a>";
}
# Add the graphic
@@ -2770,7 +2770,7 @@
sub syllabuswrapper {
my ($linktext,$coursedir,$domain,$fontcolor)=@_;
if ($fontcolor) {
- $linktext='<font color="'.$fontcolor.'">'.$linktext.'</font>';
+ $linktext='<span style="color:'.$fontcolor.';">'.$linktext.'</span>';
}
return qq{<a href="/public/$domain/$coursedir/syllabus">$linktext</a>};
}
@@ -4220,7 +4220,7 @@
.'<b>'.&mt('Construction Space').'</b>: '
.'<form name="dirs" method="post" action="'.$formaction
.'" target="_top"><tt><b>'
- .&Apache::lonhtmlcommon::crumbs($uname.'/'.$parentpath,'_top','/priv','','+1',1)."<font size=\"+1\">$lastitem</font></b></tt><br />"
+ .&Apache::lonhtmlcommon::crumbs($uname.'/'.$parentpath,'_top','/priv','','+1',1)."<span class=\"LC_fontsize_big\">$lastitem</span></b></tt><br />"
.&Apache::lonhtmlcommon::select_recent('construct','recent','this.form.action=this.form.recent.value;this.form.submit()')
.'</form>'
.&Apache::lonmenu::constspaceform();
@@ -4604,6 +4604,26 @@
vertical-align: top;
}
+.LC_fontsize_small
+{
+ font-size: 70%;
+}
+
+.LC_fontsize_medium
+{
+ font-size: 85%;
+}
+
+.LC_fontsize_large
+{
+ font-size: 120%;
+}
+
+.LC_fontcolor_red
+{
+ color: #FF0000;
+}
+
.LC_menubuttons_inline_text {
color: $font;
font-family: $sans;
@@ -5332,7 +5352,8 @@
float: left;
}
div.LC_grade_select_mode_selector_header {
- font: bold medium $sans;
+ font-weight: bold;
+ font-size: medium;
}
div.LC_grade_select_mode_type {
clear: left;
@@ -5345,7 +5366,8 @@
div.LC_grade_user_name {
background: #DDDDEE;
border-bottom: 1px solid black;
- font: bold large $sans;
+ font-weight: bold;
+ font-size: large;
}
div.LC_grade_show_user_odd_row div.LC_grade_user_name {
background: #DDEEDD;
@@ -5364,7 +5386,8 @@
div.LC_grade_submissions_header,
div.LC_grade_message_center_header,
div.LC_grade_assign_header {
- font: bold large $sans;
+ font-weight: bold;
+ font-size: large;
}
div.LC_grade_show_problem_problem,
div.LC_grade_submissions_body,
@@ -5375,7 +5398,8 @@
background: #FFFFFF;
}
span.LC_grade_check_note {
- font: normal medium $sans;
+ font-weight: normal;
+ font-size: medium;
display: inline;
position: absolute;
right: 1em;
@@ -5390,7 +5414,8 @@
}
.LC_edit_problem_header,
div.LC_edit_problem_footer {
- font: normal medium $sans;
+ font-weight: normal;
+ font-size: medium;
margin: 2px;
}
div.LC_edit_problem_header,
@@ -5407,12 +5432,14 @@
margin-bottom: 5px;
}
div.LC_edit_problem_header_title {
- font: larger bold $sans;
+ font-weight: bold;
+ font-size: larger;
background: $tabbg;
padding: 3px;
}
table.LC_edit_problem_header_title {
- font: larger bold $sans;
+ font-size: larger;
+ font-weight: bold;
width: 100%;
border-color: $pgbg;
border-style: solid;
@@ -7599,9 +7626,9 @@
' <a href="'.$url.'">'.
$orig_uploaded_filename.'</a><br />';
} else {
- $output .= '<font size="+2">'.
+ $output .= '<span class=\"LC_fontsize_large\">'.
&mt('View embedded file: [_1]','<a href="'.$url.'">'.
- $orig_uploaded_filename.'</a>').'</font><br />';
+ $orig_uploaded_filename.'</a>').'</span><br />';
}
}
close($fh);
@@ -7948,7 +7975,7 @@
&end_data_table_header_row()."\n");
foreach my $array_ref (@$d) {
my ($value,$display,$defaultcol)=@{ $array_ref };
- $r->print(&start_data_table_row().'<td>'.$display.'</td>');
+ $r->print(&start_data_table_row().'<tr><td>'.$display.'</td>');
$r->print('<td><select name=f'.$i.
' onchange="javascript:flip(this.form,'.$i.');">');
@@ -9754,8 +9781,8 @@
}
untie(%disk_env);
} else {
- &Apache::lonnet::logthis("<font color=\"blue\">WARNING: ".
- 'Could not create environment storage in lonauth: '.$!.'</font>');
+ &Apache::lonnet::logthis("<span style=\"color:blue;\">WARNING: ".
+ 'Could not create environment storage in lonauth: '.$!.'</span>');
return 'error: '.$!;
}
}
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.245 loncom/interface/lonmenu.pm:1.246
--- loncom/interface/lonmenu.pm:1.245 Wed Dec 3 11:48:43 2008
+++ loncom/interface/lonmenu.pm Thu Dec 4 08:56:28 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.245 2008/12/03 11:48:43 harmsja Exp $
+# $Id: lonmenu.pm,v 1.246 2008/12/04 08:56:28 tempelho Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -299,7 +299,6 @@
</td>
</tr>
</table>
-</font>
ENDINLINEMENU
}
$roles = '<td><a href="/adm/roles" target="_top">'.$lt{'roles'}.'</a></td>';
@@ -365,8 +364,8 @@
$docs
$groups
$roles
-<td class="LC_top_nav_help">$helplink</td>
-<td class="LC_top_nav_exit"><a href="/adm/logout" target="_top">$lt{'exit'}</a></td>
+<td style="width: 2.0em;">$helplink</td>
+<td style="width: 2.0em;"><a href="/adm/logout" target="_top">$lt{'exit'}</a></td>
</tr>
</table>
$form
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.418 loncom/interface/lonnavmaps.pm:1.419
--- loncom/interface/lonnavmaps.pm:1.418 Fri Nov 21 20:31:48 2008
+++ loncom/interface/lonnavmaps.pm Thu Dec 4 08:56:28 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.418 2008/11/21 20:31:48 jms Exp $
+# $Id: lonnavmaps.pm,v 1.419 2008/12/04 08:56:28 tempelho Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -966,8 +966,8 @@
# Is this the current resource?
if (!$params->{'displayedHereMarker'} &&
$resource->symb() eq $params->{'here'} ) {
- $curMarkerBegin = '<font color="red" size="+2">></font>';
- $curMarkerEnd = '<font color="red" size="+2"><</font>';
+ $curMarkerBegin = '<span class="LC_fontcolor_red LC_fontsize_large">></span>';
+ $curMarkerEnd = '<span class="LC_fontcolor_red LC_fontsize_large"><</span>';
$params->{'displayedHereMarker'} = 1;
}
--tempelho1228380988--