aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/css/docs.css
diff options
context:
space:
mode:
Diffstat (limited to 'docs/assets/css/docs.css')
-rw-r--r--docs/assets/css/docs.css980
1 files changed, 576 insertions, 404 deletions
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css
index 92a4ec8e6..f12f2423f 100644
--- a/docs/assets/css/docs.css
+++ b/docs/assets/css/docs.css
@@ -6,21 +6,32 @@
*/
+
/* Body and structure
-------------------------------------------------- */
+
body {
position: relative;
- padding-top: 90px;
- background-color: #fff;
- background-image: url(../img/grid-18px-masked.png);
- background-repeat: repeat-x;
- background-position: 0 40px;
+ padding-top: 40px;
+}
+
+/* Code in headings */
+h3 code {
+ font-size: 14px;
+ font-weight: normal;
}
+
/* Tweak navbar brand link to be super sleek
-------------------------------------------------- */
-.navbar-fixed-top .brand {
+
+body > .navbar {
+ font-size: 13px;
+}
+
+/* Change the docs' brand */
+body > .navbar .brand {
padding-right: 0;
padding-left: 0;
margin-left: 20px;
@@ -32,21 +43,36 @@ body {
-moz-transition: all .2s linear;
transition: all .2s linear;
}
-.navbar-fixed-top .brand:hover {
+body > .navbar .brand:hover {
text-decoration: none;
+ text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
}
-/* Space out sub-sections more
+/* Sections
-------------------------------------------------- */
+
+/* padding for in-page bookmarks and fixed navbar */
section {
- padding-top: 60px;
+ padding-top: 30px;
+}
+section > .page-header,
+section > .lead {
+ color: #5a5a5a;
+}
+section > ul li {
+ margin-bottom: 5px;
+}
+
+/* Separators (hr) */
+.bs-docs-separator {
+ margin: 40px 0 39px;
}
/* Faded out hr */
hr.soften {
height: 1px;
- margin: 54px 0;
+ margin: 70px 0;
background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
@@ -55,239 +81,248 @@ hr.soften {
}
+
/* Jumbotrons
-------------------------------------------------- */
+
+/* Base class
+------------------------- */
.jumbotron {
position: relative;
+ padding: 40px 0;
+ color: #fff;
+ text-align: center;
+ text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.075);
+ background: #020031; /* Old browsers */
+ background: -moz-linear-gradient(45deg, #020031 0%, #6d3353 100%); /* FF3.6+ */
+ background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#020031), color-stop(100%,#6d3353)); /* Chrome,Safari4+ */
+ background: -webkit-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* Chrome10+,Safari5.1+ */
+ background: -o-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* Opera 11.10+ */
+ background: -ms-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* IE10+ */
+ background: linear-gradient(45deg, #020031 0%,#6d3353 100%); /* W3C */
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#020031', endColorstr='#6d3353',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
+ -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
+ -moz-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
+ box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
}
.jumbotron h1 {
- margin-bottom: 9px;
- font-size: 81px;
+ font-size: 80px;
font-weight: bold;
letter-spacing: -1px;
line-height: 1;
}
.jumbotron p {
- margin-bottom: 18px;
+ font-size: 24px;
font-weight: 300;
+ line-height: 30px;
+ margin-bottom: 30px;
}
-.jumbotron .btn-large {
- font-size: 20px;
- font-weight: normal;
- padding: 14px 24px;
- margin-right: 10px;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
+
+/* Link styles (used on .masthead-links as well) */
+.jumbotron a {
+ color: #fff;
+ color: rgba(255,255,255,.5);
+ -webkit-transition: all .2s ease-in-out;
+ -moz-transition: all .2s ease-in-out;
+ transition: all .2s ease-in-out;
}
-.jumbotron .btn-large small {
- font-size: 14px;
+.jumbotron a:hover {
+ color: #fff;
+ text-shadow: 0 0 10px rgba(255,255,255,.25);
}
-/* Masthead (docs home) */
-.masthead {
- padding-top: 36px;
- margin-bottom: 72px;
+/* Download button */
+@-webkit-keyframes downloadButton {
+ from { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); }
+ 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 25px rgba(0,68,204,.9); }
+ to { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); }
}
-.masthead h1,
-.masthead p {
- text-align: center;
+@-moz-keyframes downloadButton {
+ from { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); }
+ 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 25px rgba(0,68,204,.9); }
+ to { box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.5); }
}
-.masthead h1 {
- margin-bottom: 18px;
+.masthead .btn {
+ padding: 14px 24px;
+ font-size: 24px;
+ font-weight: 200;
+ color: #fff; /* redeclare to override the `.jumbotron a` */
+ border: 0;
+ -webkit-border-radius: 6px;
+ -moz-border-radius: 6px;
+ border-radius: 6px;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.01);
+ -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.01);
+ box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25), 0 2px 10px rgba(0,68,204,.01);
+ -webkit-animation-name: downloadButton;
+ -moz-animation-name: downloadButton;
+ -webkit-animation-duration: 1.5s;
+ -moz-animation-duration: 1.5s;
+ -webkit-animation-iteration-count: infinite;
+ -moz-animation-iteration-count: infinite;
+ -webkit-transition: none;
+ -moz-transition: none;
+ transition: none;
+
}
-.masthead p {
- margin-left: 5%;
- margin-right: 5%;
- font-size: 30px;
- line-height: 36px;
+.masthead .btn:active {
+ -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
+ -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
+ box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
}
-/* Specific jumbotrons
+/* Pattern overlay
------------------------- */
-/* supporting docs pages */
-.subhead {
- padding-bottom: 0;
- margin-bottom: 9px;
+.jumbotron .container {
+ position: relative;
+ z-index: 2;
}
-.subhead h1 {
- font-size: 54px;
-}
-
-/* Subnav */
-.subnav {
- width: 100%;
- height: 36px;
- background-color: #eeeeee; /* Old browsers */
- background-repeat: repeat-x; /* Repeat the gradient */
- background-image: -moz-linear-gradient(top, #f5f5f5 0%, #eeeeee 100%); /* FF3.6+ */
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
- background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Chrome 10+,Safari 5.1+ */
- background-image: -ms-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* IE10+ */
- background-image: -o-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Opera 11.10+ */
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
- background-image: linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* W3C */
- border: 1px solid #e5e5e5;
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
+.jumbotron:after {
+ content: '';
+ display: block;
+ position: absolute;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ left: 0;
+ background: url(../img/bs-docs-masthead-pattern.png) repeat center center;
+ opacity: .4;
}
-.subnav .nav {
+
+/* Masthead (docs home)
+------------------------- */
+.masthead {
+ padding: 70px 0 80px;
margin-bottom: 0;
+ color: #fff;
}
-.subnav .nav > li > a {
- margin: 0;
- padding-top: 11px;
- padding-bottom: 11px;
- border-left: 1px solid #f5f5f5;
- border-right: 1px solid #e5e5e5;
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- border-radius: 0;
-}
-.subnav .nav > .active > a,
-.subnav .nav > .active > a:hover {
- padding-left: 13px;
- color: #777;
- background-color: #e9e9e9;
- border-right-color: #ddd;
- border-left: 0;
- -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
- -moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
- box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
-}
-.subnav .nav > .active > a .caret,
-.subnav .nav > .active > a:hover .caret {
- border-top-color: #777;
-}
-.subnav .nav > li:first-child > a,
-.subnav .nav > li:first-child > a:hover {
- border-left: 0;
- padding-left: 12px;
- -webkit-border-radius: 4px 0 0 4px;
- -moz-border-radius: 4px 0 0 4px;
- border-radius: 4px 0 0 4px;
-}
-.subnav .nav > li:last-child > a {
- border-right: 0;
-}
-.subnav .dropdown-menu {
- -webkit-border-radius: 0 0 4px 4px;
- -moz-border-radius: 0 0 4px 4px;
- border-radius: 0 0 4px 4px;
+.masthead h1 {
+ font-size: 120px;
+ line-height: 1;
+ letter-spacing: -2px;
}
-
-/* Fixed subnav on scroll, but only for 980px and up (sorry IE!) */
-@media (min-width: 980px) {
- .subnav-fixed {
- position: fixed;
- top: 40px;
- left: 0;
- right: 0;
- z-index: 1020; /* 10 less than .navbar-fixed to prevent any overlap */
- border-color: #d5d5d5;
- border-width: 0 0 1px; /* drop the border on the fixed edges */
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- border-radius: 0;
- -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
- -moz-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
- box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
- filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); /* IE6-9 */
- }
- .subnav-fixed .nav {
- width: 938px;
- margin: 0 auto;
- padding: 0 1px;
- }
- .subnav .nav > li:first-child > a,
- .subnav .nav > li:first-child > a:hover {
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- border-radius: 0;
- }
+.masthead p {
+ font-size: 40px;
+ font-weight: 200;
+ line-height: 1.25;
}
-
-/* Quick links
--------------------------------------------------- */
-.bs-links {
- margin: 36px 0;
-}
-.quick-links {
- min-height: 30px;
+/* Textual links in masthead */
+.masthead-links {
margin: 0;
- padding: 5px 20px;
list-style: none;
+}
+.masthead-links li {
+ display: inline;
+ padding: 0 10px;
+ color: rgba(255,255,255,.25);
+}
+
+/* Social proof buttons from GitHub & Twitter */
+.bs-docs-social {
+ padding: 15px 0;
text-align: center;
- overflow: hidden;
+ background-color: #f5f5f5;
+ border-top: 1px solid #fff;
+ border-bottom: 1px solid #ddd;
}
-.quick-links:first-child {
- min-height: 0;
+
+/* Quick links on Home */
+.bs-docs-social-buttons {
+ margin-left: 0;
+ margin-bottom: 0;
+ padding-left: 0;
+ list-style: none;
}
-.quick-links li {
- display: inline;
- margin: 0 8px;
- color: #999;
+.bs-docs-social-buttons li {
+ display: inline-block;
+ padding: 5px 8px;
+ line-height: 1;
+ *display: inline;
+ *zoom: 1;
}
-.quick-links .github-btn,
-.quick-links .tweet-btn,
-.quick-links .follow-btn {
- position: relative;
- top: 5px;
+
+/* Subhead (other pages)
+------------------------- */
+.subhead {
+ text-align: left;
+ border-bottom: 1px solid #ddd;
+}
+.subhead h1 {
+ font-size: 60px;
}
+.subhead p {
+ margin-bottom: 20px;
+}
+.subhead .navbar {
+ display: none;
+}
+
/* Marketing section of Overview
-------------------------------------------------- */
-.marketing .row {
- margin-bottom: 9px;
-}
-.marketing h1 {
- margin: 36px 0 27px;
- font-size: 40px;
- font-weight: 300;
+
+.marketing {
text-align: center;
+ color: #5a5a5a;
}
-.marketing h2,
-.marketing h3 {
- font-weight: 300;
+.marketing h1 {
+ margin: 60px 0 10px;
+ font-size: 60px;
+ font-weight: 200;
+ line-height: 1;
+ letter-spacing: -1px;
}
.marketing h2 {
- font-size: 22px;
+ font-weight: 200;
+ margin-bottom: 5px;
}
.marketing p {
- margin-right: 10px;
+ font-size: 16px;
+ line-height: 1.5;
}
-.marketing .bs-icon {
- float: left;
- margin: 7px 10px 0 0;
- opacity: .8;
+.marketing .marketing-byline {
+ margin-bottom: 40px;
+ font-size: 20px;
+ font-weight: 300;
+ line-height: 25px;
+ color: #999;
}
-.marketing .small-bs-icon {
- float: left;
- margin: 4px 5px 0 0;
+.marketing img {
+ display: block;
+ margin: 0 auto 30px;
}
/* Footer
-------------------------------------------------- */
+
.footer {
- margin-top: 45px;
- padding: 35px 0 36px;
+ padding: 70px 0;
+ margin-top: 70px;
border-top: 1px solid #e5e5e5;
+ background-color: #f5f5f5;
}
.footer p {
margin-bottom: 0;
- color: #555;
+ color: #777;
+}
+.footer-links {
+ margin: 10px 0;
+}
+.footer-links li {
+ display: inline;
+ margin-right: 10px;
}
/* Special grid styles
-------------------------------------------------- */
+
.show-grid {
margin-top: 10px;
margin-bottom: 20px;
@@ -298,8 +333,8 @@ hr.soften {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
- min-height: 30px;
- line-height: 30px;
+ min-height: 40px;
+ line-height: 40px;
}
.show-grid:hover [class*="span"] {
background: #ddd;
@@ -313,7 +348,8 @@ hr.soften {
}
-/* Render mini layout previews
+
+/* Mini layout previews
-------------------------------------------------- */
.mini-layout {
border: 1px solid #ddd;
@@ -324,8 +360,12 @@ hr.soften {
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
box-shadow: 0 1px 2px rgba(0,0,0,.075);
}
+.mini-layout,
+.mini-layout .mini-layout-body,
+.mini-layout.fluid .mini-layout-sidebar {
+ height: 300px;
+}
.mini-layout {
- height: 240px;
margin-bottom: 20px;
padding: 9px;
}
@@ -338,7 +378,6 @@ hr.soften {
background-color: #dceaf4;
margin: 0 auto;
width: 70%;
- height: 240px;
}
.mini-layout.fluid .mini-layout-sidebar,
.mini-layout.fluid .mini-layout-header,
@@ -348,7 +387,6 @@ hr.soften {
.mini-layout.fluid .mini-layout-sidebar {
background-color: #bbd8e9;
width: 20%;
- height: 240px;
}
.mini-layout.fluid .mini-layout-body {
width: 77.5%;
@@ -356,32 +394,10 @@ hr.soften {
}
-/* Popover docs
--------------------------------------------------- */
-.popover-well {
- min-height: 160px;
-}
-.popover-well .popover {
- display: block;
-}
-.popover-well .popover-wrapper {
- width: 50%;
- height: 160px;
- float: left;
- margin-left: 55px;
- position: relative;
-}
-.popover-well .popover-menu-wrapper {
- height: 80px;
-}
-.large-bird {
- margin: 5px 0 0 310px;
- opacity: .1;
-}
-
/* Download page
-------------------------------------------------- */
+
.download .page-header {
margin-top: 36px;
}
@@ -412,6 +428,8 @@ hr.soften {
/* Custom, larger checkbox labels */
.download .checkbox {
padding: 6px 10px 6px 25px;
+ font-size: 13px;
+ line-height: 18px;
color: #555;
background-color: #f9f9f9;
-webkit-border-radius: 3px;
@@ -465,30 +483,6 @@ hr.soften {
-/* Color swatches on LESS docs page
--------------------------------------------------- */
-/* Sets the width of the td */
-.swatch-col {
- width: 30px;
-}
-/* Le swatch */
-.swatch {
- display: inline-block;
- width: 30px;
- height: 20px;
- margin: -6px 0;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
-}
-/* For white swatches, give a border */
-.swatch-bordered {
- width: 28px;
- height: 18px;
- border: 1px solid #eee;
-}
-
-
/* Misc
-------------------------------------------------- */
@@ -501,18 +495,13 @@ h2 + .row {
}
/* Example sites showcase */
+.example-sites {
+ xmargin-left: 20px;
+}
.example-sites img {
max-width: 100%;
margin: 0 auto;
}
-.marketing-byline {
- margin: -18px 0 27px;
- font-size: 18px;
- font-weight: 300;
- line-height: 24px;
- color: #999;
- text-align: center;
-}
.scrollspy-example {
height: 200px;
@@ -520,15 +509,6 @@ h2 + .row {
position: relative;
}
-/* Remove bottom margin on example forms in wells */
-form.well {
- padding: 14px;
-}
-
-/* Tighten up spacing */
-.well hr {
- margin: 18px 0;
-}
/* Fake the :focus state to demo it */
.focused {
@@ -552,18 +532,162 @@ form.well {
margin-left: 0;
list-style: none;
}
+.the-icons li {
+ float: left;
+ width: 25%;
+ line-height: 25px;
+}
.the-icons i:hover {
background-color: rgba(255,0,0,.25);
}
/* Eaxmples page
------------------------- */
+.bootstrap-examples p {
+ font-size: 13px;
+ line-height: 18px;
+}
.bootstrap-examples .thumbnail {
margin-bottom: 9px;
background-color: #fff;
}
-/* Responsive table
+
+
+/* Bootstrap code examples
+-------------------------------------------------- */
+
+/* Base class */
+.bs-docs-example {
+ position: relative;
+ margin: 15px 0;
+ padding: 39px 19px 14px;
+ *padding-top: 19px;
+ background-color: #fff;
+ border: 1px solid #ddd;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+}
+
+/* Echo out a label for the example */
+.bs-docs-example:after {
+ content: "Example";
+ position: absolute;
+ top: -1px;
+ left: -1px;
+ padding: 3px 7px;
+ font-size: 12px;
+ font-weight: bold;
+ background-color: #f5f5f5;
+ border: 1px solid #ddd;
+ color: #9da0a4;
+ -webkit-border-radius: 4px 0 4px 0;
+ -moz-border-radius: 4px 0 4px 0;
+ border-radius: 4px 0 4px 0;
+}
+
+/* Remove spacing between an example and it's code */
+.bs-docs-example + .prettyprint {
+ margin-top: -20px;
+ padding-top: 15px;
+}
+
+/* Tweak examples
+------------------------- */
+.bs-docs-example > p:last-child {
+ margin-bottom: 0;
+}
+.bs-docs-example .table,
+.bs-docs-example .progress,
+.bs-docs-example .well,
+.bs-docs-example .alert,
+.bs-docs-example .hero-unit,
+.bs-docs-example .pagination,
+.bs-docs-example .navbar,
+.bs-docs-example > .nav,
+.bs-docs-example blockquote {
+ margin-bottom: 5px;
+}
+.bs-docs-example .pagination {
+ margin-top: 0;
+}
+.bs-navbar-top-example,
+.bs-navbar-bottom-example {
+ z-index: 1;
+ padding: 0;
+ height: 90px;
+ overflow: hidden; /* cut the drop shadows off */
+}
+.bs-navbar-top-example .navbar-fixed-top,
+.bs-navbar-bottom-example .navbar-fixed-bottom {
+ margin-left: 0;
+ margin-right: 0;
+}
+.bs-navbar-top-example {
+ -webkit-border-radius: 0 0 4px 4px;
+ -moz-border-radius: 0 0 4px 4px;
+ border-radius: 0 0 4px 4px;
+}
+.bs-navbar-top-example:after {
+ top: auto;
+ bottom: -1px;
+ -webkit-border-radius: 0 4px 0 4px;
+ -moz-border-radius: 0 4px 0 4px;
+ border-radius: 0 4px 0 4px;
+}
+.bs-navbar-bottom-example {
+ -webkit-border-radius: 4px 4px 0 0;
+ -moz-border-radius: 4px 4px 0 0;
+ border-radius: 4px 4px 0 0;
+}
+.bs-navbar-bottom-example .navbar {
+ margin-bottom: 0;
+}
+form.bs-docs-example {
+ padding-bottom: 19px;
+}
+.bs-docs-example .lead {
+ font-size: 18px;
+ line-height: 24px;
+}
+
+/* Images */
+.bs-docs-example-images img {
+ margin: 10px;
+ display: inline-block;
+}
+
+/* Tooltips */
+.bs-docs-tooltip-examples {
+ text-align: center;
+ margin: 0 0 10px;
+ list-style: none;
+}
+.bs-docs-tooltip-examples li {
+ display: inline;
+ padding: 0 10px;
+}
+
+/* Popovers */
+.bs-docs-example-popover {
+ padding-bottom: 24px;
+ background-color: #f9f9f9;
+}
+.bs-docs-example-popover .popover {
+ position: relative;
+ display: block;
+ float: left;
+ width: 260px;
+ margin: 20px;
+}
+
+
+
+/* Responsive docs
+-------------------------------------------------- */
+
+/* Utility classes table
------------------------- */
.responsive-utilities th small {
display: block;
@@ -628,147 +752,168 @@ form.well {
}
-/* Responsive Docs
+
+/* Sidenav for Docs
-------------------------------------------------- */
-@media (max-width: 480px) {
- /* Reduce padding above jumbotron */
- body {
- padding-top: 70px;
- }
+/* prevent column from collapsing when affixing */
+.span3 {
+ min-height: 1px;
+}
+
+.bs-docs-sidenav {
+ width: 228px;
+ margin: 30px 0 20px;
+ padding: 0;
+ background-color: #fff;
+ -webkit-border-radius: 6px;
+ -moz-border-radius: 6px;
+ border-radius: 6px;
+ -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065);
+ -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065);
+ box-shadow: 0 1px 4px rgba(0,0,0,.065);
+}
+.bs-docs-sidenav > li > a {
+ display: block;
+ *width: 190px;
+ margin: 0 0 -1px;
+ padding: 8px 14px;
+ border: 1px solid #e5e5e5;
+}
+.bs-docs-sidenav > li:first-child > a {
+ -webkit-border-radius: 6px 6px 0 0;
+ -moz-border-radius: 6px 6px 0 0;
+ border-radius: 6px 6px 0 0;
+}
+.bs-docs-sidenav > li:last-child > a {
+ -webkit-border-radius: 0 0 6px 6px;
+ -moz-border-radius: 0 0 6px 6px;
+ border-radius: 0 0 6px 6px;
+}
+.bs-docs-sidenav > .active > a {
+ position: relative;
+ z-index: 2;
+ padding: 9px 15px;
+ border: 0;
+ text-shadow: 0 1px 0 rgba(0,0,0,.15);
+ -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
+ -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
+ box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
+}
+/* Chevrons */
+.bs-docs-sidenav .icon-chevron-right {
+ float: right;
+ margin-top: 2px;
+ margin-right: -6px;
+ opacity: .25;
+}
+.bs-docs-sidenav > li > a:hover {
+ background-color: #f5f5f5;
+}
+.bs-docs-sidenav a:hover .icon-chevron-right {
+ opacity: .5;
+}
+.bs-docs-sidenav .active .icon-chevron-right,
+.bs-docs-sidenav .active a:hover .icon-chevron-right {
+ background-image: url(../img/glyphicons-halflings-white.png);
+ opacity: 1;
+}
+.bs-docs-sidenav.affix {
+ top: 40px;
+}
+.bs-docs-sidenav.affix-bottom {
+ position: absolute;
+ top: auto;
+ bottom: 270px;
+}
- /* Change up some type stuff */
- h2 {
- margin-top: 27px;
- }
- h2 small {
- display: block;
- line-height: 18px;
- }
- h3 {
- margin-top: 18px;
- }
- /* icons */
- .marketing .bs-icon {
- margin: 0;
- }
- /* Adjust the jumbotron */
- .jumbotron h1,
- .jumbotron p {
- text-align: center;
- margin-right: 0;
- }
- .jumbotron h1 {
- font-size: 45px;
- margin-right: 0;
- }
- .jumbotron p {
- margin-right: 0;
- margin-left: 0;
- font-size: 18px;
- line-height: 24px;
- }
- .jumbotron .btn {
- display: block;
- font-size: 18px;
- padding: 10px 14px;
- margin: 0 auto 10px;
- }
- /* Masthead (home page jumbotron) */
- .masthead {
- padding-top: 0;
- }
- /* Don't space out quick links so much */
- .quick-links {
- margin: 40px 0 0;
+/* Responsive
+-------------------------------------------------- */
+
+/* Desktop large
+------------------------- */
+@media (min-width: 1200px) {
+ .bs-docs-container {
+ max-width: 970px;
}
- /* hide the bullets on mobile since our horizontal space is limited */
- .quick-links .divider {
- display: none;
+ .bs-docs-sidenav {
+ width: 258px;
}
+}
- /* center example sites */
- .example-sites {
+/* Desktop
+------------------------- */
+@media (max-width: 980px) {
+ /* Unfloat brand */
+ body > .navbar-fixed-top .brand {
+ float: left;
margin-left: 0;
- }
- .example-sites > li {
- float: none;
- display: block;
- max-width: 280px;
- margin: 0 auto 18px;
- text-align: center;
- }
- .example-sites .thumbnail > img {
- max-width: 270px;
+ padding-left: 10px;
+ padding-right: 10px;
}
- table code {
- white-space: normal;
- word-wrap: break-word;
- word-break: break-all;
+ /* Inline-block quick links for more spacing */
+ .quick-links li {
+ display: inline-block;
+ margin: 5px;
}
- /* Modal example */
- .modal-example .modal {
- position: relative;
- top: auto;
- right: auto;
- bottom: auto;
- left: auto;
+ /* When affixed, space properly */
+ .bs-docs-sidenav {
+ top: 0;
+ margin-top: 30px;
+ margin-right: 0;
}
-
}
-
-@media (max-width: 768px) {
-
+/* Tablet to desktop
+------------------------- */
+@media (min-width: 768px) and (max-width: 980px) {
/* Remove any padding from the body */
body {
padding-top: 0;
}
-
- /* Jumbotron buttons */
- .jumbotron .btn {
- margin-bottom: 10px;
+ /* Widen masthead and social buttons to fill body padding */
+ .jumbotron {
+ margin-top: -20px; /* Offset bottom margin on .navbar */
}
-
- /* Subnav */
- .subnav {
- position: static;
- top: auto;
- z-index: auto;
- width: auto;
- height: auto;
- background: #fff; /* whole background property since we use a background-image for gradient */
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- box-shadow: none;
+ /* Adjust sidenav width */
+ .bs-docs-sidenav {
+ width: 166px;
+ margin-top: 20px;
}
- .subnav .nav > li {
- float: none;
+}
+
+/* Tablet
+------------------------- */
+@media (max-width: 768px) {
+ /* Remove any padding from the body */
+ body {
+ padding-top: 0;
}
- .subnav .nav > li > a {
- border: 0;
+
+ /* Widen masthead and social buttons to fill body padding */
+ .jumbotron {
+ padding: 40px 20px;
+ margin-top: -20px; /* Offset bottom margin on .navbar */
+ margin-right: -20px;
+ margin-left: -20px;
}
- .subnav .nav > li + li > a {
- border-top: 1px solid #e5e5e5;
+ .masthead h1 {
+ font-size: 90px;
}
- .subnav .nav > li:first-child > a,
- .subnav .nav > li:first-child > a:hover {
- -webkit-border-radius: 4px 4px 0 0;
- -moz-border-radius: 4px 4px 0 0;
- border-radius: 4px 4px 0 0;
+ .masthead p,
+ .masthead .btn {
+ font-size: 24px;
}
-
- /* Popovers */
- .large-bird {
- display: none;
+ .marketing .span4 {
+ margin-bottom: 40px;
}
- .popover-well .popover-wrapper {
- margin-left: 0;
+ .bs-docs-social {
+ margin: 0 -20px;
}
/* Space out the show-grid examples */
@@ -776,71 +921,98 @@ form.well {
margin-bottom: 5px;
}
+ /* Sidenav */
+ .bs-docs-sidenav {
+ width: auto;
+ }
+ .bs-docs-sidenav.affix {
+ position: static;
+ width: auto;
+ top: 0;
+ }
+
/* Unfloat the back to top link in footer */
- .footer .pull-right {
- float: none;
+ .footer {
+ margin-left: -20px;
+ margin-right: -20px;
+ padding-left: 20px;
+ padding-right: 20px;
}
.footer p {
margin-bottom: 9px;
}
-
}
+/* Landscape phones
+------------------------- */
+@media (max-width: 480px) {
+ /* Remove padding above jumbotron */
+ body {
+ padding-top: 0;
+ }
-@media (min-width: 480px) and (max-width: 768px) {
+ /* Change up some type stuff */
+ h2 small {
+ display: block;
+ }
- /* Scale down the jumbotron content */
+ /* Downsize the jumbotrons */
.jumbotron h1 {
- font-size: 54px;
+ font-size: 60px;
}
- .jumbotron p {
- margin-right: 0;
- margin-left: 0;
+ .jumbotron p,
+ .jumbotron .btn {
+ font-size: 20px;
}
-
-}
-
-
-@media (min-width: 768px) and (max-width: 980px) {
-
- /* Remove any padding from the body */
- body {
- padding-top: 0;
+ .jumbotron .btn {
+ display: block;
+ margin: 0 auto;
}
- /* Scale down the jumbotron content */
- .jumbotron h1 {
- font-size: 72px;
+ /* center align subhead text like the masthead */
+ .subhead h1,
+ .subhead p {
+ text-align: center;
}
-}
-
-
-@media (max-width: 980px) {
+ /* Marketing on home */
+ .marketing h1 {
+ font-size: 40px;
+ }
- /* Unfloat brand */
- .navbar-fixed-top .brand {
- float: left;
+ /* center example sites */
+ .example-sites {
margin-left: 0;
- padding-left: 10px;
- padding-right: 10px;
}
-
- /* Inline-block quick links for more spacing */
- .quick-links li {
- display: inline-block;
- margin: 5px;
+ .example-sites > li {
+ float: none;
+ display: block;
+ max-width: 280px;
+ margin: 0 auto 18px;
+ text-align: center;
+ }
+ .example-sites .thumbnail > img {
+ max-width: 270px;
}
-}
-
-
-/* LARGE DESKTOP SCREENS */
-@media (min-width: 1210px) {
+ /* Do our best to make tables work in narrow viewports */
+ table code {
+ white-space: normal;
+ word-wrap: break-word;
+ word-break: break-all;
+ }
- /* Update subnav container */
- .subnav-fixed .nav {
- width: 1168px; /* 2px less to account for left/right borders being removed when in fixed mode */
+ /* Modal example */
+ .modal-example .modal {
+ position: relative;
+ top: auto;
+ right: auto;
+ bottom: auto;
+ left: auto;
}
+ /* Unfloat the back to top in footer to prevent odd text wrapping */
+ .footer .pull-right {
+ float: none;
+ }
}