mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00

config.php contains a new option, $THEME->chameleonteachereditenabled by default this is false, preventing teachers from editing chameleon course themes. css.php has been changed a little to make use of this new property, it now also checks $CFG->allowcoursethemes before letting a teacher edit anything. There have been some bug fixes in the handling of border shorthands. Some workarounds to avoid a pretty big IE bug - the addRule method in IE's version of DOM 2 CSS (which I use to create the live preview of changes), can crash the browser if the selector being added contains certain characters. Now as chameleon generates the preview it checks the selectors against a list of allowed characters - if the selector contains any character not on the list it will be ignored. I don't think I'm quite there yet, but I made a bit of a change in some of the event handling code which means support for IE 5.5 seems to be getting closer :-)
350 lines
7.2 KiB
CSS
350 lines
7.2 KiB
CSS
div.headermain {
|
|
color: #009900;
|
|
font-weight: bold;
|
|
font-size: 3em;
|
|
font-family: georgia, "trebuchet ms", times, serif;
|
|
}
|
|
td.courseboxcontent {
|
|
font-family: "trebuchet ms", verdana, sans-serif;
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
text-decoration: underline;
|
|
background-color: #FFEECC;
|
|
background-image: none;
|
|
border-width: 1px;
|
|
border-style: none;
|
|
border-color: #FFCC00;
|
|
}
|
|
body {
|
|
font-family: georgia, "trebuchet ms", times, serif;
|
|
font-size: 100%;
|
|
}
|
|
div#header {
|
|
font-family: verdana, arial, helvetica, sans-serif;
|
|
height: 55px;
|
|
}
|
|
div.headermenu {
|
|
font-size: 0.75em;
|
|
position: absolute;
|
|
background-color: transparent;
|
|
top: 10px;
|
|
right: 1em;
|
|
}
|
|
div#content {
|
|
font-size: 0.85em;
|
|
}
|
|
div.sideblock div.header {
|
|
background-color: #FFCC00;
|
|
border-width: 1px;
|
|
border-style: dashed;
|
|
border-color: #CCCCCC;
|
|
}
|
|
td#left-column div.sideblock div.content {
|
|
border-right-width: 1px;
|
|
border-right-style: dashed;
|
|
border-right-color: #CCCCCC;
|
|
}
|
|
td#right-column div.sideblock div.content {
|
|
border-left-width: 1px;
|
|
border-left-style: dashed;
|
|
border-left-color: #CCCCCC;
|
|
}
|
|
table.generaltable th.header {
|
|
border-style: none;
|
|
}
|
|
div.headingblock {
|
|
color: #330000;
|
|
font-family: verdana, arial, helvetica, sans-serif;
|
|
border-style: none;
|
|
}
|
|
body#site-index {
|
|
color: #000099;
|
|
font-family: verdana, arial, helvetica, sans-serif;
|
|
font-size: 8;
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
table.navbar {
|
|
color: #FFCC00;
|
|
background-image: none;
|
|
background-color: #FFCC00;
|
|
border-style: none;
|
|
}
|
|
body#site-index table.navbar {
|
|
height: 25px;
|
|
}
|
|
a {
|
|
color: #660066;
|
|
font-family: georgia, "trebuchet ms", times, serif;
|
|
text-decoration: none;
|
|
font-weight: normal;
|
|
}
|
|
a:hover {
|
|
color: #f90;
|
|
text-decoration: underline;
|
|
font-family: georgia, "trebuchet ms", times, serif;
|
|
}
|
|
h4 {
|
|
color: #660000;
|
|
font-family: georgia, "trebuchet ms", times, serif;
|
|
font-weight: bold;
|
|
font-style: normal;
|
|
}
|
|
div.logininfo {
|
|
color: #cc0066;
|
|
font-family: georgia, "trebuchet ms", times, serif;
|
|
font-weight: bold;
|
|
}
|
|
table.loginbox .content {
|
|
border-width: 1px;
|
|
border-style: dashed;
|
|
border-color: #cccccc;
|
|
}
|
|
td.today {
|
|
color: #cc0099;
|
|
font-weight: bold;
|
|
font-style: normal;
|
|
}
|
|
td#right-column a {
|
|
color: #669966;
|
|
}
|
|
table.logtable th.header {
|
|
background-color: #009900;
|
|
color: #EEEEEE;
|
|
}
|
|
table.sitetopic td.sitetopiccontent h4 {
|
|
background-color: #FFFF00;
|
|
padding: 0.3em 0.5em;
|
|
}
|
|
td#middle-column p {
|
|
color: #666666;
|
|
}
|
|
div.block_course_summary {
|
|
border-width: 1px;
|
|
border-style: dashed;
|
|
border-color: #FCFCFC;
|
|
}
|
|
div#header-home {
|
|
height: 57px;
|
|
}
|
|
body#mod-forum-discuss table.forumpost td.content {
|
|
border-style: none;
|
|
}
|
|
body.mod-forum table.forumpost td.content {
|
|
border-width: medium;
|
|
border-style: none;
|
|
border-color: inherit;
|
|
}
|
|
body#mod-forum-discuss table.unread td.content {
|
|
border-color: #009900;
|
|
}
|
|
div.block_calendar_month {
|
|
background-color: transparent;
|
|
}
|
|
div#header-home div.headermain:after {
|
|
content: ' By Andy and Urs - with styles by everyone.';
|
|
font-size: 8pt;
|
|
padding: 2px;
|
|
}
|
|
body.mod-forum div#page {
|
|
background-color: TRANSPARENT;
|
|
}
|
|
tbody td.c1 {
|
|
background-color: transparent;
|
|
}
|
|
body#course-teacher h2:after {
|
|
padding: 10px;
|
|
}
|
|
div.sideblock tr.weekdays {
|
|
font-size: 0.8em;
|
|
font-family: georgia, "trebuchet ms", times, serif;
|
|
}
|
|
div#header div.headermain {
|
|
font-size: 2em;
|
|
}
|
|
div.sideblock table.minicalendar td.day {
|
|
font-family: georgia, "trebuchet ms", times, serif;
|
|
font-size: 0.8em;
|
|
}
|
|
table#layout-table div.sideblock div.header {
|
|
border-width: 1px;
|
|
border-style: dashed;
|
|
border-color: #cccccc;
|
|
}
|
|
table#layout-table div.sideblock div.title {
|
|
font-weight: bold;
|
|
color: #666666;
|
|
}
|
|
div.sideblock div.content table.list td.c0 {
|
|
display: none;
|
|
}
|
|
div.sideblock div.content center {
|
|
text-align: left;
|
|
}
|
|
div.sideblock div.footer {
|
|
text-align: left;
|
|
}
|
|
td#middle-column {
|
|
color: #666666;
|
|
}
|
|
table.forumpost tr.header {
|
|
background-color: #FFCC00;
|
|
}
|
|
body.mod-forum table.forumheaderlist th {
|
|
border-style: none;
|
|
}
|
|
body.mod-forum table.forumheaderlist {
|
|
border-style: none;
|
|
}
|
|
body.mod-forum table.forumheaderlist td {
|
|
border-left-width: 1px;
|
|
border-top-width: 1px;
|
|
border-style: dashed none none dashed;
|
|
border-top-color: #cccccc;
|
|
border-left-color: #cccccc;
|
|
}
|
|
body.mod-forum table.forumpost td {
|
|
border-style: none;
|
|
}
|
|
body.mod-forum table.forumpost {
|
|
border-width: 1px;
|
|
border-style: dashed;
|
|
border-color: #cccccc;
|
|
}
|
|
body#mod-forum-discuss div#content {
|
|
margin-top: 5px;
|
|
}
|
|
div#content select {
|
|
background-color: #FAFAFA;
|
|
}
|
|
select {
|
|
border-top-width: 1px;
|
|
border-left-width: 1px;
|
|
border-style: solid none none solid;
|
|
border-top-color: #cccccc;
|
|
border-left-color: #cccccc;
|
|
}
|
|
table.generalbox {
|
|
border-width: 1px;
|
|
border-style: dashed;
|
|
border-color: #cccccc;
|
|
}
|
|
body#course-view tr.section td.content table.section td.activity {
|
|
border-bottom-width: 1px;
|
|
border-style: none none dashed;
|
|
border-bottom-color: #ff6600;
|
|
}
|
|
body#mod-wiki-view div#content {
|
|
margin-top: 5px;
|
|
}
|
|
table.tabs td.selected {
|
|
background-color: #ccff00;
|
|
}
|
|
table.tabs td.active {
|
|
background-color: #eeeeee;
|
|
border-right-width: 1px;
|
|
border-left-width: 1px;
|
|
border-bottom-width: 1px;
|
|
border-right-style: solid;
|
|
border-left-style: solid;
|
|
border-bottom-style: solid;
|
|
border-right-color: #cccccc;
|
|
border-left-color: #cccccc;
|
|
border-bottom-color: #FFCC00;
|
|
}
|
|
table.userinfobox {
|
|
border-width: 1px;
|
|
border-style: dashed;
|
|
border-color: #cccccc;
|
|
}
|
|
div#footer {
|
|
font-size: 0.8em;
|
|
padding-top: 0.6em;
|
|
border-top-width: 1px;
|
|
border-top-style: dashed;
|
|
border-top-color: #FF6600;
|
|
}
|
|
td.sitetopiccontent h4 {
|
|
margin-bottom: 0;
|
|
margin-top: 5px;
|
|
}
|
|
table.sitetopic p {
|
|
margin-top: 0.4em;
|
|
margin-bottom: 1.5em;
|
|
}
|
|
table.forumheaderlist th.header {
|
|
text-align: left;
|
|
color: #666666;
|
|
padding-left: 0.2em;
|
|
}
|
|
table.forumheaderlist td.lastpost {
|
|
text-align: left;
|
|
}
|
|
body#course-user div.section {
|
|
background-color: #ffffff;
|
|
border-width: 1px;
|
|
border-style: dashed;
|
|
border-color: #cccccc;
|
|
}
|
|
td#left-column div.sideblock table.list td {
|
|
border-style: none;
|
|
}
|
|
table.minicalendar {
|
|
border-style: none;
|
|
}
|
|
td#middle-column div.headingblock {
|
|
border-left-style: none;
|
|
}
|
|
div.block_participants div.header {
|
|
background-color: #00cc00;
|
|
}
|
|
body#course-view div.headingblock {
|
|
display: none;
|
|
}
|
|
div.block_calendar_month tr.weekdays th {
|
|
padding: 0 1px 0 0;
|
|
}
|
|
tr.section td.content div form {
|
|
margin-top: 5px;
|
|
}
|
|
span.concept {
|
|
font-weight: bold;
|
|
}
|
|
div#footer div.homelink a {
|
|
font-weight: bold;
|
|
color: #006600;
|
|
}
|
|
div.course-pict {
|
|
float: right;
|
|
}
|
|
div#xcoll-div {
|
|
float: left;
|
|
width: 60%;
|
|
}
|
|
div.structurehead {
|
|
color: #006600;
|
|
font-family: verdana, arial, helvetica, sans-serif;
|
|
}
|
|
acronym {
|
|
border-bottom-style: dotted;
|
|
border-bottom-color: #cc0000;
|
|
}
|
|
div.block_calendar_upcoming div.post {
|
|
border-bottom-width: 1px;
|
|
border-bottom-style: dashed;
|
|
border-bottom-color: #ff9900;
|
|
}
|
|
input[type="submit"] {
|
|
border-width: 1px 2px 2px 1px;
|
|
border-style: solid;
|
|
border-color: #ccc #999 #999 #ccc;
|
|
}
|
|
table.tabs td.side {
|
|
border-bottom-style: solid;
|
|
border-bottom-color: #FFCC00;
|
|
}
|
|
table.tabs td.activetwo {
|
|
border-bottom-width: 1px;
|
|
border-bottom-style: solid;
|
|
border-bottom-color: #FFCC00;
|
|
}
|