0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Bootstrap/docs/assets/css/docs.css

1068 lines
22 KiB
CSS
Raw Normal View History

2011-05-05 08:49:31 +02:00
/* Add additional stylesheets below
-------------------------------------------------- */
/*
Bootstrap's documentation styles
Special styles for presenting Bootstrap's documentation and examples
2011-05-05 08:49:31 +02:00
*/
2012-06-07 19:20:52 +02:00
2011-05-05 08:49:31 +02:00
/* Body and structure
-------------------------------------------------- */
2012-06-07 19:20:52 +02:00
2011-05-05 08:49:31 +02:00
body {
position: relative;
padding-top: 40px;
2011-05-05 08:49:31 +02:00
}
/* Code in headings */
h3 code {
font-size: 14px;
font-weight: normal;
}
2012-06-06 04:53:54 +02:00
2012-06-07 19:20:52 +02:00
2012-06-08 07:10:36 +02:00
/* Tweak navbar brand link to be super sleek
-------------------------------------------------- */
body > .navbar {
font-size: 13px;
2012-07-30 08:51:18 +02:00
}
2012-06-29 06:06:54 +02:00
/* Change the docs' brand */
body > .navbar .brand {
2012-06-08 07:10:36 +02:00
padding-right: 0;
padding-left: 0;
margin-left: 20px;
float: right;
font-weight: bold;
color: #000;
text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
-webkit-transition: all .2s linear;
-moz-transition: all .2s linear;
transition: all .2s linear;
}
body > .navbar .brand:hover {
2012-06-08 07:10:36 +02:00
text-decoration: none;
text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
2012-06-08 07:10:36 +02:00
}
/* Sections
-------------------------------------------------- */
2012-06-07 19:20:52 +02:00
/* padding for in-page bookmarks and fixed navbar */
section {
padding-top: 30px;
}
section > .page-header,
section > .lead {
color: #5a5a5a;
}
section > ul li {
margin-bottom: 5px;
}
2012-06-07 19:20:52 +02:00
/* Separators (hr) */
.bs-docs-separator {
margin: 40px 0 39px;
}
/* Faded out hr */
hr.soften {
height: 1px;
2012-07-05 08:31:30 +02:00
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));
background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
border: 0;
}
2012-06-29 06:06:54 +02:00
/* Jumbotrons
-------------------------------------------------- */
2012-06-07 19:20:52 +02:00
/* Base class
------------------------- */
.jumbotron {
position: relative;
padding: 40px 0;
color: #fff;
2012-06-08 07:10:36 +02:00
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 {
2012-06-05 09:46:16 +02:00
font-size: 80px;
font-weight: bold;
letter-spacing: -1px;
line-height: 1;
2011-05-05 08:49:31 +02:00
}
.jumbotron p {
font-size: 24px;
font-weight: 300;
line-height: 1.25;
margin-bottom: 30px;
}
/* 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 a:hover {
color: #fff;
text-shadow: 0 0 10px rgba(255,255,255,.25);
}
/* Download button */
.masthead .btn {
2012-09-20 00:18:14 +02:00
padding: 19px 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);
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
2012-08-02 01:15:21 +02:00
-webkit-transition: none;
-moz-transition: none;
transition: none;
}
.masthead .btn:hover {
-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
}
.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);
}
2012-07-18 04:54:29 +02:00
/* Pattern overlay
------------------------- */
.jumbotron .container {
position: relative;
z-index: 2;
}
.jumbotron:after {
content: '';
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
2012-07-18 05:22:55 +02:00
background: url(../img/bs-docs-masthead-pattern.png) repeat center center;
2012-07-18 10:06:52 +02:00
opacity: .4;
2012-07-18 04:54:29 +02:00
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1) {
.jumbotron:after {
background-size: 150px 150px;
}
}
2012-07-18 04:54:29 +02:00
2012-06-07 19:20:52 +02:00
/* Masthead (docs home)
------------------------- */
.masthead {
padding: 70px 0 80px;
margin-bottom: 0;
color: #fff;
}
.masthead h1 {
font-size: 120px;
line-height: 1;
letter-spacing: -2px;
}
.masthead p {
font-size: 40px;
font-weight: 200;
line-height: 1.25;
2012-06-07 19:20:52 +02:00
}
/* Textual links in masthead */
.masthead-links {
2012-06-07 19:20:52 +02:00
margin: 0;
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;
background-color: #f5f5f5;
border-top: 1px solid #fff;
border-bottom: 1px solid #ddd;
}
/* Quick links on Home */
.bs-docs-social-buttons {
margin-left: 0;
margin-bottom: 0;
padding-left: 0;
list-style: none;
2012-06-07 19:20:52 +02:00
}
.bs-docs-social-buttons li {
2012-07-06 19:10:56 +02:00
display: inline-block;
padding: 5px 8px;
2012-07-06 19:10:56 +02:00
line-height: 1;
2012-08-20 21:16:15 +02:00
*display: inline;
*zoom: 1;
}
/* 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;
}
2012-06-29 06:06:54 +02:00
/* Marketing section of Overview
-------------------------------------------------- */
2012-06-29 06:06:54 +02:00
2012-07-05 08:31:30 +02:00
.marketing {
text-align: center;
color: #5a5a5a;
}
.marketing h1 {
2012-07-05 08:31:30 +02:00
margin: 60px 0 10px;
font-size: 60px;
font-weight: 200;
2012-07-05 08:31:30 +02:00
line-height: 1;
letter-spacing: -1px;
}
2012-06-29 06:06:54 +02:00
.marketing h2 {
font-weight: 200;
margin-bottom: 5px;
}
.marketing p {
font-size: 16px;
line-height: 1.5;
}
.marketing .marketing-byline {
2012-07-05 08:31:30 +02:00
margin-bottom: 40px;
font-size: 20px;
2012-06-06 09:48:31 +02:00
font-weight: 300;
line-height: 1.25;
2012-06-06 09:48:31 +02:00
color: #999;
2012-07-05 08:31:30 +02:00
}
2012-11-22 21:26:54 +01:00
.marketing-img {
2012-07-05 08:31:30 +02:00
display: block;
margin: 0 auto 30px;
2012-11-22 21:26:54 +01:00
max-height: 145px;
2012-06-06 09:48:31 +02:00
}
2012-06-29 06:06:54 +02:00
/* Footer
-------------------------------------------------- */
2012-06-29 06:06:54 +02:00
.footer {
text-align: center;
padding: 30px 0;
2012-07-05 08:31:30 +02:00
margin-top: 70px;
border-top: 1px solid #e5e5e5;
2012-07-13 02:02:55 +02:00
background-color: #f5f5f5;
}
.footer p {
2012-06-06 09:48:31 +02:00
margin-bottom: 0;
color: #777;
}
.footer-links {
margin: 10px 0;
}
.footer-links li {
display: inline;
padding: 0 2px;
}
.footer-links li:first-child {
padding-left: 0;
}
2011-06-30 02:10:53 +02:00
2011-05-05 08:49:31 +02:00
/* Special grid styles
-------------------------------------------------- */
2012-06-29 06:06:54 +02:00
2011-05-05 08:49:31 +02:00
.show-grid {
margin-top: 10px;
margin-bottom: 20px;
2011-05-05 08:49:31 +02:00
}
.show-grid [class*="span"] {
background-color: #eee;
2011-05-05 08:49:31 +02:00
text-align: center;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
2012-06-06 04:53:54 +02:00
min-height: 40px;
line-height: 40px;
2011-05-05 08:49:31 +02:00
}
.show-grid:hover [class*="span"] {
2011-09-16 07:27:41 +02:00
background: #ddd;
}
.show-grid .show-grid {
margin-top: 0;
margin-bottom: 0;
2011-05-05 08:49:31 +02:00
}
.show-grid .show-grid [class*="span"] {
2012-11-03 21:28:48 +01:00
margin-top: 5px;
}
.show-grid [class*="span"] [class*="span"] {
background-color: #ccc;
}
2012-11-03 21:28:48 +01:00
.show-grid [class*="span"] [class*="span"] [class*="span"] {
background-color: #999;
}
2012-06-29 06:06:54 +02:00
/* Mini layout previews
2011-05-05 08:49:31 +02:00
-------------------------------------------------- */
.mini-layout {
border: 1px solid #ddd;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
box-shadow: 0 1px 2px rgba(0,0,0,.075);
2011-05-05 08:49:31 +02:00
}
2012-06-09 01:35:04 +02:00
.mini-layout,
.mini-layout .mini-layout-body,
.mini-layout.fluid .mini-layout-sidebar {
height: 300px;
}
.mini-layout {
margin-bottom: 20px;
padding: 9px;
}
.mini-layout div {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
2011-05-05 08:49:31 +02:00
}
.mini-layout .mini-layout-body {
background-color: #dceaf4;
2011-05-05 08:49:31 +02:00
margin: 0 auto;
width: 70%;
2011-05-05 08:49:31 +02:00
}
.mini-layout.fluid .mini-layout-sidebar,
.mini-layout.fluid .mini-layout-header,
.mini-layout.fluid .mini-layout-body {
2011-05-05 08:49:31 +02:00
float: left;
}
.mini-layout.fluid .mini-layout-sidebar {
background-color: #bbd8e9;
width: 20%;
2011-05-05 08:49:31 +02:00
}
.mini-layout.fluid .mini-layout-body {
2012-01-31 08:10:29 +01:00
width: 77.5%;
margin-left: 2.5%;
2011-05-05 08:49:31 +02:00
}
/* Download page
-------------------------------------------------- */
2012-06-29 06:06:54 +02:00
.download .page-header {
margin-top: 36px;
}
.page-header .toggle-all {
margin-top: 5px;
}
/* Space out h3s when following a section */
.download h3 {
margin-bottom: 5px;
}
.download-builder input + h3,
.download-builder .checkbox + h3 {
margin-top: 9px;
}
/* Fields for variables */
.download-builder input[type=text] {
margin-bottom: 9px;
font-family: Menlo, Monaco, "Courier New", monospace;
font-size: 12px;
color: #d14;
}
.download-builder input[type=text]:focus {
background-color: #fff;
}
/* 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;
-moz-border-radius: 3px;
border-radius: 3px;
cursor: pointer;
}
.download .checkbox:hover {
color: #333;
background-color: #f5f5f5;
}
.download .checkbox small {
font-size: 12px;
color: #777;
}
/* Variables section */
#variables label {
margin-bottom: 0;
}
/* Giant download button */
.download-btn {
margin: 36px 0 108px;
}
#download p,
#download h4 {
max-width: 50%;
margin: 0 auto;
color: #999;
text-align: center;
}
#download h4 {
margin-bottom: 0;
}
#download p {
margin-bottom: 18px;
}
.download-btn .btn {
display: block;
width: auto;
padding: 19px 24px;
margin-bottom: 27px;
font-size: 30px;
2012-01-27 01:45:01 +01:00
line-height: 1;
text-align: center;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
/* Misc
2011-08-22 06:26:15 +02:00
-------------------------------------------------- */
/* Make tables spaced out a bit more */
h2 + table,
h3 + table,
h4 + table,
h2 + .row {
margin-top: 5px;
}
/* Example sites showcase */
2012-06-08 07:10:36 +02:00
.example-sites {
2012-07-05 08:31:30 +02:00
xmargin-left: 20px;
2012-06-08 07:10:36 +02:00
}
.example-sites img {
2012-01-25 04:19:50 +01:00
max-width: 100%;
margin: 0 auto;
}
.scrollspy-example {
height: 200px;
overflow: auto;
position: relative;
}
/* Fake the :focus state to demo it */
.focused {
border-color: rgba(82,168,236,.8);
-webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
-moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
outline: 0;
}
/* For input sizes, make them display block */
.docs-input-sizes select,
.docs-input-sizes input[type=text] {
display: block;
margin-bottom: 9px;
}
/* Icons
------------------------- */
.the-icons {
margin-left: 0;
list-style: none;
}
2012-07-06 00:15:57 +02:00
.the-icons li {
2012-07-09 09:17:36 +02:00
float: left;
width: 25%;
2012-07-06 00:15:57 +02:00
line-height: 25px;
}
.the-icons i:hover {
background-color: rgba(255,0,0,.25);
}
/* Example page
------------------------- */
.bootstrap-examples h4 {
margin: 10px 0 5px;
}
2012-06-12 07:33:16 +02:00
.bootstrap-examples p {
font-size: 13px;
line-height: 18px;
}
.bootstrap-examples .thumbnail {
margin-bottom: 9px;
background-color: #fff;
}
2012-06-29 06:06:54 +02:00
/* Bootstrap code examples
-------------------------------------------------- */
/* Base class */
.bs-docs-example {
position: relative;
margin: 15px 0;
padding: 39px 19px 14px;
2012-08-20 21:16:15 +02:00
*padding-top: 19px;
background-color: #fff;
border: 1px solid #ddd;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
2012-06-29 06:06:54 +02:00
/* 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;
}
2012-06-29 06:06:54 +02:00
/* Remove spacing between an example and it's code */
.bs-docs-example + .prettyprint {
margin-top: -20px;
padding-top: 15px;
}
2012-06-29 06:06:54 +02:00
/* Tweak examples
------------------------- */
.bs-docs-example > p:last-child {
margin-bottom: 0;
}
.bs-docs-example .table,
.bs-docs-example .progress,
.bs-docs-example .well,
2012-06-11 00:14:21 +02:00
.bs-docs-example .alert,
2012-06-11 01:46:46 +02:00
.bs-docs-example .hero-unit,
2012-06-11 05:39:00 +02:00
.bs-docs-example .pagination,
2012-06-11 06:24:13 +02:00
.bs-docs-example .navbar,
.bs-docs-example > .nav,
2012-06-12 05:20:51 +02:00
.bs-docs-example blockquote {
2012-06-07 19:20:52 +02:00
margin-bottom: 5px;
}
2012-06-11 01:46:46 +02:00
.bs-docs-example .pagination {
margin-top: 0;
}
2012-06-11 05:39:00 +02:00
.bs-navbar-top-example,
.bs-navbar-bottom-example {
z-index: 1;
padding: 0;
height: 90px;
2012-07-29 09:30:15 +02:00
overflow: hidden; /* cut the drop shadows off */
2012-06-11 05:39:00 +02:00
}
2012-07-12 22:50:27 +02:00
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
margin-left: 0;
margin-right: 0;
}
2012-06-11 05:39:00 +02:00
.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;
}
2012-06-07 19:20:52 +02:00
form.bs-docs-example {
padding-bottom: 19px;
}
/* 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;
2012-07-10 06:13:33 +02:00
width: 260px;
margin: 20px;
}
/* Dropdowns */
.bs-docs-example-submenus {
min-height: 180px;
}
.bs-docs-example-submenus > .pull-left + .pull-left {
margin-left: 20px;
}
.bs-docs-example-submenus .dropup > .dropdown-menu,
.bs-docs-example-submenus .dropdown > .dropdown-menu {
display: block;
position: static;
margin-bottom: 5px;
*width: 180px;
}
2012-06-29 06:06:54 +02:00
/* Responsive docs
-------------------------------------------------- */
/* Utility classes table
------------------------- */
.responsive-utilities th small {
display: block;
font-weight: normal;
color: #999;
}
.responsive-utilities tbody th {
font-weight: normal;
}
.responsive-utilities td {
text-align: center;
}
.responsive-utilities td.is-visible {
color: #468847;
background-color: #dff0d8 !important;
}
.responsive-utilities td.is-hidden {
color: #ccc;
background-color: #f9f9f9 !important;
}
/* Responsive tests
------------------------- */
.responsive-utilities-test {
margin-top: 5px;
margin-left: 0;
list-style: none;
overflow: hidden; /* clear floats */
}
.responsive-utilities-test li {
position: relative;
float: left;
width: 25%;
height: 43px;
font-size: 14px;
font-weight: bold;
line-height: 43px;
color: #999;
text-align: center;
border: 1px solid #ddd;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.responsive-utilities-test li + li {
margin-left: 10px;
}
.responsive-utilities-test span {
position: absolute;
top: -1px;
left: -1px;
right: -1px;
bottom: -1px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.responsive-utilities-test span {
color: #468847;
background-color: #dff0d8;
border: 1px solid #d6e9c6;
}
2012-07-31 09:01:04 +02:00
/* Sidenav for Docs
-------------------------------------------------- */
.bs-docs-sidenav {
width: 228px;
2012-08-21 01:43:49 +02:00
margin: 30px 0 0;
2012-07-31 09:01:04 +02:00
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;
2012-10-01 20:11:33 +02:00
width: 190px \9;
2012-07-31 09:01:04 +02:00
margin: 0 0 -1px;
2012-08-02 08:21:06 +02:00
padding: 8px 14px;
2012-07-31 09:01:04 +02:00
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);
2012-07-31 09:01:04 +02:00
}
/* 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 {
2012-07-31 09:01:04 +02:00
background-image: url(../img/glyphicons-halflings-white.png);
opacity: 1;
2012-07-31 09:01:04 +02:00
}
.bs-docs-sidenav.affix {
top: 40px;
}
.bs-docs-sidenav.affix-bottom {
position: absolute;
top: auto;
bottom: 270px;
2012-07-31 09:01:04 +02:00
}
2012-06-29 06:06:54 +02:00
/* Responsive
-------------------------------------------------- */
2012-06-29 06:06:54 +02:00
/* Desktop large
------------------------- */
2012-07-31 09:01:04 +02:00
@media (min-width: 1200px) {
2012-06-29 06:06:54 +02:00
.bs-docs-container {
max-width: 970px;
}
2012-07-31 09:01:04 +02:00
.bs-docs-sidenav {
width: 258px;
}
2012-10-01 20:11:33 +02:00
.bs-docs-sidenav > li > a {
width: 230px \9; /* Override the previous IE8-9 hack */
}
2012-06-29 06:06:54 +02:00
}
/* Desktop
------------------------- */
@media (max-width: 980px) {
/* Unfloat brand */
body > .navbar-fixed-top .brand {
float: left;
margin-left: 0;
padding-left: 10px;
padding-right: 10px;
}
/* Inline-block quick links for more spacing */
.quick-links li {
display: inline-block;
margin: 5px;
}
2012-07-31 09:01:04 +02:00
/* When affixed, space properly */
.bs-docs-sidenav {
top: 0;
width: 218px;
2012-07-31 09:01:04 +02:00
margin-top: 30px;
margin-right: 0;
}
}
2012-06-29 06:06:54 +02:00
/* Tablet to desktop
------------------------- */
@media (min-width: 768px) and (max-width: 979px) {
2012-06-29 06:06:54 +02:00
/* Remove any padding from the body */
body {
padding-top: 0;
}
/* Widen masthead and social buttons to fill body padding */
.jumbotron {
margin-top: -20px; /* Offset bottom margin on .navbar */
}
2012-07-31 09:01:04 +02:00
/* Adjust sidenav width */
.bs-docs-sidenav {
width: 166px;
2012-08-19 21:07:23 +02:00
margin-top: 20px;
2012-07-31 09:01:04 +02:00
}
2012-08-21 01:43:49 +02:00
.bs-docs-sidenav.affix {
top: 0;
}
2012-06-29 06:06:54 +02:00
}
/* Tablet
------------------------- */
@media (max-width: 767px) {
2012-06-29 06:06:54 +02:00
/* Remove any padding from the body */
body {
padding-top: 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;
}
.masthead h1 {
font-size: 90px;
}
.masthead p,
.masthead .btn {
font-size: 24px;
}
2012-07-13 01:16:06 +02:00
.marketing .span4 {
margin-bottom: 40px;
}
.bs-docs-social {
margin: 0 -20px;
2012-06-29 06:06:54 +02:00
}
/* Space out the show-grid examples */
.show-grid [class*="span"] {
margin-bottom: 5px;
}
2012-07-31 09:01:04 +02:00
/* Sidenav */
.bs-docs-sidenav {
width: auto;
2012-08-21 01:43:49 +02:00
margin-bottom: 20px;
2012-07-31 09:01:04 +02:00
}
.bs-docs-sidenav.affix {
position: static;
2012-07-31 09:01:04 +02:00
width: auto;
top: 0;
2012-07-31 09:01:04 +02:00
}
2012-06-29 06:06:54 +02:00
/* Unfloat the back to top link in footer */
.footer {
margin-left: -20px;
margin-right: -20px;
padding-left: 20px;
padding-right: 20px;
}
2012-06-29 06:06:54 +02:00
.footer p {
margin-bottom: 9px;
}
}
/* Landscape phones
------------------------- */
@media (max-width: 480px) {
/* Remove padding above jumbotron */
2011-12-11 10:58:06 +01:00
body {
padding-top: 0;
2011-12-11 10:58:06 +01:00
}
/* Change up some type stuff */
h2 small {
display: block;
}
/* Downsize the jumbotrons */
.jumbotron h1 {
font-size: 45px;
}
.jumbotron p,
.jumbotron .btn {
font-size: 18px;
}
.jumbotron .btn {
display: block;
margin: 0 auto;
}
/* center align subhead text like the masthead */
.subhead h1,
.subhead p {
text-align: center;
2011-12-11 10:58:06 +01:00
}
/* Marketing on home */
.marketing h1 {
font-size: 30px;
}
.marketing-byline {
font-size: 18px;
}
2011-12-11 10:58:06 +01:00
/* center example sites */
.example-sites {
margin-left: 0;
}
.example-sites > li {
2011-12-11 10:58:06 +01:00
float: none;
display: block;
max-width: 280px;
2011-12-11 10:58:06 +01:00
margin: 0 auto 18px;
text-align: center;
2011-12-11 10:58:06 +01:00
}
.example-sites .thumbnail > img {
max-width: 270px;
}
/* Do our best to make tables work in narrow viewports */
table code {
white-space: normal;
word-wrap: break-word;
word-break: break-all;
}
/* Examples: dropdowns */
.bs-docs-example-submenus > .pull-left {
float: none;
clear: both;
}
.bs-docs-example-submenus > .pull-left,
.bs-docs-example-submenus > .pull-left + .pull-left {
margin-left: 0;
}
.bs-docs-example-submenus p {
margin-bottom: 0;
}
.bs-docs-example-submenus .dropup > .dropdown-menu,
.bs-docs-example-submenus .dropdown > .dropdown-menu {
margin-bottom: 10px;
float: none;
max-width: 180px;
}
/* Examples: modal */
.modal-example .modal {
position: relative;
top: auto;
right: auto;
bottom: auto;
left: auto;
}
/* Tighten up footer */
.footer {
padding-top: 20px;
padding-bottom: 20px;
}
}