1 /* Add additional stylesheets below
2 -------------------------------------------------- */
4 Bootstrap's documentation styles
5 Special styles for presenting Bootstrap's documentation and examples
11 -------------------------------------------------- */
18 /* Code in headings */
26 /* Tweak navbar brand link to be super sleek
27 -------------------------------------------------- */
33 /* Change the docs' brand */
34 body > .navbar .brand {
41 text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
42 -webkit-transition: all .2s linear;
43 -moz-transition: all .2s linear;
44 transition: all .2s linear;
46 body > .navbar .brand:hover {
47 text-decoration: none;
48 text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
53 -------------------------------------------------- */
55 /* padding for in-page bookmarks and fixed navbar */
59 section > .page-header,
76 background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
77 background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
78 background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
79 background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
86 -------------------------------------------------- */
89 ------------------------- */
95 text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.075);
96 background: #020031; /* Old browsers */
97 background: -moz-linear-gradient(45deg, #020031 0%, #6d3353 100%); /* FF3.6+ */
98 background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#020031), color-stop(100%,#6d3353)); /* Chrome,Safari4+ */
99 background: -webkit-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* Chrome10+,Safari5.1+ */
100 background: -o-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* Opera 11.10+ */
101 background: -ms-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* IE10+ */
102 background: linear-gradient(45deg, #020031 0%,#6d3353 100%); /* W3C */
103 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#020031', endColorstr='#6d3353',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
104 -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
105 -moz-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
106 box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
111 letter-spacing: -1px;
121 /* Link styles (used on .masthead-links as well) */
124 color: rgba(255,255,255,.5);
125 -webkit-transition: all .2s ease-in-out;
126 -moz-transition: all .2s ease-in-out;
127 transition: all .2s ease-in-out;
131 text-shadow: 0 0 10px rgba(255,255,255,.25);
134 /* Download button */
139 color: #fff; /* redeclare to override the `.jumbotron a` */
141 -webkit-border-radius: 6px;
142 -moz-border-radius: 6px;
144 -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
145 -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
146 box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
147 -webkit-transition: none;
148 -moz-transition: none;
151 .masthead .btn:hover {
152 -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
153 -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
154 box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
156 .masthead .btn:active {
157 -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
158 -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
159 box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
164 ------------------------- */
165 .jumbotron .container {
177 background: url(../img/bs-docs-masthead-pattern.png) repeat center center;
181 only screen and (-webkit-min-device-pixel-ratio: 2),
182 only screen and ( min--moz-device-pixel-ratio: 2),
183 only screen and ( -o-min-device-pixel-ratio: 2/1) {
186 background-size: 150px 150px;
191 /* Masthead (docs home)
192 ------------------------- */
194 padding: 70px 0 80px;
201 letter-spacing: -2px;
209 /* Textual links in masthead */
217 color: rgba(255,255,255,.25);
220 /* Social proof buttons from GitHub & Twitter */
224 background-color: #f5f5f5;
225 border-top: 1px solid #fff;
226 border-bottom: 1px solid #ddd;
229 /* Quick links on Home */
230 .bs-docs-social-buttons {
236 .bs-docs-social-buttons li {
237 display: inline-block;
244 /* Subhead (other pages)
245 ------------------------- */
248 border-bottom: 1px solid #ddd;
262 /* Marketing section of Overview
263 -------------------------------------------------- */
274 letter-spacing: -1px;
284 .marketing .marketing-byline {
300 -------------------------------------------------- */
306 border-top: 1px solid #e5e5e5;
307 background-color: #f5f5f5;
320 .footer-links li:first-child {
326 /* Special grid styles
327 -------------------------------------------------- */
333 .show-grid [class*="span"] {
334 background-color: #eee;
336 -webkit-border-radius: 3px;
337 -moz-border-radius: 3px;
342 .show-grid [class*="span"]:hover {
343 background-color: #ddd;
345 .show-grid .show-grid {
349 .show-grid .show-grid [class*="span"] {
352 .show-grid [class*="span"] [class*="span"] {
353 background-color: #ccc;
355 .show-grid [class*="span"] [class*="span"] [class*="span"] {
356 background-color: #999;
361 /* Mini layout previews
362 -------------------------------------------------- */
364 border: 1px solid #ddd;
365 -webkit-border-radius: 6px;
366 -moz-border-radius: 6px;
368 -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
369 -moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
370 box-shadow: 0 1px 2px rgba(0,0,0,.075);
373 .mini-layout .mini-layout-body,
374 .mini-layout.fluid .mini-layout-sidebar {
382 -webkit-border-radius: 3px;
383 -moz-border-radius: 3px;
386 .mini-layout .mini-layout-body {
387 background-color: #dceaf4;
391 .mini-layout.fluid .mini-layout-sidebar,
392 .mini-layout.fluid .mini-layout-header,
393 .mini-layout.fluid .mini-layout-body {
396 .mini-layout.fluid .mini-layout-sidebar {
397 background-color: #bbd8e9;
400 .mini-layout.fluid .mini-layout-body {
408 -------------------------------------------------- */
410 .download .page-header {
413 .page-header .toggle-all {
417 /* Space out h3s when following a section */
421 .download-builder input + h3,
422 .download-builder .checkbox + h3 {
426 /* Fields for variables */
427 .download-builder input[type=text] {
429 font-family: Menlo, Monaco, "Courier New", monospace;
433 .download-builder input[type=text]:focus {
434 background-color: #fff;
437 /* Custom, larger checkbox labels */
438 .download .checkbox {
439 padding: 6px 10px 6px 25px;
443 background-color: #f9f9f9;
444 -webkit-border-radius: 3px;
445 -moz-border-radius: 3px;
449 .download .checkbox:hover {
451 background-color: #f5f5f5;
453 .download .checkbox small {
458 /* Variables section */
463 /* Giant download button */
465 margin: 36px 0 108px;
488 -webkit-border-radius: 6px;
489 -moz-border-radius: 6px;
496 -------------------------------------------------- */
498 /* Make tables spaced out a bit more */
506 /* Example sites showcase */
522 /* Fake the :focus state to demo it */
524 border-color: rgba(82,168,236,.8);
525 -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
526 -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
527 box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
531 /* For input sizes, make them display block */
532 .docs-input-sizes select,
533 .docs-input-sizes input[type=text] {
539 ------------------------- */
550 background-color: rgba(255,0,0,.25);
554 ------------------------- */
555 .bootstrap-examples h4 {
558 .bootstrap-examples p {
562 .bootstrap-examples .thumbnail {
564 background-color: #fff;
569 /* Bootstrap code examples
570 -------------------------------------------------- */
576 padding: 39px 19px 14px;
578 background-color: #fff;
579 border: 1px solid #ddd;
580 -webkit-border-radius: 4px;
581 -moz-border-radius: 4px;
585 /* Echo out a label for the example */
586 .bs-docs-example:after {
594 background-color: #f5f5f5;
595 border: 1px solid #ddd;
597 -webkit-border-radius: 4px 0 4px 0;
598 -moz-border-radius: 4px 0 4px 0;
599 border-radius: 4px 0 4px 0;
602 /* Remove spacing between an example and it's code */
603 .bs-docs-example + .prettyprint {
609 ------------------------- */
610 .bs-docs-example > p:last-child {
613 .bs-docs-example .table,
614 .bs-docs-example .progress,
615 .bs-docs-example .well,
616 .bs-docs-example .alert,
617 .bs-docs-example .hero-unit,
618 .bs-docs-example .pagination,
619 .bs-docs-example .navbar,
620 .bs-docs-example > .nav,
621 .bs-docs-example blockquote {
624 .bs-docs-example .pagination {
627 .bs-navbar-top-example,
628 .bs-navbar-bottom-example {
632 overflow: hidden; /* cut the drop shadows off */
634 .bs-navbar-top-example .navbar-fixed-top,
635 .bs-navbar-bottom-example .navbar-fixed-bottom {
639 .bs-navbar-top-example {
640 -webkit-border-radius: 0 0 4px 4px;
641 -moz-border-radius: 0 0 4px 4px;
642 border-radius: 0 0 4px 4px;
644 .bs-navbar-top-example:after {
647 -webkit-border-radius: 0 4px 0 4px;
648 -moz-border-radius: 0 4px 0 4px;
649 border-radius: 0 4px 0 4px;
651 .bs-navbar-bottom-example {
652 -webkit-border-radius: 4px 4px 0 0;
653 -moz-border-radius: 4px 4px 0 0;
654 border-radius: 4px 4px 0 0;
656 .bs-navbar-bottom-example .navbar {
659 form.bs-docs-example {
660 padding-bottom: 19px;
664 .bs-docs-example-images img {
666 display: inline-block;
670 .bs-docs-tooltip-examples {
675 .bs-docs-tooltip-examples li {
681 .bs-docs-example-popover {
682 padding-bottom: 24px;
683 background-color: #f9f9f9;
685 .bs-docs-example-popover .popover {
694 .bs-docs-example-submenus {
697 .bs-docs-example-submenus > .pull-left + .pull-left {
700 .bs-docs-example-submenus .dropup > .dropdown-menu,
701 .bs-docs-example-submenus .dropdown > .dropdown-menu {
711 -------------------------------------------------- */
713 /* Utility classes table
714 ------------------------- */
715 .responsive-utilities th small {
720 .responsive-utilities tbody th {
723 .responsive-utilities td {
726 .responsive-utilities td.is-visible {
728 background-color: #dff0d8 !important;
730 .responsive-utilities td.is-hidden {
732 background-color: #f9f9f9 !important;
736 ------------------------- */
737 .responsive-utilities-test {
741 overflow: hidden; /* clear floats */
743 .responsive-utilities-test li {
753 border: 1px solid #ddd;
754 -webkit-border-radius: 4px;
755 -moz-border-radius: 4px;
758 .responsive-utilities-test li + li {
761 .responsive-utilities-test span {
767 -webkit-border-radius: 4px;
768 -moz-border-radius: 4px;
771 .responsive-utilities-test span {
773 background-color: #dff0d8;
774 border: 1px solid #d6e9c6;
780 -------------------------------------------------- */
786 background-color: #fff;
787 -webkit-border-radius: 6px;
788 -moz-border-radius: 6px;
790 -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065);
791 -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065);
792 box-shadow: 0 1px 4px rgba(0,0,0,.065);
794 .bs-docs-sidenav > li > a {
799 border: 1px solid #e5e5e5;
801 .bs-docs-sidenav > li:first-child > a {
802 -webkit-border-radius: 6px 6px 0 0;
803 -moz-border-radius: 6px 6px 0 0;
804 border-radius: 6px 6px 0 0;
806 .bs-docs-sidenav > li:last-child > a {
807 -webkit-border-radius: 0 0 6px 6px;
808 -moz-border-radius: 0 0 6px 6px;
809 border-radius: 0 0 6px 6px;
811 .bs-docs-sidenav > .active > a {
816 text-shadow: 0 1px 0 rgba(0,0,0,.15);
817 -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
818 -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
819 box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
822 .bs-docs-sidenav .icon-chevron-right {
828 .bs-docs-sidenav > li > a:hover {
829 background-color: #f5f5f5;
831 .bs-docs-sidenav a:hover .icon-chevron-right {
834 .bs-docs-sidenav .active .icon-chevron-right,
835 .bs-docs-sidenav .active a:hover .icon-chevron-right {
836 background-image: url(../img/glyphicons-halflings-white.png);
839 .bs-docs-sidenav.affix {
842 .bs-docs-sidenav.affix-bottom {
852 -------------------------------------------------- */
855 ------------------------- */
856 @media (min-width: 1200px) {
863 .bs-docs-sidenav > li > a {
864 width: 230px \9; /* Override the previous IE8-9 hack */
869 ------------------------- */
870 @media (max-width: 980px) {
872 body > .navbar-fixed-top .brand {
879 /* Inline-block quick links for more spacing */
881 display: inline-block;
885 /* When affixed, space properly */
895 ------------------------- */
896 @media (min-width: 768px) and (max-width: 979px) {
897 /* Remove any padding from the body */
901 /* Widen masthead and social buttons to fill body padding */
903 margin-top: -20px; /* Offset bottom margin on .navbar */
905 /* Adjust sidenav width */
910 .bs-docs-sidenav.affix {
916 ------------------------- */
917 @media (max-width: 767px) {
918 /* Remove any padding from the body */
923 /* Widen masthead and social buttons to fill body padding */
926 margin-top: -20px; /* Offset bottom margin on .navbar */
944 /* Space out the show-grid examples */
945 .show-grid [class*="span"] {
954 .bs-docs-sidenav.affix {
960 /* Unfloat the back to top link in footer */
973 ------------------------- */
974 @media (max-width: 480px) {
975 /* Remove padding above jumbotron */
980 /* Change up some type stuff */
985 /* Downsize the jumbotrons */
998 /* center align subhead text like the masthead */
1004 /* Marketing on home */
1012 /* center example sites */
1016 .example-sites > li {
1020 margin: 0 auto 18px;
1023 .example-sites .thumbnail > img {
1027 /* Do our best to make tables work in narrow viewports */
1029 white-space: normal;
1030 word-wrap: break-word;
1031 word-break: break-all;
1034 /* Examples: dropdowns */
1035 .bs-docs-example-submenus > .pull-left {
1039 .bs-docs-example-submenus > .pull-left,
1040 .bs-docs-example-submenus > .pull-left + .pull-left {
1043 .bs-docs-example-submenus p {
1046 .bs-docs-example-submenus .dropup > .dropdown-menu,
1047 .bs-docs-example-submenus .dropdown > .dropdown-menu {
1048 margin-bottom: 10px;
1053 /* Examples: modal */
1054 .modal-example .modal {
1062 /* Tighten up footer */
1065 padding-bottom: 20px;