MDL-10322 integrated the flat tabs from pre 1.8, several other enhancements

This commit is contained in:
urs_hunkler
2007-07-19 19:53:40 +00:00
parent d715f651f4
commit 2329052916
5 changed files with 274 additions and 44 deletions
+30 -1
View File
@@ -80,6 +80,35 @@ $THEME->langsheets = false;
/// different styles.
$THEME->courseformatsheets = true;
/// When this is enabled, this theme will search for files
/// named "styles.php" inside all course formats and
/// include them. This allows course formats to provide
/// their own default styles.
$THEME->metainclude = true;
/// When this is enabled (or not set!) then Moodle will try
/// to include a file meta.php from this theme into the
/// <head></head> part of the page.
$THEME->standardmetainclude = true;
/// When this is enabled (or not set!) then Moodle will try
/// to include a file meta.php from the standard theme into the
/// <head></head> part of the page.
$THEME->parentmetainclude = false;
/// When this is enabled (or not set!) then Moodle will try
/// to include a file meta.php from the parent theme into the
/// <head></head> part of the page.
$THEME->navmenuwidth = 50;
/// You can use this to control the cutoff point for strings
@@ -96,7 +125,7 @@ $THEME->makenavmenulist = false;
/// creating popup navigation menus and so on.
$THEME->chameleonenabled = true;
$THEME->chameleonenabled = false;
/// By setting this to false it disables editing of the stylsheets
/// this saves the overhead of loading chameleon on each page
+6
View File
@@ -0,0 +1,6 @@
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->httpswwwroot ?>/theme/chameleon/styles_ie7.css" />
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="<?php echo $CFG->httpswwwroot ?>/theme/chameleon/styles_ie6.css" />
<![endif]-->
+36
View File
@@ -0,0 +1,36 @@
/*
* These styles are ONLY included for IE 6 (via meta.php)
*/
div.breadcrumb span.sep {
font-family: arial, sans-serif;
}
.tabtree {
height: 100%;
}
.tabrow0 {
padding-top: 10px;
}
.tabrow0 li {
margin: 0;
/*padding: 0;*/
}
.tabrow0 li.first {
margin: 0;
}
.tabrow0 li.last a {
margin-right: 0;
}
.tabrow0 li.onerow {
margin-right: 0;
}
.tabrow0 a {
padding: 0 5px 5px;
}
.tabrow0 a span {
padding: 0;
}
.tabrow0 div,
.tabrow0 ul {
top: 100%;
padding: 0 0 3px 0;
}
+31
View File
@@ -0,0 +1,31 @@
/*
* These styles are ONLY included for IE 7 (via meta.php)
*/
.tabrow0 {
padding-top: 5px;
}
.tabrow0 li {
margin-left: 0;
}
.tabrow0 li.first {
margin-right: 0;
}
.tabrow0 li.onerow {
margin-right: 0;
}
.tabrow0 a {
display: inline-block;
padding: 0 5px 5px;
line-height: 1.5em;
}
.tabrow0 a span {
padding: 0;
}
.tabrow0 div,
.tabrow0 ul {
top: 2.6em;
padding: 0 0 3px 0;
}
.tabrow0 div.empty {
margin-right: 0;
}
+171 -43
View File
@@ -24,9 +24,11 @@ a:visited {
a:hover {
color: #779911;
}
a.dimmed:link,
a.dimmed:link {
color: #AAAAAA;
}
a.dimmed:visited {
color:#AAAAAA;
color: #AAAAAA;
}
table.generaltable {
background-color: #EEEEEE;
@@ -44,17 +46,14 @@ h1.headermain {
h2.headingblock {
border-style: none;
}
table.loginbox {
.loginbox {
background-color: #EEEEEE;
border-width: 1px;
border-style: solid;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
table.loginbox td.content {
background-color: #EEEEEE;
border-width: 1px;
border-style: solid;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
.loginbox.twocolumns .loginpanel {
border-right-color: #DDDDDD;
}
div.noticebox {
background-color: #EEEEEE;
@@ -68,9 +67,16 @@ table.generaltable td {
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
div.generalbox {
border-top-width: 1px;
border-style: solid none none;
border-top-color: #DDDDDD;
border: 1px solid #ffffff;
border-right-color: #ddd;
border-bottom-color: #ddd;
background-color: #eee;
}
div.coursebox {
border: 1px solid #ffffff;
border-right-color: #ddd;
border-bottom-color: #ddd;
background-color: #eee;
}
table.generalbox {
border-top-width: 1px;
@@ -83,6 +89,23 @@ table.generaltable th.header {
border-style: solid;
border-color: #EEEEEE #CCCCCC #CCCCCC #EEEEEE;
}
table.forumheaderlist th.header {
background-color: #DDDDDD;
border-width: 1px;
border-style: solid;
border-color: #EEEEEE #CCCCCC #CCCCCC #EEEEEE;
}
.forumheaderlist,
.forumpost {
background-color: #EEEEEE;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
.forumheaderlist td {
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
.forumpost .topic {
border-bottom-color: #FFFFFF;
}
div.informationbox {
background-color: #EEEEEE;
border-width: 1px;
@@ -95,6 +118,11 @@ table.userinfobox {
p.copyright {
text-align: center;
}
.errorbox {
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
background-color: #e15215;
color: #fff;
}
div.headermenu {
font-size: 0.75em;
}
@@ -105,11 +133,6 @@ div.breadcrumb {
font-size: 0.8em;
padding-left: 0.3em;
}
table.tabs td.side {
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #88DD55;
}
div.navbar div.navbutton form {
float: left;
}
@@ -149,6 +172,9 @@ ul.section li {
div.sideblock div.content * {
text-align: left;
}
div.sideblock div.calendar-controls a.next {
text-align: right;
}
div.sideblock ul.list span.c1 {
padding-left: 0;
}
@@ -208,18 +234,6 @@ td.courseboxcontent {
border-style: solid;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
.tabrow td {
border: 1px solid #88DD55;
}
.tabrow td.selected {
border-top-width: 1px;
border-right-width: 1px;
border-left-width: 1px;
border-style: solid solid none;
border-top-color: #88DD55;
border-right-color: #88DD55;
border-left-color: #88DD55;
}
.sideblock .content .message {
text-align: left;
}
@@ -289,6 +303,22 @@ table.cal_popup_bg {
div.sideblock div.calendar-controls span.current {
text-align: center;
}
div.sideblock div.commands a.roles img {
width: 11px;
height: 11px;
}
div.sideblock span.icon {
display: block;
float: left;
margin-right: 0.3em;
}
div.sideblock ul.list li {
clear: left;
}
div.sideblock div.header div.commands {
height: 16px;
background-color: #ffffff;
}
table.generaltable td.cell {
white-space: normal;
}
@@ -301,6 +331,10 @@ body#course-view tr.section td.side {
body#course-view tr.section td.content {
border-style: none;
}
body#course-user .section {
background-color: #EEEEEE;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
div.que {
border-style: none;
}
@@ -310,19 +344,12 @@ td.sitetopiccontent {
body#site-index td.categoryboxcontent {
border-style: none;
}
div.sideblock span.icon {
display: block;
float: left;
margin-right: 0.3em;
}
div.sideblock ul.list li {
clear: left;
}
td.categoryboxcontent {
.categorylist {
background-color: #EEEEEE;
border-width: 1px;
border-style: solid;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
padding: 4px;
}
body#admin-roles-manage td.generalboxcontent table td {
padding-left: 0.5em;
@@ -339,9 +366,31 @@ div.calendar-controls span.next {
font-family: verdana, arial, helvetica, sans-serif;
text-align: right;
}
div.sideblock div.header div.commands {
height: 16px;
background-color: #ffffff;
table#calendar td.maincalendar {
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
table#calendar td.sidecalendar {
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
background-color: #efd;
}
#calendar .event_global,
#calendar .event_course,
#calendar .event_group,
#calendar .event_user,
.minicalendar .event_global,
.minicalendar .event_course,
.minicalendar .event_group,
.minicalendar .event_user {
border: 1px solid !important;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
table.minicalendar {
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
background-color: #f8f8f8;
}
table#calendar td.today,
div.minicalendar td.today {
border-color: #8d5;
}
#adminsettings fieldset span.form-shortname {
color: #cccccc;
@@ -353,10 +402,89 @@ div.sideblock div.header div.commands {
border-style: solid;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
form.mform fieldset {
background-color: #EEEEEE;
border-width: 1px;
border-style: solid;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
form.mform div.textarea textarea {
width: 35em;
}
div.sideblock div.commands a.roles img {
width: 11px;
height: 11px;
body#grade-index table.grades {
background-color: #EEEEEE;
border-width: 1px;
border-style: solid;
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
}
body#grade-index .grades td {
border-color: #FFFFFF;
}
table.glossarypost {
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
background-color: #f8f8f8;
}
div.entrybox {
border-color: #FFFFFF #DDDDDD #DDDDDD #FFFFFF;
background-color: #eee;
}
/* @group tabs */
.tabrow0 {
font-size: 100%;
padding: 0;
}
.tabtree {
margin-bottom: 3%;
}
.tabrow0 li {
border: 1px solid #88DD55;
margin: 0;
padding: 4px;
}
.tabrow0 li.first {
margin-right: 0;
}
.tabrow0 li.selected,
.tabrow0 li.here {
background-color: #efd;
}
.tabrow0 a span {
background-image: none;
padding: 0;
}
.tabrow0 a {
background-image: none;
padding: 5px;
}
.tabrow0 a:hover {
background-image: none;
}
.tabrow0 .here a:hover {
background-image: none;
}
.tabrow0 a:hover span {
background-image: none;
}
.tabrow0 .here a:hover span {
background-image: none;
}
.tabrow0 div,
.tabrow0 ul {
background-image: none;
top: 100%;
padding: 0 0 0.25em;
line-height: 200%;
border-top-color: #5c0;
}
.tabrow0 ul {
background-color: #efd;
padding: 0;
}
.tabrow0 ul li.selected,
.tabrow0 ul li.here {
background-color: #efd;
}
.tabrow0 ul li {
background-color: #f8f8f8;
}
/* @end */