From 6edaa7a4eb67b832fb9cdefe3bf968162838f4b6 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 29 Nov 2016 14:40:16 +0000 Subject: [PATCH] dbq --- lib/css/button.css | 2 +- lib/php/db/page.php | 37 +++++++------------------- lib/php/page.php | 2 +- www/dbq/.htaccess | 1 + www/dbq/button.css | 1 + www/dbq/db.css | 1 + www/dbq/default.css | 65 +++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 80 insertions(+), 29 deletions(-) create mode 120000 www/dbq/button.css create mode 120000 www/dbq/db.css create mode 100644 www/dbq/default.css diff --git a/lib/css/button.css b/lib/css/button.css index 66aa43c6..e02b8a44 100644 --- a/lib/css/button.css +++ b/lib/css/button.css @@ -9,10 +9,10 @@ cursor: pointer; border-width: 1px; border-style: solid; + white-space: nowrap; -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/page.php b/lib/php/db/page.php index bb098f5b..422d6f0d 100644 --- a/lib/php/db/page.php +++ b/lib/php/db/page.php @@ -1,36 +1,19 @@ ($Db->title ? $Db->title : Db::prettyText($Db->name)), - 'css' => $css, - 'js' => $js, + 'css' => [ + 'css/*.css', + '/*.css', + ], + 'js' => [ + '/jquery/jquery.js', + '/jquery/jquery-ui.js', + 'js/*.js', + '/*.js', + ], 'content_type' => Page::content_type_and_set_format(), 'nav' => [ [ (!empty($Db) and !empty($Db->title)) ? $Db->title : 'Home', '/'], diff --git a/lib/php/page.php b/lib/php/page.php index 5e756cec..cadc3b25 100644 --- a/lib/php/page.php +++ b/lib/php/page.php @@ -391,7 +391,7 @@ class Page extends nb { // META if (self::$charset) $head .= ''.NB_EOL; - $head .= ''.NB_EOL; + $head .= ''.NB_EOL; // CSS foreach ((array)($this->css) as $vv) { diff --git a/www/dbq/.htaccess b/www/dbq/.htaccess index d952bee0..1ce85584 100644 --- a/www/dbq/.htaccess +++ b/www/dbq/.htaccess @@ -3,3 +3,4 @@ RewriteEngine On #RewriteRule "^/([^/\.]+).tgz$" "/$1.git" [R=302] DirectoryIndex index.php index.html + diff --git a/www/dbq/button.css b/www/dbq/button.css new file mode 120000 index 00000000..3657d48f --- /dev/null +++ b/www/dbq/button.css @@ -0,0 +1 @@ +../../lib/css/button.css \ No newline at end of file diff --git a/www/dbq/db.css b/www/dbq/db.css new file mode 120000 index 00000000..d12264f1 --- /dev/null +++ b/www/dbq/db.css @@ -0,0 +1 @@ +../../lib/css/db.css \ No newline at end of file diff --git a/www/dbq/default.css b/www/dbq/default.css new file mode 100644 index 00000000..744d2ca6 --- /dev/null +++ b/www/dbq/default.css @@ -0,0 +1,65 @@ +html { + font: 100% 'Trebuchet MS', sans-serif; +} + +body { + display: table; + margin-left: auto; + margin-right: auto; + padding-left: 1em; + padding-right: 1em; + background-color: #E6E6E6; +} + +a, +body { + color: #333333; +} + +ul { + padding: 0; + margin: 0; +} + +li { + list-style:none; + padding: 0 0 0 0.3em; +} + +a, a:visited { + text-decoration: none; +} + +.button { + color: #ddd; + background-color: #3C3C3B; +} + +table.rows, +div.rows, +object, iframe, pre, .t2d tr +{ + border-collapse: separate; + border-spacing: 0; + padding: 0.2em 0.1em; + border-radius: 4px; + + border: solid 1px #fff; + margin-bottom: 0.5em; + +} + +table.rows th, table.rows td, +table.border th, table.border td { + border-bottom: solid 1px #fff; +} + +table.rows tr:last-child td, table.border tr:last-child td { border-bottom: none; } + +.menu, .nav, .rows, +.center { + margin-left: auto; + margin-right: auto; + display: table; +} + -- 2.47.3