diff options
author | Manuel Hiebel <leuhmanu@mageia.org> | 2018-11-12 00:16:00 +0100 |
---|---|---|
committer | Manuel Hiebel <leuhmanu@mageia.org> | 2018-11-12 00:16:00 +0100 |
commit | ad5c74fbc360ece1ab7cfacfa5b864389bae00c6 (patch) | |
tree | 12f2b6a79a0afcda65911b1e8424c66d3adc7925 | |
parent | f4e35a3d489f1845d8f165bbf5d69c1d5459863f (diff) | |
download | www-ad5c74fbc360ece1ab7cfacfa5b864389bae00c6.tar www-ad5c74fbc360ece1ab7cfacfa5b864389bae00c6.tar.gz www-ad5c74fbc360ece1ab7cfacfa5b864389bae00c6.tar.bz2 www-ad5c74fbc360ece1ab7cfacfa5b864389bae00c6.tar.xz www-ad5c74fbc360ece1ab7cfacfa5b864389bae00c6.zip |
fix css with bootstrap class
-rw-r--r-- | en/doc/archive.php | 3 | ||||
-rw-r--r-- | en/doc/doc.php | 8 | ||||
-rw-r--r-- | en/doc/index.php | 3 |
3 files changed, 4 insertions, 10 deletions
diff --git a/en/doc/archive.php b/en/doc/archive.php index 9c5e062eb..9a6d4f07e 100644 --- a/en/doc/archive.php +++ b/en/doc/archive.php @@ -14,9 +14,6 @@ require 'doc.php'; <meta name="keywords" content="<?php _g('doc,documentation,help,guide,installer,installation,mageia,linux')?>"> <?php echo common_header(); ?> <?php include '../../analytics.php'; ?> -<style> - tbody { display: none; } -</style> </head <body class="doc"> <?php echo $hsnav; ?> diff --git a/en/doc/doc.php b/en/doc/doc.php index 692c519d6..b208f1630 100644 --- a/en/doc/doc.php +++ b/en/doc/doc.php @@ -131,11 +131,11 @@ 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 = '<a class="btn btn-outline-primary" data-toggle="collapse" href="#table-'.$name.'-'.$version.'" role="button" aria-expanded="false" aria-controls="table-'.$name.'-'.$version.'">' . _r('Other languages:') . ' ↘ </a>'; + $text_others = '<a class="btn btn-sm btn-outline-primary" data-toggle="collapse" href="#table-'.$name.'-'.$version.'" role="button" aria-expanded="false" aria-controls="table-'.$name.'-'.$version.'">' . _r('Other languages:') . ' ↘ </a>'; } $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-%s">' . PHP_EOL , + '<tbody class="collapse" id="table-%s-%s">' . PHP_EOL , $your_language, $text_others, $name, $version); } else { foreach($documentation[$type] as $single_version => $all_languages) { @@ -150,8 +150,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 class=\"caption-top\">%s<br/>" . PHP_EOL . - "\t%s<a class=\"btn btn-outline-primary\" data-toggle=\"collapse\" href=\"#table-$name-$version\" role=\"button\" aria-expanded=\"false\" aria-controls=\"table-$name-$version\"> ↘ </a></caption>" . PHP_EOL . '%s' . - "\t<tbody id=table-%s-%s>" . PHP_EOL , + "\t%s<a class=\"btn btn-sm btn-outline-primary\" data-toggle=\"collapse\" href=\"#table-$name-$version\" role=\"button\" aria-expanded=\"false\" aria-controls=\"table-$name-$version\"> ↘ </a></caption>" . PHP_EOL . '%s' . + "\t<tbody class=\"collapse\" id=table-%s-%s>" . PHP_EOL , '<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language, $language_present_before, $name, $version); } foreach ($others as $other_languages) { diff --git a/en/doc/index.php b/en/doc/index.php index dff85cedc..0dc847866 100644 --- a/en/doc/index.php +++ b/en/doc/index.php @@ -16,9 +16,6 @@ require 'doc.php'; <meta name="keywords" content="<?php _g('doc,documentation,help,guide,installer,installation,mageia,linux')?>"> <?php echo common_header(); ?> <?php include '../../analytics.php'; ?> - <style> - tbody { display: none; } - </style> </head> <body class="doc"> <?php echo $hsnav; ?> |