aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/dashboard/dashboard.css
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-03-06 22:40:25 -0800
committerMark Otto <[email protected]>2014-03-06 22:40:25 -0800
commit12c619f5b9149a4d3f4d24efe106504b6a8a5004 (patch)
treedacdd064110d04b8195151c08ef4e5713ba3ea24 /docs/examples/dashboard/dashboard.css
parentf4dd6221d4e7a8eaa9cd8ebe0457ad016f5058cc (diff)
parent7e299c6a49bced5d2c2581a5504ddf7dbcaf041f (diff)
downloadbootstrap-12c619f5b9149a4d3f4d24efe106504b6a8a5004.tar.xz
bootstrap-12c619f5b9149a4d3f4d24efe106504b6a8a5004.zip
Merge branch 'master' into boulox-responsive-embed
Conflicts: dist/css/bootstrap.css.map dist/css/bootstrap.min.css docs/assets/js/customize.min.js docs/assets/js/docs.min.js docs/css.html docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css
Diffstat (limited to 'docs/examples/dashboard/dashboard.css')
-rw-r--r--docs/examples/dashboard/dashboard.css26
1 files changed, 19 insertions, 7 deletions
diff --git a/docs/examples/dashboard/dashboard.css b/docs/examples/dashboard/dashboard.css
index 750124bf8..e0e3632b8 100644
--- a/docs/examples/dashboard/dashboard.css
+++ b/docs/examples/dashboard/dashboard.css
@@ -17,6 +17,13 @@ body {
border-bottom: 1px solid #eee;
}
+/*
+ * Top navigation
+ * Hide default border to remove 1px line.
+ */
+.navbar-fixed-top {
+ border: 0;
+}
/*
* Sidebar
@@ -29,12 +36,14 @@ body {
@media (min-width: 768px) {
.sidebar {
position: fixed;
- top: 0;
- left: 0;
+ top: 51px;
bottom: 0;
+ left: 0;
z-index: 1000;
display: block;
- padding: 70px 20px 20px;
+ padding: 20px;
+ overflow-x: hidden;
+ overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
background-color: #f5f5f5;
border-right: 1px solid #eee;
}
@@ -42,15 +51,17 @@ body {
/* Sidebar navigation */
.nav-sidebar {
- margin-left: -20px;
margin-right: -21px; /* 20px padding + 1px border */
margin-bottom: 20px;
+ margin-left: -20px;
}
.nav-sidebar > li > a {
- padding-left: 20px;
padding-right: 20px;
+ padding-left: 20px;
}
-.nav-sidebar > .active > a {
+.nav-sidebar > .active > a,
+.nav-sidebar > .active > a:hover,
+.nav-sidebar > .active > a:focus {
color: #fff;
background-color: #428bca;
}
@@ -65,8 +76,8 @@ body {
}
@media (min-width: 768px) {
.main {
+ padding-right: 40px;
padding-left: 40px;
- pading-right: 40px;
}
}
.main .page-header {
@@ -89,5 +100,6 @@ body {
margin-bottom: 20px;
}
.placeholder img {
+ display: inline-block;
border-radius: 50%;
}