diff --git a/theme/canvas/config.php b/theme/canvas/config.php index 229aebab448..52ac6db8e01 100644 --- a/theme/canvas/config.php +++ b/theme/canvas/config.php @@ -1,5 +1,38 @@ . + +/** + * Configuration for Moodle's Canvas theme. + * + * This theme is special, and implements a minimalist theme with basic styles. + * It is intended to be used with Base as a starting point for other themes to build upon. + * It is not recommend to actually choose this theme for production sites! + * + * DO NOT COPY THIS TO START NEW THEMES! + * Start with another theme, like "standard". + * + * For full information about creating Moodle themes, see: + * http://docs.moodle.org/en/Development:Themes_2.0 + * + * @package moodlecore + * @copyright 2010 Patrick Malley + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + $THEME->name = 'canvas'; //////////////////////////////////////////////////// diff --git a/theme/serenity/style/core.css b/theme/serenity/style/core.css index d75d03fc0fa..aa9da66f012 100644 --- a/theme/serenity/style/core.css +++ b/theme/serenity/style/core.css @@ -6,124 +6,193 @@ .pagelayout-admin, .pagelayout-mydashboard, .pagelayout-mypublic, -.pagelayout-login -{ - background:url([[pix:theme|body]]); +.pagelayout-login { + background: url([[pix:theme|body]]); } -body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea -{ - font-family:Georgia, "Times New Roman", Times, serif; - color:#2a2513; +body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea { + font-family: Georgia, "Times New Roman", Times, serif; + color: #2a2513; } -#wrapper -{ - background:#fff; - margin:2% 5%; - padding:5px; - border:1px solid #c1bc9d; +#wrapper { + background: #fff; + margin: 2% 5%; + padding: 5px; + border: 1px solid #c1bc9d; } a { - color:#336699; + color: #336699; } a:hover { - text-decoration:underline; + text-decoration: underline; } -.pagelayout-frontpage #page-content #region-main-box #region-post-box { - padding-top: 0; +.pagelayout-frontpage #page-content #region-main-box #region-post-box { + padding-top: 0; } /* Header ------------------------*/ -#page-header -{ - background:#ddd6cc url([[pix:theme|header_grass]]) repeat-x 0 100%; +#page-header { + background: #ddd6cc url([[pix:theme|header_grass]]) repeat-x 0 100%; margin-bottom: 5px; } .headermain { - font-weight:normal; - margin:1em 0.5em 0.75em; + font-weight: normal; + margin: 1em 0.5em 0.75em; } /* Navbar -------------------------*/ -.navbar { - background: #aeb9c6 url([[pix:theme|breadcrumb]]) repeat-x 0 100%; +.navbar { + background: #aeb9c6 url([[pix:theme|breadcrumb]]) repeat-x 0 100%; padding: 5px; } - /* Blocks -------------------------*/ -.block -{ - border-color:#eee; +.block { + border-color: #eee; } .block .header { - background:#9eb1bf; - padding-left:5px; + background: #9eb1bf; + padding-left: 5px; } .block .title { - background:#867f6a; - padding-left:5px; + background: #867f6a; + padding-left: 5px; } .block .title h2 { - background:#6e6855; - margin:0; - padding:5px; - font-size:1em; - color:#fff; + background: #6e6855; + margin: 0; + padding: 5px; + font-size: 1em; + color: #fff; } .block_action { - padding:5px 0 0; + padding: 5px 0 0; } .block .content { - background:#d8d2c6; - border:1px solid #867f6a; + background: #d8d2c6; + border: 1px solid #867f6a; } .block .minicalendar td, -.block .minicalendar th { +.block .minicalendar th { border-color: #d8d2c6; } - /* Course ----------------------------*/ .headingblock { - background: url([[pix:theme|headingblock]]) repeat-x 0 0; - color:#fff; - font-weight:normal; - border:none; - padding:2px 5px; + background: url([[pix:theme|headingblock]]) repeat-x 0 0; + color: #fff; + font-weight: normal; + border: none; + padding: 2px 5px; } -/** Dock +/* Forums -----------------------------*/ -body.has_dock {margin:0;} -#dock {left:5%;margin-left:-29px;border-width:0;background-color:transparent;} -#dock .controls {bottom:auto;background-color:#DDD6CC;} -#dock .dockeditem_container {position:relative;} -#dock .dockeditem.firstdockitem {margin-top:50px;} -#dock .dockeditem {background-color:#fff;padding:2px;padding-right:0px;} -#dock .dockedtitle {border-width:0;} -#dock .dockedtitle h2 {margin:0;padding:10px 3px;} -#dock .dockedtitle.activeitem {background-color:#817b65;width:35px;} -#dockeditempanel {background-color:#817b65;margin-left:5px;} -#dockeditempanel .dockeditempanel_content {background-color:#eee9e0;margin:0 3px;position:relative;top:-3px;min-height:100px;border-color:#6f6856;} -#dockeditempanel .dockeditempanel_hd {background-image:url([[pix:theme|headingblock]]);border-width:0;} -#dockeditempanel .dockeditempanel_hd h2 {font-size:1em;color:#fff;} + +.forumpost .topic { + background: #cad5e1; + border-width: 1px; + border-color: #eee #eee #aaa; + border-style: solid; +} + +.forumpost .starter .subject { + font-weight: bold; +} + +.forumpost .content { + border-color: #eee; + border-width: 0 1px 1px; + border-style: solid; + background: #f6f6f6; +} + +/* Dock +-----------------------------*/ + +body.has_dock { + margin: 0; +} + +#dock { + left: 5%; + margin-left: -29px; + border-width: 0; + background-color: transparent; +} + +#dock .controls { + bottom: auto; + background-color: #DDD6CC; +} + +#dock .dockeditem_container { + position: relative; +} + +#dock .dockeditem.firstdockitem { + margin-top: 50px; +} + +#dock .dockeditem { + background-color: #fff; + padding: 2px; + padding-right: 0px; +} + +#dock .dockedtitle { + border-width: 0; +} + +#dock .dockedtitle h2 { + margin: 0; + padding: 10px 3px; +} + +#dock .dockedtitle.activeitem { + background-color: #817b65; + width: 35px; +} + +#dockeditempanel { + background-color: #817b65; + margin-left: 5px; +} + +#dockeditempanel .dockeditempanel_content { + background-color: #eee9e0; + margin: 0 3px; + position: relative; + top: -3px; + min-height: 100px; + border-color: #6f6856; +} + +#dockeditempanel .dockeditempanel_hd { + background-image: url([[pix:theme|headingblock]]); + border-width: 0; +} + +#dockeditempanel .dockeditempanel_hd h2 { + font-size: 1em; + color: #fff; +} \ No newline at end of file