aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/media
diff options
context:
space:
mode:
authorJacob Kaplan-Moss2008-09-15 18:02:17 +0100
committerJacob Kaplan-Moss2008-09-15 18:02:17 +0100
commit5fd534e68dbd191c5d6062a39ae512b109cccbdb (patch)
tree84eb90f2d418b321540e145e9f17e5c95f70208c /debug_toolbar/media
parenta77ee9cee43ec01f43bebc71ad64702fa110b475 (diff)
downloaddjango-debug-toolbar-5fd534e68dbd191c5d6062a39ae512b109cccbdb.tar.bz2
Modified scripts to use jQuery, and moved 'em to a better place.
Diffstat (limited to 'debug_toolbar/media')
-rw-r--r--debug_toolbar/media/toolbar.css14
-rw-r--r--debug_toolbar/media/toolbar.js15
2 files changed, 29 insertions, 0 deletions
diff --git a/debug_toolbar/media/toolbar.css b/debug_toolbar/media/toolbar.css
new file mode 100644
index 0000000..11dd978
--- /dev/null
+++ b/debug_toolbar/media/toolbar.css
@@ -0,0 +1,14 @@
+#djDebugToolbar {height:30px; background:orange; color:#000; z-index:100000000; border:1px solid #06171D; border-width:1px 0;}
+#djDebugToolbar ul {margin:0; padding:0 10px; list-style:none;}
+#djDebugToolbar li {display:inline; width:auto; position:relative; float:none; margin:0 10px 0 0; padding:0; height:20px; line-height:30px; padding:8px 10px 8px 0; border-right: 1px solid #06171D;}
+#djDebugToolbar #djDebugButton {color:red; font-weight:bold;}
+#djDebug * {margin:0; padding:0; float:none; position:static; }
+#djDebug .panelContent {display:none; position:absolute; margin:0; padding:5px; top:35px; width:auto; left:5px; right:5px; bottom:5px; background:white; color:black; border:1px solid black; z-index:1000000; overflow:auto;}
+#djDebug .panelContent p {padding: 0 5px;}
+#djDebug .panelContent p, #djDebug .panelContent table, #djDebug .panelContent ul, #djDebug .panelContent dl {margin:5px 0;}
+#djDebug .close {float:right; font-weight:bold;}
+#djDebug .panelContent dt, #djDebug .panelContent dd {display: block;}
+#djDebug .panelContent dd {margin-left:10px;}
+#djDebug th, #djDebug td {padding: 5px;}
+#djDebug .row1 td {background:#fff;}
+#djDebug .row2 td {background:#ddd;}
diff --git a/debug_toolbar/media/toolbar.js b/debug_toolbar/media/toolbar.js
new file mode 100644
index 0000000..8c0a86d
--- /dev/null
+++ b/debug_toolbar/media/toolbar.js
@@ -0,0 +1,15 @@
+jQuery.noConflict();
+jQuery(document).ready(function() {
+ var current = null;
+ jQuery('#djDebugPanelList li a').click(function() {
+ if (current) { current.hide(); }
+ current = jQuery('#djDebug #' + this.className);
+ current.show();
+ return false;
+ });
+ jQuery('#djDebug a.close').click(function() {
+ if (current) { current.hide(); }
+ current = null;
+ return false;
+ })
+});