2 * Bootstrap Documentation
3 * Special styles for presenting Bootstrap's documentation and code examples.
9 -------------------------------------------------- */
12 position: relative; /* For scrollyspy */
13 padding-top: 50px; /* Account for fixed navbar */
16 /* Custom docs button */
19 background-color: #fff;
20 border-color: #e5e5e5;
25 background-color: #563d7c;
26 border-color: #563d7c;
29 /* Temp CSS until RC2 */
30 .bs-customize-placeholder {
31 margin-bottom: -100px;
34 background-color: #f5f5f5;
39 -------------------------------------------------- */
42 background-color: #563d7c;
44 .bs-docs-nav .navbar-brand {
47 .bs-docs-nav .navbar-nav > li > a {
50 .bs-docs-nav .navbar-nav > li > a:hover {
53 .bs-docs-nav .navbar-nav > .active > a,
54 .bs-docs-nav .navbar-nav > .active > a:hover {
56 background-color: #463265;
58 .bs-docs-nav .navbar-toggle {
59 border-color: #563d7c;
61 .bs-docs-nav .navbar-toggle:hover {
62 background-color: #463265;
63 border-color: #463265;
66 /* Old docs callout */
70 background-color: #fafafa;
71 border-bottom: 1px solid #e5e5e5;
76 .bs-docs-home .bs-old-docs {
78 border-top: 1px solid #e5e5e5;
83 -------------------------------------------------- */
96 .bs-masthead .btn-bs {
115 .bs-masthead-links li {
119 .bs-masthead-links li + li {
125 /* Customize and Download button
126 -------------------------------------------------- */
128 .bs-customizer .toggle {
131 .bs-customizer label {
144 .bs-customizer input[type="text"] {
145 background-color: #fafafa;
147 .bs-customizer .help-block {
151 .bs-customize-download {
157 /* Docs pages and sections
158 -------------------------------------------------- */
162 padding: 30px 30px 40px;
166 border-bottom: 1px solid #e5e5e5;
175 .bs-header .container {
179 .bs-docs-section + .bs-docs-section {
183 /* Ads in page headers */
185 width: auto !important;
186 margin: 50px -30px -40px !important;
187 padding: 20px !important;
188 overflow: hidden; /* clearfix */
189 height: auto !important;
190 font-size: 13px !important;
191 line-height: 16px !important;
193 background: none !important;
194 border: 0 !important;
195 border-top: 1px solid #e5e5e5 !important;
198 margin: 0 !important;
202 float: none !important;
203 display: block !important;
204 width: auto !important;
205 height: auto !important;
206 margin-left: 145px !important;
207 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
210 padding-top: 0 !important;
213 text-align: left !important;
215 .carbonad #azcarbon > img {
216 display: none; /* hide what I assume are tracking images */
222 -------------------------------------------------- */
224 /* By default it's not affixed in mobile views, so undo that */
229 /* First level of nav */
234 padding-bottom: 10px;
235 text-shadow: 0 1px 0 #fff;
236 background-color: #f7f5fa;
240 /* All levels of nav */
241 .bs-sidebar .nav > li > a {
246 .bs-sidebar .nav > li > a:hover,
247 .bs-sidebar .nav > li > a:focus {
248 text-decoration: none;
249 background-color: #e5e3e9;
250 border-right: 1px solid #dbd8e0;
252 .bs-sidebar .nav > .active > a,
253 .bs-sidebar .nav > .active:hover > a,
254 .bs-sidebar .nav > .active:focus > a {
257 background-color: transparent;
258 border-right: 1px solid #563d7c;
261 /* Nav: second level (shown on .active) */
262 .bs-sidebar .nav .nav {
266 .bs-sidebar .nav > .active > ul {
269 .bs-sidebar .nav .nav > li > a {
278 /* Side notes for calling out things
279 -------------------------------------------------- */
281 /* Base styles (regardless of theme) */
284 padding: 15px 30px 15px 15px;
285 border-left: 5px solid #eee;
290 .bs-callout p:last-child {
294 .bs-callout .highlight {
295 background-color: #fff;
298 /* Themes for different contexts */
300 background-color: #fcf2f2;
301 border-color: #dFb5b4;
303 .bs-callout-warning {
304 background-color: #fefbed;
305 border-color: #f1e7bc;
308 background-color: #f0f7fd;
309 border-color: #d0e3f0;
314 /* Special grid styles
315 -------------------------------------------------- */
320 .show-grid [class^="col-"] {
322 padding-bottom: 10px;
323 background-color: #eee;
324 border: 1px solid #ddd;
325 background-color: rgba(86,61,124,.15);
326 border: 1px solid rgba(86,61,124,.2);
331 /* Bootstrap code examples
332 -------------------------------------------------- */
337 padding: 45px 15px 15px;
338 margin: 0 -15px -1px;
339 background-color: #fafafa;
340 box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
341 border-color: #e5e5e5 #eee #eee;
345 /* Echo out a label for the example */
354 text-transform: uppercase;
358 /* Tweak display of the examples */
359 .bs-example + .prettyprint,
360 .bs-example + .highlight {
362 border-top-left-radius: 0;
363 border-top-right-radius: 0;
366 /* Tweak content of examples for optimum awesome */
367 .bs-example > p:last-child,
368 .bs-example > ul:last-child,
369 .bs-example > ol:last-child,
370 .bs-example > blockquote:last-child,
371 .bs-example > input:last-child,
372 .bs-example > select:last-child,
373 .bs-example > textarea:last-child,
374 .bs-example > .table:last-child,
375 .bs-example > .navbar:last-child
376 .bs-example > .jumbotron:last-child,
377 .bs-example > .alert:last-child,
378 .bs-example > .panel:last-child,
379 .bs-example > .list-group:last-child,
380 .bs-example > .well:last-child {
383 .bs-example > p > .close {
388 .bs-example-type .table td {
390 vertical-align: middle;
393 .bs-example-type .table td,
394 .bs-example-type .table th {
398 .bs-example-type .table tr:first-child td,
399 .bs-example-type .table tr:first-child th {
407 .bs-example-type h6 {
412 .bs-example.form-inline select,
413 .bs-example.form-inline input[type="text"],
414 .bs-example.form-inline input[type="password"] {
417 .bs-example-control-sizing select,
418 .bs-example-control-sizing input[type="text"] + input[type="text"] {
421 .bs-example-form .input-group {
426 .bs-example > .list-group {
430 /* Navbar examples */
431 .bs-example .navbar:last-child {
434 .bs-navbar-top-example,
435 .bs-navbar-bottom-example {
439 overflow: hidden; /* cut the drop shadows off */
441 .bs-navbar-top-example .navbar-fixed-top,
442 .bs-navbar-bottom-example .navbar-fixed-bottom {
447 .bs-navbar-top-example .navbar-fixed-top {
450 .bs-navbar-bottom-example .navbar-fixed-bottom {
453 .bs-navbar-top-example {
454 -webkit-border-radius: 0 0 4px 4px;
455 -moz-border-radius: 0 0 4px 4px;
456 border-radius: 0 0 4px 4px;
458 .bs-navbar-top-example:after {
461 -webkit-border-radius: 0 4px 0 4px;
462 -moz-border-radius: 0 4px 0 4px;
463 border-radius: 0 4px 0 4px;
465 .bs-navbar-bottom-example {
466 -webkit-border-radius: 4px 4px 0 0;
467 -moz-border-radius: 4px 4px 0 0;
468 border-radius: 4px 4px 0 0;
470 .bs-navbar-bottom-example .navbar {
476 background-color: #f5f5f5;
478 .bs-example-modal .modal {
487 .bs-example-modal .modal-dialog {
493 /* Example dropdowns */
494 .bs-example > .dropdown > .dropdown-menu,
495 .bs-example-submenu > .pull-left > .dropup > .dropdown-menu,
496 .bs-example-submenu > .pull-left > .dropdown > .dropdown-menu {
501 .bs-example-submenu {
504 .bs-example-submenu > .pull-left + .pull-left {
508 /* Example tabbable tabs */
509 .bs-example-tabs .nav-tabs {
514 .bs-example-tooltips {
519 .bs-example-popover {
520 padding-bottom: 24px;
521 background-color: #f9f9f9;
523 .bs-example-popover .popover {
534 -------------------------------------------------- */
546 -------------------------------------------------- */
548 /* Responsive (scrollable) doc tables */
549 @media (max-width: 768px) {
550 .bs-table-scrollable {
555 border: 1px solid #ddd;
557 .bs-table-scrollable .table {
561 .bs-table-scrollable .table th,
562 .bs-table-scrollable .table td {
565 .bs-table-scrollable .table th:first-child,
566 .bs-table-scrollable .table td:first-child {
569 .bs-table-scrollable .table th:last-child,
570 .bs-table-scrollable .table td:last-child {
573 .bs-table-scrollable .table tr:last-child th,
574 .bs-table-scrollable .table tr:last-child td {
579 /* Related: responsive utilities tables */
585 /* Utility classes table
586 ------------------------- */
588 .responsive-utilities th small {
593 .responsive-utilities tbody th {
596 .responsive-utilities td {
599 .responsive-utilities td.is-visible {
601 background-color: #dff0d8 !important;
603 .responsive-utilities td.is-hidden {
605 background-color: #f9f9f9 !important;
609 ------------------------- */
610 .responsive-utilities-test {
614 overflow: hidden; /* clear floats */
616 .responsive-utilities-test li {
621 .responsive-utilities-test li + li {
624 .responsive-utilities-test span {
632 .responsive-utilities-test.visible-on [class*="hidden"],
633 .responsive-utilities-test.hidden-on [class*="visible"] {
635 border: 1px solid #ddd;
637 .responsive-utilities-test.visible-on [class*="visible"],
638 .responsive-utilities-test.hidden-on [class*="hidden"] {
640 background-color: #dff0d8;
641 border: 1px solid #d6e9c6;
647 -------------------------------------------------- */
651 padding-bottom: 30px;
654 border-top: 1px solid #e5e5e5;
668 .footer-links li:first-child {
672 /* Social proof buttons from GitHub & Twitter */
677 display: inline-block;
682 .bs-social-buttons li {
683 display: inline-block;
686 .bs-social-buttons li + li {
689 .bs-social-buttons .twitter-follow-button {
690 width: 225px !important;
692 .bs-social-buttons .twitter-share-button {
693 width: 98px !important;
699 -------------------------------------------------- */
701 /* Pseudo :focus state for showing how it looks in the docs */
703 border-color: rgba(82,168,236,.8);
705 outline: thin dotted \9; /* IE6-9 */
706 -moz-box-shadow: 0 0 8px rgba(82,168,236,.6);
707 box-shadow: 0 0 8px rgba(82,168,236,.6);
710 /* Scrollspy demo on fixed height div */
721 background-color: #f7f7f9;
722 border: 1px solid #e1e1e8;
729 background-color: transparent;
733 .highlight pre code {
735 color: #333; /* Effectively the base text color */
737 .highlight pre .lineno {
738 display: inline-block;
746 /* Better spacing on download options in getting started */
747 .bs-docs-dl-options h4 {
752 /* Hide the top link initially */
758 /* Responsive variations
759 -------------------------------------------------- */
761 /* Hide code snippets on mobile devices */
762 @media screen and (max-width: 480px) {
769 @media screen and (min-width: 768px) {
771 /* Back to top link */
773 display: block; /* Unhide */
778 background-color: #eee;
783 text-decoration: none;
784 background-color: #999;
803 background-color: #fff;
806 border-radius: 4px 4px 0 0;
811 margin: 0 !important;
812 border: 1px solid #e5e5e5 !important;
816 /* Show the docs nav */
821 /* Tweak display of docs jumbotrons */
824 padding-bottom: 100px;
835 .bs-navbar-top-example .navbar-fixed-top,
836 .bs-navbar-bottom-example .navbar-fixed-bottom {
842 /* Tablets/desktops and up */
843 @media screen and (min-width: 992px) {
845 /* Widen the fixed sidebar */
847 .bs-sidebar.affix-bottom {
851 position: fixed; /* Undo the static from mobile-first approach */
854 .bs-sidebar.affix-bottom {
855 position: absolute; /* Undo the static from mobile-first approach */
857 .bs-sidebar.affix-bottom .bs-sidenav,
858 .bs-sidebar.affix .bs-sidenav {
870 padding: 15px !important;
871 width: 330px !important;
877 /* Large desktops and up */
878 @media screen and (min-width: 1200px) {
880 /* Widen the fixed sidebar again */
881 .bs-sidebar.affix-bottom,