diff options
author | Manuel Hiebel <leuhmanu@mageia.org> | 2017-07-05 11:23:55 +0200 |
---|---|---|
committer | Manuel Hiebel <leuhmanu@mageia.org> | 2017-07-05 11:23:55 +0200 |
commit | 16b6d6859544258bea750103e235bd7e216ecfc1 (patch) | |
tree | db87e1cbd06a40cf8612f0a1b895f2ba1ef47fff /en/doc/doc.php | |
parent | 4d698ae14ddd4801897cf2ccf4e929deee81a944 (diff) | |
download | www-16b6d6859544258bea750103e235bd7e216ecfc1.tar www-16b6d6859544258bea750103e235bd7e216ecfc1.tar.gz www-16b6d6859544258bea750103e235bd7e216ecfc1.tar.bz2 www-16b6d6859544258bea750103e235bd7e216ecfc1.tar.xz www-16b6d6859544258bea750103e235bd7e216ecfc1.zip |
Adapt to bootstrap
+replace custom .css with common header
+use class of bootstrap instead of inline style
+clean inline css
Diffstat (limited to 'en/doc/doc.php')
-rw-r--r-- | en/doc/doc.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/en/doc/doc.php b/en/doc/doc.php index 46d54ad2c..488e31d96 100644 --- a/en/doc/doc.php +++ b/en/doc/doc.php @@ -77,7 +77,7 @@ function doc_list($documentation_name, $type, $version) $your_language_present = FALSE; $other_languages_present = FALSE; $note_printed = FALSE; - $table = PHP_EOL . '<table class="dlt2 dlinfo" style="font-size: 10pt;">' . PHP_EOL; + $table = PHP_EOL . '<table class="table table-sm">' . PHP_EOL; foreach ($documentation[$type][$version] as $lng) { // hopefully temporary exception for pt-br as convention for lang-abbrev in /langs.inc.php is different as link in doc.mageia.org @@ -101,8 +101,8 @@ function doc_list($documentation_name, $type, $version) $your_language = sprintf(_r('Online manual for %s available in %s') . '<br/>', '<span style="font-weight:bold">' . $documentation_name . '</span>', $lang_doc_link); } else { - $your_language = sprintf(_r('Online manual for %s available in %s') . '<br/> <span style="font-size: 07pt;">('. - _r('also as file:') . ' %s)</span>', + $your_language = sprintf(_r('Online manual for %s available in %s') . '<br/> <small class="text-mutted">('. + _r('also as file:') . ' %s)</small>', '<span style="font-weight:bold">' . $documentation_name . '</span>', $lang_doc_link, $pdf_epub_links); } @@ -117,7 +117,7 @@ function doc_list($documentation_name, $type, $version) } else { $note = ''; } - $others[] = sprintf('%s <span style="font-size: 07pt;">(%s%s)</span>', + $others[] = sprintf('%s <small class="text-muted">(%s%s)</small>', $lang_doc_link, $note, $pdf_epub_links, $lang_doc_link); } } @@ -125,10 +125,10 @@ function doc_list($documentation_name, $type, $version) if ($your_language_present) { $text_your_language = '<span style="font-weight:bold">' . _r('Documentation in your language:') . '</span><br/>'; if ($other_languages_present) { - $text_others = '<span style="font-weight:bold">' . _r('Other languages:') . '<a href="#flex-item" onclick="toggle_visibility(\'table-'.$name.'\');"> ↘ </a></span>'; + $text_others = '<a class="btn btn-outline-primary" data-toggle="collapse" href="#table-'.$name.'" role="button" aria-expanded="false" aria-controls="table-'.$name.'">' . _r('Other languages:') . ' ↘ </a>'; } - $table .= sprintf("\t<caption>%s</caption>" . PHP_EOL . - "\t<thead><tr><th>%s</th></tr></thead>" . PHP_EOL . + $table .= sprintf("\t<caption class=\"caption-top\">%s</caption>" . PHP_EOL . + "\t<thead><tr><th class=\"border-0\">%s</th></tr></thead>" . PHP_EOL . '<tbody id="table-%s">' . PHP_EOL , $your_language, $text_others, $name); } else { @@ -143,8 +143,8 @@ function doc_list($documentation_name, $type, $version) } } $text_your_language = _r('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>'; - $table .= sprintf("\t<caption>%s<br/>" . PHP_EOL . - "\t%s<span style=\"font-weight:bold\"><a href=\"#flex-item\" onclick=\"toggle_visibility('table-$name');\"> ↘ </a></span></caption>" . PHP_EOL . '%s' . + $table .= sprintf("\t<caption class=\"caption-top\">%s<br/>" . PHP_EOL . + "\t%s<a class=\"btn btn-outline-primary\" data-toggle=\"collapse\" href=\"#table-$name\" role=\"button\" aria-expanded=\"false\" aria-controls=\"table-$name\"> ↘ </a></caption>" . PHP_EOL . '%s' . "\t<tbody id=table-%s>" . PHP_EOL , '<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language, $language_present_before, $name); } |