Semi-transparent border on table actions

This commit is contained in:
Jakub Vrana 2018-02-09 15:14:10 +01:00
parent 3906231dc5
commit ea4ac5c8f3
5 changed files with 9 additions and 7 deletions

View file

@ -120,7 +120,7 @@ if ($adminer->homepage()) {
echo "</table>\n";
if (!information_schema(DB)) {
echo "<div class='footer'>\n";
echo "<div class='footer'><div>\n";
$vacuum = "<input type='submit' value='" . lang('Vacuum') . "'> " . on_help("'VACUUM'");
$optimize = "<input type='submit' name='optimize' value='" . lang('Optimize') . "'> " . on_help($jush == "sql" ? "'OPTIMIZE TABLE'" : "'VACUUM OPTIMIZE'");
echo "<fieldset><legend>" . lang('Selected') . " <span id='selected'></span></legend><div>"
@ -145,7 +145,7 @@ if ($adminer->homepage()) {
echo script("qsl('input').onclick = function () { selectCount('selected', formChecked(this, /^(tables|views)\[/));" . (support("table") ? " selectCount('selected2', formChecked(this, /^tables\[/) || $tables);" : "") . " }");
echo "<input type='hidden' name='token' value='$token'>\n";
echo "</div></fieldset>\n";
echo "</div>\n";
echo "</div></div>\n";
}
echo "</form>\n";
echo script("tableCheck();");

View file

@ -56,12 +56,12 @@ function connect_error() {
echo "</table>\n";
echo (support("database")
? "<div class='footer'>\n"
? "<div class='footer'><div>\n"
. "<fieldset><legend>" . lang('Selected') . " <span id='selected'></span></legend><div>\n"
. "<input type='hidden' name='all' value=''>" . script("qsl('input').onclick = function () { selectCount('selected', formChecked(this, /^db/)); };") // used by trCheck()
. "<input type='submit' name='drop' value='" . lang('Drop') . "'>" . confirm() . "\n"
. "</div></fieldset>\n"
. "</div>\n"
. "</div></div>\n"
: ""
);
echo "<input type='hidden' name='token' value='$token'>\n";

View file

@ -461,7 +461,7 @@ if (!$columns && support("table")) {
echo "</table>\n";
}
echo "<div class='footer'>\n";
echo "<div class='footer'><div>\n";
if (($rows || $page) && !is_ajax()) {
echo "<p>\n";
$exact_count = true;
@ -558,7 +558,7 @@ if (!$columns && support("table")) {
$adminer->selectEmailPrint(array_filter($email_fields, 'strlen'), $columns);
echo "<input type='hidden' name='token' value='$token'>\n";
echo "</div>\n";
echo "</div></div>\n";
echo "</form>\n";
echo (!$group && $select ? "" : script("tableCheck();"));

View file

@ -58,7 +58,8 @@ input.wayoff { left: -1000px; position: absolute; }
.icon:hover { background-color: red; }
.size { width: 6ex; }
.help { cursor: help; }
.footer { position: sticky; bottom: 0; background: #fff; padding: 1px 0 .5em; }
.footer { position: sticky; bottom: 0; border-top: 20px solid rgba(255, 255, 255, .7); border-image: linear-gradient(rgba(255, 255, 255, 0), #fff) 100% 0; }
.footer > div { background: #fff; padding: 0 0 .5em; }
.links a { white-space: nowrap; margin-right: 20px; }
.logout { margin-top: .5em; position: absolute; top: 0; right: 0; }
.loadmore { margin-left: 1ex; }

View file

@ -1,4 +1,5 @@
Adminer 4.6.2-dev:
Semi-transparent border on table actions
Shorten JSON values in select (bug #594)
PostgreSQL: Fix exporting sequences in PostgreSQL 10