From 90723839ca88d09fe0b75a499bdea88367e737fc Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 25 Mar 2010 06:38:21 +0000 Subject: [PATCH] themes MDL-21862 Implements base theme and standard theme. Very big theme changes, standardold theme has been split into two themes base and standard. Base theme contains only CSS that is absolutly required (e.g. layout, white space rules, specific widths) and standard (which now looks like standardwhite) contains all the frills. The following noteable changes have also been made: * Plugin CSS has been pushed back into the plugin directories as styles.css files. * Install_print_header has been corrected. * Redundant or deprecated rules have been removed. * Several minor class changes throughout Moodle. * CSS is now single line rules not multiline indented. * Installs with theme=standardold automatically switch to standard. * body classes / id now have prefixes to make it clearer what they are and avoid conflicts. Also worth noting: * There is still alot of tweaking that is required to get everything looking as it is supposed to, please be patient or better yet help out. * I am currently working on the documentation for the themes system... it will be here soon. --- admin/blocks.php | 8 +- admin/enrol.php | 2 +- admin/report/capability/index.php | 2 +- blocks/admin_tree/styles.css | 5 + blocks/blog_tags/styles.css | 20 + blocks/calendar_month/styles.css | 11 + blocks/calendar_month/styles.php | 23 - blocks/calendar_upcoming/styles.css | 1 + blocks/course_list/styles.css | 1 + blocks/course_summary/styles.css | 2 + blocks/course_summary/styles.php | 7 - blocks/dock.js | 15 +- blocks/global_navigation_tree/styles.css | 22 + blocks/messages/styles.css | 4 + blocks/online_users/styles.css | 3 + blocks/quiz_results/styles.css | 6 + blocks/recent_activity/styles.css | 2 + blocks/rss_client/styles.php | 54 -- blocks/search_forums/styles.css | 4 + blocks/settings_navigation_tree/styles.css | 22 + blocks/tag_flickr/styles.css | 1 + blocks/tag_youtube/styles.css | 2 + blocks/tags/styles.css | 11 + blocks/tags/styles.php | 116 ---- calendar/event.php | 2 +- calendar/export.php | 2 +- calendar/lib.php | 71 +- calendar/view.php | 33 +- course/format/topics/styles.css | 6 + course/format/weeks/styles.css | 6 + course/lib.php | 6 +- grade/edit/outcome/import.php | 2 +- grade/edit/tree/index.php | 2 +- grade/report/user/styles.css | 36 + grade/report/user/styles.php | 121 ---- lib/adminlib.php | 2 +- lib/db/upgrade.php | 16 + lib/installlib.php | 23 +- lib/outputlib.php | 3 +- lib/pagelib.php | 18 +- mod/assignment/styles.css | 30 + mod/chat/styles.css | 32 + mod/choice/styles.css | 10 + mod/data/styles.css | 22 + mod/data/styles.php | 49 -- mod/feedback/styles.php | 9 - mod/forum/styles.css | 48 ++ mod/glossary/styles.css | 24 + mod/lesson/styles.css | 29 + mod/quiz/styles.css | 338 +++++++++ mod/resource/styles.css | 5 + mod/scorm/styles.css | 24 + mod/scorm/styles.php | 296 -------- mod/survey/lib.php | 2 +- mod/survey/styles.css | 14 + mod/wiki/styles.css | 7 + mod/wiki/wiki_styles.php | 108 --- pix/t/block_to_dock.png | Bin 246 -> 236 bytes pix/t/dock_to_block.png | Bin 248 -> 238 bytes tag/coursetags_edit.php | 4 +- tag/index.php | 2 +- tag/manage.php | 2 - theme/anomaly/layout/general.php | 35 +- theme/anomaly/style/base.css | 47 +- theme/anomaly/style/browser.css | 28 +- theme/anomaly/style/general.css | 44 +- theme/anomaly/style/layout.css | 40 +- theme/base/config.php | 15 +- theme/base/javascript/navigation.js | 116 ---- theme/base/layout/embedded.php | 2 +- theme/base/layout/frontpage.php | 52 +- theme/base/layout/general.php | 82 ++- theme/base/style/admin.css | 151 ++++ theme/base/style/block_calendar_month.css | 29 - theme/base/style/blocks.css | 149 +--- theme/base/style/calendar.css | 39 ++ theme/base/style/core.css | 651 +++++++++++++----- theme/base/style/course.css | 88 +++ theme/base/style/grade.css | 31 + theme/base/style/message.css | 32 + theme/base/style/pagelayout.css | 215 ++---- theme/base/style/question.css | 76 ++ theme/base/style/user.css | 43 ++ theme/standard/config.php | 19 + theme/standard/javascript/navigation.js | 43 ++ theme/standard/pix/favicon.ico | Bin 0 -> 894 bytes theme/standard/pix/hgradient.jpg | Bin 0 -> 346 bytes theme/standard/pix/tab/left.gif | Bin 0 -> 293 bytes theme/standard/pix/tab/left_active.gif | Bin 0 -> 178 bytes theme/standard/pix/tab/left_active_hover.gif | Bin 0 -> 206 bytes theme/standard/pix/tab/left_hover.gif | Bin 0 -> 292 bytes theme/standard/pix/tab/right.gif | Bin 0 -> 3297 bytes theme/standard/pix/tab/right_active.gif | Bin 0 -> 905 bytes theme/standard/pix/tab/right_active_hover.gif | Bin 0 -> 803 bytes theme/standard/pix/tab/right_end.gif | Bin 0 -> 69 bytes theme/standard/pix/tab/right_hover.gif | Bin 0 -> 2730 bytes theme/standard/pix/tab/right_last.gif | Bin 0 -> 2381 bytes theme/standard/pix/tab/rtlbg.gif | Bin 0 -> 770 bytes theme/standard/pix/tab/tabrow1.gif | Bin 0 -> 269 bytes theme/standard/pix/vgradient.jpg | Bin 0 -> 342 bytes theme/standard/style/admin.css | 145 ++++ theme/standard/style/blocks.css | 84 +++ theme/standard/style/calendar.css | 60 ++ theme/standard/style/core.css | 355 ++++++++++ theme/standard/style/course.css | 87 +++ theme/standard/style/css3.css | 239 +++++++ theme/standard/style/dock.css | 50 ++ theme/standard/style/grade.css | 34 + theme/standard/style/message.css | 31 + theme/standard/style/modules.css | 193 ++++++ theme/standard/style/question.css | 31 + user/view.php | 2 +- version.php | 2 +- 113 files changed, 3425 insertions(+), 1663 deletions(-) create mode 100644 blocks/admin_tree/styles.css create mode 100644 blocks/blog_tags/styles.css create mode 100644 blocks/calendar_month/styles.css delete mode 100644 blocks/calendar_month/styles.php create mode 100644 blocks/calendar_upcoming/styles.css create mode 100644 blocks/course_list/styles.css create mode 100644 blocks/course_summary/styles.css delete mode 100644 blocks/course_summary/styles.php create mode 100644 blocks/global_navigation_tree/styles.css create mode 100644 blocks/messages/styles.css create mode 100644 blocks/online_users/styles.css create mode 100644 blocks/quiz_results/styles.css create mode 100644 blocks/recent_activity/styles.css delete mode 100644 blocks/rss_client/styles.php create mode 100644 blocks/search_forums/styles.css create mode 100644 blocks/settings_navigation_tree/styles.css create mode 100644 blocks/tag_flickr/styles.css create mode 100644 blocks/tag_youtube/styles.css create mode 100644 blocks/tags/styles.css delete mode 100644 blocks/tags/styles.php create mode 100644 course/format/topics/styles.css create mode 100644 course/format/weeks/styles.css create mode 100644 grade/report/user/styles.css delete mode 100644 grade/report/user/styles.php create mode 100644 mod/assignment/styles.css create mode 100644 mod/chat/styles.css create mode 100644 mod/choice/styles.css create mode 100644 mod/data/styles.css delete mode 100644 mod/data/styles.php delete mode 100644 mod/feedback/styles.php create mode 100644 mod/forum/styles.css create mode 100644 mod/glossary/styles.css create mode 100644 mod/lesson/styles.css create mode 100644 mod/quiz/styles.css create mode 100644 mod/resource/styles.css create mode 100644 mod/scorm/styles.css delete mode 100644 mod/scorm/styles.php create mode 100644 mod/survey/styles.css create mode 100644 mod/wiki/styles.css delete mode 100644 mod/wiki/wiki_styles.php delete mode 100644 theme/base/javascript/navigation.js create mode 100644 theme/base/style/admin.css delete mode 100644 theme/base/style/block_calendar_month.css create mode 100644 theme/base/style/calendar.css create mode 100644 theme/base/style/course.css create mode 100644 theme/base/style/grade.css create mode 100644 theme/base/style/message.css create mode 100644 theme/base/style/question.css create mode 100644 theme/base/style/user.css create mode 100644 theme/standard/config.php create mode 100644 theme/standard/javascript/navigation.js create mode 100644 theme/standard/pix/favicon.ico create mode 100644 theme/standard/pix/hgradient.jpg create mode 100644 theme/standard/pix/tab/left.gif create mode 100644 theme/standard/pix/tab/left_active.gif create mode 100644 theme/standard/pix/tab/left_active_hover.gif create mode 100644 theme/standard/pix/tab/left_hover.gif create mode 100644 theme/standard/pix/tab/right.gif create mode 100644 theme/standard/pix/tab/right_active.gif create mode 100644 theme/standard/pix/tab/right_active_hover.gif create mode 100644 theme/standard/pix/tab/right_end.gif create mode 100644 theme/standard/pix/tab/right_hover.gif create mode 100755 theme/standard/pix/tab/right_last.gif create mode 100755 theme/standard/pix/tab/rtlbg.gif create mode 100755 theme/standard/pix/tab/tabrow1.gif create mode 100644 theme/standard/pix/vgradient.jpg create mode 100644 theme/standard/style/admin.css create mode 100644 theme/standard/style/blocks.css create mode 100644 theme/standard/style/calendar.css create mode 100644 theme/standard/style/core.css create mode 100644 theme/standard/style/course.css create mode 100644 theme/standard/style/css3.css create mode 100644 theme/standard/style/dock.css create mode 100644 theme/standard/style/grade.css create mode 100644 theme/standard/style/message.css create mode 100644 theme/standard/style/modules.css create mode 100644 theme/standard/style/question.css diff --git a/admin/blocks.php b/admin/blocks.php index 66789755edb..a8718a6c58a 100644 --- a/admin/blocks.php +++ b/admin/blocks.php @@ -131,8 +131,7 @@ $table->define_columns(array('name', 'instances', 'version', 'hideshow', 'delete', 'settings')); $table->define_headers(array($strname, $strcourses, $strversion, $strhide.'/'.$strshow, $strdelete, $strsettings)); $table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/blocks.php'); - $table->set_attribute('id', 'blocks'); - $table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide'); + $table->set_attribute('class', 'compatibleblockstable blockstable generaltable'); $table->setup(); foreach ($blockbyname as $blockname => $blockid) { @@ -188,7 +187,7 @@ $table->print_html(); if(!empty($incompatible)) { - echo $OUTPUT->heading(get_string('incompatibleblocks', 'admin')); + echo $OUTPUT->heading(get_string('incompatibleblocks', 'blockstable', 'admin')); $table = new flexible_table('admin-blocks-incompatible'); @@ -196,8 +195,7 @@ $table->define_headers(array($strname, $strdelete)); $table->define_baseurl($CFG->wwwroot.'/'.$CFG->admin.'/blocks.php'); - $table->set_attribute('id', 'incompatible'); - $table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide'); + $table->set_attribute('class', 'incompatibleblockstable generaltable'); $table->setup(); diff --git a/admin/enrol.php b/admin/enrol.php index 91af6759716..63f655aa28c 100644 --- a/admin/enrol.php +++ b/admin/enrol.php @@ -68,7 +68,7 @@ $table->head = array(get_string('name'), get_string('enable'), get_string('default'), $str->settings); $table->align = array('left', 'center', 'center', 'center'); $table->size = array('60%', '', '', '15%'); - $table->width = '700'; + $table->attributes['class'] = 'generaltable enrolplugintable'; $table->data = array(); $enabledplugins = explode(',', $CFG->enrol_plugins_enabled); diff --git a/admin/report/capability/index.php b/admin/report/capability/index.php index c349528ad9e..d9171da82fb 100644 --- a/admin/report/capability/index.php +++ b/admin/report/capability/index.php @@ -67,7 +67,7 @@ if (count($cleanedroleids) == count($allroles)) { } // Print the settings form. -echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter centerpara'); +echo $OUTPUT->box_start('generalbox boxwidthwide boxaligncenter'); echo '
'; echo $OUTPUT->heading(get_string('reportsettings', 'report_capability')); echo '

', get_string('intro', 'report_capability') , '

'; diff --git a/blocks/admin_tree/styles.css b/blocks/admin_tree/styles.css new file mode 100644 index 00000000000..80221ef5060 --- /dev/null +++ b/blocks/admin_tree/styles.css @@ -0,0 +1,5 @@ +.block_admin_tree .admintree {text-align:left;} +.block_admin_tree .admintree .depth1 {padding-left: 16px;} +.block_admin_tree .admintree .depth2 {padding-left: 32px;} +.block_admin_tree .admintree .depth3 {padding-left: 48px;} +.block_admin_tree .admintree .depth4 {padding-left: 64px;} \ No newline at end of file diff --git a/blocks/blog_tags/styles.css b/blocks/blog_tags/styles.css new file mode 100644 index 00000000000..5df71654d46 --- /dev/null +++ b/blocks/blog_tags/styles.css @@ -0,0 +1,20 @@ +.block_blog_tags .s20 {font-size: 1.5em;font-weight: bold;} +.block_blog_tags .s19 {font-size: 1.5em;} +.block_blog_tags .s18 {font-size: 1.4em;font-weight: bold;} +.block_blog_tags .s17 {font-size: 1.4em;} +.block_blog_tags .s16 {font-size: 1.3em;font-weight: bold;} +.block_blog_tags .s15 {font-size: 1.3em;} +.block_blog_tags .s14 {font-size: 1.2em;font-weight: bold;} +.block_blog_tags .s13 {font-size: 1.2em;} +.block_blog_tags .s12, +.block_blog_tags .s11 {font-size: 1.1em;font-weight: bold;} +.block_blog_tags .s10, +.block_blog_tags .s9 {font-size: 1.1em;} +.block_blog_tags .s8, +.block_blog_tags .s7 {font-size: 1em;font-weight: bold;} +.block_blog_tags .s6, +.block_blog_tags .s5 {font-size: 1em;} +.block_blog_tags .s4, +.block_blog_tags .s3 {font-size: 0.9em;font-weight: bold;} +.block_blog_tags .s2, +.block_blog_tags .s1 {font-size: 0.9em;} \ No newline at end of file diff --git a/blocks/calendar_month/styles.css b/blocks/calendar_month/styles.css new file mode 100644 index 00000000000..db2657e7e95 --- /dev/null +++ b/blocks/calendar_month/styles.css @@ -0,0 +1,11 @@ +.block_calendar_month .minicalendar {width:100%;margin:10px auto;} +.block_calendar_month .minicalendar th, +.block_calendar_month .minicalendar td {padding:2px;font-size:0.8em;} +.block_calendar_month .minicalendar td.weekend {color:#A00;} + +.block_calendar_month .calendar-controls .previous {text-align: left;display: block;float: left;width: 12%;} +.block_calendar_month .calendar-controls .current {float:left;text-align: center;display: block;width:76%;} +.block_calendar_month .calendar-controls .next {text-align: right;display: block;float: left;width: 12%;} + +.block_calendar_month .filters table {border-collapse:separate;border-spacing: 2px;padding: 2px;width: 100%;} +.block_calendar_month .content h3.eventskey {margin-top:0.5em;margin-bottom:0;margin-left:0.5em;} \ No newline at end of file diff --git a/blocks/calendar_month/styles.php b/blocks/calendar_month/styles.php deleted file mode 100644 index 9ae6d96e69f..00000000000 --- a/blocks/calendar_month/styles.php +++ /dev/null @@ -1,23 +0,0 @@ -.block_calendar_month .cal_popup_caption, -.block_calendar_month .cal_popup_fg div { - font-size: 0.85em !important; -} - -.block_calendar_month .filters { - font-size:0.75em; - padding: 5px; -} - -.block_calendar_month .filters table { - border-collapse:separate; - border-spacing: 2px; - padding: 2px; -} - -.block_calendar_month .event_global, -.block_calendar_month .event_course, -.block_calendar_month .event_group, -.block_calendar_month .event_user { - border-width: 2px; - border-style: solid; -} diff --git a/blocks/calendar_upcoming/styles.css b/blocks/calendar_upcoming/styles.css new file mode 100644 index 00000000000..bd104119d87 --- /dev/null +++ b/blocks/calendar_upcoming/styles.css @@ -0,0 +1 @@ +.block_calendar_upcoming .event .date {text-align:right;} \ No newline at end of file diff --git a/blocks/course_list/styles.css b/blocks/course_list/styles.css new file mode 100644 index 00000000000..26b2428c080 --- /dev/null +++ b/blocks/course_list/styles.css @@ -0,0 +1 @@ +.block_course_list .footer {margin-top: 5px;} \ No newline at end of file diff --git a/blocks/course_summary/styles.css b/blocks/course_summary/styles.css new file mode 100644 index 00000000000..7c58b8d3615 --- /dev/null +++ b/blocks/course_summary/styles.css @@ -0,0 +1,2 @@ +.block_course_summary .content {padding:10px;} +.block_course_summary .editbutton {text-align:right;} \ No newline at end of file diff --git a/blocks/course_summary/styles.php b/blocks/course_summary/styles.php deleted file mode 100644 index 0c71c3d38f8..00000000000 --- a/blocks/course_summary/styles.php +++ /dev/null @@ -1,7 +0,0 @@ -.block_course_summary .content { - padding:10px; -} - -.block_course_summary .editbutton { - text-align:right; -} diff --git a/blocks/dock.js b/blocks/dock.js index 295958d20f4..811c27b99fd 100644 --- a/blocks/dock.js +++ b/blocks/dock.js @@ -369,6 +369,12 @@ M.core_dock = { return; } + var blockclass = (function(classes){ + var r = /(^|\s)(block_[a-zA-Z0-9_]+)(\s|$)/; + var m = r.exec(classes); + return (m)?m[2]:m; + })(node.getAttribute('className').toString()); + this.cachedcontentnode = node; var placeholder = this.Y.Node.create('
'); @@ -391,7 +397,7 @@ M.core_dock = { blockcommands.append(moveto); // Create a new dock item for the block - var dockitem = new M.core_dock.item(this.Y, this.id, blocktitle, blockcontent, blockcommands); + var dockitem = new M.core_dock.item(this.Y, this.id, blocktitle, blockcontent, blockcommands, blockclass); if (spacewidth !== null && M.core_dock.cfg.display.mindisplaywidth == null) { dockitem.cfg.display.mindisplaywidth = spacewidth; } @@ -566,6 +572,7 @@ M.core_dock = { this.panel.renderEvent.subscribe(this.resize_panel, this, true); this.panel.setBody(this.Y.Node.getDOMNode(this.contents)); this.panel.render(M.core_dock.node); + this.Y.one(this.panel.body).addClass(this.blockclass); if (this.cfg.display.mindisplaywidth !== null && this.Y.one(this.panel.body).getStyle('minWidth') == '0px') { this.Y.one(this.panel.body).setStyle('minWidth', this.cfg.display.mindisplaywidth); this.Y.one(this.panel.body).setStyle('minHeight', dockitemtitle.get('offsetHeight')+'px'); @@ -744,7 +751,7 @@ M.core_dock.genericblock.prototype.fix_title_orientation = M.core_dock.abstrac * @param {this.Y.Node} contents * @param {this.Y.Node} commands */ -M.core_dock.item = function(Y, uid, title, contents, commands){ +M.core_dock.item = function(Y, uid, title, contents, commands, blockclass){ this.Y = Y; if (uid && this.id==null) { this.id = uid; @@ -758,6 +765,9 @@ M.core_dock.item = function(Y, uid, title, contents, commands){ if (commands && this.commands==null) { this.commands = commands; } + if (blockclass && this.blockclass==null) { + this.blockclass = blockclass + } this.init_events(); } /** Properties */ @@ -770,6 +780,7 @@ M.core_dock.item.prototype.active = M.core_dock.abstract_item_class. M.core_dock.item.prototype.panel = M.core_dock.abstract_item_class.panel; M.core_dock.item.prototype.preventhide = M.core_dock.abstract_item_class.preventhide; M.core_dock.item.prototype.cfg = M.core_dock.cfg; +M.core_dock.item.prototype.blockclass = null; M.core_dock.item.prototype.delayhiderunning = false; M.core_dock.item.prototype.delayhidetimeout = 1000; // 1 Second /** Methods **/ diff --git a/blocks/global_navigation_tree/styles.css b/blocks/global_navigation_tree/styles.css new file mode 100644 index 00000000000..066e25f6ee1 --- /dev/null +++ b/blocks/global_navigation_tree/styles.css @@ -0,0 +1,22 @@ +/** JavaScript state rules **/ +.jsenabled .block_global_navigation_tree.dock_on_load, +.block_global_navigation_tree .block_tree_box .requiresjs {display:none;} +.jsenabled .block_global_navigation_tree .block_tree_box .requiresjs {display:inline;} + +/** General display rules **/ +.block_global_navigation_tree .block_tree {margin:5px;padding-left:0px;overflow-x:auto;overflow-y:visible;} +.block_global_navigation_tree .block_tree li {margin:0;list-style: none;} +.block_global_navigation_tree .block_tree li ul {padding-left:16px;margin:0;} +.block_global_navigation_tree .block_tree .tree_item {white-space:nowrap;margin:2px 0px;padding-left: 16px;margin:3px 0px;white-space:nowrap;text-align:left;} +.block_global_navigation_tree .block_tree .tree_item.branch {background-image: url([[pix:t/expanded]]);background-position: center left;background-repeat: no-repeat;} +.block_global_navigation_tree .block_tree .root_node.leaf {padding-left:0px;} +.block_global_navigation_tree .block_tree .current_branch {font-weight:bold;} +.jsenabled .block_global_navigation_tree .block_tree .tree_item.branch {cursor:pointer;} +.jsenabled .block_global_navigation_tree .block_tree .tree_item.emptybranch {background-image: url([[pix:t/collapsed_empty]]);background-position: center left;background-repeat: no-repeat;} +.jsenabled .block_global_navigation_tree .block_tree .collapsed ul {display: none;} +.jsenabled .block_global_navigation_tree .block_tree .collapsed .tree_item.branch {background-image: url([[pix:t/collapsed]]);} + +/** Internet explorer specific rules **/ +.ie6 .block_global_navigation_tree .block_tree, +.ie7 .block_global_navigation_tree .block_tree {overflow-x:scroll;} +.ie6 .block_global_navigation_tree .block_tree .tree_item {width:100%;} \ No newline at end of file diff --git a/blocks/messages/styles.css b/blocks/messages/styles.css new file mode 100644 index 00000000000..da66e10ff9c --- /dev/null +++ b/blocks/messages/styles.css @@ -0,0 +1,4 @@ +.block_messages .content {text-align:left;font-size:0.75em;padding-top:5px;} +.block_messages .content .list li.listentry {clear:both;} +.block_messages .content .list li.listentry div.user {float:left;} +.block_messages .content .list li.listentry div.message {float:right;} \ No newline at end of file diff --git a/blocks/online_users/styles.css b/blocks/online_users/styles.css new file mode 100644 index 00000000000..26640042994 --- /dev/null +++ b/blocks/online_users/styles.css @@ -0,0 +1,3 @@ +.block_online_users .content .list li.listentry {clear:both;} +.block_online_users .content .list li.listentry div.user {float:left;} +.block_online_users .content .list li.listentry div.message {float:right;} \ No newline at end of file diff --git a/blocks/quiz_results/styles.css b/blocks/quiz_results/styles.css new file mode 100644 index 00000000000..1a3fabc0cb7 --- /dev/null +++ b/blocks/quiz_results/styles.css @@ -0,0 +1,6 @@ +.block_quiz_results {text-align: center;} +.block_quiz_results h1 {margin: 4px;font-size: 1.1em;} +.block_quiz_results table.grades {text-align: left;width: 100%;} +.block_quiz_results table.grades .number, +.block_quiz_results table.grades .grade {text-align: right;width: 10%;} +.block_quiz_results table.grades caption {margin: 1em 0px 0px 0px;border-bottom-width: 1px;border-bottom-style: solid;font-weight: bold;} \ No newline at end of file diff --git a/blocks/recent_activity/styles.css b/blocks/recent_activity/styles.css new file mode 100644 index 00000000000..93625406be7 --- /dev/null +++ b/blocks/recent_activity/styles.css @@ -0,0 +1,2 @@ +.block_recent_activity .activitydate, +.block_recent_activity .activityhead {text-align:center;} \ No newline at end of file diff --git a/blocks/rss_client/styles.php b/blocks/rss_client/styles.php deleted file mode 100644 index 35298cfd207..00000000000 --- a/blocks/rss_client/styles.php +++ /dev/null @@ -1,54 +0,0 @@ -.block_rss_client .link { - border-top:1px solid; - border-top-color:#DDDDDD; - padding-bottom:5px; - font-size:0.82em; -} - -.block_rss_client .description { - color:#555555; - font-size:0.78em; - padding-left:10px; - padding-bottom:8px; -} - -.block_rss_client .title { - font-size:1.0em; -} - -.block_rss_client .image { -} - -.blockconfigtable #rssfeeds { - margin-left: auto; - margin-right: auto; - background-color: blue; -} - -.blockconfigtable #rssfeeds td.actions { - text-align: center; - vertical-align: middle; - padding: 10px; -} - -.blockconfigtable #rssfeeds td.feed { - vertical-align: middle; - padding: 5px; -} - -.blockconfigtable #rssfeeds .title { - font-weight: bold; - margin-bottom: 2px; -} - -.blockconfigtable #rssfeeds .url, .blockconfigtable #rssfeeds .description { - font-size: 0.8em; -} - -.blockconfigtable #rssfeeds tr.r0 { - background-color: #ffffff; -} - -.blockconfigtable #rssfeeds tr.r1 { - background-color: #f0f0f0; -} diff --git a/blocks/search_forums/styles.css b/blocks/search_forums/styles.css new file mode 100644 index 00000000000..f424ebf641d --- /dev/null +++ b/blocks/search_forums/styles.css @@ -0,0 +1,4 @@ +.block_search_forums .searchform {text-align: center;} +.block_search_forums .searchform img {vertical-align: middle;} +.block_search_forums .searchform img.resize {width: 1em;height: 1.1em;} +.block_search_forums .invisiblefieldset {display: block;} \ No newline at end of file diff --git a/blocks/settings_navigation_tree/styles.css b/blocks/settings_navigation_tree/styles.css new file mode 100644 index 00000000000..ab56a3b1e42 --- /dev/null +++ b/blocks/settings_navigation_tree/styles.css @@ -0,0 +1,22 @@ +/** JavaScript state rules **/ +.jsenabled .block_settings_navigation_tree.dock_on_load, +.block_settings_navigation_tree .block_tree_box .requiresjs {display:none;} +.jsenabled .block_settings_navigation_tree .block_tree_box .requiresjs {display:inline;} + +/** General display rules **/ +.block_settings_navigation_tree .block_tree {margin:5px;padding-left:0px;overflow-x:auto;overflow-y:visible;} +.block_settings_navigation_tree .block_tree li {margin:0;list-style: none;} +.block_settings_navigation_tree .block_tree li ul {padding-left:16px;margin:0;} +.block_settings_navigation_tree .block_tree .tree_item {white-space:nowrap;margin:2px 0px;padding-left: 16px;margin:3px 0px;white-space:nowrap;text-align:left;} +.block_settings_navigation_tree .block_tree .tree_item.branch {background-image: url([[pix:t/expanded]]);background-position: center left;background-repeat: no-repeat;} +.block_settings_navigation_tree .block_tree .root_node.leaf {padding-left:0px;} +.block_settings_navigation_tree .block_tree .current_branch {font-weight:bold;} +.jsenabled .block_settings_navigation_tree .block_tree .tree_item.branch {cursor:pointer;} +.jsenabled .block_settings_navigation_tree .block_tree .tree_item.emptybranch {background-image: url([[pix:t/collapsed_empty]]);background-position: center left;background-repeat: no-repeat;} +.jsenabled .block_settings_navigation_tree .block_tree .collapsed ul {display: none;} +.jsenabled .block_settings_navigation_tree .block_tree .collapsed .tree_item.branch {background-image: url([[pix:t/collapsed]]);} + +/** Internet explorer specific rules **/ +.ie6 .block_settings_navigation_tree .block_tree, +.ie7 .block_settings_navigation_tree .block_tree {overflow-x:scroll;} +.ie6 .block_settings_navigation_tree .block_tree .tree_item {width:100%;} \ No newline at end of file diff --git a/blocks/tag_flickr/styles.css b/blocks/tag_flickr/styles.css new file mode 100644 index 00000000000..7351ce80eb4 --- /dev/null +++ b/blocks/tag_flickr/styles.css @@ -0,0 +1 @@ +.block_tag_flickr .flickr-photos {padding:3px;} \ No newline at end of file diff --git a/blocks/tag_youtube/styles.css b/blocks/tag_youtube/styles.css new file mode 100644 index 00000000000..1def4e3d0f7 --- /dev/null +++ b/blocks/tag_youtube/styles.css @@ -0,0 +1,2 @@ +.block_tag_youtube .youtube-thumb {padding: 3px;padding-bottom: 0.5em;display: block;float: left;} +.block_tag_youtube .yt-video-entry li {clear: left;} \ No newline at end of file diff --git a/blocks/tags/styles.css b/blocks/tags/styles.css new file mode 100644 index 00000000000..59b1afcca48 --- /dev/null +++ b/blocks/tags/styles.css @@ -0,0 +1,11 @@ +.block_tags {} +.block_tags #coursetag {} +.block_tags #coursetag .coursetag_form_wrapper {} +.block_tags #coursetag .coursetag_form_wrapper .coursetag_form_positioner {position: relative;} +.block_tags #coursetag .coursetag_form_wrapper .coursetag_form_positioner .coursetag_form_input1 {position: relative;top: 0;left: 0;z-index: 1;width:100%;} +.block_tags #coursetag .coursetag_form_wrapper .coursetag_form_positioner .coursetag_form_input2 {position: absolute;top: 0;left: 0;z-index: 2;width:100%;} +.block_tags #coursetag .coursetag_form_wrapper .coursetag_form_positioner .coursetag_form_input3 {position: absolute;top: 3px;left: 12.8em;display: none;} +.block_tags #coursetag .coursetag_form_wrapper .coursetag_form_positioner .coursetag_form_input1a {background-color: white; border: 1px solid #999;width: 12em;padding: 2px;} +.block_tags #coursetag .coursetag_form_wrapper .coursetag_form_positioner .coursetag_form_input2a {background-color: transparent; border: 1px solid #999;width: 12em;color: #669954;padding: 2px;} +.block_tags .coursetag_morelink {} +.block_tags .coursetag_list {} \ No newline at end of file diff --git a/blocks/tags/styles.php b/blocks/tags/styles.php deleted file mode 100644 index e7344b18445..00000000000 --- a/blocks/tags/styles.php +++ /dev/null @@ -1,116 +0,0 @@ -/* - * CSS for course tags - * @author j.beedell@open.ac.uk July07 - * - * Styles for block_tags.php - */ - -.coursetag_form_wrapper { - margin: auto; - width: 13em; -} - -.coursetag_form_positioner { - position: relative; - margin: 5px 0 0 0; - height: 25px; -} - -.coursetag_form_input1 { - position: absolute; - top: 0; - left: 0; - z-index: 1; -} - -.coursetag_form_input2 { - position: absolute; - top: 0; - left: 0; - z-index: 2; -} - -.coursetag_form_input3 { - position: absolute; - top: 3px; - left: 12.8em; - display: none; -} - -.coursetag_form_input1a { - background-color: white; - border: 1px solid #999; - width: 12em; - padding: 2px; -} - -.coursetag_form_input2a { - background: transparent; - color: #669954; - border: 1px solid #999; - width: 12em; - padding: 2px; -} - -.coursetag_morelink { - float: right; - font-size: 0.8em; - margin: -5px 5px 5px 0; -} - -.coursetag_list { - padding-top: 4px; -} - -/* Styles for coursetag_edit.php */ - -.coursetag_edit_centered { - position: relative; - width: 600px; - margin: 20px auto; -} - -.coursetag_edit_row { - margin: 5px 0 5px 0; - height: 30px; -} - -.coursetag_edit_left { - position: relative; - float: left; - padding: 3px 5px; -} - -.coursetag_edit_right { - position: relative; - float: left; - padding: 3px 0px; -} - -.coursetag_edit_input3 { - position: relative; - left: 10.5em; - display: none; -} - -/* Styles for coursetag_more.php */ - -.coursetag_more_title { - margin: 30px 30px -25px 30px; -} - -.coursetag_more_tags { - margin: 30px; -} - -.coursetag_more_large { - font-size: 120% -} - -.coursetag_more_small { - font-size: 80% -} - -.coursetag_more_link { - font-size: 80%; -} diff --git a/calendar/event.php b/calendar/event.php index f484c223bd0..e59819b59d7 100644 --- a/calendar/event.php +++ b/calendar/event.php @@ -208,7 +208,7 @@ $PAGE->set_heading($strcalendar); echo $OUTPUT->header(); -echo ''; +echo '
'; echo '
'; echo $OUTPUT->heading($title); $mform->display(); diff --git a/calendar/export.php b/calendar/export.php index e4aeca27b70..0fb11f8579d 100644 --- a/calendar/export.php +++ b/calendar/export.php @@ -139,7 +139,7 @@ $PAGE->set_focuscontrol('eventform.name'); echo $OUTPUT->header(); // Layout the whole page as three big columns. -echo ''; +echo '
'; echo ''; // START: Main column diff --git a/calendar/lib.php b/calendar/lib.php index 8aebe110ae8..8392b892985 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -194,7 +194,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y $summary = get_string('calendarheading', 'calendar', userdate(make_timestamp($y, $m), get_string('strftimemonthyear'))); $summary = get_string('tabledata', 'access', $summary); - $content .= '
'; // Begin table + $content .= '
'; // Begin table $content .= ''; // Header row: day names // Print out the names of the weekdays @@ -229,14 +229,14 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y if(CALENDAR_WEEKEND & (1 << ($dayweek % 7))) { // Weekend. This is true no matter what the exact range is. $class = 'weekend day'; - } - else { + } else { // Normal working day. $class = 'day'; } // Special visual fx if an event is defined if(isset($eventsbyday[$day])) { + $class .= ' hasevent'; $dayhref = calendar_get_link_href(CALENDAR_URL.'view.php?view=day'.$morehref.'&', $day, $m, $y); // OverLib popup @@ -275,34 +275,31 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y // Class and cell content if(isset($typesbyday[$day]['startglobal'])) { - $class .= ' event_global'; - } - else if(isset($typesbyday[$day]['startcourse'])) { - $class .= ' event_course'; - } - else if(isset($typesbyday[$day]['startgroup'])) { - $class .= ' event_group'; - } - else if(isset($typesbyday[$day]['startuser'])) { - $class .= ' event_user'; + $class .= ' calendar_event_global'; + } else if(isset($typesbyday[$day]['startcourse'])) { + $class .= ' calendar_event_course'; + } else if(isset($typesbyday[$day]['startgroup'])) { + $class .= ' calendar_event_group'; + } else if(isset($typesbyday[$day]['startuser'])) { + $class .= ' calendar_event_user'; } $cell = ''.$day.''; - } - else { + } else { $cell = $day; } - if(isset($typesbyday[$day]['durationglobal'])) { - $class .= ' duration_global'; + $durationclass = false; + if (isset($typesbyday[$day]['durationglobal'])) { + $durationclass = ' duration_global'; + } else if(isset($typesbyday[$day]['durationcourse'])) { + $durationclass = ' duration_course'; + } else if(isset($typesbyday[$day]['durationgroup'])) { + $durationclass = ' duration_group'; + } else if(isset($typesbyday[$day]['durationuser'])) { + $durationclass = ' duration_user'; } - else if(isset($typesbyday[$day]['durationcourse'])) { - $class .= ' duration_course'; - } - else if(isset($typesbyday[$day]['durationgroup'])) { - $class .= ' duration_group'; - } - else if(isset($typesbyday[$day]['durationuser'])) { - $class .= ' duration_user'; + if ($durationclass) { + $class .= ' duration '.$durationclass; } // If event has a class set then add it to the table day '; if($SESSION->cal_show_global) { - $content .= ''; + $content .= ''; $content .= ''."\n"; } else { $content .= ''; $content .= ''."\n"; } if($SESSION->cal_show_course) { - $content .= ''; + $content .= ''; $content .= ''."\n"; } else { $content .= ''; @@ -867,7 +864,7 @@ function calendar_filter_controls($type, $vars = NULL, $course = NULL, $courses if($groupevents) { // This course MIGHT have group events defined, so show the filter if($SESSION->cal_show_groups) { - $content .= ''; + $content .= ''; $content .= ''."\n"; } else { $content .= ''; @@ -878,7 +875,7 @@ function calendar_filter_controls($type, $vars = NULL, $course = NULL, $courses $content .= ''."\n"; } if($SESSION->cal_show_user) { - $content .= ''; + $content .= ''; $content .= ''."\n"; } else { $content .= ''; @@ -1092,22 +1089,22 @@ function calendar_events_by_day($events, $month, $year, &$eventsbyday, &$duratio if($event->courseid == SITEID && $event->groupid == 0) { $typesbyday[$eventdaystart]['startglobal'] = true; // Set event class for global event - $events[$event->id]->class = 'event_global'; + $events[$event->id]->class = 'calendar_event_global'; } else if($event->courseid != 0 && $event->courseid != SITEID && $event->groupid == 0) { $typesbyday[$eventdaystart]['startcourse'] = true; // Set event class for course event - $events[$event->id]->class = 'event_course'; + $events[$event->id]->class = 'calendar_event_course'; } else if($event->groupid) { $typesbyday[$eventdaystart]['startgroup'] = true; // Set event class for group event - $events[$event->id]->class = 'event_group'; + $events[$event->id]->class = 'calendar_event_group'; } else if($event->userid) { $typesbyday[$eventdaystart]['startuser'] = true; // Set event class for user event - $events[$event->id]->class = 'event_user'; + $events[$event->id]->class = 'calendar_event_user'; } } diff --git a/calendar/view.php b/calendar/view.php index edd5cd10878..dce28d88ef5 100644 --- a/calendar/view.php +++ b/calendar/view.php @@ -157,7 +157,7 @@ $PAGE->set_button($prefsbutton); echo $OUTPUT->header(); // Layout the whole page as three big columns. -echo '
tag @@ -515,18 +512,18 @@ function calendar_add_event_metadata($event) { } else if($event->courseid == SITEID) { // Site event $event->icon = ''.get_string('globalevent', 'calendar').''; - $event->cssclass = 'event_global'; + $event->cssclass = 'calendar_event_global'; } else if($event->courseid != 0 && $event->courseid != SITEID && $event->groupid == 0) { // Course event calendar_get_course_cached($coursecache, $event->courseid); $event->icon = ''.get_string('courseevent', 'calendar').''; $event->courselink = ''.$coursecache[$event->courseid]->fullname.''; - $event->cssclass = 'event_course'; + $event->cssclass = 'calendar_event_course'; } else if ($event->groupid) { // Group event $event->icon = ''.get_string('groupevent', 'calendar').''; - $event->cssclass = 'event_group'; + $event->cssclass = 'calendar_event_group'; } else if($event->userid) { // User event $event->icon = ''.get_string('userevent', 'calendar').''; - $event->cssclass = 'event_user'; + $event->cssclass = 'calendar_event_user'; } return $event; } @@ -845,14 +842,14 @@ function calendar_filter_controls($type, $vars = NULL, $course = NULL, $courses $content .= '
'.get_string('hide').''.get_string('hide').''.get_string('global', 'calendar').''.get_string('show').''.get_string('global', 'calendar').''.get_string('hide').''.get_string('hide').''.get_string('course', 'calendar').''.get_string('hide').''.get_string('hide').''.get_string('hide').''.get_string('group', 'calendar').''.get_string('show').' '.get_string('hide').''.get_string('hide').''.get_string('user', 'calendar').''.get_string('show').'
'; +echo '
'; echo ''; // START: Main column @@ -423,7 +423,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course echo ''; // Start calendar display - echo '
'; // Begin table. First row: day names + echo '
'; // Begin table. First row: day names // Print out the names of the weekdays for($i = $display->minwday; $i <= $display->maxwday; ++$i) { @@ -480,17 +480,18 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course } // Special visual fx if an event spans many days - if(isset($typesbyday[$day]['durationglobal'])) { - $class .= ' duration_global'; + $durationclass = false; + if (isset($typesbyday[$day]['durationglobal'])) { + $durationclass = ' duration_global'; + } else if(isset($typesbyday[$day]['durationcourse'])) { + $durationclass = ' duration_course'; + } else if(isset($typesbyday[$day]['durationgroup'])) { + $durationclass = ' duration_group'; + } else if(isset($typesbyday[$day]['durationuser'])) { + $durationclass = ' duration_user'; } - else if(isset($typesbyday[$day]['durationcourse'])) { - $class .= ' duration_course'; - } - else if(isset($typesbyday[$day]['durationgroup'])) { - $class .= ' duration_group'; - } - else if(isset($typesbyday[$day]['durationuser'])) { - $class .= ' duration_user'; + if ($durationclass) { + $class .= ' duration '.$durationclass; } // Special visual fx for today @@ -543,7 +544,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course // Global events if($SESSION->cal_show_global) { - echo ''."\n"; } else { echo ''."\n"; } else { echo ''; // Group events if($SESSION->cal_show_groups) { - echo ''."\n"; } else { echo ''."\n"; } else { echo '
'.get_string('globalevents', 'calendar').': '; + echo ''.get_string('globalevents', 'calendar').': '; echo get_string('shown', 'calendar').' ('.get_string('clickhide', 'calendar').')'.get_string('globalevents', 'calendar').': '; @@ -552,7 +553,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course // Course events if(!empty($SESSION->cal_show_course)) { - echo ''.get_string('courseevents', 'calendar').': '; + echo ''.get_string('courseevents', 'calendar').': '; echo get_string('shown', 'calendar').' ('.get_string('clickhide', 'calendar').')'.get_string('courseevents', 'calendar').': '; @@ -565,7 +566,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course echo '
'.get_string('groupevents', 'calendar').': '; + echo ''.get_string('groupevents', 'calendar').': '; echo get_string('shown', 'calendar').' ('.get_string('clickhide', 'calendar').')'.get_string('groupevents', 'calendar').': '; @@ -573,7 +574,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course } // User events if($SESSION->cal_show_user) { - echo ''.get_string('userevents', 'calendar').': '; + echo ''.get_string('userevents', 'calendar').': '; echo get_string('shown', 'calendar').' ('.get_string('clickhide', 'calendar').')'.get_string('userevents', 'calendar').': '; diff --git a/course/format/topics/styles.css b/course/format/topics/styles.css new file mode 100644 index 00000000000..5342d30e2af --- /dev/null +++ b/course/format/topics/styles.css @@ -0,0 +1,6 @@ +.course-content ul.topics {margin:0;} +.course-content ul.topics li.section {list-style: none;margin:5px 0 0 0;padding:0;} +.course-content ul.topics li.section .content {margin:0 40px;} +.course-content ul.topics li.section .left {width:40px;float:left;text-align:center;} +.course-content ul.topics li.section .right {width:40px;float:right;text-align:center;} +.jumpmenu {text-align:center;} \ No newline at end of file diff --git a/course/format/weeks/styles.css b/course/format/weeks/styles.css new file mode 100644 index 00000000000..a4c802a8b11 --- /dev/null +++ b/course/format/weeks/styles.css @@ -0,0 +1,6 @@ +.course-content ul.weeks {margin:0;} +.course-content ul.weeks li.section {list-style: none;margin:5px 0 0 0;padding:0;} +.course-content ul.weeks li.section .content {margin:0 40px;} +.course-content ul.weeks li.section .left {width:40px;float:left;text-align:center;} +.course-content ul.weeks li.section .right {width:40px;float:right;text-align:center;} +.jumpmenu {text-align:center;} \ No newline at end of file diff --git a/course/lib.php b/course/lib.php index 7322f7a0644..d3f6b0c720e 100644 --- a/course/lib.php +++ b/course/lib.php @@ -346,7 +346,7 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per echo $OUTPUT->paging_bar($totalcount, $page, $perpage, "$url&perpage=$perpage"); $table = new html_table(); - $table->classes = array('logtable','generalbox','boxaligncenter'); + $table->classes = array('logtable','generalbox'); $table->align = array('right', 'left', 'left'); $table->head = array( get_string('time'), @@ -2164,9 +2164,9 @@ function print_course($course, $highlightterms = '') { echo '
'; echo '
'; - echo ''; + highlight($highlightterms, format_string($course->fullname)).''; /// first find all roles that are supposed to be displayed diff --git a/grade/edit/outcome/import.php b/grade/edit/outcome/import.php index d73214370b4..8b49ac7e17f 100644 --- a/grade/edit/outcome/import.php +++ b/grade/edit/outcome/import.php @@ -133,7 +133,7 @@ if ($handle = fopen($imported_file['userfile']['tmp_name'], 'r')) { } } if ($error) { - echo $OUTPUT->box_start('generalbox importoutcomenofile'); + echo $OUTPUT->box_start('generalbox importoutcomenofile buttons'); echo get_string('importoutcomenofile', 'grades', $line); echo $OUTPUT->single_button(new moodle_url('/grade/edit/outcome/index.php', array('id'=> $courseid)), get_string('back'), 'get'); echo $OUTPUT->box_end(); diff --git a/grade/edit/tree/index.php b/grade/edit/tree/index.php index 4ce042cdfd5..2e033060b1a 100644 --- a/grade/edit/tree/index.php +++ b/grade/edit/tree/index.php @@ -336,7 +336,7 @@ echo '
'; echo $OUTPUT->box_end(); // Print action buttons -echo $OUTPUT->container_start('buttons'); +echo $OUTPUT->container_start('buttons mdl-align'); if ($moving) { echo $OUTPUT->single_button(new moodle_url('index.php', array('id'=>$course->id)), get_string('cancel'), 'get'); diff --git a/grade/report/user/styles.css b/grade/report/user/styles.css new file mode 100644 index 00000000000..3a44289ff67 --- /dev/null +++ b/grade/report/user/styles.css @@ -0,0 +1,36 @@ +.path-grade-report-user table.user-grade .datesubmitted {font-size: 0.7em;} +.path-grade-report-user table.user-grade .courseitem, +.path-grade-report-user table.user-grade .categoryitem {font-weight: bold;} +.path-grade-report-user table.user-grade td.cell {padding-left: 5px;padding-right: 5px;} +#graded_users_selector {float: right;text-align: right;} + +/* this must be last if we want to override other category and course item colors */ +.path-grade-report-user table.user-grade .hidden, +.path-grade-report-user table.user-grade .hidden a {color:#aaaaaa;} +table.user-grade {border: 1px solid black;margin: auto;padding: 0.25em;font-size: 0.8em;} +table.user-grade td {margin: 1px;padding: 0.25em;} +table.user-grade thead {border-bottom: 3px double black;} +table.user-grade thead th {padding: 0.25em 0.75em;} +table.user-grade td.oddd1 {background-color: #f3dfd0;} +table.user-grade td.oddd2 {background-color: #d0dbf3;} +table.user-grade td.oddd3 {background-color: #d0f3d6;} +table.user-grade td.oddd4 {background-color: #f0f0aa;} +table.user-grade td.evend2 {background-color: #b0bbd3;} +table.user-grade td.evend3 {background-color: #b0dfb6;} +table.user-grade td.evend4 {background-color: #cac8be;} +table.user-grade td.b1t, +table.user-grade td.b2t {border-top: 2px solid black;} +table.user-grade td.b1r, +table.user-grade td.b2r {border-right: 2px solid black;} +table.user-grade td.b1b, +table.user-grade td.b2b {border-bottom: 2px solid black;} +table.user-grade td.b1l, +table.user-grade td.b2l {border-left: 2px solid black;} +table.user-grade td.baggt, +table.user-grade td.baggb {font-style: italic;font-weight: bold;} +table.user-grade td.baggt {border-top: 3px double black;} +table.user-grade td.baggb {border-bottom: 3px double black;} +table.user-grade td.item {border-left: 1px solid gray;border-right: 1px solid gray;} +table.user-grade td.excluded {background-color: #666;} +table.user-grade td.hidden {color: #aaa;} +table.user-grade td {min-width: 0.5em;vertical-align: top;} \ No newline at end of file diff --git a/grade/report/user/styles.php b/grade/report/user/styles.php deleted file mode 100644 index 87786c32ef1..00000000000 --- a/grade/report/user/styles.php +++ /dev/null @@ -1,121 +0,0 @@ -.grade-report-user table.user-grade .datesubmitted { - font-size: 0.7em; -} - -.grade-report-user table.user-grade .courseitem, -.grade-report-user table.user-grade .categoryitem { - font-weight: bold; -} - -.grade-report-user table.user-grade td.cell { - padding-left: 5px; - padding-right: 5px; -} - -#graded_users_selector { - float: right; - text-align: right; -} - -/* this must be last if we want to override other category and course item colors */ -.grade-report-user table.user-grade .hidden, -.grade-report-user table.user-grade .hidden a { - color:#aaaaaa; -} - -table.user-grade { - border: 1px solid black; - margin: auto; - padding: 0.25em; - font-size: 0.8em; -} -table.user-grade td { - margin: 1px; - padding: 0.25em; -} -table.user-grade thead { - border-bottom: 3px double black; -} -table.user-grade thead th { - padding: 0.25em 0.75em 0.25em 0.75em; -} - -table.user-grade td.oddd1 { - background-color: #f3dfd0; -} -table.user-grade td.oddd2 { - background-color: #d0dbf3; -} -table.user-grade td.oddd3 { - background-color: #d0f3d6; -} -table.user-grade td.oddd4 { - background-color: #f0f0aa; -} - -table.user-grade td.evend2 { - background-color: #b0bbd3; -} -table.user-grade td.evend3 { - background-color: #b0dfb6; -} -table.user-grade td.evend4 { - background-color: #cac8be; -} - -table.user-grade td.b1t { - border-top: 1px solid black; -} -table.user-grade td.b1r { - border-right: 1px solid black; -} -table.user-grade td.b1b { - border-bottom: 1px solid black; -} -table.user-grade td.b1l { - border-left: 1px solid black; -} - -table.user-grade td.b2t { - border-top: 2px solid black; -} -table.user-grade td.b2r { - border-right: 2px solid black; -} -table.user-grade td.b2b { - border-bottom: 2px solid black; -} -table.user-grade td.b2l { - border-left: 2px solid black; -} - -table.user-grade td.baggt, -table.user-grade td.baggb { - font-style: italic; - font-weight: bold; -} -table.user-grade td.baggt { - border-top: 3px double black; -} -table.user-grade td.baggb { - border-bottom: 3px double black; -} - -table.user-grade td.item { - border-left: 1px solid gray; - border-right: 1px solid gray; -} -table.user-grade td.excluded { - /*text-decoration: line-through;*/ - background-color: #666; -} -table.user-grade td.hidden { - color: #aaa; -} - -table.user-grade td { - min-width: 0.5em; - vertical-align: top; -} - - diff --git a/lib/adminlib.php b/lib/adminlib.php index a5c5d72e887..178e84c73df 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -4769,8 +4769,8 @@ class admin_setting_manageauths extends admin_setting { $table = new html_table(); $table->head = array($txt->name, $txt->enable, $txt->updown, $txt->settings); $table->align = array('left', 'center', 'center', 'center'); - $table->width = '90%'; $table->data = array(); + $table->attributes['class'] = 'manageauthtable generaltable'; //add always enabled plugins first $displayname = "".$displayauths['manual'].""; diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 409291b3208..50ab40abc47 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -3097,6 +3097,22 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); unset_config('regenloginsession'); upgrade_main_savepoint($result, 2010031900); } + + if ($result && $oldversion < 2010032400) { + // Upgrade all of those using the standardold theme to the use the standard + // theme instead + if ($CFG->theme == 'standardold') { + // The config setting that affects the whole site + set_config('theme', 'standard'); + } + // Course Categories + $DB->execute('UPDATE {course_categories} SET theme=? WHERE theme=?', array('standard', 'standardold')); + // Course + $DB->execute('UPDATE {course} SET theme=? WHERE theme=?', array('standard', 'standardold')); + // User + $DB->execute('UPDATE {user} SET theme=? WHERE theme=?', array('standard', 'standardold')); + upgrade_main_savepoint($result, 2010032400); + } return $result; } diff --git a/lib/installlib.php b/lib/installlib.php index c28ec18ee91..0e095641335 100644 --- a/lib/installlib.php +++ b/lib/installlib.php @@ -281,14 +281,14 @@ function install_print_header($config, $stagename, $heading, $stagetext) { '; - $sheets = array('styles_layout', 'styles_fonts', 'styles_color', 'styles_moz'); + $sheets = array('pagelayout','core'); $csss = array(); foreach ($sheets as $sheet) { - $csss[] = $CFG->wwwroot.'/theme/standard/'.$sheet.'.css'; + $csss[] = $CFG->wwwroot.'/theme/base/style/'.$sheet.'.css'; } - $sheets = array('gradients'); + $sheets = array('core', 'css3'); foreach ($sheets as $sheet) { - $csss[] = $CFG->wwwroot.'/theme/standardwhite/'.$sheet.'.css'; + $csss[] = $CFG->wwwroot.'/theme/standard/style/'.$sheet.'.css'; } foreach ($csss as $css) { echo ''."\n"; @@ -302,12 +302,17 @@ function install_print_header($config, $stagename, $heading, $stagetext) { echo '
-