MDL-22875 adding boilerplate to config.php

This commit is contained in:
Patrick Malley 2010-06-25 05:51:03 +00:00
parent bc9ceb413c
commit 374c0cca55
2 changed files with 163 additions and 61 deletions

View File

@ -1,5 +1,38 @@
<?php <?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* 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'; $THEME->name = 'canvas';
//////////////////////////////////////////////////// ////////////////////////////////////////////////////

View File

@ -6,124 +6,193 @@
.pagelayout-admin, .pagelayout-admin,
.pagelayout-mydashboard, .pagelayout-mydashboard,
.pagelayout-mypublic, .pagelayout-mypublic,
.pagelayout-login .pagelayout-login {
{ background: url([[pix:theme|body]]);
background:url([[pix:theme|body]]);
} }
body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea {
{ font-family: Georgia, "Times New Roman", Times, serif;
font-family:Georgia, "Times New Roman", Times, serif; color: #2a2513;
color:#2a2513;
} }
#wrapper #wrapper {
{ background: #fff;
background:#fff; margin: 2% 5%;
margin:2% 5%; padding: 5px;
padding:5px; border: 1px solid #c1bc9d;
border:1px solid #c1bc9d;
} }
a { a {
color:#336699; color: #336699;
} }
a:hover { a:hover {
text-decoration:underline; text-decoration: underline;
} }
.pagelayout-frontpage #page-content #region-main-box #region-post-box { .pagelayout-frontpage #page-content #region-main-box #region-post-box {
padding-top: 0; padding-top: 0;
} }
/* Header /* Header
------------------------*/ ------------------------*/
#page-header #page-header {
{ background: #ddd6cc url([[pix:theme|header_grass]]) repeat-x 0 100%;
background:#ddd6cc url([[pix:theme|header_grass]]) repeat-x 0 100%;
margin-bottom: 5px; margin-bottom: 5px;
} }
.headermain { .headermain {
font-weight:normal; font-weight: normal;
margin:1em 0.5em 0.75em; margin: 1em 0.5em 0.75em;
} }
/* Navbar /* Navbar
-------------------------*/ -------------------------*/
.navbar { .navbar {
background: #aeb9c6 url([[pix:theme|breadcrumb]]) repeat-x 0 100%; background: #aeb9c6 url([[pix:theme|breadcrumb]]) repeat-x 0 100%;
padding: 5px; padding: 5px;
} }
/* Blocks /* Blocks
-------------------------*/ -------------------------*/
.block .block {
{ border-color: #eee;
border-color:#eee;
} }
.block .header { .block .header {
background:#9eb1bf; background: #9eb1bf;
padding-left:5px; padding-left: 5px;
} }
.block .title { .block .title {
background:#867f6a; background: #867f6a;
padding-left:5px; padding-left: 5px;
} }
.block .title h2 { .block .title h2 {
background:#6e6855; background: #6e6855;
margin:0; margin: 0;
padding:5px; padding: 5px;
font-size:1em; font-size: 1em;
color:#fff; color: #fff;
} }
.block_action { .block_action {
padding:5px 0 0; padding: 5px 0 0;
} }
.block .content { .block .content {
background:#d8d2c6; background: #d8d2c6;
border:1px solid #867f6a; border: 1px solid #867f6a;
} }
.block .minicalendar td, .block .minicalendar td,
.block .minicalendar th { .block .minicalendar th {
border-color: #d8d2c6; border-color: #d8d2c6;
} }
/* Course /* Course
----------------------------*/ ----------------------------*/
.headingblock { .headingblock {
background: url([[pix:theme|headingblock]]) repeat-x 0 0; background: url([[pix:theme|headingblock]]) repeat-x 0 0;
color:#fff; color: #fff;
font-weight:normal; font-weight: normal;
border:none; border: none;
padding:2px 5px; padding: 2px 5px;
} }
/** Dock /* Forums
-----------------------------*/ -----------------------------*/
body.has_dock {margin:0;}
#dock {left:5%;margin-left:-29px;border-width:0;background-color:transparent;} .forumpost .topic {
#dock .controls {bottom:auto;background-color:#DDD6CC;} background: #cad5e1;
#dock .dockeditem_container {position:relative;} border-width: 1px;
#dock .dockeditem.firstdockitem {margin-top:50px;} border-color: #eee #eee #aaa;
#dock .dockeditem {background-color:#fff;padding:2px;padding-right:0px;} border-style: solid;
#dock .dockedtitle {border-width:0;} }
#dock .dockedtitle h2 {margin:0;padding:10px 3px;}
#dock .dockedtitle.activeitem {background-color:#817b65;width:35px;} .forumpost .starter .subject {
#dockeditempanel {background-color:#817b65;margin-left:5px;} font-weight: bold;
#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 .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;
}