mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Tweaked admin-panel collapse.
This commit is contained in:
parent
fe8167709a
commit
35761b3520
@ -66,10 +66,10 @@ class admin_shortcodes extends e_shortcode
|
||||
{
|
||||
if(varset($_COOKIE['e107_adminLeftPanel']) === 'closed')
|
||||
{
|
||||
return 'col-md-9 col-lg-12';
|
||||
return 'col-md-12 col-lg-12';
|
||||
}
|
||||
|
||||
return 'col-md-12 col-lg-10';
|
||||
return 'col-md-9 col-lg-10';
|
||||
|
||||
}
|
||||
|
||||
|
@ -401,13 +401,27 @@ pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;word-break:break-
|
||||
pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}
|
||||
.container,.container-fluid{padding-left:15px;padding-right:15px}
|
||||
.pre-scrollable{overflow-y:scroll}
|
||||
@media (min-width:768px){.container{width:750px}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.container {
|
||||
width: 750px
|
||||
}
|
||||
.row{margin-left:-15px;margin-right:-15px}
|
||||
}
|
||||
@media (min-width:992px){.container{width:970px}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.container {
|
||||
width: 970px
|
||||
}
|
||||
}
|
||||
@media (min-width:1200px){.container{width:1170px}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
|
||||
.container {
|
||||
width: 1170px
|
||||
}
|
||||
}
|
||||
.row{margin-left:-15px;margin-right:-15px}
|
||||
|
||||
.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}
|
||||
.col-xs-12{width:100%}
|
||||
|
@ -415,9 +415,9 @@ $(document).ready(function()
|
||||
var $rightPanel = $(".admin-right-panel");
|
||||
|
||||
|
||||
if ($rightPanel.hasClass('col-md-12'))
|
||||
if ($(".admin-left-panel").hasClass("admin-left-panel-collapsed"))
|
||||
{
|
||||
|
||||
console.log('admin panel collapsed already');
|
||||
$rightPanel.toggleClass("col-md-9 col-md-12");
|
||||
$rightPanel.toggleClass("col-lg-10 col-lg-12");
|
||||
$(".admin-left-panel").toggleClass("col-md-3 col-lg-2");
|
||||
|
Loading…
x
Reference in New Issue
Block a user