--- loncom/interface/loncommon.pm 2007/04/16 22:50:44 1.523 +++ loncom/interface/loncommon.pm 2007/05/15 20:05:13 1.535 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.523 2007/04/16 22:50:44 albertel Exp $ +# $Id: loncommon.pm,v 1.535 2007/05/15 20:05:13 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -240,7 +240,7 @@ Inputs: formname, elementname formname and elementname specify the name of the html form and the name of the element the selection from the search results will be placed in. - +=back =cut sub browser_and_searcher_javascript { @@ -1467,6 +1467,8 @@ sub home_server_option_list { =pod +=back + =cut ############################################################### @@ -2912,7 +2914,7 @@ sub blockcheck { } my $no_ownblock = 0; my $no_userblock = 0; - if ($otheruser) { + if ($otheruser && $activity ne 'com') { # Check if current user has 'evb' priv for this if (defined($own_courses{$course})) { foreach my $sec (keys(%{$own_courses{$course}})) { @@ -3165,7 +3167,7 @@ Returns: Determines which domain should ############################################### sub determinedomain { my $domain=shift; - if (! $domain) { + if (! $domain) { # Determine domain if we have not been given one $domain = $Apache::lonnet::perlvar{'lonDefDomain'}; if ($env{'user.domain'}) { $domain=$env{'user.domain'}; } @@ -3411,9 +3413,7 @@ sub bodytag { my $bodytag = "". &Apache::lontexconvert::init_math_support(); - if ($bodyonly - || ($env{'request.state'} eq 'construct' - && $env{'environment.remote'} ne 'off' )) { + if ($bodyonly) { return $bodytag; } elsif ($env{'browser.interface'} eq 'textual') { # Accessibility @@ -3717,6 +3717,8 @@ form, .inline { display: inline; } .LC_diff_removed { color: red; } + +.LC_info, .LC_success, .LC_diff_added { color: green; @@ -3725,6 +3727,10 @@ form, .inline { display: inline; } border: 0px; } +.LC_internal_info { + color: #999; +} + table.LC_pastsubmission { border: 1px solid black; margin: 2px; @@ -3786,7 +3792,7 @@ table#LC_title_bar td.LC_title_bar_role_ } table#LC_menubuttons_mainmenu { - background: $pgbg; + width: 100%; border: 0px; border-spacing: 1px; padding: 0px 1px; @@ -3851,20 +3857,27 @@ table#LC_mainmenu td.LC_mainmenu_column font-size: smaller; } +.LC_menubuttons_link { + text-decoration: none; +} + .LC_menubuttons_category { color: $font; + background: $pgbg; font-family: $sans; font-size: larger; font-weight: bold; } td.LC_menubuttons_text { + width: 90%; color: $font; font-family: $sans; } + td.LC_menubuttons_img { - background: $tabbg; } + .LC_current_location { font-family: $sans; background: $tabbg; @@ -3874,6 +3887,45 @@ td.LC_menubuttons_img { font-weight: bold; } +.LC_rolesmenu_is { + font-family: $sans; +} + +.LC_rolesmenu_selected { + font-family: $sans; +} + +.LC_rolesmenu_future { + font-family: $sans; +} + + +.LC_rolesmenu_will { + font-family: $sans; +} + +.LC_rolesmenu_will_not { + font-family: $sans; +} + +.LC_rolesmenu_expired { + font-family: $sans; +} + +.LC_rolesinfo { + font-family: $sans; +} + +.LC_dropadd_labeltext { + font-family: $sans; + text-align: right; +} + +.LC_preferences_labeltext { + font-family: $sans; + text-align: right; +} + table.LC_aboutme_port { border: 0px; border-collapse: collapse; @@ -4278,21 +4330,13 @@ span.LC_feedback_link { } table.LC_prior_tries { - border-width: 1px; - border-style: solid; - border-color: gray; - border-collapse: collapse; + border: 1px solid #000000; + border-collapse: separate; + border-spacing: 1px; } table.LC_prior_tries td { - border-width: 1px; - border-style: solid; - border-color: gray; - padding: 3px; -} -table.LC_prior_tries tr.LC_correct { - font-weight: bold; - background: #aaffaa; + padding: 2px; } .LC_answer_correct { @@ -4323,7 +4367,16 @@ table.LC_prior_tries tr.LC_correct { } -span.LC_prior_numerical { +span.LC_prior_numerical, +span.LC_prior_string, +span.LC_prior_custom, +span.LC_prior_reaction, +span.LC_prior_math { + font-family: monospace; + white-space: pre; +} + +span.LC_prior_string { font-family: monospace; white-space: pre; } @@ -4332,9 +4385,13 @@ table.LC_prior_option { width: 100%; border-collapse: collapse; } -table.LC_prior_option tr td { - border-style: solid; - border-width: 1px +table.LC_prior_rank, table.LC_prior_match { + border-collapse: collapse; +} +table.LC_prior_option tr td, +table.LC_prior_rank tr td, +table.LC_prior_match tr td { + border: 1px solid #000000; } span.LC_nobreak {