2 * Bootstrap Docs (http://getbootstrap.com)
3 * Copyright 2011-2014 Twitter, Inc.
4 * Licensed under the Creative Commons Attribution 3.0 Unported License. For
5 * details, see http://creativecommons.org/licenses/by/3.0/.
10 * Bootstrap Documentation
11 * Special styles for presenting Bootstrap's documentation and code examples.
18 * Update the basics of our documents to prep for docs content.
22 position: relative; /* For scrollspy */
25 /* Keep code small in tables on account of limited space */
31 /* Inline code within headings retain the heading's background-color */
35 background-color: inherit;
38 /* Outline button for use within the docs */
41 background-color: transparent;
42 border-color: #563d7c;
48 background-color: #563d7c;
49 border-color: #563d7c;
52 /* Inverted outline button (white on dark) */
53 .btn-outline-inverse {
55 background-color: transparent;
56 border-color: #cdbfe3;
58 .btn-outline-inverse:hover,
59 .btn-outline-inverse:focus,
60 .btn-outline-inverse:active {
63 background-color: #fff;
67 /* Bootstrap "B" icon */
74 background-color: #563d7c;
77 .bs-docs-booticon-sm {
83 .bs-docs-booticon-lg {
89 .bs-docs-booticon-inverse {
91 background-color: #fff;
93 .bs-docs-booticon-outline {
94 background-color: transparent;
95 border: 1px solid #cdbfe3;
102 * Make it look a bit less "bare bones"
103 * Also includes focus suppression for the Chrome tabindex="-1" workaround
110 background-color: #6f5499;
114 #skippy .skiplink-text {
127 * Turn the `.navbar` at the top of the docs purple.
132 background-color: #fff;
135 .bs-home-nav .bs-nav-b {
138 .bs-docs-nav .navbar-brand,
139 .bs-docs-nav .navbar-nav > li > a {
143 .bs-docs-nav .navbar-nav > li > a:hover,
144 .bs-docs-nav .navbar-nav > .active > a,
145 .bs-docs-nav .navbar-nav > .active > a:hover {
147 background-color: #f9f9f9;
149 .bs-docs-nav .navbar-toggle .icon-bar {
150 background-color: #563d7c;
152 .bs-docs-nav .navbar-header .navbar-toggle {
155 .bs-docs-nav .navbar-header .navbar-toggle:hover,
156 .bs-docs-nav .navbar-header .navbar-toggle:focus {
157 background-color: #f9f9f9;
158 border-color: #f9f9f9;
165 * Separated section of content at the bottom of all pages, save the homepage.
170 padding-bottom: 40px;
174 border-top: 1px solid #e5e5e5;
176 .bs-docs-footer-links {
180 .bs-docs-footer-links li {
184 .bs-docs-footer-links li:first-child {
188 @media (min-width: 768px) {
198 * Twitter and GitHub social action buttons (for homepage and footer).
205 .bs-docs-social-buttons {
206 display: inline-block;
211 .bs-docs-social-buttons li {
212 display: inline-block;
216 .bs-docs-social-buttons .twitter-follow-button {
217 width: 225px !important;
219 .bs-docs-social-buttons .twitter-share-button {
220 width: 98px !important;
222 /* Style the GitHub buttons via CSS instead of inline attributes */
232 * Tweaks to the custom homepage and the masthead (main jumbotron).
235 /* Share masthead with page headers */
242 text-shadow: 0 1px 0 rgba(0,0,0,.1);
243 background-color: #6f5499;
244 background-image: -webkit-gradient(linear, left top, left bottom, from(#563d7c), to(#6f5499));
245 background-image: -webkit-linear-gradient(top, #563d7c 0%, #6f5499 100%);
246 background-image: -o-linear-gradient(top, #563d7c 0%, #6f5499 100%);
247 background-image: linear-gradient(to bottom, #563d7c 0%, #6f5499 100%);
248 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#563d7c', endColorstr='#6F5499', GradientType=0);
249 background-repeat: repeat-x;
252 /* Masthead (headings and download button) */
253 .bs-docs-masthead .bs-docs-booticon {
256 .bs-docs-masthead h1 {
261 .bs-docs-masthead .lead {
266 .bs-docs-masthead .version {
271 .bs-docs-masthead .btn {
277 @media (min-width: 480px) {
278 .bs-docs-masthead .btn {
283 @media (min-width: 768px) {
287 .bs-docs-masthead h1 {
290 .bs-docs-masthead .lead {
295 @media (min-width: 992px) {
296 .bs-docs-masthead .lead {
306 * Jumbotron-esque headers at the top of every page that's not the homepage.
323 .bs-docs-header .container {
327 @media (min-width: 768px) {
330 padding-bottom: 60px;
340 @media (min-width: 992px) {
351 * Single display ad that shows on all pages (except homepage) in page headers.
352 * The hella `!important` is required for any pre-set property.
356 width: auto !important;
357 height: auto !important;
358 padding: 20px !important;
359 margin: 30px -30px -31px !important;
360 overflow: hidden; /* clearfix */
361 font-size: 13px !important;
362 line-height: 16px !important;
364 background: transparent !important;
365 border: solid #866ab3 !important;
366 border-width: 1px 0 !important;
369 margin: 0 !important;
373 display: block !important;
374 float: none !important;
375 width: auto !important;
376 height: auto !important;
377 margin-left: 145px !important;
378 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
381 padding-top: 0 !important;
384 color: inherit !important;
385 text-align: left !important;
389 color: #fff !important;
391 .carbonad #azcarbon > img {
392 display: none; /* hide what I assume are tracking images */
395 @media (min-width: 480px) {
397 width: 330px !important;
398 margin: 20px auto !important;
399 border-width: 1px !important;
402 .bs-docs-masthead .carbonad {
403 margin: 50px auto 0 !important;
407 @media (min-width: 768px) {
409 margin-right: 0 !important;
410 margin-left: 0 !important;
414 @media (min-width: 992px) {
418 right: 15px; /* 15px instead of 0 since box-sizing */
419 width: 330px !important;
420 padding: 15px !important;
421 margin: 0 !important;
423 .bs-docs-masthead .carbonad {
430 * Homepage featurettes
432 * Reasons to use Bootstrap, entries from the Expo, and more.
435 .bs-docs-featurette {
437 padding-bottom: 40px;
442 background-color: #fff;
443 border-bottom: 1px solid #e5e5e5;
445 .bs-docs-featurette + .bs-docs-footer {
450 .bs-docs-featurette-title {
460 .bs-docs-featurette h3 {
465 .bs-docs-featurette-img {
470 .bs-docs-featurette-img:hover {
472 text-decoration: none;
474 .bs-docs-featurette-img img {
479 @media (min-width: 480px) {
480 .bs-docs-featurette .img-responsive {
484 @media (min-width: 768px) {
485 .bs-docs-featurette {
487 padding-bottom: 100px;
489 .bs-docs-featurette-title {
492 .bs-docs-featurette .lead {
497 .bs-docs-featurette .img-responsive {
506 * Homepage thumbnails from the Expo.
509 .bs-docs-featured-sites {
513 .bs-docs-featured-sites .col-xs-6 {
516 .bs-docs-featured-sites .img-responsive {
520 @media (min-width: 768px) {
521 .bs-docs-featured-sites .col-sm-3:first-child img {
522 border-top-left-radius: 4px;
523 border-bottom-left-radius: 4px;
525 .bs-docs-featured-sites .col-sm-3:last-child img {
526 border-top-right-radius: 4px;
527 border-bottom-right-radius: 4px;
535 * Linked docs examples.
538 .bs-examples .thumbnail {
548 @media (max-width: 480px) {
553 .bs-examples > [class^="col-"] {
563 * Scrollspy and affixed enhanced navigation to highlight sections and secondary
564 * sections of docs content.
567 /* By default it's not affixed in mobile views, so undo that */
568 .bs-docs-sidebar.affix {
571 @media (min-width: 768px) {
577 /* First level of nav */
583 /* All levels of nav */
584 .bs-docs-sidebar .nav > li > a {
591 .bs-docs-sidebar .nav > li > a:hover,
592 .bs-docs-sidebar .nav > li > a:focus {
595 text-decoration: none;
596 background-color: transparent;
597 border-left: 1px solid #563d7c;
599 .bs-docs-sidebar .nav > .active > a,
600 .bs-docs-sidebar .nav > .active:hover > a,
601 .bs-docs-sidebar .nav > .active:focus > a {
605 background-color: transparent;
606 border-left: 2px solid #563d7c;
609 /* Nav: second level (shown on .active) */
610 .bs-docs-sidebar .nav .nav {
611 display: none; /* Hide by default, but at >768px, show it */
612 padding-bottom: 10px;
614 .bs-docs-sidebar .nav .nav > li > a {
621 .bs-docs-sidebar .nav .nav > li > a:hover,
622 .bs-docs-sidebar .nav .nav > li > a:focus {
625 .bs-docs-sidebar .nav .nav > .active > a,
626 .bs-docs-sidebar .nav .nav > .active:hover > a,
627 .bs-docs-sidebar .nav .nav > .active:focus > a {
632 /* Back to top (hidden on mobile) */
634 .bs-docs-theme-toggle {
644 .bs-docs-theme-toggle:hover {
646 text-decoration: none;
648 .bs-docs-theme-toggle {
652 @media (min-width: 768px) {
654 .bs-docs-theme-toggle {
659 /* Show and affix the side nav when space allows it */
660 @media (min-width: 992px) {
661 .bs-docs-sidebar .nav > .active > ul {
664 /* Widen the fixed sidebar */
665 .bs-docs-sidebar.affix,
666 .bs-docs-sidebar.affix-bottom {
669 .bs-docs-sidebar.affix {
670 position: fixed; /* Undo the static from mobile first approach */
673 .bs-docs-sidebar.affix-bottom {
674 position: absolute; /* Undo the static from mobile first approach */
676 .bs-docs-sidebar.affix-bottom .bs-docs-sidenav,
677 .bs-docs-sidebar.affix .bs-docs-sidenav {
682 @media (min-width: 1200px) {
683 /* Widen the fixed sidebar again */
684 .bs-docs-sidebar.affix-bottom,
685 .bs-docs-sidebar.affix {
694 * Content blocks for each component or feature.
697 /* Space things out */
701 .bs-docs-section:last-child {
714 * Not quite alerts, but custom and helpful notes for folks reading the docs.
715 * Requires a base and modifier class.
718 /* Common styles for all types */
722 border: 1px solid #eee;
723 border-left-width: 5px;
730 .bs-callout p:last-child {
737 /* Tighten up space between multiple callouts */
738 .bs-callout + .bs-callout {
744 border-left-color: #ce4844;
746 .bs-callout-danger h4 {
749 .bs-callout-warning {
750 border-left-color: #aa6708;
752 .bs-callout-warning h4 {
756 border-left-color: #1b809e;
758 .bs-callout-info h4 {
766 * Color swatches and associated values for our grayscale and brand colors.
771 overflow: hidden; /* clearfix */
781 @media (min-width: 768px) {
788 /* Framework colors */
789 .color-swatches .gray-darker {
790 background-color: #222;
792 .color-swatches .gray-dark {
793 background-color: #333;
795 .color-swatches .gray {
796 background-color: #555;
798 .color-swatches .gray-light {
799 background-color: #999;
801 .color-swatches .gray-lighter {
802 background-color: #eee;
804 .color-swatches .brand-primary {
805 background-color: #337ab7;
807 .color-swatches .brand-success {
808 background-color: #5cb85c;
810 .color-swatches .brand-warning {
811 background-color: #f0ad4e;
813 .color-swatches .brand-danger {
814 background-color: #d9534f;
816 .color-swatches .brand-info {
817 background-color: #5bc0de;
821 .color-swatches .bs-purple {
822 background-color: #563d7c;
824 .color-swatches .bs-purple-light {
825 background-color: #c7bfd3;
827 .color-swatches .bs-purple-lighter {
828 background-color: #e5e1ea;
830 .color-swatches .bs-gray {
831 background-color: #f9f9f9;
838 * Avatars, names, and usernames for core team.
841 .bs-team .team-member {
845 .bs-team .team-member:hover {
847 text-decoration: none;
849 .bs-team .github-btn {
864 * Wall of Browser Bugs
866 * Better display for the responsive table on the Wall of Browser Bugs.
869 .bs-docs-browser-bugs td p {
873 .bs-docs-browser-bugs th:first-child {
881 * Highlight the grid columns within the docs so folks can see their padding,
882 * alignment, sizing, etc.
888 .show-grid [class^="col-"] {
890 padding-bottom: 10px;
891 background-color: #eee;
892 background-color: rgba(86,61,124,.15);
893 border: 1px solid #ddd;
894 border: 1px solid rgba(86,61,124,.2);
901 * Isolated sections of example content for each component or feature. Usually
902 * followed by a code snippet.
907 padding: 45px 15px 15px;
908 margin: 0 -15px 15px;
909 border-color: #e5e5e5 #eee #eee;
912 -webkit-box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
913 box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
915 /* Echo out a label for the example */
923 text-transform: uppercase;
928 .bs-example-padded-bottom {
929 padding-bottom: 24px;
932 /* Tweak display of the code snippets when following an example */
933 .bs-example + .highlight,
934 .bs-example + .zero-clipboard + .highlight {
935 margin: -15px -15px 15px;
936 border-width: 0 0 1px;
940 /* Make the examples and snippets not full-width */
941 @media (min-width: 768px) {
945 background-color: #fff;
948 border-radius: 4px 4px 0 0;
949 -webkit-box-shadow: none;
952 .bs-example + .highlight,
953 .bs-example + .zero-clipboard + .highlight {
958 border-bottom-right-radius: 4px;
959 border-bottom-left-radius: 4px;
961 .bs-example-standalone {
966 /* Undo width of container */
967 .bs-example .container {
971 /* Tweak content of examples for optimum awesome */
972 .bs-example > p:last-child,
973 .bs-example > ul:last-child,
974 .bs-example > ol:last-child,
975 .bs-example > blockquote:last-child,
976 .bs-example > .form-control:last-child,
977 .bs-example > .table:last-child,
978 .bs-example > .navbar:last-child,
979 .bs-example > .jumbotron:last-child,
980 .bs-example > .alert:last-child,
981 .bs-example > .panel:last-child,
982 .bs-example > .list-group:last-child,
983 .bs-example > .well:last-child,
984 .bs-example > .progress:last-child,
985 .bs-example > .table-responsive:last-child > .table {
988 .bs-example > p > .close {
993 .bs-example-type .table .type-info {
995 vertical-align: middle;
997 .bs-example-type .table td {
1001 .bs-example-type .table tr:first-child td {
1004 .bs-example-type h1,
1005 .bs-example-type h2,
1006 .bs-example-type h3,
1007 .bs-example-type h4,
1008 .bs-example-type h5,
1009 .bs-example-type h6 {
1013 /* Contextual background colors */
1014 .bs-example-bg-classes p {
1019 .bs-example > .img-circle,
1020 .bs-example > .img-rounded,
1021 .bs-example > .img-thumbnail {
1026 .bs-example > .table-responsive > .table {
1027 background-color: #fff;
1032 .bs-example > .btn-group {
1036 .bs-example > .btn-toolbar + .btn-toolbar {
1041 .bs-example-control-sizing select,
1042 .bs-example-control-sizing input[type="text"] + input[type="text"] {
1045 .bs-example-form .input-group {
1046 margin-bottom: 10px;
1048 .bs-example > textarea.form-control {
1053 .bs-example > .list-group {
1058 .bs-example .navbar:last-child {
1061 .bs-navbar-top-example,
1062 .bs-navbar-bottom-example {
1065 overflow: hidden; /* cut the drop shadows off */
1067 .bs-navbar-top-example .navbar-header,
1068 .bs-navbar-bottom-example .navbar-header {
1071 .bs-navbar-top-example .navbar-fixed-top,
1072 .bs-navbar-bottom-example .navbar-fixed-bottom {
1077 .bs-navbar-top-example {
1078 padding-bottom: 45px;
1080 .bs-navbar-top-example:after {
1084 .bs-navbar-top-example .navbar-fixed-top {
1087 .bs-navbar-bottom-example {
1090 .bs-navbar-bottom-example .navbar-fixed-bottom {
1093 .bs-navbar-bottom-example .navbar {
1096 @media (min-width: 768px) {
1097 .bs-navbar-top-example .navbar-fixed-top,
1098 .bs-navbar-bottom-example .navbar-fixed-bottom {
1104 .bs-example .pagination {
1106 margin-bottom: 10px;
1110 .bs-example > .pager {
1114 /* Example modals */
1116 background-color: #f5f5f5;
1118 .bs-example-modal .modal {
1127 .bs-example-modal .modal-dialog {
1133 /* Example dropdowns */
1134 .bs-example > .dropdown > .dropdown-toggle {
1137 .bs-example > .dropdown > .dropdown-menu {
1144 /* Example tabbable tabs */
1145 .bs-example-tabs .nav-tabs {
1146 margin-bottom: 15px;
1150 .bs-example-tooltips {
1153 .bs-example-tooltips > .btn {
1157 .bs-example-tooltip .tooltip {
1159 display: inline-block;
1165 .bs-example-popover {
1166 padding-bottom: 24px;
1167 background-color: #f9f9f9;
1169 .bs-example-popover .popover {
1177 /* Scrollspy demo on fixed height div */
1178 .scrollspy-example {
1185 .bs-example > .nav-pills-stacked-example {
1189 /* Simple collapse example */
1190 #collapseExample .well {
1194 /* Don't wrap event names in Events tables in JS plugin docs */
1195 .bs-events-table > thead > tr > th:first-child,
1196 .bs-events-table > tbody > tr > td:first-child {
1197 white-space: nowrap;
1200 .bs-events-table > thead > tr > th:first-child {
1204 .js-options-table > thead > tr > th:nth-child(1),
1205 .js-options-table > thead > tr > th:nth-child(2) {
1209 .js-options-table > thead > tr > th:nth-child(3) {
1216 * Generated via Pygments and Jekyll, these are snippets of HTML, CSS, and JS.
1221 margin-bottom: 14px;
1222 background-color: #f7f7f9;
1223 border: 1px solid #e1e1e8;
1231 white-space: nowrap;
1232 background-color: transparent;
1235 .highlight pre code {
1237 color: #333; /* Effectively the base text color */
1239 .highlight pre code:first-child {
1240 display: inline-block;
1241 padding-right: 45px;
1248 * Generate a set of tests to show the responsive utilities in action.
1251 /* Responsive (scrollable) doc tables */
1252 .table-responsive .highlight pre {
1253 white-space: normal;
1256 /* Utility classes table */
1258 .responsive-utilities th small {
1260 font-weight: normal;
1263 .responsive-utilities tbody th {
1264 font-weight: normal;
1266 .responsive-utilities td {
1269 .responsive-utilities td.is-visible {
1271 background-color: #dff0d8 !important;
1273 .responsive-utilities td.is-hidden {
1275 background-color: #f9f9f9 !important;
1278 /* Responsive tests */
1279 .responsive-utilities-test {
1282 .responsive-utilities-test .col-xs-6 {
1283 margin-bottom: 10px;
1285 .responsive-utilities-test span {
1294 .visible-on .col-xs-6 .hidden-xs,
1295 .visible-on .col-xs-6 .hidden-sm,
1296 .visible-on .col-xs-6 .hidden-md,
1297 .visible-on .col-xs-6 .hidden-lg,
1298 .hidden-on .col-xs-6 .hidden-xs,
1299 .hidden-on .col-xs-6 .hidden-sm,
1300 .hidden-on .col-xs-6 .hidden-md,
1301 .hidden-on .col-xs-6 .hidden-lg {
1303 border: 1px solid #ddd;
1305 .visible-on .col-xs-6 .visible-xs-block,
1306 .visible-on .col-xs-6 .visible-sm-block,
1307 .visible-on .col-xs-6 .visible-md-block,
1308 .visible-on .col-xs-6 .visible-lg-block,
1309 .hidden-on .col-xs-6 .visible-xs-block,
1310 .hidden-on .col-xs-6 .visible-sm-block,
1311 .hidden-on .col-xs-6 .visible-md-block,
1312 .hidden-on .col-xs-6 .visible-lg-block {
1314 background-color: #dff0d8;
1315 border: 1px solid #d6e9c6;
1322 * Special styles for displaying the icons and their classes in the docs.
1326 margin: 0 -10px 20px;
1329 .bs-glyphicons-list {
1341 background-color: #f9f9f9;
1342 border: 1px solid #fff;
1344 .bs-glyphicons .glyphicon {
1346 margin-bottom: 10px;
1349 .bs-glyphicons .glyphicon-class {
1352 word-wrap: break-word; /* Help out IE10+ with class names */
1354 .bs-glyphicons li:hover {
1356 background-color: #563d7c;
1359 @media (min-width: 768px) {
1374 * Since this is so form control heavy, we have quite a few styles to customize
1375 * the display of inputs, headings, and more. Also included are all the download
1376 * buttons and actions.
1379 .bs-customizer .toggle {
1384 /* Headings and form contrls */
1385 .bs-customizer label {
1402 .bs-customizer .bs-callout h4 {
1403 margin-top: 0; /* lame, but due to specificity we have to duplicate */
1406 .bs-customizer input[type="text"] {
1407 font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
1408 background-color: #fafafa;
1410 .bs-customizer .help-block {
1415 /* For the variables, use regular weight */
1416 #less-section label {
1417 font-weight: normal;
1421 .bs-customize-download .btn-outline {
1425 /* Error handling */
1426 .bs-customizer-alert {
1434 background-color: #d9534f;
1435 border-bottom: 1px solid #b94441;
1436 -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
1437 box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
1439 .bs-customizer-alert .close {
1443 .bs-customizer-alert p {
1446 .bs-customizer-alert .glyphicon {
1449 .bs-customizer-alert pre {
1452 background-color: #a83c3a;
1453 border-color: #973634;
1454 -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
1455 box-shadow: inset 0 2px 4px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
1461 margin-bottom: 20px;
1464 border: 2px dashed #eee;
1467 .bs-dropzone .import-header {
1470 .bs-dropzone .glyphicon-download-alt {
1476 .bs-dropzone .lead {
1477 margin-bottom: 10px;
1478 font-weight: normal;
1481 /*.bs-dropzone*/ #import-manual-trigger {
1484 .bs-dropzone p:last-child {
1491 * Extra styles for displaying wordmarks, logos, etc.
1494 /* Logo series wrapper */
1498 margin-bottom: 15px;
1501 background-color: #f9f9f9;
1505 /* Individual items */
1510 .bs-brand-item + .bs-brand-item {
1511 border-top: 1px solid #fff;
1513 .bs-brand-logos .inverse {
1515 background-color: #563d7c;
1518 /* Heading content within */
1524 .bs-brand-item .bs-docs-booticon {
1529 /* Make the icons stand out on what is/isn't okay */
1530 .bs-brand-item .glyphicon {
1533 margin: 10px auto -10px;
1538 .bs-brand-item .glyphicon-ok {
1539 background-color: #5cb85c;
1541 .bs-brand-item .glyphicon-remove {
1542 background-color: #d9534f;
1545 @media (min-width: 768px) {
1547 display: table-cell;
1550 .bs-brand-item + .bs-brand-item {
1552 border-left: 1px solid #fff;
1561 * ZeroClipboard styles
1578 background-color: #fff;
1579 border: 1px solid #e1e1e8;
1580 border-radius: 0 4px 0 4px;
1582 .btn-clipboard-hover {
1584 background-color: #563d7c;
1585 border-color: #563d7c;
1588 @media (min-width: 768px) {
1592 .bs-example + .zero-clipboard .btn-clipboard {
1594 border-top-right-radius: 0;
1602 * Odds and ends for optimum docs display.
1605 /* Pseudo :focus state for showing how it looks in the docs */
1607 border-color: rgb(204,204,204); /* Restate unfocused value to make CSSLint happy that there's a pre-CSS3 fallback*/
1608 border-color: rgba(82,168,236,.8);
1610 outline: thin dotted \9; /* IE6-9 */
1611 -webkit-box-shadow: 0 0 8px rgba(82,168,236,.6);
1612 box-shadow: 0 0 8px rgba(82,168,236,.6);