aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/css/docs.css
diff options
context:
space:
mode:
Diffstat (limited to 'docs/assets/css/docs.css')
-rw-r--r--docs/assets/css/docs.css1293
1 files changed, 514 insertions, 779 deletions
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css
index 114241404..defa02fb0 100644
--- a/docs/assets/css/docs.css
+++ b/docs/assets/css/docs.css
@@ -1,567 +1,261 @@
-/* Add additional stylesheets below
--------------------------------------------------- */
/*
- Bootstrap's documentation styles
- Special styles for presenting Bootstrap's documentation and examples
-*/
+ * Bootstrap Documentation
+ * Special styles for presenting Bootstrap's documentation and code examples.
+ */
-/* Body and structure
+/* Key scaffolding
-------------------------------------------------- */
body {
- position: relative;
- padding-top: 40px;
-}
-
-/* Code in headings */
-h3 code {
- font-size: 14px;
- font-weight: normal;
+ position: relative; /* For scrollyspy */
+ padding-top: 50px; /* Account for fixed navbar */
}
-/* Tweak navbar brand link to be super sleek
+/* Top nav and header
-------------------------------------------------- */
-body > .navbar {
- font-size: 13px;
-}
-
-/* Change the docs' brand */
-body > .navbar .brand {
- 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 {
- text-decoration: none;
- text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
-}
-
-
-/* Sections
--------------------------------------------------- */
-
-/* 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;
-}
-
-/* Separators (hr) */
-.bs-docs-separator {
- margin: 40px 0 39px;
-}
-
-/* Faded out hr */
-hr.soften {
- height: 1px;
- 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;
+.bs-docs-nav {
+ background-color: #b94a48;
}
-
-
-
-/* Jumbotrons
--------------------------------------------------- */
-
-/* Base class
-------------------------- */
-.jumbotron {
- position: relative;
- padding: 40px 0;
+.bs-docs-nav .navbar-brand {
color: #fff;
- 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 {
- font-size: 80px;
- font-weight: bold;
- letter-spacing: -1px;
- line-height: 1;
}
-.jumbotron p {
- font-size: 24px;
- font-weight: 300;
- line-height: 1.25;
- margin-bottom: 30px;
+.bs-docs-nav .navbar-nav > li > a {
+ color: #e6cac8;
}
-
-/* Link styles (used on .masthead-links as well) */
-.jumbotron a {
+.bs-docs-nav .navbar-nav > li > a:hover {
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 {
+.bs-docs-nav .navbar-nav > .active > a,
+.bs-docs-nav .navbar-nav > .active > a:hover {
color: #fff;
- text-shadow: 0 0 10px rgba(255,255,255,.25);
+ background-color: #993c3a;
}
-
-/* Download button */
-.masthead .btn {
- 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);
- -webkit-transition: none;
- -moz-transition: none;
- transition: none;
+.bs-docs-nav .navbar-toggle {
+ border-color: #b94a48;
}
-.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);
+.bs-docs-nav .navbar-toggle:hover {
+ background-color: #993c3a;
+ border-color: #993c3a;
}
-/* Pattern overlay
-------------------------- */
-.jumbotron .container {
- position: relative;
- z-index: 2;
-}
-.jumbotron:after {
- content: '';
- display: block;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- background: url(../img/bs-docs-masthead-pattern.png) repeat center center;
- opacity: .4;
-}
-@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;
- }
-}
+/* Homepage masthead
+-------------------------------------------------- */
-/* Masthead (docs home)
-------------------------- */
-.masthead {
- padding: 70px 0 80px;
- margin-bottom: 0;
- color: #fff;
+.bs-masthead {
+ position: relative;
+ margin-bottom: 20px;
+ padding: 30px 15px;
+ text-align: center;
}
-.masthead h1 {
- font-size: 120px;
+.bs-masthead h1 {
+ font-size: 50px;
line-height: 1;
- letter-spacing: -2px;
}
-.masthead p {
- font-size: 40px;
- font-weight: 200;
- line-height: 1.25;
+.bs-masthead .bs-social {
+ margin-top: 80px;
}
-/* Textual links in masthead */
-.masthead-links {
- margin: 0;
- list-style: none;
-}
-.masthead-links li {
- display: inline;
- padding: 0 10px;
- color: rgba(255,255,255,.25);
+/* Download button */
+.bs-masthead .btn {
+ margin-top: 5px;
+ margin-bottom: 5px;
+ padding: 18px 24px;
+ font-size: 21px;
+ color: #b94a48; /* redeclare to override the `.jumbotron a` */
+ background-color: #fff;
+ border-color: #e5e5e5;
}
-
-/* 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;
+.bs-masthead .btn:hover,
+.bs-masthead .btn:active {
+ color: #fff; /* redeclare to override the `.jumbotron a` */
+ background-color: #b94a48;
+ border-color: #b94a48;
}
-/* Quick links on Home */
-.bs-docs-social-buttons {
- margin-left: 0;
- margin-bottom: 0;
+/* Textual links */
+.bs-masthead-links {
+ margin-top: 20px;
+ margin-bottom: 20px;
padding-left: 0;
list-style: none;
}
-.bs-docs-social-buttons li {
- display: inline-block;
- padding: 5px 8px;
- line-height: 1;
- *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;
+.bs-masthead-links li {
+ display: inline;
+ color: #999;
}
-.subhead .navbar {
- display: none;
+.bs-masthead-links li + li {
+ margin-left: 20px;
}
-/* Marketing section of Overview
+/* Customize and Download button
-------------------------------------------------- */
-.marketing {
- text-align: center;
- color: #5a5a5a;
-}
-.marketing h1 {
- margin: 60px 0 10px;
- font-size: 60px;
- font-weight: 200;
- line-height: 1;
- letter-spacing: -1px;
+.bs-customizer {
+
}
-.marketing h2 {
- font-weight: 200;
- margin-bottom: 5px;
+.bs-customizer .toggle {
+ float: right;
}
-.marketing p {
- font-size: 16px;
- line-height: 1.5;
+.bs-customizer label {
+ margin-top: 10px;
+ font-weight: 500;
+ color: #555;
}
-.marketing .marketing-byline {
- margin-bottom: 40px;
- font-size: 20px;
- font-weight: 300;
- line-height: 1.25;
- color: #999;
+.bs-customizer h4 {
+ margin-top: 15px;
}
-.marketing-img {
- display: block;
- margin: 0 auto 30px;
- max-height: 145px;
+.bs-customizer input[type="text"] {
+ background-color: #fafafa;
}
-
-/* Footer
--------------------------------------------------- */
-
-.footer {
- text-align: center;
- padding: 30px 0;
- margin-top: 70px;
- border-top: 1px solid #e5e5e5;
- background-color: #f5f5f5;
+.bs-customize-download {
+ text-align:center;
}
-.footer p {
- margin-bottom: 0;
- color: #777;
-}
-.footer-links {
- margin: 10px 0;
-}
-.footer-links li {
- display: inline;
- padding: 0 2px;
+.bs-customize-download .btn {
+ margin-top: 5px;
+ margin-bottom: 5px;
+ padding: 18px 24px;
+ font-size: 21px;
+ color: #b94a48;
+ background-color: #fff;
+ border-color: #b94a48;
}
-.footer-links li:first-child {
- padding-left: 0;
+.bs-customize-download .btn:hover,
+.bs-customize-download .btn:active {
+ color: #fff;
+ background-color: #b94a48;
}
-/* Special grid styles
+/* Docs pages and sections
-------------------------------------------------- */
-.show-grid {
- margin-top: 10px;
- margin-bottom: 20px;
-}
-.show-grid [class*="span"] {
- background-color: #eee;
+/* Page headers */
+.bs-header {
+ padding: 30px 30px 40px;
+ font-size: 16px;
+ color: #5a5a5a;
text-align: center;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- min-height: 40px;
- line-height: 40px;
-}
-.show-grid:hover [class*="span"] {
- background: #ddd;
-}
-.show-grid .show-grid {
- margin-top: 0;
- margin-bottom: 0;
-}
-.show-grid .show-grid [class*="span"] {
- margin-top: 5px;
+ border-bottom: 1px solid #ddd;
}
-.show-grid [class*="span"] [class*="span"] {
- background-color: #ccc;
+.bs-header h1 {
+ color: #b94a48;
}
-.show-grid [class*="span"] [class*="span"] [class*="span"] {
- background-color: #999;
+.bs-header p {
+ font-weight: 300;
+ line-height: 1.5;
}
-
-
-/* Mini layout previews
--------------------------------------------------- */
-.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);
-}
-.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;
-}
-.mini-layout .mini-layout-body {
- background-color: #dceaf4;
- margin: 0 auto;
- width: 70%;
-}
-.mini-layout.fluid .mini-layout-sidebar,
-.mini-layout.fluid .mini-layout-header,
-.mini-layout.fluid .mini-layout-body {
- float: left;
-}
-.mini-layout.fluid .mini-layout-sidebar {
- background-color: #bbd8e9;
- width: 20%;
-}
-.mini-layout.fluid .mini-layout-body {
- width: 77.5%;
- margin-left: 2.5%;
+/* Padding for in-page bookmarks */
+.bs-docs-section {
+ padding-top: 30px;
}
-/* Download page
+/* Docs sidebar
-------------------------------------------------- */
-.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;
+/* By default it's not affixed in mobile views, so undo that */
+.bs-sidebar.affix {
+ position: static;
}
-/* 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;
+/* First level of nav */
+.bs-sidenav {
+ margin-top: 30px;
+ margin-bottom: 30px;
+ padding-top: 15px;
+ padding-bottom: 15px;
+ text-shadow: 0 1px 0 #fff;
background-color: #f5f5f5;
-}
-.download .checkbox small {
- font-size: 12px;
- color: #777;
-}
-
-/* Variables section */
-#variables label {
- margin-bottom: 0;
+ border-radius: 5px;
}
-/* Giant download button */
-.download-btn {
- margin: 36px 0 108px;
+/* All levels of nav */
+.bs-sidebar .nav > li > a {
+ display: block;
+ color: #666;
+ padding: 4px 20px;
}
-#download p,
-#download h4 {
- max-width: 50%;
- margin: 0 auto;
- color: #999;
- text-align: center;
+.bs-sidebar .nav > li > a:hover,
+.bs-sidebar .nav > li > a:focus {
+ text-decoration: none;
+ border-right: 1px solid #d5d5d5;
}
-#download h4 {
- margin-bottom: 0;
+.bs-sidebar .nav > .active > a,
+.bs-sidebar .nav > .active:hover > a,
+.bs-sidebar .nav > .active:focus > a {
+ font-weight: 500;
+ color: #b94a48;
+ background-color: transparent;
+ border-right: 1px solid #b94a48;
}
-#download p {
- margin-bottom: 18px;
+
+/* Nav: second level (shown on .active) */
+.bs-sidebar .nav .nav {
+ display: none;
+ margin-bottom: 5px;
}
-.download-btn .btn {
+.bs-sidebar .nav > .active > ul {
display: block;
- width: auto;
- padding: 19px 24px;
- margin-bottom: 27px;
- font-size: 30px;
- line-height: 1;
- text-align: center;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
+}
+.bs-sidebar .nav .nav > li > a {
+ padding-top: 2px;
+ padding-bottom: 2px;
+ padding-left: 30px;
+ font-size: 90%;
}
-/* Misc
+/* Side notes for calling out things
-------------------------------------------------- */
-/* Make tables spaced out a bit more */
-h2 + table,
-h3 + table,
-h4 + table,
-h2 + .row {
- margin-top: 5px;
+.bs-callout {
+ margin: 20px 0;
+ padding: 15px 30px 15px 15px;
+ background-color: #fcf2f2;
+ border-left: 5px solid #df7c7b;
}
-
-/* Example sites showcase */
-.example-sites {
- xmargin-left: 20px;
+.bs-callout h4 {
+ margin-top: 0;
}
-.example-sites img {
- max-width: 100%;
- margin: 0 auto;
+.bs-callout p:last-child {
+ margin-bottom: 0;
}
-
-.scrollspy-example {
- height: 200px;
- overflow: auto;
- position: relative;
+.bs-callout code,
+.bs-callout .highlight {
+ background-color: #fff;
}
-/* 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;
-}
-.the-icons li {
- float: left;
- width: 25%;
- line-height: 25px;
-}
-.the-icons i:hover {
- background-color: rgba(255,0,0,.25);
-}
+/* Special grid styles
+-------------------------------------------------- */
-/* Example page
-------------------------- */
-.bootstrap-examples h4 {
- margin: 10px 0 5px;
-}
-.bootstrap-examples p {
- font-size: 13px;
- line-height: 18px;
+.show-grid {
+ margin-bottom: 15px;
}
-.bootstrap-examples .thumbnail {
- margin-bottom: 9px;
- background-color: #fff;
+.show-grid [class^="col-"] {
+ padding-top: 10px;
+ padding-bottom: 10px;
+ background-color: #eee;
+ border: 1px solid #ddd;
+ /* Todo: reconcile these */
+ background-color: rgba(185,74,72,.15);
+ border: 1px solid rgba(185,74,72,.2);
}
@@ -570,20 +264,16 @@ h2 + .row {
-------------------------------------------------- */
/* Base class */
-.bs-docs-example {
+.bs-example {
position: relative;
- margin: 15px 0;
- padding: 39px 19px 14px;
- *padding-top: 19px;
- background-color: #fff;
+ padding: 39px 14px 14px;
+ margin-bottom: -1px;
border: 1px solid #ddd;
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
+ border-top-left-radius: 4px;
+ border-top-right-radius: 4px;
}
-
/* Echo out a label for the example */
-.bs-docs-example:after {
+.bs-example:after {
content: "Example";
position: absolute;
top: -1px;
@@ -591,51 +281,107 @@ h2 + .row {
padding: 3px 7px;
font-size: 12px;
font-weight: bold;
+ color: #9da0a4;
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;
+ border-top-left-radius: 4px;
+ border-bottom-right-radius: 4px;
}
-/* Remove spacing between an example and it's code */
-.bs-docs-example + .prettyprint {
- margin-top: -20px;
- padding-top: 15px;
+/* Tweak display of the examples */
+.bs-example + .prettyprint,
+.bs-example + .highlight {
+ margin-top: 0;
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+}
+
+/* Tweak content of examples for optimum awesome */
+.bs-example > p:last-child,
+.bs-example > ul:last-child,
+.bs-example > ol:last-child,
+.bs-example > blockquote:last-child,
+.bs-example > input:last-child,
+.bs-example > select:last-child,
+.bs-example > textarea:last-child,
+.bs-example > .table:last-child,
+.bs-example > .navbar:last-child
+.bs-example > .jumbotron:last-child,
+.bs-example > .alert:last-child,
+.bs-example > .panel:last-child,
+.bs-example > .list-group:last-child,
+.bs-example > .well:last-child {
+ margin-bottom: 0;
+}
+.bs-example > .close {
+ float: none;
}
-/* Tweak examples
-------------------------- */
-.bs-docs-example > p:last-child {
- margin-bottom: 0;
+/* Typography */
+.bs-example-type .table td {
+ color: #999;
+ vertical-align: middle;
+ border-color: ;
}
-.bs-docs-example .table,
-.bs-docs-example .progress,
-.bs-docs-example .well,
-.bs-docs-example .alert,
-.bs-docs-example .hero-unit,
-.bs-docs-example .pagination,
-.bs-docs-example .navbar,
-.bs-docs-example > .nav,
-.bs-docs-example blockquote {
- margin-bottom: 5px;
+.bs-example-type .table td,
+.bs-example-type .table th {
+ padding: 15px 0;
+ border-color: #eee;
+}
+.bs-example-type .table tr:first-child td,
+.bs-example-type .table tr:first-child th {
+ border-top: 0;
+}
+.bs-example-type h1,
+.bs-example-type h2,
+.bs-example-type h3,
+.bs-example-type h4,
+.bs-example-type h5,
+.bs-example-type h6 {
+ margin: 0;
}
-.bs-docs-example .pagination {
- margin-top: 0;
+
+/* Forms */
+.bs-example.form-inline select,
+.bs-example.form-inline input[type="text"],
+.bs-example.form-inline input[type="password"] {
+ width: 180px;
+}
+.bs-example-control-sizing input[type="text"] + input[type="text"] {
+ margin-top: 10px;
+}
+.bs-example-form {
+ overflow: hidden;
+}
+.bs-example-form .input-group {
+ margin-bottom: 10px;
}
+
+/* List groups */
+.bs-example > .list-group {
+ max-width: 400px;
+}
+
+/* Navbar examples */
.bs-navbar-top-example,
.bs-navbar-bottom-example {
z-index: 1;
padding: 0;
- height: 90px;
+ min-height: 110px;
overflow: hidden; /* cut the drop shadows off */
}
.bs-navbar-top-example .navbar-fixed-top,
.bs-navbar-bottom-example .navbar-fixed-bottom {
+ position: relative;
margin-left: 0;
margin-right: 0;
}
+.bs-navbar-top-example .navbar-fixed-top {
+ top: -1px;
+}
+.bs-navbar-bottom-example .navbar-fixed-bottom {
+ bottom: -1px;
+}
.bs-navbar-top-example {
-webkit-border-radius: 0 0 4px 4px;
-moz-border-radius: 0 0 4px 4px;
@@ -656,33 +402,63 @@ h2 + .row {
.bs-navbar-bottom-example .navbar {
margin-bottom: 0;
}
-form.bs-docs-example {
- padding-bottom: 19px;
+
+/* Example modals */
+.bs-example-modal {
+ background-color: #f5f5f5;
+}
+.bs-example-modal .modal {
+ position: relative;
+ top: auto;
+ right: auto;
+ left: auto;
+ bottom: auto;
+ z-index: 1;
+ display: block;
+}
+.bs-example-modal .modal-dialog {
+ left: auto;
+ margin-left: auto;
+ margin-right: auto;
}
-/* Images */
-.bs-docs-example-images img {
- margin: 10px;
- display: inline-block;
+/* Example dropdowns */
+.bs-example > .dropdown > .dropdown-menu,
+.bs-example-submenu > .pull-left > .dropup > .dropdown-menu,
+.bs-example-submenu > .pull-left > .dropdown > .dropdown-menu {
+ position: static;
+ display: block;
+ margin-bottom: 5px;
+}
+.bs-example-submenu {
+ min-height: 230px;
+}
+.bs-example-submenu > .pull-left + .pull-left {
+ margin-left: 20px;
+}
+
+/* Example tabbable tabs */
+.bs-example-tabs .nav-tabs {
+ margin-bottom: 15px;
}
/* Tooltips */
-.bs-docs-tooltip-examples {
+.bs-example-tooltips {
text-align: center;
margin: 0 0 10px;
list-style: none;
}
-.bs-docs-tooltip-examples li {
+.bs-example-tooltips li {
display: inline;
padding: 0 10px;
}
/* Popovers */
-.bs-docs-example-popover {
+.bs-example-popover {
padding-bottom: 24px;
background-color: #f9f9f9;
}
-.bs-docs-example-popover .popover {
+.bs-example-popover .popover {
position: relative;
display: block;
float: left;
@@ -690,19 +466,53 @@ form.bs-docs-example {
margin: 20px;
}
-/* Dropdowns */
-.bs-docs-example-submenus {
- min-height: 180px;
+
+
+/* Example templates
+-------------------------------------------------- */
+
+.bs-examples h4 {
+ margin-bottom: 5px;
}
-.bs-docs-example-submenus > .pull-left + .pull-left {
- margin-left: 20px;
+.bs-examples p {
+ margin-bottom: 20px;
}
-.bs-docs-example-submenus .dropup > .dropdown-menu,
-.bs-docs-example-submenus .dropdown > .dropdown-menu {
+
+
+
+/* Icons
+-------------------------------------------------- */
+
+.the-icons {
+ padding-bottom: 1px;
+ margin-left: 0;
+ list-style: none;
+ margin-bottom: 20px;
+ overflow: hidden;
+}
+.the-icons li {
+ float: left;
+ width: 100px;
+ height: 110px;
+ padding: 10px;
+ border: 1px solid #ddd;
+ font-size: 12px;
+ line-height: 1.25;
+ text-align: center;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ margin: 0 -1px -1px 0;
+}
+.the-icons .glyphicon {
display: block;
- position: static;
- margin-bottom: 5px;
- *width: 180px;
+ margin: 5px auto;
+ vertical-align: middle;
+ margin-right: 3px;
+ font-size: 24px;
+}
+.the-icons li:hover {
+ background-color: rgba(255,0,0,.1);
}
@@ -710,8 +520,15 @@ form.bs-docs-example {
/* Responsive docs
-------------------------------------------------- */
+/* Related: responsive utilities tables */
+.table code {
+ font-size: 13px;
+ font-weight: normal;
+}
+
/* Utility classes table
------------------------- */
+.bs-table th small,
.responsive-utilities th small {
display: block;
font-weight: normal;
@@ -744,31 +561,25 @@ form.bs-docs-example {
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;
+ padding: 15px 10px;
+ font-size: 14px;
+ font-weight: bold;
+ line-height: 1.1;
+ text-align: center;
+ border-radius: 4px;
}
-.responsive-utilities-test span {
+.responsive-utilities-test.visible-on [class*="hidden"],
+.responsive-utilities-test.hidden-on [class*="visible"] {
+ color: #999;
+ border: 1px solid #ddd;
+}
+.responsive-utilities-test.visible-on [class*="visible"],
+.responsive-utilities-test.hidden-on [class*="hidden"] {
color: #468847;
background-color: #dff0d8;
border: 1px solid #d6e9c6;
@@ -776,292 +587,216 @@ form.bs-docs-example {
-/* Sidenav for Docs
+/* Footer
-------------------------------------------------- */
-.bs-docs-sidenav {
- width: 228px;
- margin: 30px 0 0;
- 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;
- width: 190px \9;
- margin: 0 0 -1px;
- padding: 8px 14px;
- 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);
+.bs-footer {
+ padding-top: 40px;
+ padding-bottom: 30px;
+ margin-top: 100px;
+ text-align: center;
+ border-top: 1px solid #e5e5e5;
}
-/* Chevrons */
-.bs-docs-sidenav .icon-chevron-right {
- float: right;
- margin-top: 2px;
- margin-right: -6px;
- opacity: .25;
+.bs-footer p {
+ margin-bottom: 0;
+ color: #777;
}
-.bs-docs-sidenav > li > a:hover {
- background-color: #f5f5f5;
+.footer-links {
+ margin: 10px 0;
+}
+.footer-links li {
+ display: inline;
+ padding: 0 2px;
+}
+.footer-links li:first-child {
+ padding-left: 0;
}
-.bs-docs-sidenav a:hover .icon-chevron-right {
- opacity: .5;
+
+/* Social proof buttons from GitHub & Twitter */
+.bs-social {
+ margin-bottom: 20px;
+}
+.bs-social-buttons {
+ display: inline-block;
+ margin: 0;
+ list-style: none;
}
-.bs-docs-sidenav .active .icon-chevron-right,
-.bs-docs-sidenav .active a:hover .icon-chevron-right {
- background-image: url(../img/glyphicons-halflings-white.png);
- opacity: 1;
+.bs-social-buttons li {
+ display: inline-block;
+ line-height: 1;
}
-.bs-docs-sidenav.affix {
- top: 40px;
+.bs-social-buttons li + li {
+ margin-left: 15px;
}
-.bs-docs-sidenav.affix-bottom {
- position: absolute;
- top: auto;
- bottom: 270px;
+.bs-social-buttons .twitter-follow-button {
+ width: 225px !important;
+}
+.bs-social-buttons .twitter-share-button {
+ width: 98px !important;
}
-
-/* Responsive
+/* Misc docs stuff
-------------------------------------------------- */
-/* Desktop large
-------------------------- */
-@media (min-width: 1200px) {
- .bs-docs-container {
- max-width: 970px;
- }
- .bs-docs-sidenav {
- width: 258px;
- }
- .bs-docs-sidenav > li > a {
- width: 230px \9; /* Override the previous IE8-9 hack */
- }
+/* Pseudo :focus state for showing how it looks in the docs */
+input.focused {
+ border-color: rgba(82,168,236,.8);
+ outline: 0;
+ outline: thin dotted \9; /* IE6-9 */
+ -moz-box-shadow: 0 0 8px rgba(82,168,236,.6);
+ box-shadow: 0 0 8px rgba(82,168,236,.6);
}
-/* Desktop
-------------------------- */
-@media (max-width: 980px) {
- /* Unfloat brand */
- body > .navbar-fixed-top .brand {
- float: left;
- margin-left: 0;
- padding-left: 10px;
- padding-right: 10px;
- }
+/* Scrollspy demo on fixed height div */
+.scrollspy-example {
+ position: relative;
+ height: 200px;
+ margin-top: 10px;
+ overflow: auto;
+}
- /* Inline-block quick links for more spacing */
- .quick-links li {
- display: inline-block;
- margin: 5px;
- }
+.highlight {
+ padding: 9px 14px;
+ margin-bottom: 14px;
+ background-color: #f7f7f9;
+ border: 1px solid #e1e1e8;
+ border-radius: 4px;
+}
+.highlight pre {
+ padding: 0;
+ margin-top: 0;
+ margin-bottom: 0;
+ background-color: transparent;
+ border: 0;
+ white-space: nowrap;
+}
+.highlight pre code {
+ font-size: inherit;
+ color: #333; /* Effectively the base text color */
+}
+.highlight pre .lineno {
+ display: inline-block;
+ width: 22px;
+ padding-right: 5px;
+ margin-right: 10px;
+ text-align: right;
+ color: #bebec5;
+}
- /* When affixed, space properly */
- .bs-docs-sidenav {
- top: 0;
- width: 218px;
- margin-top: 30px;
- margin-right: 0;
- }
+/* Better spacing on download options in getting started */
+.bs-docs-dl-options h4 {
+ margin-top: 15px;
+ margin-bottom: 5px;
}
-/* Tablet to desktop
-------------------------- */
-@media (min-width: 768px) and (max-width: 979px) {
- /* 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 */
- }
- /* Adjust sidenav width */
- .bs-docs-sidenav {
- width: 166px;
- margin-top: 20px;
- }
- .bs-docs-sidenav.affix {
- top: 0;
- }
+/* Hide the top link initially */
+.bs-top {
+ display: none;
}
-/* Tablet
-------------------------- */
-@media (max-width: 767px) {
- /* 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;
- }
- .marketing .span4 {
- margin-bottom: 40px;
+/* Responsive variations
+-------------------------------------------------- */
+
+/* Hide code snippets on mobile devices */
+@media screen and (max-width: 480px) {
+ .bs-example {
+ border-radius: 4px;
}
- .bs-docs-social {
- margin: 0 -20px;
+ .highlight {
+ display: none;
}
+}
- /* Space out the show-grid examples */
- .show-grid [class*="span"] {
- margin-bottom: 5px;
- }
+/* Tablets and up */
+@media screen and (min-width: 768px) {
- /* Sidenav */
- .bs-docs-sidenav {
- width: auto;
- margin-bottom: 20px;
- }
- .bs-docs-sidenav.affix {
- position: static;
- width: auto;
- top: 0;
+ /* Reaffix the fixed sidebar */
+ .bs-sidebar.affix {
+ position: fixed; /* Undo the static from mobile-first approach */
+ top: 50px;
+ width: 160px;
}
- /* Unfloat the back to top link in footer */
- .footer {
- margin-left: -20px;
- margin-right: -20px;
- padding-left: 20px;
- padding-right: 20px;
+ /* Back to top link */
+ .bs-top {
+ display: block; /* Unhide */
+ float: left;
+ padding: 7px 15px;
+ font-weight: 500;
+ color: #999;
+ background-color: #eee;
+ border-radius: 4px;
}
- .footer p {
- margin-bottom: 9px;
+ .bs-top:hover {
+ color: #fff;
+ text-decoration: none;
+ background-color: #999;
+ }
+ .bs-top.affix {
+ position: fixed;
+ right: 15px;
+ bottom: 15px;
}
-}
-/* Landscape phones
-------------------------- */
-@media (max-width: 480px) {
- /* Remove padding above jumbotron */
- body {
- padding-top: 0;
+ .bs-header {
+ font-size: 21px;
+ text-align: left;
+ }
+ .bs-header h1 {
+ font-size: 60px;
+ line-height: 1;
}
- /* Change up some type stuff */
- h2 small {
+ /* Show the docs nav */
+ .bs-sidebar {
display: block;
}
- /* Downsize the jumbotrons */
- .jumbotron h1 {
- font-size: 45px;
+ /* Tweak display of docs jumbotrons */
+ .bs-masthead {
+ padding-top: 100px;
+ padding-bottom: 100px;
}
- .jumbotron p,
- .jumbotron .btn {
- font-size: 18px;
+ .bs-masthead h1 {
+ font-size: 100px;
}
- .jumbotron .btn {
- display: block;
- margin: 0 auto;
+ .bs-masthead p {
+ margin-left: 15%;
+ margin-right: 15%;
+ font-size: 30px;
}
- /* center align subhead text like the masthead */
- .subhead h1,
- .subhead p {
- text-align: center;
+ .bs-navbar-top-example .navbar-fixed-top,
+ .bs-navbar-bottom-example .navbar-fixed-bottom {
+ position: absolute;
}
- /* Marketing on home */
- .marketing h1 {
- font-size: 30px;
- }
- .marketing-byline {
- font-size: 18px;
- }
+}
- /* center example sites */
- .example-sites {
- margin-left: 0;
- }
- .example-sites > li {
- float: none;
- display: block;
- max-width: 280px;
- margin: 0 auto 18px;
- text-align: center;
- }
- .example-sites .thumbnail > img {
- max-width: 270px;
- }
+/* Tablets/desktops and up */
+@media screen and (min-width: 992px) {
- /* Do our best to make tables work in narrow viewports */
- table code {
- white-space: normal;
- word-wrap: break-word;
- word-break: break-all;
+ /* Widen the fixed sidebar */
+ .bs-sidebar.affix {
+ width: 213px;
}
- /* 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;
+ /* Icons */
+ .the-icons li {
+ width: 12.5%;
}
- /* Examples: modal */
- .modal-example .modal {
- position: relative;
- top: auto;
- right: auto;
- bottom: auto;
- left: auto;
- }
+}
+
+/* Large desktops and up */
+@media screen and (min-width: 1200px) {
- /* Tighten up footer */
- .footer {
- padding-top: 20px;
- padding-bottom: 20px;
+ /* Widen the fixed sidebar again */
+ .bs-sidebar.affix {
+ width: 270px;
}
+
}