mirror of https://github.com/ColorlibHQ/AdminLTE
Updates to v2.1 alpha
parent
0fc9439050
commit
340be0df61
|
@ -23,30 +23,14 @@
|
||||||
.translate(0, 0);
|
.translate(0, 0);
|
||||||
width: 50px!important;
|
width: 50px!important;
|
||||||
z-index: 850;
|
z-index: 850;
|
||||||
|
|
||||||
//Keep only the image of the user in the user panel
|
|
||||||
.user-panel {
|
|
||||||
> .info {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-menu {
|
.sidebar-menu {
|
||||||
//Make the sidebar links, menus, labels, badeges
|
|
||||||
//and angle icons disappear
|
|
||||||
> li {
|
> li {
|
||||||
position: relative;
|
position: relative;
|
||||||
> a {
|
> a {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
> a > span,
|
|
||||||
> .treeview-menu,
|
|
||||||
> a > .pull-right,
|
|
||||||
&.header {
|
|
||||||
display: none!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
> a > span {
|
> a > span {
|
||||||
border-top-right-radius: 4px;
|
border-top-right-radius: 4px;
|
||||||
}
|
}
|
||||||
|
@ -69,6 +53,8 @@
|
||||||
> a > span:not(.pull-right),
|
> a > span:not(.pull-right),
|
||||||
> .treeview-menu {
|
> .treeview-menu {
|
||||||
display: block!important;
|
display: block!important;
|
||||||
|
visibility: visible;
|
||||||
|
.opacity(1);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: @sidebar-width - 50;
|
width: @sidebar-width - 50;
|
||||||
left: 50px;
|
left: 50px;
|
||||||
|
@ -77,6 +63,7 @@
|
||||||
//position the header & treeview menus
|
//position the header & treeview menus
|
||||||
> a > span {
|
> a > span {
|
||||||
top: 0;
|
top: 0;
|
||||||
|
margin-left: -3px;
|
||||||
padding: 12px 5px 12px 20px;
|
padding: 12px 5px 12px 20px;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
}
|
}
|
||||||
|
@ -88,9 +75,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//One more thing to remove because it doesn't fit :-z
|
//Make the sidebar links, menus, labels, badeges
|
||||||
.sidebar-form {
|
//and angle icons disappear
|
||||||
display: none;
|
.main-sidebar .user-panel > .info,
|
||||||
|
.sidebar-form,
|
||||||
|
.sidebar-menu > li > a > span,
|
||||||
|
.sidebar-menu > li > .treeview-menu,
|
||||||
|
.sidebar-menu >li > a > .pull-right,
|
||||||
|
.sidebar-menu li.header {
|
||||||
|
display: none!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-header {
|
.main-header {
|
||||||
|
@ -108,8 +101,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Of course, since the logo got smaller, we need to fix the
|
//Since the logo got smaller, we need to fix the navbar's position
|
||||||
//navbar's position
|
|
||||||
.navbar {
|
.navbar {
|
||||||
margin-left: 50px;
|
margin-left: 50px;
|
||||||
}
|
}
|
||||||
|
@ -117,3 +109,34 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-sidebar .user-panel > .info,
|
||||||
|
.sidebar-form,
|
||||||
|
.sidebar-menu > li > a > span,
|
||||||
|
.sidebar-menu > li > .treeview-menu,
|
||||||
|
.sidebar-menu >li > a > .pull-right,
|
||||||
|
.sidebar-menu li.header {
|
||||||
|
.transition(display 0s linear 1s);
|
||||||
|
}
|
||||||
|
|
||||||
|
//A fix for text overflow while transitioning from sidebar mini to full sidebar
|
||||||
|
.sidebar-menu > li > a,
|
||||||
|
.main-sidebar .user-panel,
|
||||||
|
.sidebar-menu > li.header
|
||||||
|
.treeview-menu > li > a {
|
||||||
|
width: 100%;
|
||||||
|
white-space: nowrap!important;
|
||||||
|
}
|
||||||
|
.sidebar-menu > li.header {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: clip;
|
||||||
|
}
|
||||||
|
.sidebar-menu li > a {
|
||||||
|
position: relative;
|
||||||
|
> .pull-right {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 10px;
|
||||||
|
margin-top: -7px;
|
||||||
|
}
|
||||||
|
}
|
|
@ -45,7 +45,10 @@
|
||||||
|
|
||||||
//Sidebar user panel
|
//Sidebar user panel
|
||||||
.user-panel {
|
.user-panel {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
overflow: hidden;
|
||||||
.clearfix();
|
.clearfix();
|
||||||
> .image > img {
|
> .image > img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -53,22 +56,24 @@
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
> .info {
|
> .info {
|
||||||
font-weight: 600;
|
|
||||||
padding: 5px 5px 5px 15px;
|
padding: 5px 5px 5px 15px;
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
position: absolute;
|
||||||
> .info > p {
|
left: 55px;
|
||||||
margin-bottom: 9px;
|
> p {
|
||||||
}
|
font-weight: 600;
|
||||||
> .info > a {
|
margin-bottom: 9px;
|
||||||
text-decoration: none;
|
}
|
||||||
padding-right: 5px;
|
> a {
|
||||||
margin-top: 3px;
|
text-decoration: none;
|
||||||
font-size: 11px;
|
padding-right: 5px;
|
||||||
font-weight: normal;
|
margin-top: 3px;
|
||||||
> .fa, > .ion, > .glyphicon {
|
font-size: 11px;
|
||||||
margin-right: 3px;
|
> .fa,
|
||||||
|
> .ion,
|
||||||
|
> .glyphicon {
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -78,6 +83,7 @@
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
//First Level
|
||||||
> li {
|
> li {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -453,7 +453,10 @@ a:focus {
|
||||||
border-color: transparent!important;
|
border-color: transparent!important;
|
||||||
}
|
}
|
||||||
.user-panel {
|
.user-panel {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.user-panel:before,
|
.user-panel:before,
|
||||||
.user-panel:after {
|
.user-panel:after {
|
||||||
|
@ -469,12 +472,13 @@ a:focus {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
.user-panel > .info {
|
.user-panel > .info {
|
||||||
font-weight: 600;
|
|
||||||
padding: 5px 5px 5px 15px;
|
padding: 5px 5px 5px 15px;
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
position: absolute;
|
||||||
|
left: 55px;
|
||||||
}
|
}
|
||||||
.user-panel > .info > p {
|
.user-panel > .info > p {
|
||||||
|
font-weight: 600;
|
||||||
margin-bottom: 9px;
|
margin-bottom: 9px;
|
||||||
}
|
}
|
||||||
.user-panel > .info > a {
|
.user-panel > .info > a {
|
||||||
|
@ -482,7 +486,6 @@ a:focus {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: normal;
|
|
||||||
}
|
}
|
||||||
.user-panel > .info > a > .fa,
|
.user-panel > .info > a > .fa,
|
||||||
.user-panel > .info > a > .ion,
|
.user-panel > .info > a > .ion,
|
||||||
|
@ -578,21 +581,12 @@ a:focus {
|
||||||
width: 50px!important;
|
width: 50px!important;
|
||||||
z-index: 850;
|
z-index: 850;
|
||||||
}
|
}
|
||||||
.sidebar-mini.sidebar-collapse .main-sidebar .user-panel > .info {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li {
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span,
|
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu,
|
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .pull-right,
|
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li.header {
|
|
||||||
display: none!important;
|
|
||||||
}
|
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span {
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span {
|
||||||
border-top-right-radius: 4px;
|
border-top-right-radius: 4px;
|
||||||
}
|
}
|
||||||
|
@ -607,12 +601,16 @@ a:focus {
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
|
||||||
display: block!important;
|
display: block!important;
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
filter: alpha(opacity=100);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 180px;
|
width: 180px;
|
||||||
left: 50px;
|
left: 50px;
|
||||||
}
|
}
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span {
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span {
|
||||||
top: 0;
|
top: 0;
|
||||||
|
margin-left: -3px;
|
||||||
padding: 12px 5px 12px 20px;
|
padding: 12px 5px 12px 20px;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
}
|
}
|
||||||
|
@ -620,8 +618,13 @@ a:focus {
|
||||||
top: 44px;
|
top: 44px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.sidebar-mini.sidebar-collapse .sidebar-form {
|
.sidebar-mini.sidebar-collapse .main-sidebar .user-panel > .info,
|
||||||
display: none;
|
.sidebar-mini.sidebar-collapse .sidebar-form,
|
||||||
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span,
|
||||||
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu,
|
||||||
|
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > .pull-right,
|
||||||
|
.sidebar-mini.sidebar-collapse .sidebar-menu li.header {
|
||||||
|
display: none!important;
|
||||||
}
|
}
|
||||||
.sidebar-mini.sidebar-collapse .main-header .logo {
|
.sidebar-mini.sidebar-collapse .main-header .logo {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
|
@ -639,6 +642,35 @@ a:focus {
|
||||||
margin-left: 50px;
|
margin-left: 50px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.main-sidebar .user-panel > .info,
|
||||||
|
.sidebar-form,
|
||||||
|
.sidebar-menu > li > a > span,
|
||||||
|
.sidebar-menu > li > .treeview-menu,
|
||||||
|
.sidebar-menu > li > a > .pull-right,
|
||||||
|
.sidebar-menu li.header {
|
||||||
|
-webkit-transition: display 0s linear 1s;
|
||||||
|
-o-transition: display 0s linear 1s;
|
||||||
|
transition: display 0s linear 1s;
|
||||||
|
}
|
||||||
|
.sidebar-menu > li > a,
|
||||||
|
.main-sidebar .user-panel,
|
||||||
|
.sidebar-menu > li.header .treeview-menu > li > a {
|
||||||
|
width: 100%;
|
||||||
|
white-space: nowrap!important;
|
||||||
|
}
|
||||||
|
.sidebar-menu > li.header {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: clip;
|
||||||
|
}
|
||||||
|
.sidebar-menu li > a {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.sidebar-menu li > a > .pull-right {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
right: 10px;
|
||||||
|
margin-top: -7px;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* Component: Control sidebar. By deafult, this is the right sidebar.
|
* Component: Control sidebar. By deafult, this is the right sidebar.
|
||||||
*/
|
*/
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -385,6 +385,7 @@ function _init() {
|
||||||
//Listen to the click event
|
//Listen to the click event
|
||||||
btn.click(function (e) {
|
btn.click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
//If the sidebar is not open
|
||||||
if (!sidebar.hasClass('control-sidebar-open')
|
if (!sidebar.hasClass('control-sidebar-open')
|
||||||
&& !$('body').hasClass('control-sidebar-open')) {
|
&& !$('body').hasClass('control-sidebar-open')) {
|
||||||
//Open the sidebar
|
//Open the sidebar
|
||||||
|
@ -395,32 +396,37 @@ function _init() {
|
||||||
});
|
});
|
||||||
|
|
||||||
//If the body has a boxed layout, fix the sidebar bg position
|
//If the body has a boxed layout, fix the sidebar bg position
|
||||||
if ($("body").hasClass('layout-boxed')) {
|
var bg = $(".control-sidebar-bg");
|
||||||
var bg = $(".control-sidebar-bg");
|
_this._fix(bg);
|
||||||
bg.css("position", "absolute");
|
|
||||||
_this._fix(bg);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
//Open the control sidebar
|
//Open the control sidebar
|
||||||
open: function (sidebar, slide) {
|
open: function (sidebar, slide) {
|
||||||
|
//Slide over content
|
||||||
if (slide)
|
if (slide)
|
||||||
sidebar.addClass('control-sidebar-open');
|
sidebar.addClass('control-sidebar-open');
|
||||||
|
//Push the content by adding the open class to the body instead
|
||||||
|
//of the sidebar itself
|
||||||
else
|
else
|
||||||
$('body').addClass('control-sidebar-open');
|
$('body').addClass('control-sidebar-open');
|
||||||
},
|
},
|
||||||
//Close the control sidebar
|
//Close the control sidebar
|
||||||
close: function (sidebar, slide) {
|
close: function (sidebar, slide) {
|
||||||
if (slide)
|
|
||||||
sidebar.removeClass('control-sidebar-open');
|
sidebar.removeClass('control-sidebar-open');
|
||||||
else
|
$('body').removeClass('control-sidebar-open');
|
||||||
$('body').removeClass('control-sidebar-open');
|
|
||||||
},
|
},
|
||||||
_fix: function (sidebar) {
|
_fix: function (sidebar) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
sidebar.height($(".wrapper").height());
|
if ($("body").hasClass('layout-boxed')) {
|
||||||
$(window).resize(function () {
|
sidebar.css('position', 'absolute');
|
||||||
_this._fix(sidebar);
|
sidebar.height($(".wrapper").height());
|
||||||
});
|
$(window).resize(function () {
|
||||||
|
_this._fix(sidebar);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
sidebar.css('position', 'fixed');
|
||||||
|
sidebar.height($(window).height());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
* You should not use this file in production.
|
* You should not use this file in production.
|
||||||
* This file is for demo purposes only.
|
* This file is for demo purposes only.
|
||||||
*/
|
*/
|
||||||
(function ($) {
|
(function ($, AdminLTE) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of all the available skins
|
* List of all the available skins
|
||||||
|
@ -26,93 +26,62 @@
|
||||||
"skin-green-light"
|
"skin-green-light"
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
//Create the new tab
|
||||||
* CSS rules for the menu
|
var tab_pane = $("<div />", {
|
||||||
*
|
"id": "control-sidebar-theme-demo-options-tab",
|
||||||
* @type Object
|
"class": "tab-pane"
|
||||||
*/
|
});
|
||||||
var menu_css = {
|
|
||||||
"padding": "10px",
|
|
||||||
"position": "fixed",
|
|
||||||
"top": "70px",
|
|
||||||
"right": "-250px",
|
|
||||||
"background": "#fff",
|
|
||||||
"border": "0px solid #ddd",
|
|
||||||
"width": "250px",
|
|
||||||
"z-index": "99999",
|
|
||||||
"box-shadow": "0 1px 3px rgba(0,0,0,0.1)"
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
//Create the tab button
|
||||||
* CSS rules for the demo handle button
|
var tab_button = $("<li />")
|
||||||
*
|
.html("<a href='#control-sidebar-theme-demo-options-tab' data-toggle='tab'>"
|
||||||
* @type Object
|
+ "<i class='fa fa-wrench'></i>"
|
||||||
*/
|
+ "</a>");
|
||||||
var handle_css = {
|
|
||||||
"position": "fixed",
|
|
||||||
"top": "70px",
|
|
||||||
"right": "0",
|
|
||||||
"background": "#fff",
|
|
||||||
"border-radius": "5px 0px 0px 5px",
|
|
||||||
"padding": "10px 15px",
|
|
||||||
"font-size": "16px",
|
|
||||||
"z-index": "99999",
|
|
||||||
"cursor": "pointer",
|
|
||||||
"color": "#3c8dbc",
|
|
||||||
"box-shadow": "0 1px 3px rgba(0,0,0,0.1)"
|
|
||||||
};
|
|
||||||
|
|
||||||
//Create the handle
|
//Add the tab button to the right sidebar tabs
|
||||||
var demo = $("<div />")
|
$("[href='#control-sidebar-home-tab']")
|
||||||
.css(handle_css)
|
.parent()
|
||||||
.html("<i class='fa fa-gear'></i>")
|
.before(tab_button);
|
||||||
.addClass("no-print");
|
|
||||||
|
|
||||||
//Create the menu
|
//Create the menu
|
||||||
var demo_settings = $("<div />")
|
var demo_settings = $("<div />");
|
||||||
.css(menu_css)
|
|
||||||
.addClass("no-print");
|
|
||||||
|
|
||||||
|
//Layout options
|
||||||
demo_settings.append(
|
demo_settings.append(
|
||||||
"<h4 class='text-light-blue' style='margin: 0 0 5px 0; border-bottom: 1px solid #ddd; padding-bottom: 15px;'>"
|
"<h4 class='control-sidebar-heading'>"
|
||||||
+ "Layout Options"
|
+ "Layout Options"
|
||||||
+ "</h4>"
|
+ "</h4>"
|
||||||
//Fixed layout
|
//Fixed layout
|
||||||
+ "<div class='form-group'>"
|
+ "<div class='form-group'>"
|
||||||
+ "<div class='checkbox'>"
|
+ "<label class='control-sidebar-subheading'>"
|
||||||
+ "<label>"
|
+ "<input type='checkbox' data-layout='fixed' class='pull-right'/> "
|
||||||
+ "<input type='checkbox' data-layout='layout-fixed'/> "
|
|
||||||
+ "Fixed layout"
|
+ "Fixed layout"
|
||||||
+ "</label>"
|
+ "</label>"
|
||||||
+ "</div>"
|
+ "<p>Activate the fixed layout. You can't use fixed and boxed layouts together</p>"
|
||||||
+ "</div>"
|
+ "</div>"
|
||||||
//Boxed layout
|
//Boxed layout
|
||||||
+ "<div class='form-group'>"
|
+ "<div class='form-group'>"
|
||||||
+ "<div class='checkbox'>"
|
+ "<label class='control-sidebar-subheading'>"
|
||||||
+ "<label>"
|
+ "<input type='checkbox' data-layout='layout-boxed'class='pull-right'/> "
|
||||||
+ "<input type='checkbox' data-layout='layout-boxed'/> "
|
|
||||||
+ "Boxed Layout"
|
+ "Boxed Layout"
|
||||||
+ "</label>"
|
+ "</label>"
|
||||||
+ "</div>"
|
+ "<p>Activate the boxed layout</p>"
|
||||||
+ "</div>"
|
+ "</div>"
|
||||||
//Sidebar Toggle
|
//Sidebar Toggle
|
||||||
+ "<div class='form-group'>"
|
+ "<div class='form-group'>"
|
||||||
+ "<div class='checkbox'>"
|
+ "<label class='control-sidebar-subheading'>"
|
||||||
+ "<label>"
|
+ "<input type='checkbox' data-layout='sidebar-collapse' class='pull-right'/> "
|
||||||
+ "<input type='checkbox' data-layout='sidebar-collapse'/> "
|
|
||||||
+ "Toggle Sidebar"
|
+ "Toggle Sidebar"
|
||||||
+ "</label>"
|
+ "</label>"
|
||||||
+ "</div>"
|
+ "<p>Toggle the left sidebar's state (open or collapse)</p>"
|
||||||
+ "</div>"
|
+ "</div>"
|
||||||
//Control Sidebar Toggle
|
//Control Sidebar Toggle
|
||||||
+ "<div class='form-group'>"
|
+ "<div class='form-group'>"
|
||||||
+ "<div class='checkbox'>"
|
+ "<label class='control-sidebar-subheading'>"
|
||||||
+ "<label>"
|
+ "<input type='checkbox' data-controlsidebar='control-sidebar-open' class='pull-right'/> "
|
||||||
+ "<input type='checkbox' data-controlsidebar='control-sidebar-open'/> "
|
+ "Toggle Right Sidebar Slide"
|
||||||
+ "Toggle Control Sidebar Slide Effect"
|
|
||||||
+ "</label>"
|
+ "</label>"
|
||||||
+ "<small>Toggles between slide over content and push content effects.</small>"
|
+ "<p>Toggles between slide over content and push content effects.</p>"
|
||||||
+ "</div>"
|
|
||||||
+ "</div>"
|
+ "</div>"
|
||||||
);
|
);
|
||||||
var skins_list = $("<ul />", {"class": 'list-unstyled clearfix'});
|
var skins_list = $("<ul />", {"class": 'list-unstyled clearfix'});
|
||||||
|
@ -217,23 +186,11 @@
|
||||||
+ "<p class='text-center no-margin' style='font-size: 12px;'>Yellow Light</p>");
|
+ "<p class='text-center no-margin' style='font-size: 12px;'>Yellow Light</p>");
|
||||||
skins_list.append(skin_yellow_light);
|
skins_list.append(skin_yellow_light);
|
||||||
|
|
||||||
demo_settings.append("<h4 class='text-light-blue' style='margin: 0 0 5px 0; border-bottom: 1px solid #ddd; padding-bottom: 15px;'>Skins</h4>");
|
demo_settings.append("<h4 class='control-sidebar-heading'>Skins</h4>");
|
||||||
demo_settings.append(skins_list);
|
demo_settings.append(skins_list);
|
||||||
|
|
||||||
demo.click(function () {
|
tab_pane.append(demo_settings);
|
||||||
if (!$(this).hasClass("open")) {
|
$("#control-sidebar-settings-tab").before(tab_pane);
|
||||||
$(this).animate({"right": "250px"});
|
|
||||||
demo_settings.animate({"right": "0"});
|
|
||||||
$(this).addClass("open");
|
|
||||||
} else {
|
|
||||||
$(this).animate({"right": "0"});
|
|
||||||
demo_settings.animate({"right": "-250px"});
|
|
||||||
$(this).removeClass("open");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$("body").append(demo);
|
|
||||||
$("body").append(demo_settings);
|
|
||||||
|
|
||||||
setup();
|
setup();
|
||||||
|
|
||||||
|
@ -245,8 +202,10 @@
|
||||||
*/
|
*/
|
||||||
function change_layout(cls) {
|
function change_layout(cls) {
|
||||||
$("body").toggleClass(cls);
|
$("body").toggleClass(cls);
|
||||||
$.AdminLTE.layout.fixSidebar();
|
AdminLTE.layout.fixSidebar();
|
||||||
//Fix the problem
|
//Fix the problem with right sidebar and layout boxed
|
||||||
|
if(cls == "layout-boxed")
|
||||||
|
AdminLTE.controlSidebar._fix($(".control-sidebar-bg"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -316,10 +275,10 @@
|
||||||
|
|
||||||
$("[data-controlsidebar]").on('click', function () {
|
$("[data-controlsidebar]").on('click', function () {
|
||||||
change_layout($(this).data('controlsidebar'));
|
change_layout($(this).data('controlsidebar'));
|
||||||
var slide = !$.AdminLTE.options.controlSidebarOptions.slide;
|
var slide = !AdminLTE.options.controlSidebarOptions.slide;
|
||||||
$.AdminLTE.options.controlSidebarOptions.slide = slide;
|
AdminLTE.options.controlSidebarOptions.slide = slide;
|
||||||
if(!slide)
|
if (!slide)
|
||||||
$('.control-sidebar').removeClass('control-sidebar-open');
|
$('.control-sidebar').removeClass('control-sidebar-open');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})(jQuery);
|
})(jQuery, $.AdminLTE);
|
|
@ -8,11 +8,6 @@
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
//Activate the iCheck Plugin
|
|
||||||
$('input[type="checkbox"]').iCheck({
|
|
||||||
checkboxClass: 'icheckbox_flat-blue',
|
|
||||||
radioClass: 'iradio_flat-blue'
|
|
||||||
});
|
|
||||||
//Make the dashboard widgets sortable Using jquery UI
|
//Make the dashboard widgets sortable Using jquery UI
|
||||||
$(".connectedSortable").sortable({
|
$(".connectedSortable").sortable({
|
||||||
placeholder: "sort-highlight",
|
placeholder: "sort-highlight",
|
||||||
|
@ -22,6 +17,7 @@ $(function () {
|
||||||
zIndex: 999999
|
zIndex: 999999
|
||||||
});
|
});
|
||||||
$(".connectedSortable .box-header, .connectedSortable .nav-tabs-custom").css("cursor", "move");
|
$(".connectedSortable .box-header, .connectedSortable .nav-tabs-custom").css("cursor", "move");
|
||||||
|
|
||||||
//jQuery UI sortable for the todo list
|
//jQuery UI sortable for the todo list
|
||||||
$(".todo-list").sortable({
|
$(".todo-list").sortable({
|
||||||
placeholder: "sort-highlight",
|
placeholder: "sort-highlight",
|
||||||
|
|
|
@ -1092,8 +1092,6 @@
|
||||||
<script src="plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
|
<script src="plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
|
||||||
<!-- Bootstrap WYSIHTML5 -->
|
<!-- Bootstrap WYSIHTML5 -->
|
||||||
<script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
|
<script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
|
||||||
<!-- iCheck -->
|
|
||||||
<script src="plugins/iCheck/icheck.min.js" type="text/javascript"></script>
|
|
||||||
<!-- Slimscroll -->
|
<!-- Slimscroll -->
|
||||||
<script src="plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
|
<script src="plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
|
||||||
<!-- FastClick -->
|
<!-- FastClick -->
|
||||||
|
|
|
@ -1213,8 +1213,7 @@
|
||||||
</ul><!-- /.control-sidebar-menu -->
|
</ul><!-- /.control-sidebar-menu -->
|
||||||
|
|
||||||
</div><!-- /.tab-pane -->
|
</div><!-- /.tab-pane -->
|
||||||
<!-- Stats tab content -->
|
|
||||||
<div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div><!-- /.tab-pane -->
|
|
||||||
<!-- Settings tab content -->
|
<!-- Settings tab content -->
|
||||||
<div class="tab-pane" id="control-sidebar-settings-tab">
|
<div class="tab-pane" id="control-sidebar-settings-tab">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
|
@ -1298,8 +1297,6 @@
|
||||||
<script src="plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
|
<script src="plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
|
||||||
<!-- datepicker -->
|
<!-- datepicker -->
|
||||||
<script src="plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
|
<script src="plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
|
||||||
<!-- iCheck -->
|
|
||||||
<script src="plugins/iCheck/icheck.min.js" type="text/javascript"></script>
|
|
||||||
<!-- SlimScroll 1.3.0 -->
|
<!-- SlimScroll 1.3.0 -->
|
||||||
<script src="plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
|
<script src="plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
|
||||||
<!-- ChartJS 1.0.1 -->
|
<!-- ChartJS 1.0.1 -->
|
||||||
|
|
Loading…
Reference in New Issue