Index: openacs-4/packages/openacs-default-theme/openacs-default-theme.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/openacs-default-theme.info,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/openacs-default-theme/openacs-default-theme.info 8 May 2008 01:34:03 -0000 1.1 @@ -0,0 +1,29 @@ + + + + + OpenACS Default Theme + OpenACS Default Themes + t + t + + + Don Baccus + Provides the default "plain" and "tabbed" themes for OpenACS Subsites. + Provides the default "plain" and "tabbed" themes for OpenACS Subsites. This has been moved out to a separate package, with availability recorded in the database, to make it easier for developer's to create their own themes and distribute and/or install them in package form. + + + 0 + + + + + + + + + + + + + Index: openacs-4/packages/openacs-default-theme/catalog/openacs-default-theme.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/catalog/openacs-default-theme.en_US.ISO-8859-1.xml,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/openacs-default-theme/catalog/openacs-default-theme.en_US.ISO-8859-1.xml 8 May 2008 01:34:03 -0000 1.1 @@ -0,0 +1,7 @@ + + + +OpenACS Default Plain +OpenACS Default Tabbed + + Index: openacs-4/packages/openacs-default-theme/lib/plain-master.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/lib/plain-master.adp,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/openacs-default-theme/lib/plain-master.adp 8 May 2008 01:34:03 -0000 1.1 @@ -0,0 +1,122 @@ + +doc +body +@head;noquote@ +@focus;noquote@ +@skip_link;noquote@ + +
+
+ @system_name@ + @system_name@ +
+ + + + + + + + +
+
Begin main content
+
+ + +
+ +
+ @user_messages.message;noquote@ +
+
+
+
+ +
+
+
+ +
+
+
+ +
+
+ + + TODO: remove this and add a more systematic / package independent way + TODO of getting this content here + + + + empty UL gives a validation error for the W3C validator + + + + + + +
+ Index: openacs-4/packages/openacs-default-theme/lib/plain-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/lib/plain-master.tcl,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/openacs-default-theme/lib/plain-master.tcl 8 May 2008 01:34:03 -0000 1.1 @@ -0,0 +1,156 @@ +ad_page_contract { + This is the highest level site specific master template. + + Properties allowed + doc(title) HTML title + head code to be entered into head of document + body + focus HTML id of form element to focus + skip_link href of link to skip to. Should be of format #skip_link + + @author Lee Denison (lee@xarg.co.uk) + + $Id: plain-master.tcl,v 1.1 2008/05/08 01:34:03 donb Exp $ +} + +# +# Set some basic variables +# +set system_name [ad_system_name] +set subsite_name [lang::util::localize [subsite::get_element -element instance_name]] + +if {[ad_conn url] eq "/"} { + set system_url "" +} else { + set system_url [ad_url] +} + +if {[template::util::is_nil title]} { + # TODO: decide how best to set the lang attribute for the title + set title [ad_conn instance_name] +} + +# +# Organize standard top level navigation, if any, for output by groups (rows of +# horizontal tabs by default) +# +if { [template::multirow exists navigation] } { + for {set i 1} {$i <= [template::multirow size navigation]} {incr i} { + template::multirow get navigation $i + if {![info exists navigation_groups] || + [lsearch -exact $navigation_groups $navigation(group)] < 0} { + lappend navigation_groups $navigation(group) + } + } +} + +# +# User information and top level navigation links +# +set user_id [ad_conn user_id] +set untrusted_user_id [ad_conn untrusted_user_id] +set sw_admin_p 0 + +if { $untrusted_user_id == 0 } { + # The browser does NOT claim to represent a user that we know about + set login_url [ad_get_login_url -return] +} else { + # The browser claims to represent a user that we know about + set user_name [person::name -person_id $untrusted_user_id] + set pvt_home_url [ad_pvt_home] + set pvt_home_name [_ acs-subsite.Your_Account] + set logout_url [ad_get_logout_url] + + # Site-wide admin link + set admin_url {} + + set sw_admin_p [acs_user::site_wide_admin_p -user_id $untrusted_user_id] + + if { $sw_admin_p } { + set admin_url "/acs-admin/" + set devhome_url "/acs-admin/developer" + set locale_admin_url "/acs-lang/admin" + } else { + set subsite_admin_p [permission::permission_p \ + -object_id [subsite::get_element -element object_id] \ + -privilege admin \ + -party_id $untrusted_user_id] + + if { $subsite_admin_p } { + set admin_url "[subsite::get_element -element url]admin/" + } + } +} + +# +# User messages +# +util_get_user_messages -multirow user_messages + +# +# Set acs-lang urls +# +set acs_lang_url [apm_package_url_from_key "acs-lang"] +set num_of_locales [llength [lang::system::get_locales]] + +if {$acs_lang_url eq ""} { + set lang_admin_p 0 +} else { + set lang_admin_p [permission::permission_p \ + -object_id [site_node::get_element \ + -url $acs_lang_url \ + -element object_id] \ + -privilege admin \ + -party_id [ad_conn untrusted_user_id]] +} + +set toggle_translator_mode_url [export_vars \ + -base ${acs_lang_url}admin/translator-mode-toggle \ + {{return_url [ad_return_url]}}] + +set package_id [ad_conn package_id] +if { $num_of_locales > 1 } { + set change_locale_url [export_vars -base $acs_lang_url {package_id}] +} + +# +# Change locale link +# +if {[llength [lang::system::get_locales]] > 1} { + set change_locale_url [export_vars -base "/acs-lang/" {package_id}] +} + +# +# Who's Online +# +set num_users_online [lc_numeric [whos_online::num_users]] +set whos_online_url "[subsite::get_element -element url]shared/whos-online" + +# +# Context bar +# +if {[info exists context]} { + set context_tmp $context + unset context +} else { + set context_tmp {} +} + +ad_context_bar_multirow -- $context_tmp + +# Context bar separator +set subsite_id [ad_conn subsite_id] +set separator [parameter::get -package_id $subsite_id -parameter ContextBarSeparator -default ":"] + +# +# Curriculum specific bar +# TODO: remove this and add a more systematic / package independent way +# TODO of getting this content here +# +set curriculum_bar_p [expr { + [site_node::get_package_url -package_key curriculum] ne "" +}] + +if {![info exists skip_link]} { + set skip_link "#content-wrapper" +} Index: openacs-4/packages/openacs-default-theme/lib/tabbed-master.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/lib/tabbed-master.adp,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/openacs-default-theme/lib/tabbed-master.adp 8 May 2008 01:34:03 -0000 1.1 @@ -0,0 +1,8 @@ + +doc +body +@head;noquote@ +@focus;noquote@ +navigation + + Index: openacs-4/packages/openacs-default-theme/lib/tabbed-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/lib/tabbed-master.tcl,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/openacs-default-theme/lib/tabbed-master.tcl 8 May 2008 01:34:03 -0000 1.1 @@ -0,0 +1,7 @@ +# Set the tabs then use the plain master to render the page. + +subsite_navigation::define_pageflow -navigation_multirow navigation -group main -subgroup sub \ + -show_applications_p [parameter::get -package_id [ad_conn subsite_id] \ + -parameter ShowApplications -default 1] \ + -initial_pageflow [parameter::get -package_id [ad_conn subsite_id] \ + -parameter UserNavbarTabsList -default ""] Index: openacs-4/packages/openacs-default-theme/tcl/apm-callback-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/tcl/apm-callback-procs.tcl,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/openacs-default-theme/tcl/apm-callback-procs.tcl 8 May 2008 01:34:03 -0000 1.1 @@ -0,0 +1,56 @@ +namespace eval openacs_default_theme {} +namespace eval openacs_default_theme::install {} + +ad_proc openacs_default_theme::install::after_install {} { + Package after installation callback proc. Add our themes, and set the acs-subsite's + default master template parameter's default value to our "plain" theme. +} { + + # Insert this package's themes + db_transaction { + + subsite::new_subsite_theme \ + -key default_plain \ + -name #openacs-default-theme.plain# \ + -template /packages/openacs-default-theme/lib/plain-master \ + -css "{/resources/openacs-default-theme/styles/default-master.css all} + {/resources/acs-templating/forms.css all} + {/resources/acs-templating/lists.css all}" \ + -form_template /packages/acs-templating/resources/forms/standard \ + -list_template /packages/acs-templating/resources/lists/table \ + -list_filter_template /packages/acs-templating/resources/lists/filters \ + + subsite::new_subsite_theme \ + -key default_tabbed \ + -name #openacs-default-theme.tabbed# \ + -template /packages/openacs-default-theme/lib/tabbed-master \ + -css "{/resources/openacs-default-theme/styles/default-master.css all} + {/resources/acs-templating/forms.css all} + {/resources/acs-templating/lists.css all}" \ + -form_template /packages/acs-templating/resources/forms/standard \ + -list_template /packages/acs-templating/resources/lists/table \ + -list_filter_template /packages/acs-templating/resources/lists/filters \ + } + + # Set the default value of the master template parameter, so all subsites will + # default to this when mounted. At this point in the ACS installation process, the + # main subsite has yet to be mounted, so it will get the "plain" theme value + # when the installer gets around to doing so. + + # Don't do this if you're creating your own theme package! Override the default by + # creating a custom install.xml file to be run during the install process if you want + # it to be installed by default for your sites. + + # We don't set up the form or list templates or CSS because the default is to use + # those values set for acs-templating during install. + + parameter::set_default -package_key acs-subsite -parameter DefaultMaster \ + -value /packages/openacs-default-theme/lib/plain-master + + parameter::set_default -package_key acs-subsite -parameter ThemeCSS \ + -value "{/resources/openacs-default-theme/styles/default-master.css all} + {/resources/acs-templating/forms.css all} + {/resources/acs-templating/lists.css all}" + + parameter::set_default -package_key acs-subsite -parameter ThemeKey -value default_plain +} Index: openacs-4/packages/openacs-default-theme/www/resources/images/bg.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/www/resources/images/bg.gif,v diff -u -N Binary files differ Index: openacs-4/packages/openacs-default-theme/www/resources/images/left.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/www/resources/images/left.gif,v diff -u -N Binary files differ Index: openacs-4/packages/openacs-default-theme/www/resources/images/left_on.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/www/resources/images/left_on.gif,v diff -u -N Binary files differ Index: openacs-4/packages/openacs-default-theme/www/resources/images/right.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/www/resources/images/right.gif,v diff -u -N Binary files differ Index: openacs-4/packages/openacs-default-theme/www/resources/images/right_on.gif =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/www/resources/images/right_on.gif,v diff -u -N Binary files differ Index: openacs-4/packages/openacs-default-theme/www/resources/styles/default-master.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/www/resources/styles/default-master.css,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/openacs-default-theme/www/resources/styles/default-master.css 8 May 2008 01:34:03 -0000 1.1 @@ -0,0 +1,795 @@ +/* Main navigation */ + +#main-navigation { + float:left; + width:100%; + background: url("/resources/openacs-default-theme/images/bg.gif") repeat-x bottom; + clear: both; + display: block; +} + +#main-navigation ul { + margin:0; + padding:10px 10px 0; + list-style:none; +} + +#main-navigation li { + float:left; + background:url("/resources/openacs-default-theme/images/left.gif") no-repeat left top; + margin:0; + padding:0 0 0 9px; +} + +#main-navigation a { + float:left; + display:block; + background:url("/resources/openacs-default-theme/images/right.gif") no-repeat right top; + padding:5px 15px 4px 6px; + text-decoration:none; + font-weight:bold; + font-size: .95em; + color:#666666; +} + + +#main-navigation #main-navigation-active { + background-image:url("/resources/openacs-default-theme/images/left_on.gif"); +} + +#main-navigation #main-navigation-active a { + background-image:url("/resources/openacs-default-theme/images/right_on.gif"); + color:#000; + padding-bottom:5px; +} + +#main-navigation a:hover { + color: #000; + text-decoration: underline; +} + +/* End of main navigation */ + +/* Subnavigation */ + +#sub-navigation { + float: left; + width:100%; + background: url("/resources/openacs-default-theme/images/navigation/bg.gif") repeat-x bottom; + clear: both; + padding-top: 5px; /* remove this padding to make the subnavigation links to appear completly enclosed */ + padding-bottom: 5px /* remove this padding to make the subnavigation links to appear completly enclosed */ +} + +#sub-navigation ul { + margin: 0; + padding:0px 10px 10px 10px; + list-style:none; + line-height: .7em; +} + +#sub-navigation li { + float:left; + border-right: 1px solid #a0a3a1; + padding: 0px 20px 0px 20px ; +} + +#sub-navigation a { + float:left; + display:block; + color:#666666; + padding:4px 0px 6px 0px; + text-decoration: none; + font-weight:bold; + font-size: .95em; +} + +#sub-navigation li a:hover { + color: #000; + text-decoration: underline; +} + +#sub-navigation li#sub-navigation-active a { + color: #000; +} + +/* End of subnavigation */ + +/* Calendar widget css */ + +/* The main calendar widget. div containing a table. */ + +div.calendar { position: relative; } + +.calendar, .calendar table { + border: 1px solid #556; + font-size: 11px; + color: #000; + cursor: default; + background: #eef; + font-family: tahoma,verdana,sans-serif; +} + +/* Header part -- contains navigation buttons and day names. */ + +.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ + text-align: center; /* They are the navigation buttons */ + padding: 2px; /* Make the buttons seem like they're pressing */ +} + +.calendar thead .title { /* This holds the current "month, year" */ + font-weight: bold; /* Pressing it will take you to the current date */ + text-align: center; + background: #fff; + color: #000; + padding: 2px; +} + +.calendar thead .headrow { /* Row containing navigation buttons */ + background: #778; + color: #fff; +} + +.calendar thead .daynames { /* Row containing the day names */ + background: #bdf; +} + +.calendar thead .name { /* Cells containing the day names */ + border-bottom: 1px solid #556; + padding: 2px; + text-align: center; + color: #000; +} + +.calendar thead .weekend { /* How a weekend day name shows in header */ + color: #a66; +} + +.calendar thead .hilite { /* How do the buttons in header appear when hover */ + background: #aaf; + color: #000; + border: 1px solid #04f; + padding: 1px; +} + +.calendar thead .active { /* Active (pressed) buttons in header */ + background: #77c; + padding: 2px 0px 0px 2px; +} + +/* The body part -- contains all the days in month. */ + +.calendar tbody .day { /* Cells containing month days dates */ + width: 2em; + color: #456; + text-align: right; + padding: 2px 4px 2px 2px; +} + +.calendar table .wn { + padding: 2px 3px 2px 2px; + border-right: 1px solid #000; + background: #bdf; +} + +.calendar tbody .rowhilite td { + background: #def; +} + +.calendar tbody .rowhilite td.wn { + background: #eef; +} + +.calendar tbody td.hilite { /* Hovered cells */ + background: #def; + padding: 1px 3px 1px 1px; + border: 1px solid #bbb; +} + +.calendar tbody td.active { /* Active (pressed) cells */ + background: #cde; + padding: 2px 2px 0px 2px; +} + +.calendar tbody td.selected { /* Cell showing today date */ + font-weight: bold; + border: 1px solid #000; + padding: 1px 3px 1px 1px; + background: #fff; + color: #000; +} + +.calendar tbody td.weekend { /* Cells showing weekend days */ + color: #a66; +} + +.calendar tbody td.today { /* Cell showing selected date */ + font-weight: bold; + color: #00f; +} + +.calendar tbody .disabled { color: #999; } + +.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ + visibility: hidden; +} + +.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ + display: none; +} + +/* The footer part -- status bar and "Close" button */ + +.calendar tfoot .footrow { /* The in footer (only one right now) */ + text-align: center; + background: #556; + color: #fff; +} + +.calendar tfoot .ttip { /* Tooltip (status bar) cell */ + background: #fff; + color: #445; + border-top: 1px solid #556; + padding: 1px; +} + +.calendar tfoot .hilite { /* Hover style for buttons in footer */ + background: #aaf; + border: 1px solid #04f; + color: #000; + padding: 1px; +} + +.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ + background: #77c; + padding: 2px 0px 0px 2px; +} + +/* Combo boxes (menus that display months/years for direct selection) */ + +.combo { + position: absolute; + display: none; + top: 0px; + left: 0px; + width: 4em; + cursor: default; + border: 1px solid #655; + background: #def; + color: #000; + font-size: smaller; +} + +.combo .label { + width: 100%; + text-align: center; +} + +.combo .hilite { + background: #acf; +} + +.combo .active { + border-top: 1px solid #46a; + border-bottom: 1px solid #46a; + background: #eef; + font-weight: bold; +} + +#login-box { + border: black 1px solid; + padding: 4px; +} + +table.table-display { + font-family: tahoma, verdana, helvetica; + font-size: 85%; +} + +tr.table-header { + background-color: #cccccc; +} + +tr.even { + background-color: #f0f0f0; +} + +tr.odd { + background-color: #e0e0e0; +} + +/* Replace deprecated center tags in forms. Eventually all forms should use form builder and this tag should not be used */ + +div.submit-button { + text-align: center; +} + +#skiptocontent { + display: none; +} + +.block-marker {display: none;} + +/* User Messages */ + +#alert-message { + background-color: #ccff99; + padding: 4px; + padding-top: 6px; + padding-bottom: 6px; + font-size: 85%; +} + +#alert-message .alert { + margin-left: 0; + padding-left: 2px; + border: none; +} + + +/* Boxed User Message */ + +.boxed-user-message { + background-color: #ccff99; + padding-left: 12px; + padding-right: 12px; + padding-top: 8px; + padding-bottom: 8px; + font-size: 85%; + border: 1px solid #dd9988; +} + +.boxed-user-message h3 { + color: #990000; + margin-top: 0px; +} + +.boxed-user-message .body { + color: #990000; +} + + +/* Subsite Name */ + +#subsite-name { + font-weight: bold; + font-size: 120%; + font-family: verdana; + padding-left: 8px; +} +a.subsite-name { + color: black; + text-decoration: none; +} +a.subsite-name:hover { + color: black; + text-decoration: none; +} + + +/* Site Footer */ + +#footer { + clear: both; + border-top: 1px solid #ccc; + font-family: tahoma, verdana, helvetica, sans-serif; + font-size: 85%; + margin-top: 24px; + padding-top: 3px; + padding-bottom: 3px; + padding-left: 8px; + padding-right: 8px; + text-align: center; +} + +#footer ul { + display: inline; + margin-left: 0; + padding-left: 0; + border: none; +} + +#footer ul li { + margin-left: 0; + padding-left: 10px; + border: none; + list-style: none; + display: inline; +} + +#footer .action-list { + float: left; +} + +#wrapper { +} + +#content-wrapper { + clear: both; + border-top: 1px solid #fff; + padding-bottom: 75px; +} + + +/********************************************************************** +/* Widgets +/**********************************************************************/ + +/* STANDARD TAGS -----------------------------------------------------------*/ +/* standard html (body, h1, p, form...) */ + +body { + margin:5px 5px 0px 5px; + padding:0; + font:small/1.5em Tahoma, "Lucida Grande", sans-serif; voice-family: "\"}\""; voice-family:inherit; +} + +h1 { + font-size: 1.2em; + font-weight: bold; + color: #666666; + margin-bottom: 12px; +} + +h2 { + font-size: 1.1em; + font-weight:bold; + color: #555555; + margin-bottom: 12px; +} + +h3 { + font-size: 1.05em; + font-weight:bold; + color: #444444; + margin-bottom: 12px; +} + +h3 { + font-size: 1.00em; + font-weight:bold; + color: #444444; + margin-bottom: 12px; +} + +a:link { + color: #235c96; + text-decoration:underline; +} + +a:visited { + color: #235c96; +} + +a:hover { + color: #235c96; + background: #CCCCCC; +} + +/* BUTTON ---- */ +a.button { + font: .85em arial; + border: solid 1px black; + background-color: #E1E1E1; + text-align: center; + padding: 1px; + padding-left: 8px; + padding-right: 8px; + color: black; + text-decoration: none; + white-space: nowrap; +} + +a.button:link { + text-decoration: none; + border: solid 1px black; +} + +a.button:hover { + text-decoration: none; + background-color: #CCCCCC; + border: solid 1px black; +} + +a.button:active { + text-decoration: none; + border: solid 1px black; +} + +/* END BUTTON ---- */ + +.center {text-align: center;} +.small {font-size: x-small;} + +/* ARE THESE NEEDED ??? -----------------------------------------------------------*/ + +/* Various forms of links */ + +.action-list { + padding: 0; +} + +.action-list ul { + margin: 0; + padding: 0; + display: inline; + border: none; +} + +.action-list ul li { + margin: 0; + padding: 0; + border: none; + list-style: none; + display: inline; +} + +div.subsite-context-bar { + font-size: 85%; + margin-bottom: 4px; + position: relative; +} + +a.admin-button { + font: 85% arial; + border: solid 1px black; + background-color: #aaa; + text-align: center; + padding: 1px; + padding-left: 8px; + padding-right: 8px; + color: #fff; + text-decoration: none; + white-space: nowrap; +} +a.admin-button:link { + text-decoration: none; + border: solid 1px black; + color: #111; +} +a.admin-button:visited { + text-decoration: none; + border: solid 1px black; +} +a.admin-button:hover { + text-decoration: none; + background-color: #ccc; + border: solid 1px black; +} +a.admin-button:active { + text-decoration: none; + border: solid 1px black; +} + +a.admin:link, a.admin:visited { + color: #f00; + font-family: verdana; + font-size: 11px; + font-weight: normal; +} + +a.admin:hover { + color: #fff; + background: #f00; +} + +.highlight { + background-color: #ffc; +} + +ul.action-links li { + list-style: circle url(/resources/acs-subsite/action-link-marker.png); + margin: 8px; + margin-left: -16px; +} + +/* END ARE THESE NEEDED -----------------------------------------------------------*/ + +/* END STANDARD TAGS ---------------------------------------------------------------*/ + +/* HEADER TAGS ---------------------------------------------------------------------*/ + +#header { + font-size: 0.92em; + background-color: #EFEFEF; + color: #444444; + padding-top: 4px; + padding-bottom: 4px; +} + +#system-name { + font-size: 1.4em; + font-weight: bold; + float: left; + padding-left: 0.2em; +} + +#system-name a { + color: #333333; + text-decoration: none; +} + +#header-navigation { + float: right; + padding-right: 0.4em; +} + +/* CONTEXT BAR ---- */ + +#breadcrumbs { + clear: right; + padding-left: 0.4em; +} + +/* END CONTEXT BAR ---- */ + +/* END HEADER TAGS -----------------------------------------------------------*/ + +/* LISTS -----------------------------------------------------------*/ + +ul.compact, .action-list ul{ + margin: 0px; + padding: 0px; +} +ul.compact li, .action-list ul li { + list-style:none; + display: inline; +} + +/* END OF LISTS */ + + +/* Portlets */ + +.portlet h2 { + background: #dddddd; + padding: 2px 8px 2px 8px; + margin: 0; +} + +.portlet-header { + background: #dddddd; +} + +.portlet-header h2 { + padding: 2px 8px 2px 8px; + margin: 0; +} + +.portlet-sidebar { + width: 30%; +} + +.portlet .portlet-body { + border: 1px dotted #999; + border-top: 0px; + padding: 6px 8px 6px 8px; +} + + +/* Generally Available Tabs */ + +#tabs-div { + border-bottom: 1px solid #666; +} +#tabs-container { + height: 15px; + position: relative; +} +#tabs { + position: absolute; + height: 21px; + margin: 0px; + padding: 0px 0px 0px 0px; + left: 10px; + bottom: -2px; + margin-top: 10px; + font-family: Arial, sans-serif; + font-size: 80%; + font-weight: bold; +} +html>body #tabs { bottom: 0px } + +#tabs .tab { + height: 16px; + float: left; + background-color: #cccccc; + border: 1px solid #666; + padding: 2px 5px 2px 5px; + margin: 0px 2px 0px 2px; +} +#tabs .disabled { + color: #999999; +} +#tabs a { + text-decoration: none; + color: black; +} +#tabs a:hover { + text-decoration: underline; +} +#tabs #tabs-here { + border-bottom-color: #f6f6f6; + background-color: #f6f6f6; +} +#tabs #tabs-here a { + color: black; +} + +#tabs-body { + border-bottom: 1px solid #016799; + background-color: #f6f6f6; + clear: both; + padding-top: 4px; + padding-bottom: 4px; + padding-left: 4px; + padding-right: 4px; +} + + +/********************************************************************** +/* acs-developer-support Toolbar +/**********************************************************************/ +/* LARS: This ought to go in the developer-support package, somehow */ + +#developer-toolbar { + background-color: #616093; + color: white; + font-family: tahoma, verdana; + font-size: 80%; + padding-left: 8px; + padding-right: 8px; + padding-top: 2px; + padding-bottom: 2px; +} +#developer-toolbar td a { + border: solid 1px #616093; + text-align: center; + color: white; + text-decoration: none; +} +#developer-toolbar td a:hover { + text-decoration: none; + background-color: #999999; + border: solid 1px #cccccc; +} +#developer-toolbar #search { + font: 80% tahoma; + color: white; +} +#developer-toolbar #search input { + font: 100% tahoma; +} +#developer-toolbar td a.on { + background-color: #888888; + border: solid 1px #cccccc; +} +#developer-toolbar td a:hover.on { + background-color: #666666; + border: solid 1px #999999; +} + +/* Developer-support footer */ + +.developer-support-footer { + float: left; + padding: 6px; + border: solid 1px gray; + background-color: #e1e1e1; + margin-top: 4px; +} + + +/********************************************************************** +/* DEPRECATED CLASSES +/**********************************************************************/ + +/* Deprecated, not sure what it's replaced with just yet */ +a.action { + margin: 8px; + margin-left: 24px; + display: list-item; + list-style: circle url(/resources/acs-subsite/right.gif); +} + + Index: openacs-4/packages/openacs-default-theme/www/resources/styles/site-master.css =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/openacs-default-theme/www/resources/styles/Attic/site-master.css,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/openacs-default-theme/www/resources/styles/site-master.css 8 May 2008 01:34:03 -0000 1.1 @@ -0,0 +1,534 @@ +/* Styles originally defined in default-master.css */ + +#login-box { + border: black 1px solid; + padding: 4px; +} + +TABLE.table-display { + font-family: tahoma, verdana, helvetica; + font-size: 85%; +} + +TR.table-header { + background-color: #cccccc; +} + +TR.even { + background-color: #f0f0f0; +} + +TR.odd { + background-color: #e0e0e0; +} + +/* Replace deprecated center tags in forms. Eventually all forms should use form builder and this tag should not be used */ + +DIV.submit-button { + text-align: center; +} + + +/********************************************************************** +/* Site-Wide/Master Templates +/**********************************************************************/ + +#skiptocontent { + display: none; +} + +.block-marker {display: none;} + +/* User Messages */ + +#alert-message { + background-color: #ccff99; + padding: 4px; + padding-top: 6px; + padding-bottom: 6px; + font-size: 85%; +} + +#alert-message .alert { + margin-left: 0; + padding-left: 2px; + border: none; +} + + +/* Boxed User Message */ + +.boxed-user-message { + background-color: #ccff99; + padding-left: 12px; + padding-right: 12px; + padding-top: 8px; + padding-bottom: 8px; + font-size: 85%; + border: 1px solid #dd9988; +} + +.boxed-user-message h3 { + color: #990000; + margin-top: 0px; +} + +.boxed-user-message .body { + color: #990000; +} + + +/* Subsite Name */ + +#subsite-name { + font-weight: bold; + font-size: 120%; + font-family: verdana; + padding-left: 8px; +} +a.subsite-name { + color: black; + text-decoration: none; +} +a.subsite-name:hover { + color: black; + text-decoration: none; +} + + +/* Site Footer */ + +#footer { + clear: both; + border-top: 1px solid #ccc; + font-family: tahoma, verdana, helvetica, sans-serif; + font-size: 85%; + margin-top: 24px; + padding-top: 3px; + padding-bottom: 3px; + padding-left: 8px; + padding-right: 8px; + text-align: center; +} + +#footer ul { + display: inline; + margin-left: 0; + padding-left: 0; + border: none; +} + +#footer ul li { + margin-left: 0; + padding-left: 10px; + border: none; + list-style: none; + display: inline; +} + +#footer .action-list { + float: left; +} + +#wrapper { +} + +#content-wrapper { + clear: both; + border-top: 1px solid #fff; + padding-bottom: 75px; +} + + +/********************************************************************** +/* Widgets +/**********************************************************************/ + +/* STANDARD TAGS -----------------------------------------------------------*/ +/* standard html (body, h1, p, form...) */ + +body { + margin:5px 5px 0px 5px; + padding:0; + font:small/1.5em Tahoma, "Lucida Grande", sans-serif; voice-family: "\"}\""; voice-family:inherit; +} + +h1 { + font-size: 1.2em; + font-weight: bold; + color: #666666; + margin-bottom: 12px; +} + +h2 { + font-size: 1.1em; + font-weight:bold; + color: #555555; + margin-bottom: 12px; +} + +h3 { + font-size: 1.05em; + font-weight:bold; + color: #444444; + margin-bottom: 12px; +} + +h3 { + font-size: 1.00em; + font-weight:bold; + color: #444444; + margin-bottom: 12px; +} + +a:link { + color: #235c96; + text-decoration:underline; +} + +a:visited { + color: #235c96; +} + +a:hover { + color: #235c96; + background: #CCCCCC; +} + +/* BUTTON ---- */ +a.button { + font: .85em arial; + border: solid 1px black; + background-color: #E1E1E1; + text-align: center; + padding: 1px; + padding-left: 8px; + padding-right: 8px; + color: black; + text-decoration: none; + white-space: nowrap; +} + +a.button:link { + text-decoration: none; + border: solid 1px black; +} + +a.button:hover { + text-decoration: none; + background-color: #CCCCCC; + border: solid 1px black; +} + +a.button:active { + text-decoration: none; + border: solid 1px black; +} + +/* END BUTTON ---- */ + +.center {text-align: center;} +.small {font-size: x-small;} + +/* ARE THESE NEEDED ??? -----------------------------------------------------------*/ + +/* Various forms of links */ + +.action-list { + padding: 0; +} + +.action-list ul { + margin: 0; + padding: 0; + display: inline; + border: none; +} + +.action-list ul li { + margin: 0; + padding: 0; + border: none; + list-style: none; + display: inline; +} + +div.subsite-context-bar { + font-size: 85%; + margin-bottom: 4px; + position: relative; +} + +a.admin-button { + font: 85% arial; + border: solid 1px black; + background-color: #aaa; + text-align: center; + padding: 1px; + padding-left: 8px; + padding-right: 8px; + color: #fff; + text-decoration: none; + white-space: nowrap; +} +a.admin-button:link { + text-decoration: none; + border: solid 1px black; + color: #111; +} +a.admin-button:visited { + text-decoration: none; + border: solid 1px black; +} +a.admin-button:hover { + text-decoration: none; + background-color: #ccc; + border: solid 1px black; +} +a.admin-button:active { + text-decoration: none; + border: solid 1px black; +} + +a.admin:link, a.admin:visited { + color: #f00; + font-family: verdana; + font-size: 11px; + font-weight: normal; +} + +a.admin:hover { + color: #fff; + background: #f00; +} + +.highlight { + background-color: #ffc; +} + +ul.action-links li { + list-style: circle url(/resources/acs-subsite/action-link-marker.png); + margin: 8px; + margin-left: -16px; +} + +/* END ARE THESE NEEDED -----------------------------------------------------------*/ + +/* END STANDARD TAGS ---------------------------------------------------------------*/ + +/* HEADER TAGS ---------------------------------------------------------------------*/ + +#header { + font-size: 0.92em; + background-color: #EFEFEF; + color: #444444; + padding-top: 4px; + padding-bottom: 4px; +} + +#system-name { + font-size: 1.4em; + font-weight: bold; + float: left; + padding-left: 0.2em; +} + +#system-name a { + color: #333333; + text-decoration: none; +} + +#header-navigation { + float: right; + padding-right: 0.4em; +} + +/* CONTEXT BAR ---- */ + +#breadcrumbs { + clear: right; + padding-left: 0.4em; +} + +/* END CONTEXT BAR ---- */ + +/* END HEADER TAGS -----------------------------------------------------------*/ + +/* LISTS -----------------------------------------------------------*/ + +ul.compact, .action-list ul{ + margin: 0px; + padding: 0px; +} +ul.compact li, .action-list ul li { + list-style:none; + display: inline; +} + +/* END OF LISTS */ + + +/* Portlets */ + +.portlet h2 { + background: #dddddd; + padding: 2px 8px 2px 8px; + margin: 0; +} + +.portlet-header { + background: #dddddd; +} + +.portlet-header h2 { + padding: 2px 8px 2px 8px; + margin: 0; +} + +.portlet-sidebar { + width: 30%; +} + +.portlet .portlet-body { + border: 1px dotted #999; + border-top: 0px; + padding: 6px 8px 6px 8px; +} + + +/* Generally Available Tabs */ + +#tabs-div { + border-bottom: 1px solid #666; +} +#tabs-container { + height: 15px; + position: relative; +} +#tabs { + position: absolute; + height: 21px; + margin: 0px; + padding: 0px 0px 0px 0px; + left: 10px; + bottom: -2px; + margin-top: 10px; + font-family: Arial, sans-serif; + font-size: 80%; + font-weight: bold; +} +html>body #tabs { bottom: 0px } + +#tabs .tab { + height: 16px; + float: left; + background-color: #cccccc; + border: 1px solid #666; + padding: 2px 5px 2px 5px; + margin: 0px 2px 0px 2px; +} +#tabs .disabled { + color: #999999; +} +#tabs a { + text-decoration: none; + color: black; +} +#tabs a:hover { + text-decoration: underline; +} +#tabs #tabs-here { + border-bottom-color: #f6f6f6; + background-color: #f6f6f6; +} +#tabs #tabs-here a { + color: black; +} + +#tabs-body { + border-bottom: 1px solid #016799; + background-color: #f6f6f6; + clear: both; + padding-top: 4px; + padding-bottom: 4px; + padding-left: 4px; + padding-right: 4px; +} + + + + + + + + + + + + +/********************************************************************** +/* acs-developer-support Toolbar +/**********************************************************************/ +/* LARS: This ought to go in the developer-support package, somehow */ + +#developer-toolbar { + background-color: #616093; + color: white; + font-family: tahoma, verdana; + font-size: 80%; + padding-left: 8px; + padding-right: 8px; + padding-top: 2px; + padding-bottom: 2px; +} +#developer-toolbar td a { + border: solid 1px #616093; + text-align: center; + color: white; + text-decoration: none; +} +#developer-toolbar td a:hover { + text-decoration: none; + background-color: #999999; + border: solid 1px #cccccc; +} +#developer-toolbar #search { + font: 80% tahoma; + color: white; +} +#developer-toolbar #search input { + font: 100% tahoma; +} +#developer-toolbar td a.on { + background-color: #888888; + border: solid 1px #cccccc; +} +#developer-toolbar td a:hover.on { + background-color: #666666; + border: solid 1px #999999; +} + +/* Developer-support footer */ + +.developer-support-footer { + float: left; + padding: 6px; + border: solid 1px gray; + background-color: #e1e1e1; + margin-top: 4px; +} + + +/********************************************************************** +/* DEPRECATED CLASSES +/**********************************************************************/ + +/* Deprecated, not sure what it's replaced with just yet */ +a.action { + margin: 8px; + margin-left: 24px; + display: list-item; + list-style: circle url(/resources/acs-subsite/right.gif); +} + +