$menuwidth: 300px;
#wrapper {
padding-left: 70px;
transition: all .4s ease 0s;
height: 100%
}
#sidebar-wrapper {
margin-left: 0;
left: 0px;
width: 70px;
background: #222;
position: fixed;
height: 100%;
z-index: 10000;
transition: all .4s ease 0s;
}
.sidebar-nav {
display: block;
float: left;
width: 70px;
list-style: none;
margin: 0;
padding: 0;
}
#page-content-wrapper {
padding-left: 0;
margin-left: 0;
width: 100%;
height: auto;
}
#wrapper.active {
padding-left: $menuwidth;
}
#wrapper.active #sidebar-wrapper {
left: 0px;
width: $menuwidth;
#sidebar_menu li a, .sidebar-nav li a {
width: $menuwidth;
-webkit-transition: background .4s;
-moz-transition: background .4s;
-o-transition: background .4s;
-ms-transition: background .4s;
transition: background .4s;
}
#sidebar_menu, .sidebar-nav{
width: $menuwidth;
-webkit-transition: background .5s;
-moz-transition: background .5s;
-o-transition: background .5s;
-ms-transition: background .5s;
transition: background .5s;
}
-webkit-transition: background .5s;
-moz-transition: background .5s;
-o-transition: background .5s;
-ms-transition: background .5s;
transition: background .5s;
}
#page-content-wrapper {
width: 100%;
}
#sidebar-wrapper {
#sidebar_menu li a, .sidebar-nav li a {
color: #999;
display: block;
float: left;
text-decoration: none;
width: 70px;
height: 50px;
background: #252525;
border-top: 1px solid #373737;
border-bottom: 1px solid #1A1A1A;
-webkit-transition: background .5s;
-moz-transition: background .5s;
-o-transition: background .5s;
-ms-transition: background .5s;
transition: background .5s;
overflow: hidden;
}
.sidebar_name {
padding-top: 25px;
color: #fff;
opacity: .7;
}
.sidebar-nav li {
line-height: 40px;
text-indent: 20px;
}
.sidebar-nav li a {
color: #999999;
display: block;
text-decoration: none;
}
.sidebar-nav li a:hover {
color: #fff;
background: rgba(255,255,255,0.2);
text-decoration: none;
}
.sidebar-nav li a:active,
.sidebar-nav li a:focus {
text-decoration: none;
}
.sidebar-nav > .sidebar-brand {
height: 65px;
line-height: 60px;
font-size: 18px;
}
.sidebar-nav > .sidebar-brand a {
color: #999999;
}
.sidebar-nav > .sidebar-brand a:hover {
color: #fff;
background: none;
}
}
#main_icon
{
float:right;
padding-right: 30px;
padding-top:20px;
}
.sub_icon
{
float:right;
padding-right: 31px;
padding-top:20px;
}
.content-header {
height: 65px;
line-height: 65px;
}
.content-header h1 {
margin: 0;
margin-left: 20px;
line-height: 65px;
display: inline-block;
}
@media (max-width:767px) {
#wrapper {
padding-left: 70px;
transition: all .4s ease 0s;
}
#sidebar-wrapper {
left: 0px;
width: 70px;
overflow-x: hidden;
}
#wrapper.active {
padding-left: $menuwidth;
}
#wrapper.active #sidebar-wrapper {
left: 0;
width: $menuwidth;
transition: all .4s ease 0s;
#sidebar_menu li a, .sidebar-nav li a {
width: $menuwidth;
}
}
}
//------------------------------------------//
#wrapper-content {
padding-left: 0;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
border: 2px solid red;
}
#wrapper-content.toggled {
padding-right: 250px;
}
#content-sidebar-wrapper {
position: fixed;
right: 250px;
z-index: 1000;
overflow-y: auto;
margin-right: -250px;
width: 0;
height: 100%;
background: #000;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
#wrapper-content.toggled #content-sidebar-wrapper {
width: 250px;
}
#content-page-content-wrapper {
padding: 15px;
width: 100%;
}
#wrapper-content.toggled #content-page-content-wrapper {
//position: absolute;
margin-right: -250px;
}
/* Sidebar Styles */
#content-sidebar-wrapper{
.sidebar-nav {
position: absolute;
top: 0;
margin: 0;
padding: 0;
width: 250px;
list-style: none;
}
.sidebar-nav li {
text-indent: 20px;
line-height: 40px;
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.