Skip to content

Instantly share code, notes, and snippets.

@mrandri19
Created June 1, 2015 16:49
Show Gist options
  • Select an option

  • Save mrandri19/8260d6b6a14549ff2162 to your computer and use it in GitHub Desktop.

Select an option

Save mrandri19/8260d6b6a14549ff2162 to your computer and use it in GitHub Desktop.
@import url(http://fonts.googleapis.com/css?family=Open+Sans:800,400);
/* Toggle Styles */
body {
background-color: #D9E5D6;
font-family: 'Open Sans', sans-serif;
}
#wrapper {
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;
}
#wrapper.toggled {
padding-left: 250px;
}
#sidebar-wrapper {
box-shadow: 1px 1px 10px -1px #444;
z-index: 1000;
position: fixed;
left: 250px;
width: 0;
height: 100%;
margin-left: -250px;
overflow-y: auto;
background: #009688;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
#wrapper.toggled #sidebar-wrapper {
width: 250px;
}
#page-content-wrapper {
z-index: 10;
position: absolute;
width: 100%;
padding: 15px;
}
#wrapper.toggled #page-content-wrapper {
position: absolute;
margin-right: -250px;
}
/* Sidebar Styles */
.sidebarButton {
box-shadow: 4px 1px 10px -3px #444;
-webkit-transition: all 0.1s ease;
-moz-transition: all 0.1s ease;
-o-transition: all 0.1s ease;
transition: all 0.1s ease;
position: absolute;
margin-top: 10%;
z-index: 1999;
background-color: #009688;
color: black;
height: 3em;
width: 3em;
border-radius: 0px 7px 7px 0px;
}
.sidebarButton:hover {
width: 3em;
}
.sidebar-nav {
position: absolute;
top: 0;
width: 250px;
margin: 0;
padding: 0;
list-style: none;
}
.sidebar-nav li {
text-indent: 20px;
line-height: 40px;
}
.sidebar-nav li a {
display: block;
text-decoration: none;
color: #D9E5D6;
}
.sidebar-nav li a:hover {
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
text-decoration: none;
color: #fff;
background: rgba(255,255,255,0.2);
}
.sidebar-nav li a:active,
.sidebar-nav li a:focus {
text-decoration: none;
}
.sidebar-nav > .sidebar-brand {
color:
height: 65px;
font-size: 18px;
line-height: 60px;
}
.sidebar-nav > .sidebar-brand a {
color: #000;
font-size: 1.2em;
}
.sidebar-nav > .sidebar-brand a:hover {
color: #fff;
background: none;
}
/*Va bene il mobile first ma cosi porcodio eh*/
/*Media query for the desktop */
@media(min-width:768px) {
#wrapper {
padding-left: 250px;
}
#wrapper.toggled {
padding-left: 0;
}
#sidebar-wrapper {
width: 250px;
}
#wrapper.toggled #sidebar-wrapper {
width: 0;
}
#page-content-wrapper {
padding: 20px;
position: relative;
}
#wrapper.toggled #page-content-wrapper {
position: relative;
margin-right: 0;
}
.sidebarButton {
margin-top: 5%;
}
.sidebarButton:hover {
width: 4em;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment