docs.css 22 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015
  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: 40px;
  12. }
  13. /* Code in headings */
  14. h3 code {
  15. font-size: 14px;
  16. font-weight: normal;
  17. }
  18. /* Tweak navbar brand link to be super sleek
  19. -------------------------------------------------- */
  20. body > .navbar {
  21. font-size: 13px;
  22. }
  23. /* Change the docs' brand */
  24. body > .navbar .brand {
  25. padding-right: 0;
  26. padding-left: 0;
  27. margin-left: 20px;
  28. float: right;
  29. font-weight: bold;
  30. color: #000;
  31. text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.125);
  32. -webkit-transition: all .2s linear;
  33. -moz-transition: all .2s linear;
  34. transition: all .2s linear;
  35. }
  36. body > .navbar .brand:hover {
  37. text-decoration: none;
  38. text-shadow: 0 1px 0 rgba(255,255,255,.1), 0 0 30px rgba(255,255,255,.4);
  39. }
  40. /* Sections
  41. -------------------------------------------------- */
  42. /* padding for in-page bookmarks and fixed navbar */
  43. section {
  44. padding-top: 30px;
  45. }
  46. section > .page-header,
  47. section > .lead {
  48. color: #5a5a5a;
  49. }
  50. section > ul li {
  51. margin-bottom: 5px;
  52. }
  53. /* Separators (hr) */
  54. .bs-docs-separator {
  55. margin: 40px 0 39px;
  56. }
  57. /* Faded out hr */
  58. hr.soften {
  59. height: 1px;
  60. margin: 70px 0;
  61. background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  62. background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  63. background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  64. background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,.1), rgba(0,0,0,0));
  65. border: 0;
  66. }
  67. /* Jumbotrons
  68. -------------------------------------------------- */
  69. /* Base class
  70. ------------------------- */
  71. .jumbotron {
  72. position: relative;
  73. padding: 40px 0;
  74. color: #fff;
  75. text-align: center;
  76. text-shadow: 0 1px 3px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.075);
  77. background: #020031; /* Old browsers */
  78. background: -moz-linear-gradient(45deg, #020031 0%, #6d3353 100%); /* FF3.6+ */
  79. background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#020031), color-stop(100%,#6d3353)); /* Chrome,Safari4+ */
  80. background: -webkit-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* Chrome10+,Safari5.1+ */
  81. background: -o-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* Opera 11.10+ */
  82. background: -ms-linear-gradient(45deg, #020031 0%,#6d3353 100%); /* IE10+ */
  83. background: linear-gradient(45deg, #020031 0%,#6d3353 100%); /* W3C */
  84. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#020031', endColorstr='#6d3353',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  85. -webkit-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
  86. -moz-box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
  87. box-shadow: inset 0 3px 7px rgba(0,0,0,.2), inset 0 -3px 7px rgba(0,0,0,.2);
  88. }
  89. .jumbotron h1 {
  90. font-size: 80px;
  91. font-weight: bold;
  92. letter-spacing: -1px;
  93. line-height: 1;
  94. }
  95. .jumbotron p {
  96. font-size: 24px;
  97. font-weight: 300;
  98. line-height: 1.25;
  99. margin-bottom: 30px;
  100. }
  101. /* Link styles (used on .masthead-links as well) */
  102. .jumbotron a {
  103. color: #fff;
  104. color: rgba(255,255,255,.5);
  105. -webkit-transition: all .2s ease-in-out;
  106. -moz-transition: all .2s ease-in-out;
  107. transition: all .2s ease-in-out;
  108. }
  109. .jumbotron a:hover {
  110. color: #fff;
  111. text-shadow: 0 0 10px rgba(255,255,255,.25);
  112. }
  113. /* Download button */
  114. .masthead .btn {
  115. padding: 19px 24px;
  116. font-size: 24px;
  117. font-weight: 200;
  118. color: #fff; /* redeclare to override the `.jumbotron a` */
  119. border: 0;
  120. -webkit-border-radius: 6px;
  121. -moz-border-radius: 6px;
  122. border-radius: 6px;
  123. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  124. -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  125. box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  126. -webkit-transition: none;
  127. -moz-transition: none;
  128. transition: none;
  129. }
  130. .masthead .btn:hover {
  131. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  132. -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  133. box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 5px rgba(0,0,0,.25);
  134. }
  135. .masthead .btn:active {
  136. -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
  137. -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
  138. box-shadow: inset 0 2px 4px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.1);
  139. }
  140. /* Pattern overlay
  141. ------------------------- */
  142. .jumbotron .container {
  143. position: relative;
  144. z-index: 2;
  145. }
  146. .jumbotron:after {
  147. content: '';
  148. display: block;
  149. position: absolute;
  150. top: 0;
  151. right: 0;
  152. bottom: 0;
  153. left: 0;
  154. background: url(../img/bs-docs-masthead-pattern.png) repeat center center;
  155. opacity: .4;
  156. }
  157. /* Masthead (docs home)
  158. ------------------------- */
  159. .masthead {
  160. padding: 70px 0 80px;
  161. margin-bottom: 0;
  162. color: #fff;
  163. }
  164. .masthead h1 {
  165. font-size: 120px;
  166. line-height: 1;
  167. letter-spacing: -2px;
  168. }
  169. .masthead p {
  170. font-size: 40px;
  171. font-weight: 200;
  172. line-height: 1.25;
  173. }
  174. /* Textual links in masthead */
  175. .masthead-links {
  176. margin: 0;
  177. list-style: none;
  178. }
  179. .masthead-links li {
  180. display: inline;
  181. padding: 0 10px;
  182. color: rgba(255,255,255,.25);
  183. }
  184. /* Social proof buttons from GitHub & Twitter */
  185. .bs-docs-social {
  186. padding: 15px 0;
  187. text-align: center;
  188. background-color: #f5f5f5;
  189. border-top: 1px solid #fff;
  190. border-bottom: 1px solid #ddd;
  191. }
  192. /* Quick links on Home */
  193. .bs-docs-social-buttons {
  194. margin-left: 0;
  195. margin-bottom: 0;
  196. padding-left: 0;
  197. list-style: none;
  198. }
  199. .bs-docs-social-buttons li {
  200. display: inline-block;
  201. padding: 5px 8px;
  202. line-height: 1;
  203. *display: inline;
  204. *zoom: 1;
  205. }
  206. /* Subhead (other pages)
  207. ------------------------- */
  208. .subhead {
  209. text-align: left;
  210. border-bottom: 1px solid #ddd;
  211. }
  212. .subhead h1 {
  213. font-size: 60px;
  214. }
  215. .subhead p {
  216. margin-bottom: 20px;
  217. }
  218. .subhead .navbar {
  219. display: none;
  220. }
  221. /* Marketing section of Overview
  222. -------------------------------------------------- */
  223. .marketing {
  224. text-align: center;
  225. color: #5a5a5a;
  226. }
  227. .marketing h1 {
  228. margin: 60px 0 10px;
  229. font-size: 60px;
  230. font-weight: 200;
  231. line-height: 1;
  232. letter-spacing: -1px;
  233. }
  234. .marketing h2 {
  235. font-weight: 200;
  236. margin-bottom: 5px;
  237. }
  238. .marketing p {
  239. font-size: 16px;
  240. line-height: 1.5;
  241. }
  242. .marketing .marketing-byline {
  243. margin-bottom: 40px;
  244. font-size: 20px;
  245. font-weight: 300;
  246. line-height: 1.25;
  247. color: #999;
  248. }
  249. .marketing img {
  250. display: block;
  251. margin: 0 auto 30px;
  252. }
  253. /* Footer
  254. -------------------------------------------------- */
  255. .footer {
  256. padding: 70px 0;
  257. margin-top: 70px;
  258. border-top: 1px solid #e5e5e5;
  259. background-color: #f5f5f5;
  260. }
  261. .footer p {
  262. margin-bottom: 0;
  263. color: #777;
  264. }
  265. .footer-links {
  266. margin: 10px 0;
  267. }
  268. .footer-links li {
  269. display: inline;
  270. padding: 0 2px;
  271. }
  272. .footer-links li:first-child {
  273. padding-left: 0;
  274. }
  275. /* Special grid styles
  276. -------------------------------------------------- */
  277. .show-grid {
  278. margin-top: 10px;
  279. margin-bottom: 20px;
  280. }
  281. .show-grid [class*="span"] {
  282. background-color: #eee;
  283. text-align: center;
  284. -webkit-border-radius: 3px;
  285. -moz-border-radius: 3px;
  286. border-radius: 3px;
  287. min-height: 40px;
  288. line-height: 40px;
  289. }
  290. .show-grid:hover [class*="span"] {
  291. background: #ddd;
  292. }
  293. .show-grid .show-grid {
  294. margin-top: 0;
  295. margin-bottom: 0;
  296. }
  297. .show-grid .show-grid [class*="span"] {
  298. background-color: #ccc;
  299. }
  300. /* Mini layout previews
  301. -------------------------------------------------- */
  302. .mini-layout {
  303. border: 1px solid #ddd;
  304. -webkit-border-radius: 6px;
  305. -moz-border-radius: 6px;
  306. border-radius: 6px;
  307. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
  308. -moz-box-shadow: 0 1px 2px rgba(0,0,0,.075);
  309. box-shadow: 0 1px 2px rgba(0,0,0,.075);
  310. }
  311. .mini-layout,
  312. .mini-layout .mini-layout-body,
  313. .mini-layout.fluid .mini-layout-sidebar {
  314. height: 300px;
  315. }
  316. .mini-layout {
  317. margin-bottom: 20px;
  318. padding: 9px;
  319. }
  320. .mini-layout div {
  321. -webkit-border-radius: 3px;
  322. -moz-border-radius: 3px;
  323. border-radius: 3px;
  324. }
  325. .mini-layout .mini-layout-body {
  326. background-color: #dceaf4;
  327. margin: 0 auto;
  328. width: 70%;
  329. }
  330. .mini-layout.fluid .mini-layout-sidebar,
  331. .mini-layout.fluid .mini-layout-header,
  332. .mini-layout.fluid .mini-layout-body {
  333. float: left;
  334. }
  335. .mini-layout.fluid .mini-layout-sidebar {
  336. background-color: #bbd8e9;
  337. width: 20%;
  338. }
  339. .mini-layout.fluid .mini-layout-body {
  340. width: 77.5%;
  341. margin-left: 2.5%;
  342. }
  343. /* Download page
  344. -------------------------------------------------- */
  345. .download .page-header {
  346. margin-top: 36px;
  347. }
  348. .page-header .toggle-all {
  349. margin-top: 5px;
  350. }
  351. /* Space out h3s when following a section */
  352. .download h3 {
  353. margin-bottom: 5px;
  354. }
  355. .download-builder input + h3,
  356. .download-builder .checkbox + h3 {
  357. margin-top: 9px;
  358. }
  359. /* Fields for variables */
  360. .download-builder input[type=text] {
  361. margin-bottom: 9px;
  362. font-family: Menlo, Monaco, "Courier New", monospace;
  363. font-size: 12px;
  364. color: #d14;
  365. }
  366. .download-builder input[type=text]:focus {
  367. background-color: #fff;
  368. }
  369. /* Custom, larger checkbox labels */
  370. .download .checkbox {
  371. padding: 6px 10px 6px 25px;
  372. font-size: 13px;
  373. line-height: 18px;
  374. color: #555;
  375. background-color: #f9f9f9;
  376. -webkit-border-radius: 3px;
  377. -moz-border-radius: 3px;
  378. border-radius: 3px;
  379. cursor: pointer;
  380. }
  381. .download .checkbox:hover {
  382. color: #333;
  383. background-color: #f5f5f5;
  384. }
  385. .download .checkbox small {
  386. font-size: 12px;
  387. color: #777;
  388. }
  389. /* Variables section */
  390. #variables label {
  391. margin-bottom: 0;
  392. }
  393. /* Giant download button */
  394. .download-btn {
  395. margin: 36px 0 108px;
  396. }
  397. #download p,
  398. #download h4 {
  399. max-width: 50%;
  400. margin: 0 auto;
  401. color: #999;
  402. text-align: center;
  403. }
  404. #download h4 {
  405. margin-bottom: 0;
  406. }
  407. #download p {
  408. margin-bottom: 18px;
  409. }
  410. .download-btn .btn {
  411. display: block;
  412. width: auto;
  413. padding: 19px 24px;
  414. margin-bottom: 27px;
  415. font-size: 30px;
  416. line-height: 1;
  417. text-align: center;
  418. -webkit-border-radius: 6px;
  419. -moz-border-radius: 6px;
  420. border-radius: 6px;
  421. }
  422. /* Misc
  423. -------------------------------------------------- */
  424. /* Make tables spaced out a bit more */
  425. h2 + table,
  426. h3 + table,
  427. h4 + table,
  428. h2 + .row {
  429. margin-top: 5px;
  430. }
  431. /* Example sites showcase */
  432. .example-sites {
  433. xmargin-left: 20px;
  434. }
  435. .example-sites img {
  436. max-width: 100%;
  437. margin: 0 auto;
  438. }
  439. .scrollspy-example {
  440. height: 200px;
  441. overflow: auto;
  442. position: relative;
  443. }
  444. /* Fake the :focus state to demo it */
  445. .focused {
  446. border-color: rgba(82,168,236,.8);
  447. -webkit-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
  448. -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
  449. box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
  450. outline: 0;
  451. }
  452. /* For input sizes, make them display block */
  453. .docs-input-sizes select,
  454. .docs-input-sizes input[type=text] {
  455. display: block;
  456. margin-bottom: 9px;
  457. }
  458. /* Icons
  459. ------------------------- */
  460. .the-icons {
  461. margin-left: 0;
  462. list-style: none;
  463. }
  464. .the-icons li {
  465. float: left;
  466. width: 25%;
  467. line-height: 25px;
  468. }
  469. .the-icons i:hover {
  470. background-color: rgba(255,0,0,.25);
  471. }
  472. /* Example page
  473. ------------------------- */
  474. .bootstrap-examples p {
  475. font-size: 13px;
  476. line-height: 18px;
  477. }
  478. .bootstrap-examples .thumbnail {
  479. margin-bottom: 9px;
  480. background-color: #fff;
  481. }
  482. /* Bootstrap code examples
  483. -------------------------------------------------- */
  484. /* Base class */
  485. .bs-docs-example {
  486. position: relative;
  487. margin: 15px 0;
  488. padding: 39px 19px 14px;
  489. *padding-top: 19px;
  490. background-color: #fff;
  491. border: 1px solid #ddd;
  492. -webkit-border-radius: 4px;
  493. -moz-border-radius: 4px;
  494. border-radius: 4px;
  495. }
  496. /* Echo out a label for the example */
  497. .bs-docs-example:after {
  498. content: "Example";
  499. position: absolute;
  500. top: -1px;
  501. left: -1px;
  502. padding: 3px 7px;
  503. font-size: 12px;
  504. font-weight: bold;
  505. background-color: #f5f5f5;
  506. border: 1px solid #ddd;
  507. color: #9da0a4;
  508. -webkit-border-radius: 4px 0 4px 0;
  509. -moz-border-radius: 4px 0 4px 0;
  510. border-radius: 4px 0 4px 0;
  511. }
  512. /* Remove spacing between an example and it's code */
  513. .bs-docs-example + .prettyprint {
  514. margin-top: -20px;
  515. padding-top: 15px;
  516. }
  517. /* Tweak examples
  518. ------------------------- */
  519. .bs-docs-example > p:last-child {
  520. margin-bottom: 0;
  521. }
  522. .bs-docs-example .table,
  523. .bs-docs-example .progress,
  524. .bs-docs-example .well,
  525. .bs-docs-example .alert,
  526. .bs-docs-example .hero-unit,
  527. .bs-docs-example .pagination,
  528. .bs-docs-example .navbar,
  529. .bs-docs-example > .nav,
  530. .bs-docs-example blockquote {
  531. margin-bottom: 5px;
  532. }
  533. .bs-docs-example .pagination {
  534. margin-top: 0;
  535. }
  536. .bs-navbar-top-example,
  537. .bs-navbar-bottom-example {
  538. z-index: 1;
  539. padding: 0;
  540. height: 90px;
  541. overflow: hidden; /* cut the drop shadows off */
  542. }
  543. .bs-navbar-top-example .navbar-fixed-top,
  544. .bs-navbar-bottom-example .navbar-fixed-bottom {
  545. margin-left: 0;
  546. margin-right: 0;
  547. }
  548. .bs-navbar-top-example {
  549. -webkit-border-radius: 0 0 4px 4px;
  550. -moz-border-radius: 0 0 4px 4px;
  551. border-radius: 0 0 4px 4px;
  552. }
  553. .bs-navbar-top-example:after {
  554. top: auto;
  555. bottom: -1px;
  556. -webkit-border-radius: 0 4px 0 4px;
  557. -moz-border-radius: 0 4px 0 4px;
  558. border-radius: 0 4px 0 4px;
  559. }
  560. .bs-navbar-bottom-example {
  561. -webkit-border-radius: 4px 4px 0 0;
  562. -moz-border-radius: 4px 4px 0 0;
  563. border-radius: 4px 4px 0 0;
  564. }
  565. .bs-navbar-bottom-example .navbar {
  566. margin-bottom: 0;
  567. }
  568. form.bs-docs-example {
  569. padding-bottom: 19px;
  570. }
  571. /* Images */
  572. .bs-docs-example-images img {
  573. margin: 10px;
  574. display: inline-block;
  575. }
  576. /* Tooltips */
  577. .bs-docs-tooltip-examples {
  578. text-align: center;
  579. margin: 0 0 10px;
  580. list-style: none;
  581. }
  582. .bs-docs-tooltip-examples li {
  583. display: inline;
  584. padding: 0 10px;
  585. }
  586. /* Popovers */
  587. .bs-docs-example-popover {
  588. padding-bottom: 24px;
  589. background-color: #f9f9f9;
  590. }
  591. .bs-docs-example-popover .popover {
  592. position: relative;
  593. display: block;
  594. float: left;
  595. width: 260px;
  596. margin: 20px;
  597. }
  598. /* Responsive docs
  599. -------------------------------------------------- */
  600. /* Utility classes table
  601. ------------------------- */
  602. .responsive-utilities th small {
  603. display: block;
  604. font-weight: normal;
  605. color: #999;
  606. }
  607. .responsive-utilities tbody th {
  608. font-weight: normal;
  609. }
  610. .responsive-utilities td {
  611. text-align: center;
  612. }
  613. .responsive-utilities td.is-visible {
  614. color: #468847;
  615. background-color: #dff0d8 !important;
  616. }
  617. .responsive-utilities td.is-hidden {
  618. color: #ccc;
  619. background-color: #f9f9f9 !important;
  620. }
  621. /* Responsive tests
  622. ------------------------- */
  623. .responsive-utilities-test {
  624. margin-top: 5px;
  625. margin-left: 0;
  626. list-style: none;
  627. overflow: hidden; /* clear floats */
  628. }
  629. .responsive-utilities-test li {
  630. position: relative;
  631. float: left;
  632. width: 25%;
  633. height: 43px;
  634. font-size: 14px;
  635. font-weight: bold;
  636. line-height: 43px;
  637. color: #999;
  638. text-align: center;
  639. border: 1px solid #ddd;
  640. -webkit-border-radius: 4px;
  641. -moz-border-radius: 4px;
  642. border-radius: 4px;
  643. }
  644. .responsive-utilities-test li + li {
  645. margin-left: 10px;
  646. }
  647. .responsive-utilities-test span {
  648. position: absolute;
  649. top: -1px;
  650. left: -1px;
  651. right: -1px;
  652. bottom: -1px;
  653. -webkit-border-radius: 4px;
  654. -moz-border-radius: 4px;
  655. border-radius: 4px;
  656. }
  657. .responsive-utilities-test span {
  658. color: #468847;
  659. background-color: #dff0d8;
  660. border: 1px solid #d6e9c6;
  661. }
  662. /* Sidenav for Docs
  663. -------------------------------------------------- */
  664. .bs-docs-sidenav {
  665. width: 228px;
  666. margin: 30px 0 0;
  667. padding: 0;
  668. background-color: #fff;
  669. -webkit-border-radius: 6px;
  670. -moz-border-radius: 6px;
  671. border-radius: 6px;
  672. -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065);
  673. -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065);
  674. box-shadow: 0 1px 4px rgba(0,0,0,.065);
  675. }
  676. .bs-docs-sidenav > li > a {
  677. display: block;
  678. width: 190px \9;
  679. margin: 0 0 -1px;
  680. padding: 8px 14px;
  681. border: 1px solid #e5e5e5;
  682. }
  683. .bs-docs-sidenav > li:first-child > a {
  684. -webkit-border-radius: 6px 6px 0 0;
  685. -moz-border-radius: 6px 6px 0 0;
  686. border-radius: 6px 6px 0 0;
  687. }
  688. .bs-docs-sidenav > li:last-child > a {
  689. -webkit-border-radius: 0 0 6px 6px;
  690. -moz-border-radius: 0 0 6px 6px;
  691. border-radius: 0 0 6px 6px;
  692. }
  693. .bs-docs-sidenav > .active > a {
  694. position: relative;
  695. z-index: 2;
  696. padding: 9px 15px;
  697. border: 0;
  698. text-shadow: 0 1px 0 rgba(0,0,0,.15);
  699. -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
  700. -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
  701. box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
  702. }
  703. /* Chevrons */
  704. .bs-docs-sidenav .icon-chevron-right {
  705. float: right;
  706. margin-top: 2px;
  707. margin-right: -6px;
  708. opacity: .25;
  709. }
  710. .bs-docs-sidenav > li > a:hover {
  711. background-color: #f5f5f5;
  712. }
  713. .bs-docs-sidenav a:hover .icon-chevron-right {
  714. opacity: .5;
  715. }
  716. .bs-docs-sidenav .active .icon-chevron-right,
  717. .bs-docs-sidenav .active a:hover .icon-chevron-right {
  718. background-image: url(../img/glyphicons-halflings-white.png);
  719. opacity: 1;
  720. }
  721. .bs-docs-sidenav.affix {
  722. top: 40px;
  723. }
  724. .bs-docs-sidenav.affix-bottom {
  725. position: absolute;
  726. top: auto;
  727. bottom: 270px;
  728. }
  729. /* Responsive
  730. -------------------------------------------------- */
  731. /* Desktop large
  732. ------------------------- */
  733. @media (min-width: 1200px) {
  734. .bs-docs-container {
  735. max-width: 970px;
  736. }
  737. .bs-docs-sidenav {
  738. width: 258px;
  739. }
  740. .bs-docs-sidenav > li > a {
  741. width: 230px \9; /* Override the previous IE8-9 hack */
  742. }
  743. }
  744. /* Desktop
  745. ------------------------- */
  746. @media (max-width: 980px) {
  747. /* Unfloat brand */
  748. body > .navbar-fixed-top .brand {
  749. float: left;
  750. margin-left: 0;
  751. padding-left: 10px;
  752. padding-right: 10px;
  753. }
  754. /* Inline-block quick links for more spacing */
  755. .quick-links li {
  756. display: inline-block;
  757. margin: 5px;
  758. }
  759. /* When affixed, space properly */
  760. .bs-docs-sidenav {
  761. top: 0;
  762. margin-top: 30px;
  763. margin-right: 0;
  764. }
  765. }
  766. /* Tablet to desktop
  767. ------------------------- */
  768. @media (min-width: 768px) and (max-width: 980px) {
  769. /* Remove any padding from the body */
  770. body {
  771. padding-top: 0;
  772. }
  773. /* Widen masthead and social buttons to fill body padding */
  774. .jumbotron {
  775. margin-top: -20px; /* Offset bottom margin on .navbar */
  776. }
  777. /* Adjust sidenav width */
  778. .bs-docs-sidenav {
  779. width: 166px;
  780. margin-top: 20px;
  781. }
  782. .bs-docs-sidenav.affix {
  783. top: 0;
  784. }
  785. }
  786. /* Tablet
  787. ------------------------- */
  788. @media (max-width: 767px) {
  789. /* Remove any padding from the body */
  790. body {
  791. padding-top: 0;
  792. }
  793. /* Widen masthead and social buttons to fill body padding */
  794. .jumbotron {
  795. padding: 40px 20px;
  796. margin-top: -20px; /* Offset bottom margin on .navbar */
  797. margin-right: -20px;
  798. margin-left: -20px;
  799. }
  800. .masthead h1 {
  801. font-size: 90px;
  802. }
  803. .masthead p,
  804. .masthead .btn {
  805. font-size: 24px;
  806. }
  807. .marketing .span4 {
  808. margin-bottom: 40px;
  809. }
  810. .bs-docs-social {
  811. margin: 0 -20px;
  812. }
  813. /* Space out the show-grid examples */
  814. .show-grid [class*="span"] {
  815. margin-bottom: 5px;
  816. }
  817. /* Sidenav */
  818. .bs-docs-sidenav {
  819. width: auto;
  820. margin-bottom: 20px;
  821. }
  822. .bs-docs-sidenav.affix {
  823. position: static;
  824. width: auto;
  825. top: 0;
  826. }
  827. /* Unfloat the back to top link in footer */
  828. .footer {
  829. margin-left: -20px;
  830. margin-right: -20px;
  831. padding-left: 20px;
  832. padding-right: 20px;
  833. }
  834. .footer p {
  835. margin-bottom: 9px;
  836. }
  837. }
  838. /* Landscape phones
  839. ------------------------- */
  840. @media (max-width: 480px) {
  841. /* Remove padding above jumbotron */
  842. body {
  843. padding-top: 0;
  844. }
  845. /* Change up some type stuff */
  846. h2 small {
  847. display: block;
  848. }
  849. /* Downsize the jumbotrons */
  850. .jumbotron h1 {
  851. font-size: 45px;
  852. }
  853. .jumbotron p,
  854. .jumbotron .btn {
  855. font-size: 18px;
  856. }
  857. .jumbotron .btn {
  858. display: block;
  859. margin: 0 auto;
  860. }
  861. /* center align subhead text like the masthead */
  862. .subhead h1,
  863. .subhead p {
  864. text-align: center;
  865. }
  866. /* Marketing on home */
  867. .marketing h1 {
  868. font-size: 30px;
  869. }
  870. .marketing-byline {
  871. font-size: 18px;
  872. }
  873. /* center example sites */
  874. .example-sites {
  875. margin-left: 0;
  876. }
  877. .example-sites > li {
  878. float: none;
  879. display: block;
  880. max-width: 280px;
  881. margin: 0 auto 18px;
  882. text-align: center;
  883. }
  884. .example-sites .thumbnail > img {
  885. max-width: 270px;
  886. }
  887. /* Do our best to make tables work in narrow viewports */
  888. table code {
  889. white-space: normal;
  890. word-wrap: break-word;
  891. word-break: break-all;
  892. }
  893. /* Modal example */
  894. .modal-example .modal {
  895. position: relative;
  896. top: auto;
  897. right: auto;
  898. bottom: auto;
  899. left: auto;
  900. }
  901. /* Tighten up footer */
  902. .footer {
  903. padding-top: 20px;
  904. padding-bottom: 20px;
  905. }
  906. /* Unfloat the back to top in footer to prevent odd text wrapping */
  907. .footer .pull-right {
  908. float: none;
  909. }
  910. }