mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
CSS: Hide menu on mobile
This commit is contained in:
@@ -86,6 +86,7 @@ const thousandsSeparator = '" . js_escape(lang(',')) . "';")
|
||||
echo "<div id='help' class='jush-" . JUSH . " jsonly hidden'></div>\n";
|
||||
echo script("mixin(qs('#help'), {onmouseover: () => { helpOpen = 1; }, onmouseout: helpMouseout});");
|
||||
echo "<div id='content'>\n";
|
||||
echo "<span id='menuopen' class='jsonly'>" . icon("move", "", "menu", "") . "</span>" . script("qs('#menuopen').onclick = event => { qs('#foot').classList.toggle('foot'); event.stopPropagation(); }");
|
||||
if ($breadcrumb !== null) {
|
||||
$link = substr(preg_replace('~\b(username|db|ns)=[^&]*&~', '', ME), 0, -1);
|
||||
echo '<p id="breadcrumb"><a href="' . h($link ?: ".") . '">' . get_driver(DRIVER) . '</a> » ';
|
||||
@@ -193,9 +194,9 @@ function page_messages(string $error): void {
|
||||
*/
|
||||
function page_footer(string $missing = ""): void {
|
||||
global $adminer;
|
||||
echo "</div>\n\n<div id='menu'>\n";
|
||||
echo "</div>\n\n<div id='foot' class='foot'>\n<div id='menu'>\n";
|
||||
$adminer->navigation($missing);
|
||||
echo "</div>\n\n";
|
||||
echo "</div>\n";
|
||||
if ($missing != "auth") {
|
||||
?>
|
||||
<form action="" method="post">
|
||||
@@ -203,9 +204,9 @@ function page_footer(string $missing = ""): void {
|
||||
<span><?php echo h($_GET["username"]) . "\n"; ?></span>
|
||||
<input type="submit" name="logout" value="<?php echo lang('Logout'); ?>" id="logout">
|
||||
<?php echo input_token(); ?>
|
||||
</p>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
echo "</div>\n\n";
|
||||
echo script("setupSubmitHighlight(document);");
|
||||
}
|
||||
|
Reference in New Issue
Block a user