Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

customize.html 12 KiB

vor 3 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. ---
  2. layout: default
  3. title: Customize and download
  4. slug: customize
  5. lead: Customize Bootstrap's components, Less variables, and jQuery plugins to get your very own version.
  6. ---
  7. <!-- less.js isn't IE8-compatible and throws an exception during initialization, so our Blob compatibility check and error messaging code never get called in that case.
  8. So we use a conditional comment instead to inform folks about the lack of IE8 support.
  9. -->
  10. <!--[if lt IE 9]>
  11. <style>
  12. .bs-customizer,
  13. .bs-customizer-import,
  14. .bs-docs-sidebar {
  15. display: none;
  16. }
  17. </style>
  18. <div class="alert alert-danger">
  19. <strong>The Bootstrap Customizer does not support IE9 and below.</strong><br>
  20. Please take a second to <a href="http://browsehappy.com/">upgrade to a more modern browser</a>.
  21. </div>
  22. <![endif]-->
  23. <!-- Customizer form -->
  24. <div class="bs-docs-section bs-customizer-import">
  25. <div id="import-drop-target" class="bs-dropzone">
  26. <h2>✍</h2>
  27. <p class="lead">Have an existing configuration? Upload your <code>config.json</code> to import it.</p>
  28. <p>Drag and drop here, or <label id="import-manual-trigger" class="btn-link">manually upload<input type="file" id="import-file-select" class="hidden"></label>.</p>
  29. <hr>
  30. <p><strong>Don't have one?</strong> That's okay—just start customizing the fields below.</p>
  31. </div>
  32. </div><!-- /import -->
  33. <form class="bs-customizer" role="form">
  34. <div class="bs-docs-section" id="less-section">
  35. <button class="btn btn-default toggle" type="button">Toggle all</button>
  36. <h1 id="less" class="page-header">Less files</h1>
  37. <p class="lead">Choose which Less files to compile into your custom build of Bootstrap. Not sure which files to use? Read through the <a href="../css/">CSS</a> and <a href="../components/">Components</a> pages in the docs.</p>
  38. <div class="row">
  39. <div class="col-xs-6 col-sm-4">
  40. <h3>Common CSS</h3>
  41. <div class="checkbox">
  42. <label>
  43. <input type="checkbox" checked value="print.less">
  44. Print media styles
  45. </label>
  46. </div>
  47. <div class="checkbox">
  48. <label>
  49. <input type="checkbox" checked value="type.less">
  50. Typography
  51. </label>
  52. </div>
  53. <div class="checkbox">
  54. <label>
  55. <input type="checkbox" checked value="code.less">
  56. Code
  57. </label>
  58. </div>
  59. <div class="checkbox">
  60. <label>
  61. <input type="checkbox" checked value="grid.less">
  62. Grid system
  63. </label>
  64. </div>
  65. <div class="checkbox">
  66. <label>
  67. <input type="checkbox" checked value="tables.less">
  68. Tables
  69. </label>
  70. </div>
  71. <div class="checkbox">
  72. <label>
  73. <input type="checkbox" checked value="forms.less" data-dependents="navbar.less,input-groups.less">
  74. Forms
  75. </label>
  76. </div>
  77. <div class="checkbox">
  78. <label>
  79. <input type="checkbox" checked value="buttons.less" data-dependents="button-groups.less">
  80. Buttons
  81. </label>
  82. </div>
  83. <div class="checkbox">
  84. <label>
  85. <input type="checkbox" checked value="responsive-utilities.less">
  86. Responsive utilities
  87. </label>
  88. </div>
  89. </div><!-- .col-xs-6 .col-sm-4 -->
  90. <div class="col-xs-6 col-sm-4">
  91. <h3>Components</h3>
  92. <div class="checkbox">
  93. <label>
  94. <input type="checkbox" checked value="glyphicons.less">
  95. Glyphicons
  96. </label>
  97. </div>
  98. <div class="checkbox">
  99. <label>
  100. <input type="checkbox" checked value="button-groups.less" data-dependencies="buttons.less">
  101. Button groups
  102. </label>
  103. </div>
  104. <div class="checkbox">
  105. <label>
  106. <input type="checkbox" checked value="input-groups.less" data-dependencies="forms.less">
  107. Input groups
  108. </label>
  109. </div>
  110. <div class="checkbox">
  111. <label>
  112. <input type="checkbox" checked value="navs.less" data-dependents="navbar.less">
  113. Navs
  114. </label>
  115. </div>
  116. <div class="checkbox">
  117. <label>
  118. <input type="checkbox" checked value="navbar.less" data-dependencies="forms.less,navs.less">
  119. Navbar
  120. </label>
  121. </div>
  122. <div class="checkbox">
  123. <label>
  124. <input type="checkbox" checked value="breadcrumbs.less">
  125. Breadcrumbs
  126. </label>
  127. </div>
  128. <div class="checkbox">
  129. <label>
  130. <input type="checkbox" checked value="pagination.less">
  131. Pagination
  132. </label>
  133. </div>
  134. <div class="checkbox">
  135. <label>
  136. <input type="checkbox" checked value="pager.less">
  137. Pager
  138. </label>
  139. </div>
  140. <div class="checkbox">
  141. <label>
  142. <input type="checkbox" checked value="labels.less">
  143. Labels
  144. </label>
  145. </div>
  146. <div class="checkbox">
  147. <label>
  148. <input type="checkbox" checked value="badges.less">
  149. Badges
  150. </label>
  151. </div>
  152. <div class="checkbox">
  153. <label>
  154. <input type="checkbox" checked value="jumbotron.less">
  155. Jumbotron
  156. </label>
  157. </div>
  158. <div class="checkbox">
  159. <label>
  160. <input type="checkbox" checked value="thumbnails.less">
  161. Thumbnails
  162. </label>
  163. </div>
  164. <div class="checkbox">
  165. <label>
  166. <input type="checkbox" checked value="alerts.less">
  167. Alerts
  168. </label>
  169. </div>
  170. <div class="checkbox">
  171. <label>
  172. <input type="checkbox" checked value="progress-bars.less">
  173. Progress bars
  174. </label>
  175. </div>
  176. <div class="checkbox">
  177. <label>
  178. <input type="checkbox" checked value="media.less">
  179. Media items
  180. </label>
  181. </div>
  182. <div class="checkbox">
  183. <label>
  184. <input type="checkbox" checked value="list-group.less">
  185. List groups
  186. </label>
  187. </div>
  188. <div class="checkbox">
  189. <label>
  190. <input type="checkbox" checked value="panels.less">
  191. Panels
  192. </label>
  193. </div>
  194. <div class="checkbox">
  195. <label>
  196. <input type="checkbox" checked value="responsive-embed.less">
  197. Responsive embed
  198. </label>
  199. </div>
  200. <div class="checkbox">
  201. <label>
  202. <input type="checkbox" checked value="wells.less">
  203. Wells
  204. </label>
  205. </div>
  206. <div class="checkbox">
  207. <label>
  208. <input type="checkbox" checked value="close.less">
  209. Close icon
  210. </label>
  211. </div>
  212. </div><!-- .col-xs-6 .col-sm-4 -->
  213. <div class="col-xs-6 col-sm-4">
  214. <h3>JavaScript components</h3>
  215. <div class="checkbox">
  216. <label>
  217. <input type="checkbox" checked value="component-animations.less">
  218. Component animations (for JS)
  219. </label>
  220. </div>
  221. <div class="checkbox">
  222. <label>
  223. <input type="checkbox" checked value="dropdowns.less">
  224. Dropdowns
  225. </label>
  226. </div>
  227. <div class="checkbox">
  228. <label>
  229. <input type="checkbox" checked value="tooltip.less">
  230. Tooltips
  231. </label>
  232. </div>
  233. <div class="checkbox">
  234. <label>
  235. <input type="checkbox" checked value="popovers.less">
  236. Popovers
  237. </label>
  238. </div>
  239. <div class="checkbox">
  240. <label>
  241. <input type="checkbox" checked value="modals.less">
  242. Modals
  243. </label>
  244. </div>
  245. <div class="checkbox">
  246. <label>
  247. <input type="checkbox" checked value="carousel.less">
  248. Carousel
  249. </label>
  250. </div>
  251. </div><!-- .col-xs-6 .col-sm-4 -->
  252. </div><!-- /.row -->
  253. </div>
  254. <div class="bs-docs-section" id="plugin-section">
  255. <button class="btn btn-default toggle" type="button">Toggle all</button>
  256. <h1 id="plugins" class="page-header">jQuery plugins</h1>
  257. <p class="lead">Choose which jQuery plugins should be included in your custom JavaScript files. Unsure what to include? Read the <a href="../javascript/">JavaScript</a> page in the docs.</p>
  258. <div class="row">
  259. <div class="col-lg-6">
  260. <h4>Linked to components</h4>
  261. <div class="checkbox">
  262. <label>
  263. <input type="checkbox" checked value="alert.js">
  264. Alert dismissal
  265. </label>
  266. </div>
  267. <div class="checkbox">
  268. <label>
  269. <input type="checkbox" checked value="button.js">
  270. Advanced buttons
  271. </label>
  272. </div>
  273. <div class="checkbox">
  274. <label>
  275. <input type="checkbox" checked value="carousel.js">
  276. Carousel functionality
  277. </label>
  278. </div>
  279. <div class="checkbox">
  280. <label>
  281. <input type="checkbox" checked value="dropdown.js">
  282. Dropdowns
  283. </label>
  284. </div>
  285. <div class="checkbox">
  286. <label>
  287. <input type="checkbox" checked value="modal.js">
  288. Modals
  289. </label>
  290. </div>
  291. <div class="checkbox">
  292. <label>
  293. <input type="checkbox" checked value="tooltip.js">
  294. Tooltips
  295. </label>
  296. </div>
  297. <div class="checkbox">
  298. <label>
  299. <input type="checkbox" checked value="popover.js" data-dependencies="tooltip.js">
  300. Popovers <small>(requires Tooltips)</small>
  301. </label>
  302. </div>
  303. <div class="checkbox">
  304. <label>
  305. <input type="checkbox" checked value="tab.js">
  306. Togglable tabs
  307. </label>
  308. </div>
  309. </div>
  310. <div class="col-lg-6">
  311. <h4>Magic</h4>
  312. <div class="checkbox">
  313. <label>
  314. <input type="checkbox" checked value="affix.js">
  315. Affix
  316. </label>
  317. </div>
  318. <div class="checkbox">
  319. <label>
  320. <input type="checkbox" checked value="collapse.js">
  321. Collapse
  322. </label>
  323. </div>
  324. <div class="checkbox">
  325. <label>
  326. <input type="checkbox" checked value="scrollspy.js">
  327. Scrollspy
  328. </label>
  329. </div>
  330. <div class="checkbox">
  331. <label>
  332. <input type="checkbox" checked value="transition.js">
  333. Transitions <small>(required for any kind of animation)</small>
  334. </label>
  335. </div>
  336. </div>
  337. </div>
  338. <div class="bs-callout bs-callout-info">
  339. <h4>Produces two files</h4>
  340. <p>All checked plugins will be compiled into a readable <code>bootstrap.js</code> and a minified <code>bootstrap.min.js</code>. We recommend you use the minified version in production.</p>
  341. </div>
  342. <div class="bs-callout bs-callout-danger">
  343. <h4>jQuery required</h4>
  344. <p>All plugins require the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> to be included.</p>
  345. </div>
  346. </div>
  347. <div class="bs-docs-section" id="less-variables-section">
  348. <button class="btn btn-default toggle" type="button">Reset to defaults</button>
  349. <h1 id="less-variables" class="page-header">Less variables</h1>
  350. <p class="lead">Customize Less variables to define colors, sizes and more inside your custom CSS stylesheets.</p>
  351. {% include customizer-variables.html %}
  352. </div>
  353. <div class="bs-docs-section">
  354. <h1 id="download" class="page-header">Download</h1>
  355. <p class="lead">Hooray! Your custom version of Bootstrap is now ready to be compiled. Just click the button below to finish the process.</p>
  356. <div class="bs-customize-download">
  357. <button type="submit" id="btn-compile" disabled class="btn btn-block btn-lg btn-outline" onclick="ga('send', 'event', 'Customize', 'Download', 'Customize and Download');">Compile and Download</button>
  358. </div>
  359. </div><!-- /download -->
  360. </form>