]> git.joonet.de Git - adminer.git/commitdiff
Semi-transparent border on table actions
authorJakub Vrana <jakub@vrana.cz>
Fri, 9 Feb 2018 14:14:10 +0000 (15:14 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 9 Feb 2018 14:14:10 +0000 (15:14 +0100)
adminer/db.inc.php
adminer/include/connect.inc.php
adminer/select.inc.php
adminer/static/default.css
changes.txt

index 38d5cbccef86b7197fffa9170ee43be155e6785c..6f3979775bdd03681357d1df88da970e8e526fb6 100644 (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();");
index 77411adfcad43041d8ff6de97327ae0066ab2161..0564878c69434e78290d7a256b45e3fe8d58336b 100644 (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";
index 761b1d93f5082843bb947e3e4406ca31c7728861..cf569a9f7f2dca8ed4afe5bd648c3b8305902276 100644 (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();"));
index 1fdf5698573c7020680cbe8ba991ef7a3f5e113b..b9547340f3193ffeb57f0554a24675c379f82c1f 100644 (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; }
index cfe49f8101a587861deacf8a0a65f5cd1706b536..67b8d31667e66dc2267ffd23e14c75e49d297bec 100644 (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