mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +01:00
Adding minimise and maximise button
This commit is contained in:
parent
c6f50df94c
commit
880ab56610
@ -29,7 +29,7 @@ div.phpdebugbar-closed {
|
||||
}
|
||||
|
||||
div.phpdebugbar * {
|
||||
|
||||
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
@ -65,7 +65,6 @@ div.phpdebugbar-resize-handle {
|
||||
div.phpdebugbar-closed, div.phpdebugbar-minimized{
|
||||
border-top: 1px solid #ccc;
|
||||
}
|
||||
|
||||
/* -------------------------------------- */
|
||||
|
||||
div.phpdebugbar-header, a.phpdebugbar-restore-btn {
|
||||
@ -146,11 +145,31 @@ a.phpdebugbar-tab.phpdebugbar-active {
|
||||
color: white;
|
||||
}
|
||||
|
||||
a.phpdebugbar-close-btn, a.phpdebugbar-open-btn, a.phpdebugbar-restore-btn {
|
||||
a.phpdebugbar-close-btn, a.phpdebugbar-open-btn, a.phpdebugbar-restore-btn, a.phpdebugbar-minimize-btn , a.phpdebugbar-maximize-btn {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
a.phpdebugbar-minimize-btn , a.phpdebugbar-maximize-btn {
|
||||
padding-right: 0px !important;
|
||||
}
|
||||
|
||||
a.phpdebugbar-maximize-btn { display: none}
|
||||
|
||||
a.phpdebugbar-minimize-btn { display: block}
|
||||
|
||||
div.phpdebugbar-minimized a.phpdebugbar-maximize-btn { display: block}
|
||||
|
||||
div.phpdebugbar-minimized a.phpdebugbar-minimize-btn { display: none}
|
||||
|
||||
a.phpdebugbar-minimize-btn {
|
||||
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAZklEQVR4nM3OMQ4CIRAF0HcFVyvXErl/6VWM7eo11gYSQiBC5f5mksl/meFfCXggznSueGNPs4UDttT5YIUznmnZwvcC7XjhUl5t4Vh8k9GtfqeFf6IeHkI9PIRqPIVyTlhm0QHzBSfMK4g2snfEAAAAAElFTkSuQmCC) no-repeat 9px 6px;
|
||||
}
|
||||
|
||||
a.phpdebugbar-maximize-btn {
|
||||
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAZklEQVR4nM3OsQmAMBCF4Z+kcA13sUxhq9sZcAHBLVzIIqBNAuG4aNLlwVXvvuOglxhgbEUW2IEbcK3oiVOFJarCEgXg+sMaWoABOL/wJtCadRqeUnkUkIYDMOeFj++Vkna0w73nBRurK28mVdKbAAAAAElFTkSuQmCC) no-repeat 9px 6px;
|
||||
}
|
||||
|
||||
a.phpdebugbar-close-btn {
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAADDSURBVDhPxZCxCsIwFEUzuGdwCvQD7BIIcehUXDqVfGM/wsG/iG4ifkzMlRuSPLo4eeFBue8c6Iv6b4wxW557Hs0KnWa3seqDxTiOyVqbhmF4UND4Rofdruyce3rvE6bIRSo9GOI1McbLPM/vVm4l7MAQr0kpHaQsJTDE+6zrepym6SVFdNgR69M+hBTLzWCI10gJvydvBkO8ZlmWayvhJnkzGOI1+fBTCOHWPkT7YNiBId4HizxnCKy+r81uX/otSn0A7dioI/vYX+8AAAAASUVORK5CYII=) no-repeat 9px 6px;
|
||||
}
|
||||
|
@ -481,14 +481,26 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
||||
$body.parents().off('mousemove', mousemove).off('mouseup', mouseup);
|
||||
self.$dragCapture.hide();
|
||||
};
|
||||
|
||||
// minimize button
|
||||
|
||||
// close button
|
||||
this.$closebtn = $('<a href="javascript:" />').addClass(csscls('close-btn')).appendTo(this.$headerRight);
|
||||
this.$closebtn.click(function() {
|
||||
self.close();
|
||||
});
|
||||
|
||||
// minimize button
|
||||
this.$minimizebtn = $('<a href="javascript:" />').addClass(csscls('minimize-btn') ).appendTo(this.$headerRight);
|
||||
this.$minimizebtn.click(function() {
|
||||
self.minimize();
|
||||
});
|
||||
|
||||
// maximize button
|
||||
this.$maximizebtn = $('<a href="javascript:" />').addClass(csscls('maximize-btn') ).appendTo(this.$headerRight);
|
||||
this.$maximizebtn.click(function() {
|
||||
self.restore();
|
||||
});
|
||||
|
||||
// restore button
|
||||
this.$restorebtn = $('<a href="javascript:" />').addClass(csscls('restore-btn')).hide().appendTo(this.$el);
|
||||
this.$restorebtn.click(function() {
|
||||
self.restore();
|
||||
|
Loading…
x
Reference in New Issue
Block a user