From e38c45515ca458709b0a7e5bc75e3f640950dbb3 Mon Sep 17 00:00:00 2001 From: Idan Gazit Date: Wed, 12 Aug 2009 06:37:43 +0300 Subject: Cleaned up the panels --- debug_toolbar/media/debug_toolbar/close.png | Bin 0 -> 1130 bytes debug_toolbar/media/debug_toolbar/panel_bg.png | Bin 0 -> 110 bytes debug_toolbar/media/debug_toolbar/toolbar.css | 39 +++++++++++++++------ debug_toolbar/templates/debug_toolbar/base.html | 6 ++-- .../templates/debug_toolbar/panels/cache.html | 1 - .../templates/debug_toolbar/panels/headers.html | 1 - .../templates/debug_toolbar/panels/logger.html | 1 - .../debug_toolbar/panels/request_vars.html | 8 ++--- .../debug_toolbar/panels/settings_vars.html | 1 - .../templates/debug_toolbar/panels/signals.html | 1 - .../templates/debug_toolbar/panels/sql.html | 1 - .../templates/debug_toolbar/panels/templates.html | 1 - .../templates/debug_toolbar/panels/timer.html | 1 - 13 files changed, 37 insertions(+), 24 deletions(-) create mode 100644 debug_toolbar/media/debug_toolbar/close.png create mode 100644 debug_toolbar/media/debug_toolbar/panel_bg.png (limited to 'debug_toolbar') diff --git a/debug_toolbar/media/debug_toolbar/close.png b/debug_toolbar/media/debug_toolbar/close.png new file mode 100644 index 0000000..c22e2e8 Binary files /dev/null and b/debug_toolbar/media/debug_toolbar/close.png differ diff --git a/debug_toolbar/media/debug_toolbar/panel_bg.png b/debug_toolbar/media/debug_toolbar/panel_bg.png new file mode 100644 index 0000000..73add17 Binary files /dev/null and b/debug_toolbar/media/debug_toolbar/panel_bg.png differ diff --git a/debug_toolbar/media/debug_toolbar/toolbar.css b/debug_toolbar/media/debug_toolbar/toolbar.css index b6e3f5d..4211099 100644 --- a/debug_toolbar/media/debug_toolbar/toolbar.css +++ b/debug_toolbar/media/debug_toolbar/toolbar.css @@ -133,11 +133,11 @@ } #djDebug .panelContent { - background: #daf7ff; + display: none; position: absolute; margin: 0; - padding: 10px; + padding: 10px 20px; top: 15px; width: auto; max-width: 700px; @@ -146,11 +146,18 @@ bottom: 15px; color: #111; z-index: 1000000; - overflow: auto; + /*overflow: auto;*/ border-left: 10px solid #c6d6da; border-top: 10px solid #c6d6da; border-bottom: 10px solid #c6d6da; - opacity: 0.9; + opacity: 1.0; + background: transparent url(panel_bg.png) repeat left top; +} + +#djDebug .panelContent .panelScroll { + position: relative; + overflow: auto; + height: 90%; } #djDebug .panelContent p a, #djDebug .panelContent dl a { @@ -161,8 +168,12 @@ } #djDebug .panelContent h3 { - color: #fff; - padding: 0 0 5px; + color: #111; + font-size: 20px; + line-height: 25px; + margin-top: 2px; + margin-bottom: 0.5em; + font-variant: small-caps; } #djDebug .panelContent p { @@ -177,6 +188,8 @@ #djDebug .panelContent table { width: 100%; clear: both; + border: 0; + padding: 0; } #djDebug .panelContent table a { @@ -190,25 +203,31 @@ background-color: #333; font-weight: bold; color: #fff; - font-size: 11px; padding: 3px 7px 3px; text-align: left; cursor: pointer; } #djDebug .panelContent table td { padding: 5px 10px; - font-size: 11px; + font-size: 14px; background: #fff; color: #000; vertical-align: top; + border: 0; } #djDebug .panelContent table tr.djDebugOdd td { background: #eee; } #djDebug .panelContent .close { - float: right; - font-weight: bold; + text-indent: -9999999px; + display: block; + position: absolute; + top: 5px; + left: -25px; + background: url(close.png) no-repeat center center; + height: 40px; + width: 40px; } #djDebug .panelContent dt, #djDebug .panelContent dd { diff --git a/debug_toolbar/templates/debug_toolbar/base.html b/debug_toolbar/templates/debug_toolbar/base.html index ab591dd..5f4b7e7 100644 --- a/debug_toolbar/templates/debug_toolbar/base.html +++ b/debug_toolbar/templates/debug_toolbar/base.html @@ -52,9 +52,11 @@ {% for panel in panels %} {% if panel.has_content %}
-

{{ panel.title|safe }}

Close - {{ panel.content|safe }} +

{{ panel.title|safe }}

+
+ {{ panel.content|safe }} +
{% endif %} {% endfor %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html index 3142783..d102cdd 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/cache.html +++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html @@ -1,4 +1,3 @@ -

Cache Usage

diff --git a/debug_toolbar/templates/debug_toolbar/panels/headers.html b/debug_toolbar/templates/debug_toolbar/panels/headers.html index 005ffe6..b14a50c 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/headers.html +++ b/debug_toolbar/templates/debug_toolbar/panels/headers.html @@ -1,4 +1,3 @@ -

HTTP Headers

diff --git a/debug_toolbar/templates/debug_toolbar/panels/logger.html b/debug_toolbar/templates/debug_toolbar/panels/logger.html index 2117529..e6ce945 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/logger.html +++ b/debug_toolbar/templates/debug_toolbar/panels/logger.html @@ -1,4 +1,3 @@ -

Log Messages

{% if records %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html index b7d53ee..a65d0a5 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/request_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/request_vars.html @@ -1,4 +1,4 @@ -

COOKIES Variables

+

COOKIES Variables

{% if cookies %}
@@ -23,7 +23,7 @@ {% else %}

None

{% endif %} -

SESSION Variables

+

SESSION Variables

{% if session %}
@@ -48,7 +48,7 @@ {% else %}

None

{% endif %} -

GET Variables

+

GET Variables

{% if get %}
@@ -69,7 +69,7 @@ {% else %}

None

{% endif %} -

POST Variables

+

POST Variables

{% if post %}
diff --git a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html index 93f0b34..c53ee4d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html +++ b/debug_toolbar/templates/debug_toolbar/panels/settings_vars.html @@ -1,4 +1,3 @@ -

Settings from {{ settings.SETTINGS_MODULE }}

diff --git a/debug_toolbar/templates/debug_toolbar/panels/signals.html b/debug_toolbar/templates/debug_toolbar/panels/signals.html index e9a189e..7875700 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/signals.html +++ b/debug_toolbar/templates/debug_toolbar/panels/signals.html @@ -1,4 +1,3 @@ -

Signals

diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index f05ea97..717d54d 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -1,4 +1,3 @@ -

SQL Queries

diff --git a/debug_toolbar/templates/debug_toolbar/panels/templates.html b/debug_toolbar/templates/debug_toolbar/panels/templates.html index 6c918b1..78519c9 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/templates.html +++ b/debug_toolbar/templates/debug_toolbar/panels/templates.html @@ -1,4 +1,3 @@ -

Template path{{ template_dirs|length|pluralize }}:

{% if template_dirs %}
    {% for template in template_dirs %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html index 831ff86..39e9eb1 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/timer.html +++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html @@ -1,4 +1,3 @@ -

    Resource Usage

-- cgit v1.2.3