docs.css 29.02 KiB
/*!
 * Bootstrap Docs (http://getbootstrap.com)
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under the Creative Commons Attribution 3.0 Unported License. For
 * details, see http://creativecommons.org/licenses/by/3.0/.
 */
/*
 * Bootstrap Documentation
 * Special styles for presenting Bootstrap's documentation and code examples.
 * Scaffolding
 * Update the basics of our documents to prep for docs content.
body {
  position: relative; /* For scrollspy */
/* Keep code small in tables on account of limited space */
.table code {
  font-size: 13px;
  font-weight: normal;
/* Outline button for use within the docs */
.btn-outline {
  color: #563d7c;
  background-color: transparent;
  border-color: #563d7c;
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
  color: #fff;
  background-color: #563d7c;
  border-color: #563d7c;
/* Inverted outline button (white on dark) */
.btn-outline-inverse {
  color: #fff;
  background-color: transparent;
  border-color: #cdbfe3;
.btn-outline-inverse:hover,
.btn-outline-inverse:focus,
.btn-outline-inverse:active {
  color: #563d7c;
  text-shadow: none;
  background-color: #fff;
  border-color: #fff;
/* Bootstrap "B" icon */
.bs-docs-booticon {
  display: block;
  font-weight: 500;
  color: #fff;
  text-align: center;
  cursor: default;
  background-color: #563d7c;
  border-radius: 15%;
.bs-docs-booticon-sm {
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
width: 30px; height: 30px; font-size: 20px; line-height: 28px; } .bs-docs-booticon-lg { width: 144px; height: 144px; font-size: 108px; line-height: 140px; } .bs-docs-booticon-inverse { color: #563d7c; background-color: #fff; } .bs-docs-booticon-outline { background-color: transparent; border: 1px solid #cdbfe3; } /* * Main navigation * * Turn the `.navbar` at the top of the docs purple. */ .bs-docs-nav { margin-bottom: 0; background-color: #fff; border-bottom: 0; } .bs-home-nav .bs-nav-b { display: none; } .bs-docs-nav .navbar-brand, .bs-docs-nav .navbar-nav > li > a { font-weight: 500; color: #563d7c; } .bs-docs-nav .navbar-nav > li > a:hover, .bs-docs-nav .navbar-nav > .active > a, .bs-docs-nav .navbar-nav > .active > a:hover { color: #463265; background-color: #f9f9f9; } .bs-docs-nav .navbar-toggle .icon-bar { background-color: #563d7c; } .bs-docs-nav .navbar-header .navbar-toggle { border-color: #fff; } .bs-docs-nav .navbar-header .navbar-toggle:hover, .bs-docs-nav .navbar-header .navbar-toggle:focus { background-color: #f9f9f9; border-color: #f9f9f9; } /* * Footer * * Separated section of content at the bottom of all pages, save the homepage. */ .bs-docs-footer { padding-top: 40px; padding-bottom: 40px; margin-top: 100px; color: #777;
141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
text-align: center; border-top: 1px solid #e5e5e5; } .bs-docs-footer-links { padding-left: 0; margin-top: 20px; color: #999; } .bs-docs-footer-links li { display: inline; padding: 0 2px; } .bs-docs-footer-links li:first-child { padding-left: 0; } @media (min-width: 768px) { .bs-docs-footer p { margin-bottom: 0; } } /* * Social buttons * * Twitter and GitHub social action buttons (for homepage and footer). */ .bs-docs-social { margin-bottom: 20px; text-align: center; } .bs-docs-social-buttons { display: inline-block; padding-left: 0; margin-bottom: 0; list-style: none; } .bs-docs-social-buttons li { display: inline-block; padding: 5px 8px; line-height: 1; } .bs-docs-social-buttons .twitter-follow-button { width: 225px !important; } .bs-docs-social-buttons .twitter-share-button { width: 98px !important; } /* Style the GitHub buttons via CSS instead of inline attributes */ .github-btn { overflow: hidden; border: 0; } /* * Homepage * * Tweaks to the custom homepage and the masthead (main jumbotron). */ /* Share masthead with page headers */ .bs-docs-masthead, .bs-docs-header { position: relative; padding: 30px 15px; color: #cdbfe3; text-align: center;
211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
text-shadow: 0 1px 0 rgba(0,0,0,.1); background-color: #6f5499; background-image: -webkit-gradient(linear, left top, left bottom, from(#563d7c), to(#6f5499)); background-image: -webkit-linear-gradient(top, #563d7c 0%, #6f5499 100%); background-image: -o-linear-gradient(top, #563d7c 0%, #6f5499 100%); background-image: linear-gradient(to bottom, #563d7c 0%, #6f5499 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#563d7c', endColorstr='#6F5499', GradientType=0); background-repeat: repeat-x; } /* Masthead (headings and download button) */ .bs-docs-masthead .bs-docs-booticon { margin: 0 auto 30px; } .bs-docs-masthead h1 { font-weight: 300; line-height: 1; color: #fff; } .bs-docs-masthead .lead { margin: 0 auto 30px; font-size: 20px; color: #fff; } .bs-docs-masthead .version { margin-top: -15px; margin-bottom: 30px; color: #9783b9; } .bs-docs-masthead .btn { width: 100%; padding: 15px 30px; font-size: 20px; } @media (min-width: 480px) { .bs-docs-masthead .btn { width: auto; } } @media (min-width: 768px) { .bs-docs-masthead { padding: 80px 0; } .bs-docs-masthead h1 { font-size: 60px; } .bs-docs-masthead .lead { font-size: 24px; } } @media (min-width: 992px) { .bs-docs-masthead .lead { width: 80%; font-size: 30px; } } /* * Page headers * * Jumbotron-esque headers at the top of every page that's not the homepage. */ /* Page headers */ .bs-docs-header { margin-bottom: 40px;
281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
font-size: 20px; } .bs-docs-header h1 { margin-top: 0; color: #fff; } .bs-docs-header p { margin-bottom: 0; font-weight: 300; line-height: 1.4; } .bs-docs-header .container { position: relative; } @media (min-width: 768px) { .bs-docs-header { padding-top: 60px; padding-bottom: 60px; font-size: 24px; text-align: left; } .bs-docs-header h1 { font-size: 60px; line-height: 1; } } @media (min-width: 992px) { .bs-docs-header h1, .bs-docs-header p { margin-right: 380px; } } /* * Carbon ads * * Single display ad that shows on all pages (except homepage) in page headers. * The hella `!important` is required for any pre-set property. */ .carbonad { width: auto !important; height: auto !important; padding: 20px !important; margin: 30px -30px -31px !important; overflow: hidden; /* clearfix */ font-size: 13px !important; line-height: 16px !important; text-align: left; background: transparent !important; border: solid #866ab3 !important; border-width: 1px 0 !important; } .carbonad-img { margin: 0 !important; } .carbonad-text, .carbonad-tag { display: block !important; float: none !important; width: auto !important; height: auto !important; margin-left: 145px !important; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; } .carbonad-text { padding-top: 0 !important;
351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
} .carbonad-tag { color: inherit !important; text-align: left !important; } .carbonad-text a, .carbonad-tag a { color: #fff !important; } .carbonad #azcarbon > img { display: none; /* hide what I assume are tracking images */ } @media (min-width: 480px) { .carbonad { width: 330px !important; margin: 20px auto !important; border-width: 1px !important; border-radius: 4px; } .bs-docs-masthead .carbonad { margin: 50px auto 0 !important; } } @media (min-width: 768px) { .carbonad { margin-right: 0 !important; margin-left: 0 !important; } } @media (min-width: 992px) { .carbonad { position: absolute; top: 0; right: 15px; /* 15px instead of 0 since box-sizing */ width: 330px !important; padding: 15px !important; margin: 0 !important; } .bs-docs-masthead .carbonad { position: static; } } /* * Homepage featurettes * * Reasons to use Bootstrap, entries from the Expo, and more. */ .bs-docs-featurette { padding-top: 40px; padding-bottom: 40px; font-size: 16px; line-height: 1.5; color: #555; text-align: center; background-color: #fff; border-bottom: 1px solid #e5e5e5; } .bs-docs-featurette + .bs-docs-footer { margin-top: 0; border-top: 0; } .bs-docs-featurette-title { margin-bottom: 5px;
421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
font-size: 30px; font-weight: normal; color: #333; } .half-rule { width: 100px; margin: 40px auto; } .bs-docs-featurette h3 { margin-bottom: 5px; font-weight: normal; color: #333; } .bs-docs-featurette-img { display: block; margin-bottom: 20px; color: #333; } .bs-docs-featurette-img:hover { color: #337ab7; text-decoration: none; } .bs-docs-featurette-img img { display: block; margin-bottom: 15px; } @media (min-width: 480px) { .bs-docs-featurette .img-responsive { margin-top: 30px; } } @media (min-width: 768px) { .bs-docs-featurette { padding-top: 100px; padding-bottom: 100px; } .bs-docs-featurette-title { font-size: 40px; } .bs-docs-featurette .lead { max-width: 80%; margin-right: auto; margin-left: auto; } .bs-docs-featurette .img-responsive { margin-top: 0; } } /* * Featured sites * * Homepage thumbnails from the Expo. */ .bs-docs-featured-sites { margin-right: -1px; margin-left: -1px; } .bs-docs-featured-sites .col-xs-6 { padding: 1px; } .bs-docs-featured-sites .img-responsive { margin-top: 0; } @media (min-width: 768px) { .bs-docs-featured-sites .col-sm-3:first-child img {
491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
border-top-left-radius: 4px; border-bottom-left-radius: 4px; } .bs-docs-featured-sites .col-sm-3:last-child img { border-top-right-radius: 4px; border-bottom-right-radius: 4px; } } /* * Examples * * Linked docs examples. */ .bs-examples .thumbnail { margin-bottom: 10px; } .bs-examples h4 { margin-bottom: 5px; } .bs-examples p { margin-bottom: 20px; } @media (max-width: 480px) { .bs-examples { margin-right: -10px; margin-left: -10px; } .bs-examples > [class^="col-"] { padding-right: 10px; padding-left: 10px; } } /* * Side navigation * * Scrollspy and affixed enhanced navigation to highlight sections and secondary * sections of docs content. */ /* By default it's not affixed in mobile views, so undo that */ .bs-docs-sidebar.affix { position: static; } @media (min-width: 768px) { .bs-docs-sidebar { padding-left: 20px; } } /* First level of nav */ .bs-docs-sidenav { margin-top: 20px; margin-bottom: 20px; } /* All levels of nav */ .bs-docs-sidebar .nav > li > a { display: block; padding: 4px 20px; font-size: 13px; font-weight: 500; color: #999; } .bs-docs-sidebar .nav > li > a:hover,
561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
.bs-docs-sidebar .nav > li > a:focus { padding-left: 19px; color: #563d7c; text-decoration: none; background-color: transparent; border-left: 1px solid #563d7c; } .bs-docs-sidebar .nav > .active > a, .bs-docs-sidebar .nav > .active:hover > a, .bs-docs-sidebar .nav > .active:focus > a { padding-left: 18px; font-weight: bold; color: #563d7c; background-color: transparent; border-left: 2px solid #563d7c; } /* Nav: second level (shown on .active) */ .bs-docs-sidebar .nav .nav { display: none; /* Hide by default, but at >768px, show it */ padding-bottom: 10px; } .bs-docs-sidebar .nav .nav > li > a { padding-top: 1px; padding-bottom: 1px; padding-left: 30px; font-size: 12px; font-weight: normal; } .bs-docs-sidebar .nav .nav > li > a:hover, .bs-docs-sidebar .nav .nav > li > a:focus { padding-left: 29px; } .bs-docs-sidebar .nav .nav > .active > a, .bs-docs-sidebar .nav .nav > .active:hover > a, .bs-docs-sidebar .nav .nav > .active:focus > a { padding-left: 28px; font-weight: 500; } /* Back to top (hidden on mobile) */ .back-to-top, .bs-docs-theme-toggle { display: none; padding: 4px 10px; margin-top: 10px; margin-left: 10px; font-size: 12px; font-weight: 500; color: #999; } .back-to-top:hover, .bs-docs-theme-toggle:hover { color: #563d7c; text-decoration: none; } .bs-docs-theme-toggle { margin-top: 0; } @media (min-width: 768px) { .back-to-top, .bs-docs-theme-toggle { display: block; } } /* Show and affix the side nav when space allows it */ @media (min-width: 992px) { .bs-docs-sidebar .nav > .active > ul {
631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
display: block; } /* Widen the fixed sidebar */ .bs-docs-sidebar.affix, .bs-docs-sidebar.affix-bottom { width: 213px; } .bs-docs-sidebar.affix { position: fixed; /* Undo the static from mobile first approach */ top: 20px; } .bs-docs-sidebar.affix-bottom { position: absolute; /* Undo the static from mobile first approach */ } .bs-docs-sidebar.affix-bottom .bs-docs-sidenav, .bs-docs-sidebar.affix .bs-docs-sidenav { margin-top: 0; margin-bottom: 0; } } @media (min-width: 1200px) { /* Widen the fixed sidebar again */ .bs-docs-sidebar.affix-bottom, .bs-docs-sidebar.affix { width: 263px; } } /* * Docs sections * * Content blocks for each component or feature. */ /* Space things out */ .bs-docs-section { margin-bottom: 60px; } .bs-docs-section:last-child { margin-bottom: 0; } h1[id] { padding-top: 20px; margin-top: 0; } /* * Callouts * * Not quite alerts, but custom and helpful notes for folks reading the docs. * Requires a base and modifier class. */ /* Common styles for all types */ .bs-callout { padding: 20px; margin: 20px 0; border: 1px solid #eee; border-left-width: 5px; border-radius: 3px; } .bs-callout h4 { margin-top: 0; margin-bottom: 5px; } .bs-callout p:last-child { margin-bottom: 0;
701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
} .bs-callout code { border-radius: 3px; } /* Tighten up space between multiple callouts */ .bs-callout + .bs-callout { margin-top: -5px; } /* Variations */ .bs-callout-danger { border-left-color: #d9534f; } .bs-callout-danger h4 { color: #d9534f; } .bs-callout-warning { border-left-color: #f0ad4e; } .bs-callout-warning h4 { color: #f0ad4e; } .bs-callout-info { border-left-color: #5bc0de; } .bs-callout-info h4 { color: #5bc0de; } /* * Color swatches * * Color swatches and associated values for our grayscale and brand colors. */ .color-swatches { margin: 0 -5px; overflow: hidden; /* clearfix */ } .color-swatch { float: left; width: 60px; height: 60px; margin: 0 5px; border-radius: 3px; } @media (min-width: 768px) { .color-swatch { width: 100px; height: 100px; } } /* Framework colors */ .color-swatches .gray-darker { background-color: #222; } .color-swatches .gray-dark { background-color: #333; } .color-swatches .gray { background-color: #555; } .color-swatches .gray-light { background-color: #999; } .color-swatches .gray-lighter {