MDL-67735 theme_boost: remove bs2 and bs4alpha compatibility css

This commit is contained in:
Bas Brands 2020-01-27 15:06:29 +01:00
parent a0fc902eb1
commit 4394f9e358
113 changed files with 958 additions and 1403 deletions

View file

@ -123,7 +123,7 @@ class renderer extends plugin_renderer_base {
$toc .= html_writer::tag('a', '', array('name' => 'toc')); // Representation of toc (HTML).
$toc .= html_writer::tag('h2', get_string('toc', 'mod_book'), ['class' => 'text-center p-b-2']);
$toc .= html_writer::tag('h2', get_string('toc', 'mod_book'), ['class' => 'text-center pb-5']);
$toc .= html_writer::start_tag('ul');
foreach ($chapters as $ch) {
if (!$ch->hidden) {
@ -189,12 +189,12 @@ class renderer extends plugin_renderer_base {
$chaptervisible = $chapter->hidden ? false : true;
$bookchapter = '';
$bookchapter .= html_writer::start_div('book_chapter p-t-1', ['id' => 'ch' . $chapter->id]);
$bookchapter .= html_writer::start_div('book_chapter pt-3', ['id' => 'ch' . $chapter->id]);
if (!$book->customtitles) {
if (!$chapter->subchapter) {
$bookchapter .= $this->output->heading($title, 2, 'text-center p-b-2');
$bookchapter .= $this->output->heading($title, 2, 'text-center pb-5');
} else {
$bookchapter .= $this->output->heading($title, 3, 'text-center p-b-2');
$bookchapter .= $this->output->heading($title, 3, 'text-center pb-5');
}
}

View file

@ -63,15 +63,15 @@
}}
<div class="book p-4">
<div class="text-right">{{{ printdialoglink }}}</div>
<div class="text-center p-b-1 book_title">{{{ booktitle }}}</div>
<div class="book_info w-100 p-t-3 d-inline-block">
<div class="text-center pb-3 book_title">{{{ booktitle }}}</div>
<div class="book_info w-100 pt-6 d-inline-block">
<div class="w-50 float-left">
<table>
<tr>
<td>
{{# str }} site {{/ str }}:
</td>
<td class="p-l-1">
<td class="pl-3">
{{{ sitelink }}}
</td>
</tr>
@ -79,7 +79,7 @@
<td>
{{# str }} course {{/ str }}:
</td>
<td class="p-l-1">
<td class="pl-3">
{{{ coursename }}}
</td>
</tr>
@ -87,7 +87,7 @@
<td>
{{# str }} modulename, mod_book {{/ str }}:
</td>
<td class="p-l-1">
<td class="pl-3">
{{{ modulename }}}
</td>
</tr>
@ -99,7 +99,7 @@
<td>
{{# str }} printedby, booktool_print {{/ str }}:
</td>
<td class="p-l-1">
<td class="pl-3">
{{{ username }}}
</td>
</tr>
@ -107,7 +107,7 @@
<td>
{{# str }} printdate, booktool_print {{/ str }}:
</td>
<td class="p-l-1">
<td class="pl-3">
{{{ printdate }}}
</td>
</tr>
@ -116,19 +116,19 @@
</div>
{{#bookintro}}
<div class="w-100 book_description">
<div class="p-b-2 p-t-2">
<h2 class="text-center p-b-2">{{#str}} description {{/str}}</h2>
<div class="py-5">
<h2 class="text-center pb-5">{{#str}} description {{/str}}</h2>
<p class="book_summary">{{{ bookintro }}}</p>
</div>
</div>
{{/bookintro}}
<div class="w-100">
<div class="p-b-2 p-t-2">{{{ toc }}}</div>
<div class="py-5">{{{ toc }}}</div>
</div>
<div class="w-100">
{{#chapters}}
{{#visible }}
<div class="p-b-2">
<div class="pb-5">
{{{ content }}}
</div>
{{/visible}}

View file

@ -44,7 +44,7 @@
}}
<div class="chapter col-12 p-4">
<div class="text-right">{{{ printdialoglink }}}</div>
<div class="text-center p-b-2">{{{ booktitle }}}</div>
<div class="text-center pb-5">{{{ booktitle }}}</div>
<div class="chapter">
{{#parentchaptertitle}}
<div class="text-center">