mirror of
https://github.com/Oreolek/debug-toolbar.git
synced 2024-07-01 05:44:58 +03:00
Different styling (always on top of page)
This commit is contained in:
parent
3f6a4c854e
commit
eadeaad31f
|
@ -116,18 +116,6 @@ abstract class Kohana_Debugtoolbar {
|
||||||
self::firephp();
|
self::firephp();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set alignment for toolbar
|
|
||||||
switch ($config->align)
|
|
||||||
{
|
|
||||||
case 'right':
|
|
||||||
case 'center':
|
|
||||||
case 'left':
|
|
||||||
$template->set('align', $config->align);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$template->set('align', 'left');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Javascript for toolbar
|
// Javascript for toolbar
|
||||||
$template->set('scripts', file_get_contents(Kohana::find_file('views', 'toolbar', 'js')));
|
$template->set('scripts', file_get_contents(Kohana::find_file('views', 'toolbar', 'js')));
|
||||||
|
|
||||||
|
|
|
@ -32,12 +32,6 @@ $config['panels'] = array(
|
||||||
'customs' => TRUE,
|
'customs' => TRUE,
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
|
||||||
* Toolbar alignment
|
|
||||||
* options: right, left, center
|
|
||||||
*/
|
|
||||||
$config['align'] = 'right';
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Secret Key
|
* Secret Key
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -37,7 +37,7 @@ div#kohana-debug-toolbar ul {
|
||||||
|
|
||||||
/* Global */
|
/* Global */
|
||||||
div#kohana-debug-toolbar {
|
div#kohana-debug-toolbar {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, "Open Sans", sans-serif;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #333;
|
color: #333;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
@ -60,16 +60,6 @@ div#kohana-debug-toolbar a:hover {
|
||||||
color: #222;
|
color: #222;
|
||||||
}
|
}
|
||||||
div#kohana-debug-toolbar pre { line-height: 1.3 }
|
div#kohana-debug-toolbar pre { line-height: 1.3 }
|
||||||
div#kohana-debug-toolbar .top {
|
|
||||||
position: absolute;
|
|
||||||
left: 0px;
|
|
||||||
top: 0px;
|
|
||||||
width: 100%;
|
|
||||||
z-index: 9999;
|
|
||||||
border-bottom: 1px solid #aaa;
|
|
||||||
background-color: #efefef;
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tables */
|
/* Tables */
|
||||||
div#kohana-debug-toolbar table {
|
div#kohana-debug-toolbar table {
|
||||||
|
@ -105,26 +95,37 @@ div#kohana-debug-toolbar tr.current {
|
||||||
|
|
||||||
/* Toolbar */
|
/* Toolbar */
|
||||||
div#kohana-debug-toolbar div#debug-toolbar {
|
div#kohana-debug-toolbar div#debug-toolbar {
|
||||||
position: fixed;
|
position: absolute;
|
||||||
padding: 0 0 3px 0;
|
|
||||||
top: 0px;
|
top: 0px;
|
||||||
opacity: 0.80;
|
width: 100%;
|
||||||
filter: alpha(opacity:80);
|
padding: 0 0 3px 0;
|
||||||
z-index: 10000;
|
|
||||||
white-space: nowrap;
|
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
}
|
}
|
||||||
div#kohana-debug-toolbar div#debug-toolbar.debug-toolbar-align-center { left: auto; right: auto; }
|
html {
|
||||||
div#kohana-debug-toolbar div#debug-toolbar.debug-toolbar-align-right { right: 0; }
|
position: absolute;
|
||||||
div#kohana-debug-toolbar div#debug-toolbar.debug-toolbar-align-left { left: 0; }
|
top: 16px;
|
||||||
div#kohana-debug-toolbar div#debug-toolbar img { vertical-align: middle; }
|
}
|
||||||
|
div#kohana-debug-toolbar .top {
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
top: 20px;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 9999;
|
||||||
|
border-bottom: 1px solid #aaa;
|
||||||
|
background-color: #efefef;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#kohana-debug-toolbar div#debug-toolbar img {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
div#kohana-debug-toolbar div#debug-toolbar ul.menu {
|
div#kohana-debug-toolbar div#debug-toolbar ul.menu {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
div#kohana-debug-toolbar div#debug-toolbar ul.menu li {
|
div#kohana-debug-toolbar div#debug-toolbar ul.menu li {
|
||||||
display: inline;
|
display: inline-block;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
border-right: 1px solid #aaa;
|
border-right: 1px solid #aaa;
|
||||||
|
|
|
@ -65,17 +65,6 @@ var debugToolbar = {
|
||||||
document.getElementById('kohana-debug-toolbar').style.display = 'none';
|
document.getElementById('kohana-debug-toolbar').style.display = 'none';
|
||||||
},
|
},
|
||||||
|
|
||||||
swap: function() {
|
|
||||||
var toolbar = document.getElementById('debug-toolbar');
|
|
||||||
if (toolbar.className == 'debug-toolbar-align-center') {
|
|
||||||
toolbar.className = 'debug-toolbar-align-left';
|
|
||||||
} else if (toolbar.className == 'debug-toolbar-align-left') {
|
|
||||||
toolbar.className = 'debug-toolbar-align-right';
|
|
||||||
} else {
|
|
||||||
toolbar.className = 'debug-toolbar-align-center';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
collapse: function() {
|
collapse: function() {
|
||||||
debugToolbar.toggle('debug-toolbar-menu');
|
debugToolbar.toggle('debug-toolbar-menu');
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue