Commit 8cb50b2a authored by Petr Skoda's avatar Petr Skoda
Browse files

CSS improvements

parent 73491f5a
......@@ -164,10 +164,10 @@ function book_log($str1, $str2, $level = 0) {
function book_add_fake_block($chapters, $chapter, $book, $cm, $edit) {
global $OUTPUT, $PAGE;
$toc= book_get_toc($chapters, $chapter, $book, $cm, $edit, 0);
$toc = book_get_toc($chapters, $chapter, $book, $cm, $edit, 0);
if ($edit) {
$toc .= '<div class="faq">';
$toc .= '<div class="book_faq">';
$toc .= $OUTPUT->help_icon('faq', 'mod_book', get_string('faq', 'mod_book'));
$toc .= '</div>';
}
......
/* later should be defined in themes*/
.book_chapter_title {
.mod_book .book_chapter_title {
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
text-align: left;
font-size: large;
......@@ -11,124 +9,113 @@
margin-bottom: 20px;
}
.book_content {
text-align: left;
}
img.bigicon {
vertical-align:middle;
margin-right:4px;
margin-left:4px;
width:24px;
height:24px;
border:0px;
.mod_book img.bigicon {
vertical-align: middle;
margin-right: 4px;
margin-left: 4px;
width: 24px;
height: 24px;
border: 0px;
}
#mod-book-view table.booktable {
border:0;
.mod_book .navtop {
text-align: right;
margin-bottom: 0.5em;
}
#mod-book-view .bookexport {
float:left;
.mod_book .navbottom {
text-align: right;
}
#mod-book-view .booknav {
float:right;
}
#mod-book-view table.booktable tr.tocandchapter {
vertical-align:text-top;
}
/* == Fake toc block == */
#mod-book-view div.faq {
.mod_book .book_faq {
font-size: 0.7em;
}
/* == TOC styles == */
/* toc style NONE */
.book_toc_none {
.mod_book .book_toc_none {
font-size: 0.8em;
}
.book_toc_none ul {
.mod_book .book_toc_none ul {
margin-left: 5px;
padding-left: 0px;
}
.book_toc_none ul ul {
.mod_book .book_toc_none ul ul {
margin-left: 0px;
padding-left: 0px;
}
.book_toc_none li {
.mod_book .book_toc_none li {
margin-top: 5px;
list-style: none;
}
.book_toc_none li li {
.mod_book .book_toc_none li li {
margin-top: 0px;
list-style: none;
}
/* toc style NUMBERED */
.book_toc_numbered {
.mod_book .book_toc_numbered {
font-size: 0.8em;
}
.book_toc_numbered ul {
.mod_book .book_toc_numbered ul {
margin-left: 5px;
padding-left: 0px;
}
.book_toc_numbered ul ul {
.mod_book .book_toc_numbered ul ul {
margin-left: 0px;
padding-left: 0px;
}
.book_toc_numbered li {
.mod_book .book_toc_numbered li {
margin-top: 5px;
list-style: none;
}
.book_toc_numbered li li {
.mod_book .book_toc_numbered li li {
margin-top: 0px;
list-style: none;
}
/*toc style BULLETS */
.book_toc_bullets {
.mod_book .book_toc_bullets {
font-size: 0.8em;
}
.book_toc_bullets ul {
.mod_book .book_toc_bullets ul {
margin-left: 5px;
padding-left: 0px;
}
.book_toc_bullets ul ul {
.mod_book .book_toc_bullets ul ul {
margin-left: 20px;
padding-left: 0px;
}
.book_toc_bullets li {
.mod_book .book_toc_bullets li {
margin-top: 5px;
list-style: none;
}
.book_toc_bullets li li {
.mod_book .book_toc_bullets li li {
margin-top: 0px;
list-style: circle;
}
/* toc style INDENTED*/
.book_toc_indented {
.mod_book .book_toc_indented {
font-size: 0.8em;
}
.book_toc_indented ul {
.mod_book .book_toc_indented ul {
margin-left: 5px;
padding-left: 0px;
}
.book_toc_indented ul ul {
.mod_book .book_toc_indented ul ul {
margin-left: 15px;
padding-left: 0px;
}
.book_toc_indented li {
.mod_book .book_toc_indented li {
margin-top: 5px;
list-style: none;
}
.book_toc_indented li li {
.mod_book .book_toc_indented li li {
margin-top: 0px;
list-style: none;
}
......@@ -23,9 +23,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$module->version = 2011011603; // The current module version (Date: YYYYMMDDXX)
$module->version = 2011012600; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2010120700; // Requires this Moodle version
$module->cron = 0; // Period for cron to check this module (secs)
$module->component = 'mod_book'; // Full name of the plugin (used for diagnostics)
$release = "2.0dev (20110116)"; // User-friendly version number
$release = "2.0dev (20110126)"; // User-friendly version number
......@@ -170,7 +170,7 @@ if ($nextid) {
// =====================================================
// upper nav
echo '<div class="booknav">'.$chnavigation.'</div>';
echo '<div class="navtop">'.$chnavigation.'</div>';
// chapter itself
echo $OUTPUT->box_start('generalbox book_content');
......@@ -191,7 +191,7 @@ echo format_text($chaptertext, $chapter->contentformat, array('noclean'=>true, '
echo $OUTPUT->box_end();
/// lower navigation
echo '<div class="booknav">'.$chnavigation.'</div>';
echo '<div class="navbottom">'.$chnavigation.'</div>';
echo $OUTPUT->footer();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment