docs.css 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. body {
  2. position: relative;
  3. padding-top: 50px;
  4. }
  5. .bs-docs-nav {
  6. text-shadow: 0 -1px 0 rgba(0,0,0,.15);
  7. background-color: #563d7c;
  8. border-color: #463265;
  9. box-shadow: 0 1px 0 rgba(255,255,255,.1);
  10. }
  11. .bs-header {
  12. font-size: 21px;
  13. text-align: left;
  14. padding: 30px 15px 40px;
  15. text-shadow: 0 1px 0 rgba(0,0,0,.15);
  16. color: #cdbfe3;
  17. background-color: #563d7c;
  18. }
  19. .bs-docs-nav .navbar-nav > .active > a,
  20. .bs-docs-nav .navbar-nav > .active > a:hover {
  21. color: #fff;
  22. background-color: #463265;
  23. }
  24. .bs-sidenav {
  25. margin-top: 30px;
  26. margin-bottom: 30px;
  27. padding-top: 10px;
  28. padding-bottom: 10px;
  29. text-shadow: 0 1px 0 #fff;
  30. background-color: #f7f5fa;
  31. border-radius: 5px;
  32. }
  33. h1[id] {
  34. padding-top: 80px;
  35. margin-top: -45px;
  36. }
  37. pre code {
  38. display: block;
  39. padding: 0 1em;
  40. }
  41. /*
  42. * Side navigation
  43. *
  44. * Scrollspy and affixed enhanced navigation to highlight sections and secondary
  45. * sections of docs content.
  46. */
  47. /* By default it's not affixed in mobile views, so undo that */
  48. .bs-sidebar.affix {
  49. position: static;
  50. }
  51. /* First level of nav */
  52. .bs-sidenav {
  53. margin-top: 30px;
  54. margin-bottom: 30px;
  55. padding-top: 10px;
  56. padding-bottom: 10px;
  57. text-shadow: 0 1px 0 #fff;
  58. background-color: #f7f5fa;
  59. border-radius: 5px;
  60. }
  61. /* All levels of nav */
  62. .bs-sidebar .nav > li > a {
  63. display: block;
  64. color: #716b7a;
  65. padding: 5px 20px;
  66. }
  67. .bs-sidebar .nav > li > a:hover,
  68. .bs-sidebar .nav > li > a:focus {
  69. text-decoration: none;
  70. background-color: #e5e3e9;
  71. border-right: 1px solid #dbd8e0;
  72. }
  73. .bs-sidebar .nav > .active > a,
  74. .bs-sidebar .nav > .active:hover > a,
  75. .bs-sidebar .nav > .active:focus > a {
  76. font-weight: bold;
  77. color: #563d7c;
  78. background-color: transparent;
  79. border-right: 1px solid #563d7c;
  80. }
  81. /* Nav: second level (shown on .active) */
  82. .bs-sidebar .nav .nav {
  83. display: none; /* Hide by default, but at >768px, show it */
  84. margin-bottom: 8px;
  85. }
  86. .bs-sidebar .nav .nav > li > a {
  87. padding-top: 3px;
  88. padding-bottom: 3px;
  89. padding-left: 30px;
  90. font-size: 90%;
  91. }
  92. .footer {
  93. border-top: 1px solid #ddd;
  94. padding: 40px 0;
  95. text-align: center;
  96. margin-top: 40px;
  97. color: #777;
  98. }
  99. /* Show and affix the side nav when space allows it */
  100. @media (min-width: 992px) {
  101. .bs-sidebar .nav > .active > ul {
  102. display: block;
  103. }
  104. /* Widen the fixed sidebar */
  105. .bs-sidebar.affix,
  106. .bs-sidebar.affix-bottom {
  107. width: 213px;
  108. }
  109. .bs-sidebar.affix {
  110. position: fixed; /* Undo the static from mobile first approach */
  111. top: 80px;
  112. }
  113. .bs-sidebar.affix-bottom {
  114. position: absolute; /* Undo the static from mobile first approach */
  115. }
  116. .bs-sidebar.affix-bottom .bs-sidenav,
  117. .bs-sidebar.affix .bs-sidenav {
  118. margin-top: 0;
  119. margin-bottom: 0;
  120. }
  121. }
  122. @media (min-width: 1200px) {
  123. /* Widen the fixed sidebar again */
  124. .bs-sidebar.affix-bottom,
  125. .bs-sidebar.affix {
  126. width: 263px;
  127. }
  128. }
  129. /*
  130. * Examples
  131. *
  132. * Isolated sections of example content for each component or feature. Usually
  133. * followed by a code snippet.
  134. */
  135. .bs-example {
  136. position: relative;
  137. padding: 45px 15px 15px;
  138. margin: 0 -15px 15px;
  139. background-color: #fafafa;
  140. box-shadow: inset 0 3px 6px rgba(0,0,0,.05);
  141. border-color: #e5e5e5 #eee #eee;
  142. border-style: solid;
  143. border-width: 1px 0;
  144. }
  145. /* Echo out a label for the example */
  146. .bs-example:after {
  147. content: "Example";
  148. position: absolute;
  149. top: 15px;
  150. left: 15px;
  151. font-size: 12px;
  152. font-weight: bold;
  153. color: #bbb;
  154. text-transform: uppercase;
  155. letter-spacing: 1px;
  156. }
  157. /* Tweak display of the code snippets when following an example */
  158. .bs-example + .highlight {
  159. margin: -15px -15px 15px;
  160. border-radius: 0;
  161. border-width: 0 0 1px;
  162. }
  163. /* Make the examples and snippets not full-width */
  164. @media (min-width: 768px) {
  165. .bs-example {
  166. margin-left: 0;
  167. margin-right: 0;
  168. background-color: #fff;
  169. border-width: 1px;
  170. border-color: #ddd;
  171. border-radius: 4px 4px 0 0;
  172. box-shadow: none;
  173. }
  174. .bs-example + .highlight {
  175. margin-top: -16px;
  176. margin-left: 0;
  177. margin-right: 0;
  178. border-width: 1px;
  179. border-bottom-left-radius: 4px;
  180. border-bottom-right-radius: 4px;
  181. }
  182. }
  183. /* Undo width of container */
  184. .bs-example .container {
  185. width: auto;
  186. }
  187. /* Tweak content of examples for optimum awesome */
  188. .bs-example > p:last-child,
  189. .bs-example > ul:last-child,
  190. .bs-example > ol:last-child,
  191. .bs-example > blockquote:last-child,
  192. .bs-example > .form-control:last-child,
  193. .bs-example > .table:last-child,
  194. .bs-example > .navbar:last-child,
  195. .bs-example > .jumbotron:last-child,
  196. .bs-example > .alert:last-child,
  197. .bs-example > .panel:last-child,
  198. .bs-example > .list-group:last-child,
  199. .bs-example > .well:last-child,
  200. .bs-example > .progress:last-child,
  201. .bs-example > .table-responsive:last-child > .table {
  202. margin-bottom: 0;
  203. }
  204. .bs-example > p > .close {
  205. float: none;
  206. }
  207. /* Typography */
  208. .bs-example-type .table .info {
  209. color: #999;
  210. vertical-align: middle;
  211. }
  212. .bs-example-type .table td {
  213. padding: 15px 0;
  214. border-color: #eee;
  215. }
  216. .bs-example-type .table tr:first-child td {
  217. border-top: 0;
  218. }
  219. .bs-example-type h1,
  220. .bs-example-type h2,
  221. .bs-example-type h3,
  222. .bs-example-type h4,
  223. .bs-example-type h5,
  224. .bs-example-type h6 {
  225. margin: 0;
  226. }
  227. /* Images */
  228. .bs-example > .img-circle,
  229. .bs-example > .img-rounded,
  230. .bs-example > .img-thumbnail {
  231. margin: 5px;
  232. }
  233. /* Tables */
  234. .bs-example > .table-responsive > .table {
  235. background-color: #fff;
  236. }
  237. /* Buttons */
  238. .bs-example > .btn,
  239. .bs-example > .btn-group {
  240. margin-top: 5px;
  241. margin-bottom: 5px;
  242. }
  243. .bs-example > .btn-toolbar + .btn-toolbar {
  244. margin-top: 10px;
  245. }
  246. /* Forms */
  247. .bs-example-control-sizing select,
  248. .bs-example-control-sizing input[type="text"] + input[type="text"] {
  249. margin-top: 10px;
  250. }
  251. .bs-example-form .input-group {
  252. margin-bottom: 10px;
  253. }
  254. .bs-example > textarea.form-control {
  255. resize: vertical;
  256. }
  257. /* List groups */
  258. .bs-example > .list-group {
  259. max-width: 400px;
  260. }
  261. /* Navbars */
  262. .bs-example .navbar:last-child {
  263. margin-bottom: 0;
  264. }
  265. .bs-navbar-top-example,
  266. .bs-navbar-bottom-example {
  267. z-index: 1;
  268. padding: 0;
  269. overflow: hidden; /* cut the drop shadows off */
  270. }
  271. .bs-navbar-top-example .navbar-header,
  272. .bs-navbar-bottom-example .navbar-header {
  273. margin-left: 0;
  274. }
  275. .bs-navbar-top-example .navbar-fixed-top,
  276. .bs-navbar-bottom-example .navbar-fixed-bottom {
  277. position: relative;
  278. margin-left: 0;
  279. margin-right: 0;
  280. }
  281. .bs-navbar-top-example {
  282. padding-bottom: 45px;
  283. }
  284. .bs-navbar-top-example:after {
  285. top: auto;
  286. bottom: 15px;
  287. }
  288. .bs-navbar-top-example .navbar-fixed-top {
  289. top: -1px;
  290. }
  291. .bs-navbar-bottom-example {
  292. padding-top: 45px;
  293. }
  294. .bs-navbar-bottom-example .navbar-fixed-bottom {
  295. bottom: -1px;
  296. }
  297. .bs-navbar-bottom-example .navbar {
  298. margin-bottom: 0;
  299. }
  300. @media (min-width: 768px) {
  301. .bs-navbar-top-example .navbar-fixed-top,
  302. .bs-navbar-bottom-example .navbar-fixed-bottom {
  303. position: absolute;
  304. }
  305. .bs-navbar-top-example {
  306. border-radius: 0 0 4px 4px;
  307. }
  308. .bs-navbar-bottom-example {
  309. border-radius: 4px 4px 0 0;
  310. }
  311. }
  312. /* Pagination */
  313. .bs-example .pagination {
  314. margin-top: 10px;
  315. margin-bottom: 10px;
  316. }
  317. /* Pager */
  318. .bs-example > .pager {
  319. margin-top: 0;
  320. }
  321. /* Example modals */
  322. .bs-example-modal {
  323. background-color: #f5f5f5;
  324. }
  325. .bs-example-modal .modal {
  326. position: relative;
  327. top: auto;
  328. right: auto;
  329. left: auto;
  330. bottom: auto;
  331. z-index: 1;
  332. display: block;
  333. }
  334. .bs-example-modal .modal-dialog {
  335. left: auto;
  336. margin-left: auto;
  337. margin-right: auto;
  338. }
  339. /* Example dropdowns */
  340. .bs-example > .dropdown > .dropdown-menu {
  341. position: static;
  342. display: block;
  343. margin-bottom: 5px;
  344. }
  345. /* Example tabbable tabs */
  346. .bs-example-tabs .nav-tabs {
  347. margin-bottom: 15px;
  348. }
  349. /* Tooltips */
  350. .bs-example-tooltips {
  351. text-align: center;
  352. }
  353. .bs-example-tooltips > .btn {
  354. margin-top: 5px;
  355. margin-bottom: 5px;
  356. }
  357. /* Popovers */
  358. .bs-example-popover {
  359. padding-bottom: 24px;
  360. background-color: #f9f9f9;
  361. }
  362. .bs-example-popover .popover {
  363. position: relative;
  364. display: block;
  365. float: left;
  366. width: 260px;
  367. margin: 20px;
  368. }
  369. /* Scrollspy demo on fixed height div */
  370. .scrollspy-example {
  371. position: relative;
  372. height: 200px;
  373. margin-top: 10px;
  374. overflow: auto;
  375. }