Started on dashboard styling and implementation

This commit is contained in:
Elliot Hesp
2014-12-04 15:32:46 +00:00
parent 32dab0ae00
commit 0ed4b553e4
13 changed files with 402 additions and 8 deletions
+4
View File
@@ -2,4 +2,8 @@ $(function() {
$('.tabs').tabs({active: 2});
$('#sidebar-toggle').click(function() {
$('.sidebar').toggleClass('active');
});
});
+7 -3
View File
@@ -1,3 +1,7 @@
body {
background: #f5f5f5;
}
html, body {
height: 100%;
}
@import "partials/base";
@import "partials/header";
@import "partials/sidebar";
+30
View File
@@ -0,0 +1,30 @@
$base-background-color: #f5f5f5;
$base-font-family: "Helvetica Neue", Helvetica, "Open Sans", sans-serif;
$base-font-weight: lighter;
$base-letter-spacing: 1px;
$base-link-color: #ffffff;
$base-link-hover-color: #e9e9e9;
$header-background-color: #263238;
$header-border-color: 1px solid #182024;
$sidebar-background-color: #37474f;
$sidebar-border-color: 1px solid rgba(255, 255, 255, .1);
$sidebar-text-color: #d7dadc;
$sidebar-text-active-color: #ffffff;
$screen-xs-max: "(max-width: 549px)";
$screen-sm-min: "(min-width: 550px)";
$screen-sm-max: "(max-width: 991px)";
$screen-md-min: "(min-width: 992px)";
$screen-md-max: "(max-width: 1199px)";
$screen-lg-min: "(min-width: 1200px)";
body {
font-family: $base-font-family;
font-weight: $base-font-weight;
letter-spacing: $base-letter-spacing;
background: $base-background-color;
}
+45
View File
@@ -0,0 +1,45 @@
body.dashboard {
.navbar {
z-index: 999;
border-radius: 0px;
border: none;
border-bottom: $header-border-color;
background: $header-background-color;
margin: 0;
a, a:active, a:visited {
color: $base-link-color;
&:hover {
color: $base-link-hover-color;
}
}
.navbar-toggle {
margin-top: 15px;
background: transparent;
border-color: transparent;
&.collapsed span {
background-color: $base-link-color;
}
}
.navbar-collapse {
background: $header-background-color;
}
a.navbar-brand {
padding: 34px 21px;
line-height: 0px;
font-size: 20px;
@media #{$screen-sm-max} {
span {
padding-right: 10px;
&:before {
font-family: FontAwesome;
content: "\f060";
}
}
}
}
.nav li a {
height: 68px;
line-height: 35px;
}
}
}
+66
View File
@@ -0,0 +1,66 @@
body.dashboard {
.sidebar {
width: 250px;
height: 100%;
background: $sidebar-background-color;
margin-top: -69px;
padding-top: 69px;
transition: margin .2s;
@media #{$screen-sm-max} {
width: 30%;
margin-left: -30%;
}
@media #{$screen-xs-max} {
width: 75%;
margin-left: -75%;
}
&.active {
margin-left: 0;
}
.profile {
padding: 20px;
margin-bottom: 20px;
.avatar {
width: 70px;
img {
border-radius: 50%;
width: 60px;
}
}
.profile {
color: $sidebar-text-color;
}
}
ul {
clear: both;
margin: 0;
padding: 0;
list-style: none;
li {
font-size: 14px;
&:last-child {
border-bottom: $sidebar-border-color;
}
&.active {
background: $header-background-color;
a {
color: $sidebar-text-active-color;
}
}
a {
display: block;
padding: 15px;
border-top: $sidebar-border-color;
color: $sidebar-text-color;
i {
padding-right: 10px;
}
&:hover {
text-decoration: none;
}
}
}
}
}
}