From: Nicolas Boisselier Date: Mon, 29 Jun 2015 00:24:36 +0000 (+0100) Subject: optimize X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=f55c4e7115d4b6845549ca3fed75b48f0b4ef576;p=nb.git optimize --- diff --git a/lib/css/db.css b/lib/css/db.css index 76d3f0c5..3ed06846 100644 --- a/lib/css/db.css +++ b/lib/css/db.css @@ -38,12 +38,22 @@ form.db.edit .buttons input { border: solid 1px red; */ .sel:before { content: ">"; } + +div.db.menu label { + margin-right: 0.1em; +} +div.db.menu label:after { + content: ": "; +} + .db.menu { float: left; + margin-right: 1em; +} +ul.db.menu { /* margin: -4em 0.4em 0 -7em; */ - margin-right: 1em; max-width: 7em; } @@ -64,3 +74,23 @@ td.email, td.phone { white-space: nowrap; } + +.button { + display: inline-block; + text-decoration: none; + font-size: 13px; + line-height: 26px; + height: 28px; + margin: 0; + padding: 0 10px 1px; + cursor: pointer; + border-width: 1px; + border-style: solid; + -webkit-appearance: none; + -webkit-border-radius: 3px; + border-radius: 3px; + white-space: nowrap; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} diff --git a/lib/php/db.php b/lib/php/db.php index 68773107..dee9e665 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -7,6 +7,7 @@ *****************************************************************************/ require_once(dirname(__FILE__).'/functions.php'); +if (!defined('DB_HTML_EDIT')) define('DB_HTML_EDIT','Edit'); if (!defined('DEBUG')) define('DEBUG',0); if (!function_exists('err')) { @@ -200,6 +201,25 @@ EOF; $r = ''; + $r .= '