docs.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. /* Add additional stylesheets below
  2. -------------------------------------------------- */
  3. /*
  4. Bootstrap's documentation styles
  5. Special styles for presenting Bootstrap's documentation and examples
  6. */
  7. /* Body and structure
  8. -------------------------------------------------- */
  9. body {
  10. position: relative;
  11. padding-top: 90px;
  12. background-color: #fff;
  13. background-image: url(../img/grid-18px-masked.png);
  14. background-repeat: repeat-x;
  15. background-position: 0 40px;
  16. }
  17. /* Tweak navbar brand link to be super sleek
  18. -------------------------------------------------- */
  19. .navbar-fixed-top .brand {
  20. padding-right: 0;
  21. padding-left: 0;
  22. margin-left: 20px;
  23. float: right;
  24. font-weight: bold;
  25. color: #000;
  26. text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
  27. -webkit-transition: all .2s linear;
  28. -moz-transition: all .2s linear;
  29. transition: all .2s linear;
  30. }
  31. .navbar-fixed-top .brand:hover {
  32. text-decoration: none;
  33. }
  34. /* Space out sub-sections more
  35. -------------------------------------------------- */
  36. section {
  37. padding-top: 60px;
  38. }
  39. /* Faded out hr */
  40. hr.soften {
  41. height: 1px;
  42. margin: 54px 0;
  43. background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  44. background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  45. background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  46. background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  47. border: 0;
  48. }
  49. /* Jumbotrons
  50. -------------------------------------------------- */
  51. .jumbotron {
  52. position: relative;
  53. }
  54. .jumbotron h1 {
  55. margin-bottom: 9px;
  56. font-size: 81px;
  57. letter-spacing: -1px;
  58. line-height: 1;
  59. }
  60. .jumbotron p {
  61. margin-bottom: 18px;
  62. font-weight: 300;
  63. }
  64. .jumbotron .btn-large {
  65. font-size: 20px;
  66. font-weight: normal;
  67. padding: 14px 24px;
  68. margin-right: 10px;
  69. -webkit-border-radius: 6px;
  70. -moz-border-radius: 6px;
  71. border-radius: 6px;
  72. }
  73. /* Masthead (docs home) */
  74. .masthead {
  75. padding-top: 36px;
  76. margin-bottom: 72px;
  77. }
  78. .masthead h1,
  79. .masthead p {
  80. text-align: center;
  81. }
  82. .masthead h1 {
  83. margin-bottom: 18px;
  84. }
  85. .masthead p {
  86. margin-left: 5%;
  87. margin-right: 5%;
  88. font-size: 30px;
  89. line-height: 36px;
  90. }
  91. /* Specific jumbotrons
  92. ------------------------- */
  93. /* supporting docs pages */
  94. .subhead {
  95. padding-bottom: 0;
  96. margin-bottom: 9px;
  97. }
  98. .subhead h1 {
  99. font-size: 54px;
  100. }
  101. /* Subnav */
  102. .subnav {
  103. width: 100%;
  104. height: 36px;
  105. background-color: #eeeeee; /* Old browsers */
  106. background-repeat: repeat-x; /* Repeat the gradient */
  107. background-image: -moz-linear-gradient(top, #f5f5f5 0%, #eeeeee 100%); /* FF3.6+ */
  108. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */
  109. background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Chrome 10+,Safari 5.1+ */
  110. background-image: -ms-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* IE10+ */
  111. background-image: -o-linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* Opera 11.10+ */
  112. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5f5f5', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
  113. background-image: linear-gradient(top, #f5f5f5 0%,#eeeeee 100%); /* W3C */
  114. border: 1px solid #e5e5e5;
  115. -webkit-border-radius: 4px;
  116. -moz-border-radius: 4px;
  117. border-radius: 4px;
  118. }
  119. .subnav .nav {
  120. margin-bottom: 0;
  121. }
  122. .subnav .nav > li > a {
  123. margin: 0;
  124. padding-top: 11px;
  125. padding-bottom: 11px;
  126. border-left: 1px solid #f5f5f5;
  127. border-right: 1px solid #e5e5e5;
  128. -webkit-border-radius: 0;
  129. -moz-border-radius: 0;
  130. border-radius: 0;
  131. }
  132. .subnav .nav > .active > a,
  133. .subnav .nav > .active > a:hover {
  134. padding-left: 13px;
  135. color: #777;
  136. background-color: #e9e9e9;
  137. border-right-color: #ddd;
  138. border-left: 0;
  139. -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
  140. -moz-box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
  141. box-shadow: inset 0 3px 5px rgba(0,0,0,.05);
  142. }
  143. .subnav .nav > .active > a .caret,
  144. .subnav .nav > .active > a:hover .caret {
  145. border-top-color: #777;
  146. }
  147. .subnav .nav > li:first-child > a,
  148. .subnav .nav > li:first-child > a:hover {
  149. border-left: 0;
  150. padding-left: 12px;
  151. -webkit-border-radius: 4px 0 0 4px;
  152. -moz-border-radius: 4px 0 0 4px;
  153. border-radius: 4px 0 0 4px;
  154. }
  155. .subnav .nav > li:last-child > a {
  156. border-right: 0;
  157. }
  158. .subnav .dropdown-menu {
  159. -webkit-border-radius: 0 0 4px 4px;
  160. -moz-border-radius: 0 0 4px 4px;
  161. border-radius: 0 0 4px 4px;
  162. }
  163. /* Fixed subnav on scroll, but only for 980px and up (sorry IE!) */
  164. @media (min-width: 980px) {
  165. .subnav-fixed {
  166. position: fixed;
  167. top: 40px;
  168. left: 0;
  169. right: 0;
  170. z-index: 1030;
  171. border-color: #d5d5d5;
  172. border-width: 0 0 1px; /* drop the border on the fixed edges */
  173. -webkit-border-radius: 0;
  174. -moz-border-radius: 0;
  175. border-radius: 0;
  176. -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
  177. -moz-box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
  178. box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(0,0,0,.1);
  179. }
  180. .subnav-fixed .nav {
  181. width: 938px;
  182. margin: 0 auto;
  183. padding: 0 1px;
  184. }
  185. .subnav .nav > li:first-child > a,
  186. .subnav .nav > li:first-child > a:hover {
  187. -webkit-border-radius: 0;
  188. -moz-border-radius: 0;
  189. border-radius: 0;
  190. }
  191. }
  192. /* Quick links
  193. -------------------------------------------------- */
  194. .quick-links {
  195. min-height: 30px;
  196. padding: 5px 20px;
  197. margin: 36px 0;
  198. list-style: none;
  199. text-align: center;
  200. overflow: hidden;
  201. }
  202. .quick-links li {
  203. display: inline;
  204. margin: 0 5px;
  205. color: #999;
  206. }
  207. .quick-links .github-btn,
  208. .quick-links .tweet-btn,
  209. .quick-links .follow-btn {
  210. position: relative;
  211. top: 5px;
  212. }
  213. /* Marketing section of Overview
  214. -------------------------------------------------- */
  215. .marketing .row {
  216. margin-bottom: 9px;
  217. }
  218. .marketing h1 {
  219. margin: 36px 0 27px;
  220. font-size: 40px;
  221. font-weight: 300;
  222. text-align: center;
  223. }
  224. .marketing h2,
  225. .marketing h3 {
  226. font-weight: 300;
  227. }
  228. .marketing h2 {
  229. font-size: 22px;
  230. }
  231. .marketing p {
  232. margin-right: 10px;
  233. }
  234. .marketing .bs-icon {
  235. float: left;
  236. margin: 7px 10px 0 0;
  237. opacity: .8;
  238. }
  239. .marketing .small-bs-icon {
  240. float: left;
  241. margin: 4px 5px 0 0;
  242. }
  243. /* Footer
  244. -------------------------------------------------- */
  245. .footer {
  246. margin-top: 45px;
  247. padding: 35px 0 36px;
  248. border-top: 1px solid #e5e5e5;
  249. }
  250. .footer p {
  251. margin-bottom: 0;
  252. color: #555;
  253. }
  254. /* Special grid styles
  255. -------------------------------------------------- */
  256. .show-grid {
  257. margin-top: 10px;
  258. margin-bottom: 20px;
  259. }
  260. .show-grid [class*="span"] {
  261. background-color: #eee;
  262. text-align: center;
  263. -webkit-border-radius: 3px;
  264. -moz-border-radius: 3px;
  265. border-radius: 3px;
  266. min-height: 30px;
  267. line-height: 30px;
  268. }
  269. .show-grid:hover [class*="span"] {
  270. background: #ddd;
  271. }
  272. .show-grid .show-grid {
  273. margin-top: 0;
  274. margin-bottom: 0;
  275. }
  276. .show-grid .show-grid [class*="span"] {
  277. background-color: #ccc;
  278. }
  279. /* Render mini layout previews
  280. -------------------------------------------------- */
  281. .mini-layout {
  282. border: 1px solid #ddd;
  283. -webkit-border-radius: 6px;
  284. -moz-border-radius: 6px;
  285. border-radius: 6px;
  286. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
  287. -moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
  288. box-shadow: 0 1px 2px rgba(0,0,0,.075);
  289. }
  290. .mini-layout {
  291. height: 240px;
  292. margin-bottom: 20px;
  293. padding: 9px;
  294. }
  295. .mini-layout div {
  296. -webkit-border-radius: 3px;
  297. -moz-border-radius: 3px;
  298. border-radius: 3px;
  299. }
  300. .mini-layout .mini-layout-body {
  301. background-color: #dceaf4;
  302. margin: 0 auto;
  303. width: 70%;
  304. height: 240px;
  305. }
  306. .mini-layout.fluid .mini-layout-sidebar,
  307. .mini-layout.fluid .mini-layout-header,
  308. .mini-layout.fluid .mini-layout-body {
  309. float: left;
  310. }
  311. .mini-layout.fluid .mini-layout-sidebar {
  312. background-color: #bbd8e9;
  313. width: 20%;
  314. height: 240px;
  315. }
  316. .mini-layout.fluid .mini-layout-body {
  317. width: 77.5%;
  318. margin-left: 2.5%;
  319. }
  320. /* Popover docs
  321. -------------------------------------------------- */
  322. .popover-well {
  323. min-height: 160px;
  324. }
  325. .popover-well .popover {
  326. display: block;
  327. }
  328. .popover-well .popover-wrapper {
  329. width: 50%;
  330. height: 160px;
  331. float: left;
  332. margin-left: 55px;
  333. position: relative;
  334. }
  335. .popover-well .popover-menu-wrapper {
  336. height: 80px;
  337. }
  338. .large-bird {
  339. margin: 5px 0 0 310px;
  340. opacity: .1;
  341. }
  342. /* Download page
  343. -------------------------------------------------- */
  344. .download .page-header {
  345. margin-top: 36px;
  346. }
  347. .page-header .toggle-all {
  348. margin-top: 5px;
  349. }
  350. /* Space out h3s when following a section */
  351. .download h3 {
  352. margin-bottom: 5px;
  353. }
  354. .download-builder input + h3,
  355. .download-builder .checkbox + h3 {
  356. margin-top: 9px;
  357. }
  358. /* Fields for variables */
  359. .download-builder input[type=text] {
  360. margin-bottom: 9px;
  361. font-family: Menlo, Monaco, "Courier New", monospace;
  362. font-size: 12px;
  363. color: #d14;
  364. }
  365. .download-builder input[type=text]:focus {
  366. background-color: #fff;
  367. }
  368. /* Custom, larger checkbox labels */
  369. .download .checkbox {
  370. padding: 6px 10px 6px 25px;
  371. color: #555;
  372. background-color: #f9f9f9;
  373. -webkit-border-radius: 3px;
  374. -moz-border-radius: 3px;
  375. border-radius: 3px;
  376. cursor: pointer;
  377. }
  378. .download .checkbox:hover {
  379. color: #333;
  380. background-color: #f5f5f5;
  381. }
  382. .download .checkbox small {
  383. font-size: 12px;
  384. color: #777;
  385. }
  386. /* Variables section */
  387. #variables label {
  388. margin-bottom: 0;
  389. }
  390. /* Giant download button */
  391. .download-btn {
  392. margin: 36px 0 108px;
  393. }
  394. .download p,
  395. .download h4 {
  396. max-width: 50%;
  397. margin: 0 auto;
  398. color: #999;
  399. text-align: center;
  400. }
  401. .download h4 {
  402. margin-bottom: 0;
  403. }
  404. .download p {
  405. margin-bottom: 18px;
  406. }
  407. .download-btn .btn {
  408. display: block;
  409. width: auto;
  410. padding: 19px 24px;
  411. margin-bottom: 27px;
  412. font-size: 30px;
  413. line-height: 1;
  414. text-align: center;
  415. -webkit-border-radius: 6px;
  416. -moz-border-radius: 6px;
  417. border-radius: 6px;
  418. }
  419. /* Color swatches on LESS docs page
  420. -------------------------------------------------- */
  421. /* Sets the width of the td */
  422. .swatch-col {
  423. width: 30px;
  424. }
  425. /* Le swatch */
  426. .swatch {
  427. display: inline-block;
  428. width: 30px;
  429. height: 20px;
  430. margin: -6px 0;
  431. -webkit-border-radius: 3px;
  432. -moz-border-radius: 3px;
  433. border-radius: 3px;
  434. }
  435. /* For white swatches, give a border */
  436. .swatch-bordered {
  437. width: 28px;
  438. height: 18px;
  439. border: 1px solid #eee;
  440. }
  441. /* Misc
  442. -------------------------------------------------- */
  443. .browser-support {
  444. max-width: 100%;
  445. }
  446. /* Make tables spaced out a bit more */
  447. h2 + table,
  448. h3 + table,
  449. h4 + table,
  450. h2 + .row {
  451. margin-top: 5px;
  452. }
  453. /* Example sites showcase */
  454. .example-sites img {
  455. max-width: 100%;
  456. margin: 0 auto;
  457. }
  458. .marketing-byline {
  459. margin: -18px 0 27px;
  460. font-size: 18px;
  461. font-weight: 300;
  462. line-height: 24px;
  463. color: #999;
  464. text-align: center;
  465. }
  466. .scrollspy-example {
  467. height: 200px;
  468. overflow: auto;
  469. position: relative;
  470. }
  471. /* Remove bottom margin on example forms in wells */
  472. form.well {
  473. padding: 14px;
  474. }
  475. /* Tighten up spacing */
  476. .well hr {
  477. margin: 18px 0;
  478. }
  479. /* Fake the :focus state to demo it */
  480. .focused {
  481. border-color: rgba(82,168,236,.8);
  482. -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
  483. -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
  484. box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
  485. outline: 0;
  486. }
  487. /* For input sizes, make them display block */
  488. .docs-input-sizes select,
  489. .docs-input-sizes input[type=text] {
  490. display: block;
  491. margin-bottom: 9px;
  492. }
  493. /* Icons
  494. ------------------------- */
  495. .the-icons {
  496. margin-bottom: 18px;
  497. }
  498. .the-icons i {
  499. display: block;
  500. margin-bottom: 5px;
  501. }
  502. .the-icons i:hover {
  503. background-color: rgba(255,0,0,.25);
  504. }
  505. .the-icons i:after {
  506. display: block;
  507. content: attr(class);
  508. font-style: normal;
  509. margin-left: 20px;
  510. width: 140px;
  511. }
  512. #javascript input[type=checkbox] {
  513. position: relative;
  514. top: -1px;
  515. display: inline;
  516. margin-left: 6px;
  517. }
  518. /* Eaxmples page
  519. ------------------------- */
  520. .bootstrap-examples .thumbnail {
  521. margin-bottom: 9px;
  522. background-color: #fff;
  523. }
  524. /* Responsive Docs
  525. -------------------------------------------------- */
  526. @media (max-width: 480px) {
  527. /* Reduce padding above jumbotron */
  528. body {
  529. padding-top: 70px;
  530. }
  531. /* Change up some type stuff */
  532. h2 {
  533. margin-top: 27px;
  534. }
  535. h2 small {
  536. display: block;
  537. line-height: 18px;
  538. }
  539. h3 {
  540. margin-top: 18px;
  541. }
  542. /* Adjust the jumbotron */
  543. .jumbotron h1,
  544. .jumbotron p {
  545. text-align: center;
  546. margin-right: 0;
  547. }
  548. .jumbotron h1 {
  549. font-size: 45px;
  550. margin-right: 0;
  551. }
  552. .jumbotron p {
  553. margin-right: 0;
  554. margin-left: 0;
  555. font-size: 18px;
  556. line-height: 24px;
  557. }
  558. .jumbotron .btn {
  559. display: block;
  560. font-size: 18px;
  561. padding: 10px 14px;
  562. margin: 0 auto 10px;
  563. }
  564. /* Masthead (home page jumbotron) */
  565. .masthead {
  566. padding-top: 0;
  567. }
  568. /* Don't space out quick links so much */
  569. .quick-links {
  570. margin: 40px 0 0;
  571. }
  572. /* hide the bullets on mobile since our horizontal space is limited */
  573. .quick-links .divider {
  574. display: none;
  575. }
  576. /* center example sites */
  577. .example-sites {
  578. margin-left: 0;
  579. }
  580. .example-sites > li {
  581. float: none;
  582. display: block;
  583. max-width: 280px;
  584. margin: 0 auto 18px;
  585. text-align: center;
  586. }
  587. .example-sites .thumbnail > img {
  588. max-width: 270px;
  589. }
  590. table code {
  591. white-space: normal;
  592. word-wrap: break-word;
  593. word-break: break-all;
  594. }
  595. /* Modal example */
  596. .modal-example .modal {
  597. position: relative;
  598. top: auto;
  599. right: auto;
  600. bottom: auto;
  601. left: auto;
  602. }
  603. }
  604. @media (max-width: 768px) {
  605. /* Remove any padding from the body */
  606. body {
  607. padding-top: 0;
  608. }
  609. /* Jumbotron buttons */
  610. .jumbotron .btn {
  611. margin-bottom: 10px;
  612. }
  613. /* Subnav */
  614. .subnav {
  615. position: static;
  616. top: auto;
  617. z-index: auto;
  618. width: auto;
  619. height: auto;
  620. background: #fff; /* whole background property since we use a background-image for gradient */
  621. -webkit-box-shadow: none;
  622. -moz-box-shadow: none;
  623. box-shadow: none;
  624. }
  625. .subnav .nav > li {
  626. float: none;
  627. }
  628. .subnav .nav > li > a {
  629. border: 0;
  630. }
  631. .subnav .nav > li + li > a {
  632. border-top: 1px solid #e5e5e5;
  633. }
  634. .subnav .nav > li:first-child > a,
  635. .subnav .nav > li:first-child > a:hover {
  636. -webkit-border-radius: 4px 4px 0 0;
  637. -moz-border-radius: 4px 4px 0 0;
  638. border-radius: 4px 4px 0 0;
  639. }
  640. /* Popovers */
  641. .large-bird {
  642. display: none;
  643. }
  644. .popover-well .popover-wrapper {
  645. margin-left: 0;
  646. }
  647. /* Space out the show-grid examples */
  648. .show-grid [class*="span"] {
  649. margin-bottom: 5px;
  650. }
  651. /* Unfloat the back to top link in footer */
  652. .footer .pull-right {
  653. float: none;
  654. }
  655. .footer p {
  656. margin-bottom: 9px;
  657. }
  658. }
  659. @media (min-width: 480px) and (max-width: 768px) {
  660. /* Scale down the jumbotron content */
  661. .jumbotron h1 {
  662. font-size: 54px;
  663. }
  664. .jumbotron p {
  665. margin-right: 0;
  666. margin-left: 0;
  667. }
  668. }
  669. @media (min-width: 768px) and (max-width: 980px) {
  670. /* Remove any padding from the body */
  671. body {
  672. padding-top: 0;
  673. }
  674. /* Scale down the jumbotron content */
  675. .jumbotron h1 {
  676. font-size: 72px;
  677. }
  678. }
  679. @media (max-width: 980px) {
  680. /* Unfloat brand */
  681. .navbar-fixed-top .brand {
  682. float: left;
  683. margin-left: 0;
  684. padding-left: 10px;
  685. padding-right: 10px;
  686. }
  687. /* Inline-block quick links for more spacing */
  688. .quick-links li {
  689. display: inline-block;
  690. margin: 5px;
  691. }
  692. }
  693. /* LARGE DESKTOP SCREENS */
  694. @media (min-width: 1210px) {
  695. /* Update subnav container */
  696. .subnav-fixed .nav {
  697. width: 1168px; /* 2px less to account for left/right borders being removed when in fixed mode */
  698. }
  699. }