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;
26 background-color: #563d7c;
27 border-color: #563d7c;
33 background-color: transparent;
34 border-color: #cdbfe3;
40 background-color: #fff;
44 /* Temp CSS until RC2 */
45 .bs-customize-placeholder {
46 margin-bottom: -100px;
49 background-color: #f5f5f5;
54 -------------------------------------------------- */
57 background-color: #563d7c;
58 border-color: #463265;
60 .bs-docs-nav .navbar-collapse {
61 border-color: #463265;
63 .bs-docs-nav .navbar-brand {
66 .bs-docs-nav .navbar-nav > li > a {
69 .bs-docs-nav .navbar-nav > li > a:hover {
72 .bs-docs-nav .navbar-nav > .active > a,
73 .bs-docs-nav .navbar-nav > .active > a:hover {
75 background-color: #463265;
77 .bs-docs-nav .navbar-toggle {
78 border-color: #563d7c;
80 .bs-docs-nav .navbar-toggle:hover {
81 background-color: #463265;
82 border-color: #463265;
85 /* Old docs callout */
89 background-color: #fafafa;
90 border-bottom: 1px solid #e5e5e5;
95 .bs-docs-home .bs-old-docs {
100 background-color: transparent;
101 border-color: transparent;
103 .bs-docs-home .bs-old-docs a {
110 background-color: #563d7c;
115 -------------------------------------------------- */
128 /* Download button */
129 .bs-masthead .btn-outline {
148 .bs-masthead-links li {
152 .bs-masthead-links li + li {
155 .bs-masthead-links a {
161 /* Customize and Download button
162 -------------------------------------------------- */
164 .bs-customizer .toggle {
167 .bs-customizer label {
180 .bs-customizer input[type="text"] {
181 font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
182 background-color: #fafafa;
184 .bs-customizer .help-block {
188 .bs-customize-download {
192 #less-section label {
198 /* Docs pages and sections
199 -------------------------------------------------- */
203 padding: 30px 30px 40px;
207 border-bottom: 1px solid #e5e5e5;
216 .bs-header .container {
220 .bs-docs-section + .bs-docs-section {
224 /* Ads in page headers */
226 width: auto !important;
227 margin: 50px -30px -40px !important;
228 padding: 20px !important;
229 overflow: hidden; /* clearfix */
230 height: auto !important;
231 font-size: 13px !important;
232 line-height: 16px !important;
234 background: none !important;
235 border: 0 !important;
236 border-top: 1px solid #e5e5e5 !important;
239 margin: 0 !important;
243 float: none !important;
244 display: block !important;
245 width: auto !important;
246 height: auto !important;
247 margin-left: 145px !important;
248 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
251 padding-top: 0 !important;
254 text-align: left !important;
256 .carbonad #azcarbon > img {
257 display: none; /* hide what I assume are tracking images */
263 -------------------------------------------------- */
265 /* By default it's not affixed in mobile views, so undo that */
270 /* First level of nav */
275 padding-bottom: 10px;
276 text-shadow: 0 1px 0 #fff;
277 background-color: #f7f5fa;
281 /* All levels of nav */
282 .bs-sidebar .nav > li > a {
287 .bs-sidebar .nav > li > a:hover,
288 .bs-sidebar .nav > li > a:focus {
289 text-decoration: none;
290 background-color: #e5e3e9;
291 border-right: 1px solid #dbd8e0;
293 .bs-sidebar .nav > .active > a,
294 .bs-sidebar .nav > .active:hover > a,
295 .bs-sidebar .nav > .active:focus > a {
298 background-color: transparent;
299 border-right: 1px solid #563d7c;
302 /* Nav: second level (shown on .active) */
303 .bs-sidebar .nav .nav {
304 display: none; /* Hide by default, but at >768px, show it */
307 .bs-sidebar .nav .nav > li > a {
316 /* Side notes for calling out things
317 -------------------------------------------------- */
319 /* Base styles (regardless of theme) */
322 padding: 15px 30px 15px 15px;
323 border-left: 5px solid #eee;
328 .bs-callout p:last-child {
332 .bs-callout .highlight {
333 background-color: #fff;
336 /* Themes for different contexts */
338 background-color: #fcf2f2;
339 border-color: #dFb5b4;
341 .bs-callout-warning {
342 background-color: #fefbed;
343 border-color: #f1e7bc;
346 background-color: #f0f7fd;
347 border-color: #d0e3f0;
352 -------------------------------------------------- */
363 /* Special grid styles
364 -------------------------------------------------- */
369 .show-grid [class^="col-"] {
371 padding-bottom: 10px;
372 background-color: #eee;
373 border: 1px solid #ddd;
374 background-color: rgba(86,61,124,.15);
375 border: 1px solid rgba(86,61,124,.2);
380 /* Bootstrap code examples
381 -------------------------------------------------- */
386 padding: 45px 15px 15px;
387 margin: 0 -15px 15px;
388 background-color: #fafafa;
389 box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
390 border-color: #e5e5e5 #eee #eee;
394 /* Echo out a label for the example */
403 text-transform: uppercase;
407 /* Tweak display of the examples */
408 .bs-example + .highlight {
409 margin: -15px -15px 15px;
411 border-width: 0 0 1px;
414 /* Tweak content of examples for optimum awesome */
415 .bs-example > p:last-child,
416 .bs-example > ul:last-child,
417 .bs-example > ol:last-child,
418 .bs-example > blockquote:last-child,
419 .bs-example > .form-control:last-child,
420 .bs-example > .table:last-child,
421 .bs-example > .navbar:last-child,
422 .bs-example > .jumbotron:last-child,
423 .bs-example > .alert:last-child,
424 .bs-example > .panel:last-child,
425 .bs-example > .list-group:last-child,
426 .bs-example > .well:last-child,
427 .bs-example > .progress:last-child {
430 .bs-example > p > .close {
435 .bs-example-type .table td:last-child {
437 vertical-align: middle;
439 .bs-example-type .table td {
443 .bs-example-type .table tr:first-child td {
451 .bs-example-type h6 {
456 .bs-example > .img-circle,
457 .bs-example > .img-rounded,
458 .bs-example > .img-thumbnail {
464 .bs-example > .btn-group {
468 .bs-example > .btn-toolbar + .btn-toolbar {
473 .bs-example-control-sizing select,
474 .bs-example-control-sizing input[type="text"] + input[type="text"] {
477 .bs-example-form .input-group {
480 .bs-example > textarea.form-control {
485 .bs-example > .list-group {
489 /* Navbar examples */
490 .bs-example .navbar:last-child {
493 .bs-navbar-top-example,
494 .bs-navbar-bottom-example {
497 overflow: hidden; /* cut the drop shadows off */
499 .bs-navbar-top-example .navbar-fixed-top,
500 .bs-navbar-bottom-example .navbar-fixed-bottom {
505 .bs-navbar-top-example {
506 padding-bottom: 45px;
508 .bs-navbar-top-example:after {
512 .bs-navbar-top-example .navbar-fixed-top {
515 .bs-navbar-bottom-example {
518 .bs-navbar-bottom-example .navbar-fixed-bottom {
521 .bs-navbar-bottom-example .navbar {
525 @media (min-width: 768px) {
526 .bs-navbar-top-example {
527 border-radius: 0 0 4px 4px;
529 .bs-navbar-bottom-example {
530 border-radius: 4px 4px 0 0;
535 .bs-example .pagination {
542 background-color: #f5f5f5;
544 .bs-example-modal .modal {
553 .bs-example-modal .modal-dialog {
559 /* Example dropdowns */
560 .bs-example > .dropdown > .dropdown-menu {
566 /* Example tabbable tabs */
567 .bs-example-tabs .nav-tabs {
572 .bs-example-tooltips {
575 .bs-example-tooltips > .btn {
581 .bs-example-popover {
582 padding-bottom: 24px;
583 background-color: #f9f9f9;
585 .bs-example-popover .popover {
595 -------------------------------------------------- */
597 /* Responsive (scrollable) doc tables */
598 @media (max-width: 768px) {
599 .bs-table-scrollable {
604 border: 1px solid #ddd;
606 .bs-table-scrollable .table {
610 .bs-table-scrollable .table th,
611 .bs-table-scrollable .table td {
614 .bs-table-scrollable .table th:first-child,
615 .bs-table-scrollable .table td:first-child {
618 .bs-table-scrollable .table th:last-child,
619 .bs-table-scrollable .table td:last-child {
622 .bs-table-scrollable .table tr:last-child th,
623 .bs-table-scrollable .table tr:last-child td {
627 .bs-table-scrollable .highlight pre {
632 /* Related: responsive utilities tables */
638 /* Utility classes table
639 ------------------------- */
641 .responsive-utilities th small {
646 .responsive-utilities tbody th {
649 .responsive-utilities td {
652 .responsive-utilities td.is-visible {
654 background-color: #dff0d8 !important;
656 .responsive-utilities td.is-hidden {
658 background-color: #f9f9f9 !important;
662 ------------------------- */
663 .responsive-utilities-test {
666 .responsive-utilities-test .col-xs-6 {
669 .responsive-utilities-test span {
677 .visible-on .col-xs-6 .hidden-xs,
678 .visible-on .col-xs-6 .hidden-sm,
679 .visible-on .col-xs-6 .hidden-md,
680 .visible-on .col-xs-6 .hidden-lg,
681 .hidden-on .col-xs-6 .visible-xs,
682 .hidden-on .col-xs-6 .visible-sm,
683 .hidden-on .col-xs-6 .visible-md,
684 .hidden-on .col-xs-6 .visible-lg {
686 border: 1px solid #ddd;
688 .visible-on .col-xs-6 .visible-xs,
689 .visible-on .col-xs-6 .visible-sm,
690 .visible-on .col-xs-6 .visible-md,
691 .visible-on .col-xs-6 .visible-lg,
692 .hidden-on .col-xs-6 .hidden-xs,
693 .hidden-on .col-xs-6 .hidden-sm,
694 .hidden-on .col-xs-6 .hidden-md,
695 .hidden-on .col-xs-6 .hidden-lg {
697 background-color: #dff0d8;
698 border: 1px solid #d6e9c6;
704 -------------------------------------------------- */
708 padding-bottom: 30px;
711 border-top: 1px solid #e5e5e5;
725 .footer-links li:first-child {
729 /* Social proof buttons from GitHub & Twitter */
734 display: inline-block;
739 .bs-social-buttons li {
740 display: inline-block;
744 .bs-social-buttons .twitter-follow-button {
745 width: 225px !important;
747 .bs-social-buttons .twitter-share-button {
748 width: 98px !important;
750 /* Style the GitHub buttons via CSS instead of inline attributes */
759 -------------------------------------------------- */
761 /* Pseudo :focus state for showing how it looks in the docs */
763 border-color: rgba(82,168,236,.8);
765 outline: thin dotted \9; /* IE6-9 */
766 -moz-box-shadow: 0 0 8px rgba(82,168,236,.6);
767 box-shadow: 0 0 8px rgba(82,168,236,.6);
770 /* Scrollspy demo on fixed height div */
781 background-color: #f7f7f9;
782 border: 1px solid #e1e1e8;
789 background-color: transparent;
793 .highlight pre code {
795 color: #333; /* Effectively the base text color */
797 .highlight pre .lineno {
798 display: inline-block;
806 /* Better spacing on download options in getting started */
807 .bs-docs-dl-options h4 {
813 /* Responsive variations
814 -------------------------------------------------- */
816 /* Hide code snippets on mobile devices */
817 @media screen and (max-width: 480px) {
824 @media screen and (min-width: 768px) {
838 background-color: #fff;
841 border-radius: 4px 4px 0 0;
844 .bs-example + .prettyprint,
845 .bs-example + .highlight {
850 border-bottom-left-radius: 4px;
851 border-bottom-right-radius: 4px;
859 margin: 0 !important;
860 border: 1px solid #e5e5e5 !important;
864 /* Show the docs nav */
869 /* Tweak display of docs jumbotrons */
872 padding-bottom: 140px;
883 .bs-navbar-top-example .navbar-fixed-top,
884 .bs-navbar-bottom-example .navbar-fixed-bottom {
890 /* Tablets/desktops and up */
891 @media screen and (min-width: 992px) {
900 padding: 15px !important;
901 width: 330px !important;
905 /* Show the hidden subnavs when space allows it */
906 .bs-sidebar .nav > .active > ul {
909 /* Widen the fixed sidebar */
911 .bs-sidebar.affix-bottom {
915 position: fixed; /* Undo the static from mobile-first approach */
918 .bs-sidebar.affix-bottom {
919 position: absolute; /* Undo the static from mobile-first approach */
921 .bs-sidebar.affix-bottom .bs-sidenav,
922 .bs-sidebar.affix .bs-sidenav {
928 /* Large desktops and up */
929 @media screen and (min-width: 1200px) {
931 /* Widen the fixed sidebar again */
932 .bs-sidebar.affix-bottom,