bootstrap-sass-rails 2.3.2.1 → 3.0.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. data/README.md +5 -35
  2. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.eot +0 -0
  3. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.otf +0 -0
  4. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.svg +175 -0
  5. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.ttf +0 -0
  6. data/app/assets/fonts/twitter/bootstrap/glyphiconshalflings-regular.woff +0 -0
  7. data/app/assets/javascripts/twitter/bootstrap.js +0 -1
  8. data/app/assets/javascripts/twitter/bootstrap/affix.js +58 -49
  9. data/app/assets/javascripts/twitter/bootstrap/alert.js +36 -37
  10. data/app/assets/javascripts/twitter/bootstrap/button.js +41 -39
  11. data/app/assets/javascripts/twitter/bootstrap/carousel.js +131 -125
  12. data/app/assets/javascripts/twitter/bootstrap/collapse.js +108 -96
  13. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +72 -87
  14. data/app/assets/javascripts/twitter/bootstrap/modal.js +149 -155
  15. data/app/assets/javascripts/twitter/bootstrap/popover.js +60 -59
  16. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +103 -107
  17. data/app/assets/javascripts/twitter/bootstrap/tab.js +73 -82
  18. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +258 -255
  19. data/app/assets/javascripts/twitter/bootstrap/transition.js +34 -38
  20. data/app/assets/stylesheets/twitter/bootstrap.css.scss +21 -21
  21. data/app/assets/stylesheets/twitter/bootstrap/_accordion.scss +9 -13
  22. data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +44 -53
  23. data/app/assets/stylesheets/twitter/bootstrap/_badges.scss +51 -0
  24. data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +7 -9
  25. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +93 -151
  26. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +94 -162
  27. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +110 -64
  28. data/app/assets/stylesheets/twitter/bootstrap/_close.scss +9 -8
  29. data/app/assets/stylesheets/twitter/bootstrap/_code.scss +14 -21
  30. data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +11 -5
  31. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +67 -144
  32. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +279 -552
  33. data/app/assets/stylesheets/twitter/bootstrap/_glyphicons.scss +202 -0
  34. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +194 -12
  35. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +29 -0
  36. data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +46 -0
  37. data/app/assets/stylesheets/twitter/bootstrap/_list-group.scss +89 -0
  38. data/app/assets/stylesheets/twitter/bootstrap/_media.scss +8 -8
  39. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +301 -419
  40. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +93 -54
  41. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +288 -402
  42. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +176 -349
  43. data/app/assets/stylesheets/twitter/bootstrap/_normalize.scss +396 -0
  44. data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +45 -34
  45. data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +89 -104
  46. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +102 -0
  47. data/app/assets/stylesheets/twitter/bootstrap/_popovers.scss +55 -54
  48. data/app/assets/stylesheets/twitter/bootstrap/_print.scss +100 -0
  49. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +31 -49
  50. data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +56 -33
  51. data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +60 -20
  52. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +132 -177
  53. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +20 -32
  54. data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +45 -21
  55. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +87 -101
  56. data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +17 -6
  57. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +448 -179
  58. data/app/assets/stylesheets/twitter/bootstrap/_wells.scss +5 -6
  59. data/lib/bootstrap/sass/rails/version.rb +1 -1
  60. data/test/cases/less_to_sass_spec.rb +1 -6
  61. data/test/cases/usage_css_spec.rb +77 -121
  62. data/test/cases/usage_js_spec.rb +13 -14
  63. data/test/dummy/app/assets/stylesheets/individual.css.scss +4 -4
  64. data/test/dummy/config/application.rb +2 -2
  65. data/test/dummy/log/test.log +431 -0
  66. data/test/dummy/tmp/cache/assets/C41/5B0/sprockets%2F095415e1141a435237aa9464752d21fd +1623 -2374
  67. data/test/dummy/tmp/cache/assets/C83/870/sprockets%2F508e55e1444b44d0187677a51893acf2 +0 -0
  68. data/test/dummy/tmp/cache/assets/C96/270/sprockets%2F7984a23519ffe6f306f43f447266634f +0 -0
  69. data/test/dummy/tmp/cache/assets/CA6/110/sprockets%2F272615ec4af76b10339048ca6da44284 +0 -0
  70. data/test/dummy/tmp/cache/assets/CC3/BF0/sprockets%2F468c709115f67bff62b7bc8c58577018 +0 -0
  71. data/test/dummy/tmp/cache/assets/CCB/C60/sprockets%2F0b4e89e7ef810989f02643e226d2799f +0 -0
  72. data/test/dummy/tmp/cache/assets/CD6/5C0/sprockets%2F95516af385b1c218d233ec924c081e2b +0 -0
  73. data/test/dummy/tmp/cache/assets/CE5/650/sprockets%2F8ab512c9b33ac90e699b73469d71f061 +0 -0
  74. data/test/dummy/tmp/cache/assets/CE9/E40/sprockets%2F47f8666418cd38da2ff7625f02422b5e +0 -0
  75. data/test/dummy/tmp/cache/assets/CF1/960/sprockets%2F339a6cb9e577ba950d8b438b9e080577 +0 -0
  76. data/test/dummy/tmp/cache/assets/CF1/ED0/sprockets%2F9947d52d16da82564b988d16366e3aea +489 -549
  77. data/test/dummy/tmp/cache/assets/CF9/BF0/sprockets%2F78b40808be290175c2aed7d0223adb10 +0 -0
  78. data/test/dummy/tmp/cache/assets/CFD/E70/sprockets%2Ff56d388878ed87bc4b45095e1e69542c +0 -0
  79. data/test/dummy/tmp/cache/assets/D04/3C0/sprockets%2F29d763bd40cc25622b1f04b876a5c3e3 +0 -0
  80. data/test/dummy/tmp/cache/assets/D07/830/sprockets%2F530e67cd61f082e10b6b1f055ef9e522 +0 -0
  81. data/test/dummy/tmp/cache/assets/D09/DA0/sprockets%2Fa128ed69035c50db9cf4530f847a232d +0 -0
  82. data/test/dummy/tmp/cache/assets/D0E/A50/sprockets%2F468261fcdd6da4ae335b6c649407642a +0 -0
  83. data/test/dummy/tmp/cache/assets/D0F/A00/sprockets%2F217ed4e8ba29d846187e02c07a7d3d16 +0 -0
  84. data/test/dummy/tmp/cache/assets/D15/460/sprockets%2F5e20cc6d707d604c87f1043fc59ae596 +0 -0
  85. data/test/dummy/tmp/cache/assets/D16/D10/sprockets%2F333dae5d08f2e7850832ce0c674e9b93 +0 -0
  86. data/test/dummy/tmp/cache/assets/D22/870/sprockets%2F4b8d9e928e17ed67ff01fa83837080f1 +0 -0
  87. data/test/dummy/tmp/cache/assets/D2D/360/sprockets%2Fc1ad77232fa01c1626bd87aef06951a2 +0 -0
  88. data/test/dummy/tmp/cache/assets/D33/070/sprockets%2F032ca4516063b36df778dcc512b8a6dc +0 -0
  89. data/test/dummy/tmp/cache/assets/D39/1E0/sprockets%2Ff9c833e26cf56e40e203bc1b4219d5c5 +0 -0
  90. data/test/dummy/tmp/cache/assets/D39/7B0/sprockets%2Fa8690aabd7f00442715ce19dd5c9b354 +0 -0
  91. data/test/dummy/tmp/cache/assets/D3F/FA0/sprockets%2F22c8366fdbaaa2872b202dfe7376629f +0 -0
  92. data/test/dummy/tmp/cache/assets/D49/BC0/sprockets%2F93df722705d460d54cacae968beb8790 +0 -0
  93. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  94. data/test/dummy/tmp/cache/assets/D52/080/sprockets%2F02ef730a09ca2dd5d1051d492825abaa +0 -0
  95. data/test/dummy/tmp/cache/assets/D5A/560/sprockets%2Fad87bf89db0c636d2899f3d47eb70838 +0 -0
  96. data/test/dummy/tmp/cache/assets/D61/DD0/sprockets%2Fb2451cc5a100eae9932abac970808df7 +0 -0
  97. data/test/dummy/tmp/cache/assets/D70/0D0/sprockets%2F75765d3bfee9346a60198cbb8cdad102 +0 -0
  98. data/test/dummy/tmp/cache/assets/D73/8E0/sprockets%2F3ca5f1e3af1278de20d8dd955c57c294 +0 -0
  99. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +1093 -1435
  100. data/test/dummy/tmp/cache/assets/D91/080/sprockets%2Fbcca522c6302f184f12fe0e8a7d7e71a +0 -0
  101. data/test/dummy/tmp/cache/assets/D99/2D0/sprockets%2F9d2cc0bcc83c5c5dd8129271fc88aa04 +0 -0
  102. data/test/dummy/tmp/cache/assets/D9F/300/sprockets%2Fc13fc73ceafa45876a901b3e775b83ae +0 -0
  103. data/test/dummy/tmp/cache/assets/DA5/5E0/sprockets%2F5ce12bd3f860cef43ffd6737c98d106a +0 -0
  104. data/test/dummy/tmp/cache/assets/DAE/6A0/sprockets%2Fe416a2a891a5f97fddb97ecc762f95a1 +0 -0
  105. data/test/dummy/tmp/cache/assets/DD5/C90/sprockets%2Fd55fb0d1a6d0ea7096cf7ffcb66752f6 +0 -0
  106. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  107. data/test/dummy/tmp/cache/assets/DFF/EA0/sprockets%2Fc05f92ff4e2fa5eadcfe9d3d151047f3 +0 -0
  108. data/test/dummy/tmp/cache/assets/E02/BF0/sprockets%2F136aca6e9aaec765cd78a28a2bcb79e7 +0 -0
  109. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  110. data/test/dummy/tmp/cache/assets/E1D/200/sprockets%2Faaff0ad50df12a7ad76ce7b32d377e0b +0 -0
  111. data/test/dummy/tmp/cache/assets/E22/B10/sprockets%2Fec73dbc745e21ceda62ae0b9d41b4ed5 +152 -158
  112. data/test/dummy/tmp/cache/assets/E3A/D90/sprockets%2Fce0dbefdb4416ebc42589ecdbf7d7857 +0 -0
  113. data/test/dummy/tmp/cache/assets/E5F/300/sprockets%2F243a2fff0dbb8aeec3dd579b4ff7c81b +1624 -2374
  114. data/test/dummy/tmp/cache/assets/test/sass/8f72aeff1178075699c0d6fdead3bf4e974c0ea8/bootstrap.css.scssc +0 -0
  115. data/test/dummy/tmp/cache/assets/test/sass/9f022039bcde6dbfad5a4cecd880da08604928b6/individual.css.scssc +0 -0
  116. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_accordion.scssc +0 -0
  117. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_alerts.scssc +0 -0
  118. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_badges.scssc +0 -0
  119. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_breadcrumbs.scssc +0 -0
  120. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_button-groups.scssc +0 -0
  121. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_buttons.scssc +0 -0
  122. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_carousel.scssc +0 -0
  123. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_close.scssc +0 -0
  124. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_code.scssc +0 -0
  125. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_component-animations.scssc +0 -0
  126. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_dropdowns.scssc +0 -0
  127. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_forms.scssc +0 -0
  128. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_glyphicons.scssc +0 -0
  129. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_grid.scssc +0 -0
  130. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_jumbotron.scssc +0 -0
  131. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_labels.scssc +0 -0
  132. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_list-group.scssc +0 -0
  133. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_media.scssc +0 -0
  134. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_mixins.scssc +0 -0
  135. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_modals.scssc +0 -0
  136. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_navbar.scssc +0 -0
  137. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_navs.scssc +0 -0
  138. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_normalize.scssc +0 -0
  139. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_pager.scssc +0 -0
  140. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_pagination.scssc +0 -0
  141. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_panels.scssc +0 -0
  142. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_popovers.scssc +0 -0
  143. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_print.scssc +0 -0
  144. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_progress-bars.scssc +0 -0
  145. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_responsive-utilities.scssc +0 -0
  146. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_scaffolding.scssc +0 -0
  147. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_tables.scssc +0 -0
  148. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_thumbnails.scssc +0 -0
  149. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_tooltip.scssc +0 -0
  150. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_type.scssc +0 -0
  151. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_utilities.scssc +0 -0
  152. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_variables.scssc +0 -0
  153. data/test/dummy/tmp/cache/assets/test/sass/cfad29a224e7f58382c29443f9b09f2fd1187615/_wells.scssc +0 -0
  154. data/test/dummy/tmp/cache/assets/test/sprockets/02ef730a09ca2dd5d1051d492825abaa +0 -0
  155. data/test/dummy/tmp/cache/assets/test/sprockets/032ca4516063b36df778dcc512b8a6dc +0 -0
  156. data/test/dummy/tmp/cache/assets/test/sprockets/0b4e89e7ef810989f02643e226d2799f +0 -0
  157. data/test/dummy/tmp/cache/assets/test/sprockets/136aca6e9aaec765cd78a28a2bcb79e7 +0 -0
  158. data/test/dummy/tmp/cache/assets/test/sprockets/17944d87edb3d6c919fabddafa06e625 +0 -0
  159. data/test/dummy/tmp/cache/assets/test/sprockets/19646e859b697be7dd414259f4f9ff62 +0 -0
  160. data/test/dummy/tmp/cache/assets/test/sprockets/1ac94a8529fe0f023d8a7793a71c9ee1 +0 -0
  161. data/test/dummy/tmp/cache/assets/test/sprockets/217ed4e8ba29d846187e02c07a7d3d16 +0 -0
  162. data/test/dummy/tmp/cache/assets/test/sprockets/22c8366fdbaaa2872b202dfe7376629f +0 -0
  163. data/test/dummy/tmp/cache/assets/test/sprockets/272615ec4af76b10339048ca6da44284 +0 -0
  164. data/test/dummy/tmp/cache/assets/test/sprockets/29d763bd40cc25622b1f04b876a5c3e3 +0 -0
  165. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  166. data/test/dummy/tmp/cache/assets/test/sprockets/333dae5d08f2e7850832ce0c674e9b93 +0 -0
  167. data/test/dummy/tmp/cache/assets/test/sprockets/339a6cb9e577ba950d8b438b9e080577 +0 -0
  168. data/test/dummy/tmp/cache/assets/test/sprockets/3ca5f1e3af1278de20d8dd955c57c294 +0 -0
  169. data/test/dummy/tmp/cache/assets/test/sprockets/468261fcdd6da4ae335b6c649407642a +0 -0
  170. data/test/dummy/tmp/cache/assets/test/sprockets/468c709115f67bff62b7bc8c58577018 +0 -0
  171. data/test/dummy/tmp/cache/assets/test/sprockets/47f8666418cd38da2ff7625f02422b5e +0 -0
  172. data/test/dummy/tmp/cache/assets/test/sprockets/4a73849355d6fd23920426e6beee0670 +0 -0
  173. data/test/dummy/tmp/cache/assets/test/sprockets/4b8d9e928e17ed67ff01fa83837080f1 +0 -0
  174. data/test/dummy/tmp/cache/assets/test/sprockets/508e55e1444b44d0187677a51893acf2 +0 -0
  175. data/test/dummy/tmp/cache/assets/test/sprockets/530e67cd61f082e10b6b1f055ef9e522 +0 -0
  176. data/test/dummy/tmp/cache/assets/test/sprockets/5ce12bd3f860cef43ffd6737c98d106a +0 -0
  177. data/test/dummy/tmp/cache/assets/test/sprockets/5e20cc6d707d604c87f1043fc59ae596 +0 -0
  178. data/test/dummy/tmp/cache/assets/test/sprockets/657e02950f485b10525c2247b3d43a97 +0 -0
  179. data/test/dummy/tmp/cache/assets/test/sprockets/70398c32ae5ccaa657b2b8ab8aafd095 +0 -0
  180. data/test/dummy/tmp/cache/assets/test/sprockets/75765d3bfee9346a60198cbb8cdad102 +0 -0
  181. data/test/dummy/tmp/cache/assets/test/sprockets/78b40808be290175c2aed7d0223adb10 +0 -0
  182. data/test/dummy/tmp/cache/assets/test/sprockets/7984a23519ffe6f306f43f447266634f +0 -0
  183. data/test/dummy/tmp/cache/assets/test/sprockets/8ab512c9b33ac90e699b73469d71f061 +0 -0
  184. data/test/dummy/tmp/cache/assets/test/sprockets/93df722705d460d54cacae968beb8790 +0 -0
  185. data/test/dummy/tmp/cache/assets/test/sprockets/95516af385b1c218d233ec924c081e2b +0 -0
  186. data/test/dummy/tmp/cache/assets/test/sprockets/9d2cc0bcc83c5c5dd8129271fc88aa04 +0 -0
  187. data/test/dummy/tmp/cache/assets/test/sprockets/a128ed69035c50db9cf4530f847a232d +0 -0
  188. data/test/dummy/tmp/cache/assets/test/sprockets/a8690aabd7f00442715ce19dd5c9b354 +0 -0
  189. data/test/dummy/tmp/cache/assets/test/sprockets/aaff0ad50df12a7ad76ce7b32d377e0b +0 -0
  190. data/test/dummy/tmp/cache/assets/test/sprockets/ab4b53d2f50152d21a34997eafa92699 +0 -0
  191. data/test/dummy/tmp/cache/assets/test/sprockets/ad87bf89db0c636d2899f3d47eb70838 +0 -0
  192. data/test/dummy/tmp/cache/assets/test/sprockets/b2451cc5a100eae9932abac970808df7 +0 -0
  193. data/test/dummy/tmp/cache/assets/test/sprockets/bcca522c6302f184f12fe0e8a7d7e71a +0 -0
  194. data/test/dummy/tmp/cache/assets/test/sprockets/c05f92ff4e2fa5eadcfe9d3d151047f3 +0 -0
  195. data/test/dummy/tmp/cache/assets/test/sprockets/c13fc73ceafa45876a901b3e775b83ae +0 -0
  196. data/test/dummy/tmp/cache/assets/test/sprockets/c1ad77232fa01c1626bd87aef06951a2 +0 -0
  197. data/test/dummy/tmp/cache/assets/test/sprockets/ce0dbefdb4416ebc42589ecdbf7d7857 +0 -0
  198. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  199. data/test/dummy/tmp/cache/assets/test/sprockets/d55fb0d1a6d0ea7096cf7ffcb66752f6 +0 -0
  200. data/test/dummy/tmp/cache/assets/test/sprockets/e416a2a891a5f97fddb97ecc762f95a1 +0 -0
  201. data/test/dummy/tmp/cache/assets/test/sprockets/f56d388878ed87bc4b45095e1e69542c +0 -0
  202. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  203. data/test/dummy/tmp/cache/assets/test/sprockets/f9c833e26cf56e40e203bc1b4219d5c5 +0 -0
  204. data/test/dummy/tmp/cache/assets/test/sprockets/fad89ee9eff7367c9620338e7e1f8ce1 +0 -0
  205. data/test/dummy/tmp/cache/sass/56c119ce8b3716a2decf2be77551c309cebe0abe/bootstrap.css.scssc +0 -0
  206. data/test/dummy/tmp/cache/sass/73d26439e044eca0a3af4a431659ef4346a1c77c/individual.css.scssc +0 -0
  207. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_accordion.scssc +0 -0
  208. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_alerts.scssc +0 -0
  209. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_badges.scssc +0 -0
  210. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_breadcrumbs.scssc +0 -0
  211. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_button-groups.scssc +0 -0
  212. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_buttons.scssc +0 -0
  213. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_carousel.scssc +0 -0
  214. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_close.scssc +0 -0
  215. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_code.scssc +0 -0
  216. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_component-animations.scssc +0 -0
  217. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_dropdowns.scssc +0 -0
  218. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_forms.scssc +0 -0
  219. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_glyphicons.scssc +0 -0
  220. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_grid.scssc +0 -0
  221. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_jumbotron.scssc +0 -0
  222. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_labels.scssc +0 -0
  223. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_list-group.scssc +0 -0
  224. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_media.scssc +0 -0
  225. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_mixins.scssc +0 -0
  226. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_modals.scssc +0 -0
  227. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_navbar.scssc +0 -0
  228. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_navs.scssc +0 -0
  229. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_normalize.scssc +0 -0
  230. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_pager.scssc +0 -0
  231. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_pagination.scssc +0 -0
  232. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_panels.scssc +0 -0
  233. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_popovers.scssc +0 -0
  234. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_print.scssc +0 -0
  235. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_progress-bars.scssc +0 -0
  236. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_responsive-utilities.scssc +0 -0
  237. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_scaffolding.scssc +0 -0
  238. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_tables.scssc +0 -0
  239. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_thumbnails.scssc +0 -0
  240. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_tooltip.scssc +0 -0
  241. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_type.scssc +0 -0
  242. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_utilities.scssc +0 -0
  243. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_variables.scssc +0 -0
  244. data/test/dummy/tmp/cache/sass/e41478386532815a970184a6cca59a0fc53ffa12/_wells.scssc +0 -0
  245. metadata +303 -25
  246. data/app/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
  247. data/app/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
  248. data/app/assets/javascripts/twitter/bootstrap/typeahead.js +0 -335
  249. data/app/assets/stylesheets/twitter/bootstrap-no-sprites.css.scss +0 -62
  250. data/app/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +0 -26
  251. data/app/assets/stylesheets/twitter/bootstrap/_labels-badges.scss +0 -84
  252. data/app/assets/stylesheets/twitter/bootstrap/_layouts.scss +0 -17
  253. data/app/assets/stylesheets/twitter/bootstrap/_reset.scss +0 -216
  254. data/app/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.scss +0 -29
  255. data/app/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.scss +0 -193
  256. data/app/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.scss +0 -22
  257. data/app/assets/stylesheets/twitter/bootstrap/_responsive-navbar.scss +0 -189
  258. data/app/assets/stylesheets/twitter/bootstrap/_responsive.scss +0 -48
  259. data/app/assets/stylesheets/twitter/bootstrap/_sprites.scss +0 -199
  260. data/test/dummy/app/assets/stylesheets/no-sprites.css.scss +0 -3
@@ -1,4 +1,3 @@
1
- /* Partial: twitter/bootstrap/_close.scss */
2
1
  //
3
2
  // Close icons
4
3
  // --------------------------------------------------
@@ -6,24 +5,26 @@
6
5
 
7
6
  .close {
8
7
  float: right;
9
- font-size: 20px;
8
+ font-size: ($font-size-base * 1.5);
10
9
  font-weight: bold;
11
- line-height: $baseLineHeight;
12
- color: $black;
13
- text-shadow: 0 1px 0 rgba(255,255,255,1);
14
- @include opacity(20);
10
+ line-height: 1;
11
+ color: $close-color;
12
+ text-shadow: $close-text-shadow;
13
+ @include opacity(.2);
14
+
15
15
  &:hover,
16
16
  &:focus {
17
- color: $black;
17
+ color: $close-color;
18
18
  text-decoration: none;
19
19
  cursor: pointer;
20
- @include opacity(40);
20
+ @include opacity(.5);
21
21
  }
22
22
  }
23
23
 
24
24
  // Additional properties for button version
25
25
  // iOS requires the button element instead of an anchor tag.
26
26
  // If you want the anchor version, it requires `href="#"`.
27
+ // TODO: button&
27
28
  button.close {
28
29
  padding: 0;
29
30
  cursor: pointer;
@@ -1,4 +1,3 @@
1
- /* Partial: twitter/bootstrap/_code.scss */
2
1
  //
3
2
  // Code (inline and blocK)
4
3
  // --------------------------------------------------
@@ -7,48 +6,42 @@
7
6
  // Inline and block code styles
8
7
  code,
9
8
  pre {
10
- padding: 0 3px 2px;
11
- @include font-family-monospace();
12
- font-size: $baseFontSize - 2;
13
- color: $grayDark;
14
- @include border-radius(3px);
9
+ font-family: $font-family-monospace;
15
10
  }
16
11
 
17
12
  // Inline code
18
13
  code {
19
14
  padding: 2px 4px;
20
- color: #d14;
21
- background-color: #f7f7f9;
22
- border: 1px solid #e1e1e8;
15
+ font-size: 90%;
16
+ color: $code-color;
17
+ background-color: $code-bg;
23
18
  white-space: nowrap;
19
+ border-radius: 4px;
24
20
  }
25
21
 
26
22
  // Blocks of code
27
23
  pre {
28
24
  display: block;
29
- padding: ($baseLineHeight - 1) / 2;
30
- margin: 0 0 $baseLineHeight / 2;
31
- font-size: $baseFontSize - 1; // 14px to 13px
32
- line-height: $baseLineHeight;
25
+ padding: (($line-height-computed - 1) / 2);
26
+ margin: 0 0 ($line-height-computed / 2);
27
+ font-size: ($font-size-base - 1); // 14px to 13px
28
+ line-height: $line-height-base;
33
29
  word-break: break-all;
34
30
  word-wrap: break-word;
35
- white-space: pre;
36
- white-space: pre-wrap;
37
- background-color: #f5f5f5;
38
- border: 1px solid #ccc; // fallback for IE7-8
39
- border: 1px solid rgba(0,0,0,.15);
40
- @include border-radius($baseBorderRadius);
31
+ color: $gray-dark;
32
+ background-color: $pre-bg;
33
+ border: 1px solid $pre-border-color;
34
+ border-radius: $border-radius-base;
41
35
 
42
36
  // Make prettyprint styles more spaced out for readability
43
37
  &.prettyprint {
44
- margin-bottom: $baseLineHeight;
38
+ margin-bottom: $line-height-computed;
45
39
  }
46
40
 
47
41
  // Account for some code outputs that place code tags in pre tags
48
42
  code {
49
43
  padding: 0;
50
44
  color: inherit;
51
- white-space: pre;
52
45
  white-space: pre-wrap;
53
46
  background-color: transparent;
54
47
  border: 0;
@@ -1,8 +1,11 @@
1
- /* Partial: twitter/bootstrap/_component-animations.scss */
2
1
  //
3
2
  // Component animations
4
3
  // --------------------------------------------------
5
4
 
5
+ // Heads up!
6
+ //
7
+ // We don't use the `.opacity()` mixin here since it causes a bug with text
8
+ // fields in IE7-8. Source: https://github.com/twitter/bootstrap/pull/3552.
6
9
 
7
10
  .fade {
8
11
  opacity: 0;
@@ -13,11 +16,14 @@
13
16
  }
14
17
 
15
18
  .collapse {
16
- position: relative;
19
+ display: none;
20
+ &.in {
21
+ display: block;
22
+ }
23
+ }
24
+ .collapsing {
25
+ position: relative;
17
26
  height: 0;
18
27
  overflow: hidden;
19
28
  @include transition(height .35s ease);
20
- &.in {
21
- height: auto;
22
- }
23
29
  }
@@ -1,40 +1,21 @@
1
- /* Partial: twitter/bootstrap/_dropdowns.scss */
2
1
  //
3
2
  // Dropdown menus
4
3
  // --------------------------------------------------
5
4
 
6
5
 
7
- // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
8
- .dropup,
9
- .dropdown {
10
- position: relative;
11
- }
12
- .dropdown-toggle {
13
- // The caret makes the toggle a bit too tall in IE7
14
- *margin-bottom: -3px;
15
- }
16
- .dropdown-toggle:active,
17
- .open .dropdown-toggle {
18
- outline: 0;
19
- }
20
-
21
6
  // Dropdown arrow/caret
22
7
  // --------------------
23
8
  .caret {
24
9
  display: inline-block;
25
10
  width: 0;
26
11
  height: 0;
27
- vertical-align: top;
28
- border-top: 4px solid $black;
12
+ margin-left: 2px;
13
+ vertical-align: middle;
14
+ border-top: 4px solid $dropdown-caret-color;
29
15
  border-right: 4px solid transparent;
30
16
  border-left: 4px solid transparent;
31
17
  content: "";
32
18
  }
33
- // Place the caret
34
- .dropdown .caret {
35
- margin-top: 8px;
36
- margin-left: 2px;
37
- }
38
19
 
39
20
  // The dropdown menu (ul)
40
21
  // ----------------------
@@ -42,23 +23,19 @@
42
23
  position: absolute;
43
24
  top: 100%;
44
25
  left: 0;
45
- z-index: $zindexDropdown;
26
+ z-index: $zindex-dropdown;
46
27
  display: none; // none by default, but block on "open" of the menu
47
28
  float: left;
48
29
  min-width: 160px;
49
30
  padding: 5px 0;
50
31
  margin: 2px 0 0; // override default ul
51
32
  list-style: none;
52
- background-color: $dropdownBackground;
53
- border: 1px solid #ccc; // Fallback for IE7-8
54
- border: 1px solid $dropdownBorder;
55
- *border-right-width: 2px;
56
- *border-bottom-width: 2px;
57
- @include border-radius(6px);
58
- @include box-shadow(0 5px 10px rgba(0,0,0,.2));
59
- -webkit-background-clip: padding-box;
60
- -moz-background-clip: padding;
61
- background-clip: padding-box;
33
+ background-color: $dropdown-bg;
34
+ border: 1px solid $dropdown-fallback-border; // IE8 fallback
35
+ border: 1px solid $dropdown-border;
36
+ border-radius: $border-radius-base;
37
+ @include box-shadow(0 6px 12px rgba(0,0,0,.175));
38
+ @include background-clip(padding-box);
62
39
 
63
40
  // Aligns the dropdown menu to right
64
41
  &.pull-right {
@@ -66,9 +43,9 @@
66
43
  left: auto;
67
44
  }
68
45
 
69
- // Dividers (basically an hr) within the dropdown
46
+ // Dividers (basically an hr) within the dropdown
70
47
  .divider {
71
- @include nav-divider($dropdownDividerTop, $dropdownDividerBottom);
48
+ @include nav-divider($dropdown-divider-bg);
72
49
  }
73
50
 
74
51
  // Links within the dropdown menu
@@ -77,64 +54,84 @@
77
54
  padding: 3px 20px;
78
55
  clear: both;
79
56
  font-weight: normal;
80
- line-height: $baseLineHeight;
81
- color: $dropdownLinkColor;
82
- white-space: nowrap;
57
+ line-height: $line-height-base;
58
+ color: $dropdown-link-color;
59
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
83
60
  }
84
61
  }
85
62
 
86
63
  // Hover/Focus state
87
64
  // -----------
88
- .dropdown-menu > li > a:hover,
89
- .dropdown-menu > li > a:focus,
90
- .dropdown-submenu:hover > a,
91
- .dropdown-submenu:focus > a {
92
- text-decoration: none;
93
- color: $dropdownLinkColorHover;
94
- @include gradient-vertical($dropdownLinkBackgroundHover, darken($dropdownLinkBackgroundHover, 5%));
65
+ .dropdown-menu > li > a {
66
+ &:hover,
67
+ &:focus {
68
+ text-decoration: none;
69
+ color: $dropdown-link-hover-color;
70
+ @include gradient-vertical($start-color: $dropdown-link-hover-bg, $end-color: darken($dropdown-link-hover-bg, 5%));
71
+ }
95
72
  }
96
73
 
97
74
  // Active state
98
75
  // ------------
99
- .dropdown-menu > .active > a,
100
- .dropdown-menu > .active > a:hover,
101
- .dropdown-menu > .active > a:focus {
102
- color: $dropdownLinkColorActive;
103
- text-decoration: none;
104
- outline: 0;
105
- @include gradient-vertical($dropdownLinkBackgroundActive, darken($dropdownLinkBackgroundActive, 5%));
76
+ .dropdown-menu > .active > a {
77
+ &,
78
+ &:hover,
79
+ &:focus {
80
+ color: $dropdown-link-active-color;
81
+ text-decoration: none;
82
+ outline: 0;
83
+ @include gradient-vertical($start-color: $dropdown-link-active-bg, $end-color: darken($dropdown-link-active-bg, 5%));
84
+ }
106
85
  }
107
86
 
108
87
  // Disabled state
109
88
  // --------------
110
89
  // Gray out text and ensure the hover/focus state remains gray
111
- .dropdown-menu > .disabled > a,
112
- .dropdown-menu > .disabled > a:hover,
113
- .dropdown-menu > .disabled > a:focus {
114
- color: $grayLight;
90
+ .dropdown-menu > .disabled > a {
91
+ &,
92
+ &:hover,
93
+ &:focus {
94
+ color: $gray-light;
95
+ }
115
96
  }
116
97
  // Nuke hover/focus effects
117
- .dropdown-menu > .disabled > a:hover,
118
- .dropdown-menu > .disabled > a:focus {
119
- text-decoration: none;
120
- background-color: transparent;
121
- background-image: none; // Remove CSS gradient
122
- @include reset-filter();
123
- cursor: default;
98
+ .dropdown-menu > .disabled > a {
99
+ &:hover,
100
+ &:focus {
101
+ text-decoration: none;
102
+ background-color: transparent;
103
+ background-image: none; // Remove CSS gradient
104
+ @include reset-filter();
105
+ cursor: not-allowed;
106
+ }
124
107
  }
125
108
 
126
109
  // Open state for the dropdown
127
110
  // ---------------------------
128
111
  .open {
129
- // IE7's z-index only goes to the nearest positioned ancestor, which would
130
- // make the menu appear below buttons that appeared later on the page
131
- *z-index: $zindexDropdown;
132
-
133
- & > .dropdown-menu {
112
+ // Show the menu
113
+ > .dropdown-menu {
134
114
  display: block;
135
115
  }
116
+
117
+ // Remove the outline when :focus is triggered
118
+ > a {
119
+ outline: 0;
120
+ }
121
+ }
122
+
123
+ // Dropdown section headers
124
+ // ---------------------------
125
+ .dropdown-header {
126
+ display: block;
127
+ padding: 3px 20px;
128
+ font-size: $font-size-small;
129
+ line-height: $line-height-base;
130
+ color: $gray-light;
136
131
  }
137
132
 
133
+
134
+
138
135
  // Backdrop to catch body clicks on mobile, etc.
139
136
  // ---------------------------
140
137
  .dropdown-backdrop {
@@ -143,7 +140,7 @@
143
140
  right: 0;
144
141
  bottom: 0;
145
142
  top: 0;
146
- z-index: $zindexDropdown - 10;
143
+ z-index: $zindex-dropdown - 10;
147
144
  }
148
145
 
149
146
  // Right aligned dropdowns
@@ -162,7 +159,7 @@
162
159
  // Reverse the caret
163
160
  .caret {
164
161
  border-top: 0;
165
- border-bottom: 4px solid $black;
162
+ border-bottom: 4px solid $dropdown-caret-color;
166
163
  content: "";
167
164
  }
168
165
  // Different positioning for bottom up menu
@@ -172,77 +169,3 @@
172
169
  margin-bottom: 1px;
173
170
  }
174
171
  }
175
-
176
- // Sub menus
177
- // ---------------------------
178
- .dropdown-submenu {
179
- position: relative;
180
- }
181
- // Default dropdowns
182
- .dropdown-submenu > .dropdown-menu {
183
- top: 0;
184
- left: 100%;
185
- margin-top: -6px;
186
- margin-left: -1px;
187
- @include border-radius(0 6px 6px 6px);
188
- }
189
- .dropdown-submenu:hover > .dropdown-menu {
190
- display: block;
191
- }
192
-
193
- // Dropups
194
- .dropup .dropdown-submenu > .dropdown-menu {
195
- top: auto;
196
- bottom: 0;
197
- margin-top: 0;
198
- margin-bottom: -2px;
199
- @include border-radius(5px 5px 5px 0);
200
- }
201
-
202
- // Caret to indicate there is a submenu
203
- .dropdown-submenu > a:after {
204
- display: block;
205
- content: " ";
206
- float: right;
207
- width: 0;
208
- height: 0;
209
- border-color: transparent;
210
- border-style: solid;
211
- border-width: 5px 0 5px 5px;
212
- border-left-color: darken($dropdownBackground, 20%);
213
- margin-top: 5px;
214
- margin-right: -10px;
215
- }
216
- .dropdown-submenu:hover > a:after {
217
- border-left-color: $dropdownLinkColorHover;
218
- }
219
-
220
- // Left aligned submenus
221
- .dropdown-submenu.pull-left {
222
- // Undo the float
223
- // Yes, this is awkward since .pull-left adds a float, but it sticks to our conventions elsewhere.
224
- float: none;
225
-
226
- // Positioning the submenu
227
- > .dropdown-menu {
228
- left: -100%;
229
- margin-left: 10px;
230
- @include border-radius(6px 0 6px 6px);
231
- }
232
- }
233
-
234
- // Tweak nav headers
235
- // -----------------
236
- // Increase padding from 15px to 20px on sides
237
- .dropdown .dropdown-menu .nav-header {
238
- padding-left: 20px;
239
- padding-right: 20px;
240
- }
241
-
242
- // Typeahead
243
- // ---------
244
- .typeahead {
245
- z-index: 1051;
246
- margin-top: 2px; // give it some space to breathe
247
- @include border-radius($baseBorderRadius);
248
- }
@@ -1,16 +1,11 @@
1
- /* Partial: twitter/bootstrap/_forms.scss */
2
1
  //
3
2
  // Forms
4
3
  // --------------------------------------------------
5
4
 
6
5
 
7
- // GENERAL STYLES
8
- // --------------
9
-
10
- // Make all forms have space below them
11
- form {
12
- margin: 0 0 $baseLineHeight;
13
- }
6
+ // Normalize non-controls
7
+ //
8
+ // Restyle and baseline non-control form elements.
14
9
 
15
10
  fieldset {
16
11
  padding: 0;
@@ -18,153 +13,43 @@ fieldset {
18
13
  border: 0;
19
14
  }
20
15
 
21
- // Groups of fields with labels on top (legends)
22
16
  legend {
23
17
  display: block;
24
18
  width: 100%;
25
19
  padding: 0;
26
- margin-bottom: $baseLineHeight;
27
- font-size: $baseFontSize * 1.5;
28
- line-height: $baseLineHeight * 2;
29
- color: $grayDark;
20
+ margin-bottom: $line-height-computed;
21
+ font-size: ($font-size-base * 1.5);
22
+ line-height: inherit;
23
+ color: $gray-dark;
30
24
  border: 0;
31
- border-bottom: 1px solid #e5e5e5;
32
-
33
- // Small
34
- small {
35
- font-size: $baseLineHeight * .75;
36
- color: $grayLight;
37
- }
25
+ border-bottom: 1px solid $legend-border-color;
38
26
  }
39
27
 
40
- // Set font for forms
41
- label,
42
- input,
43
- button,
44
- select,
45
- textarea {
46
- @include font-shorthand($baseFontSize,normal,$baseLineHeight); // Set size, weight, line-height here
47
- }
48
- input,
49
- button,
50
- select,
51
- textarea {
52
- font-family: $baseFontFamily; // And only set font-family here for those that need it (note the missing label element)
53
- }
54
-
55
- // Identify controls by their labels
56
28
  label {
57
- display: block;
29
+ display: inline-block;
58
30
  margin-bottom: 5px;
31
+ font-weight: bold;
59
32
  }
60
33
 
61
- // Form controls
62
- // -------------------------
63
-
64
- // Shared size and type resets
65
- select,
66
- textarea,
67
- input[type="text"],
68
- input[type="password"],
69
- input[type="datetime"],
70
- input[type="datetime-local"],
71
- input[type="date"],
72
- input[type="month"],
73
- input[type="time"],
74
- input[type="week"],
75
- input[type="number"],
76
- input[type="email"],
77
- input[type="url"],
78
- input[type="search"],
79
- input[type="tel"],
80
- input[type="color"],
81
- .uneditable-input {
82
- display: inline-block;
83
- height: $baseLineHeight;
84
- padding: 4px 6px;
85
- margin-bottom: $baseLineHeight / 2;
86
- font-size: $baseFontSize;
87
- line-height: $baseLineHeight;
88
- color: $gray;
89
- @include border-radius($inputBorderRadius);
90
- vertical-align: middle;
91
- }
92
34
 
93
- // Reset appearance properties for textual inputs and textarea
94
- // Declare width for legacy (can't be on input[type=*] selectors or it's too specific)
95
- input,
96
- textarea,
97
- .uneditable-input {
98
- width: 206px; // plus 12px padding and 2px border
99
- }
100
- // Reset height since textareas have rows
101
- textarea {
102
- height: auto;
103
- }
104
- // Everything else
105
- textarea,
106
- input[type="text"],
107
- input[type="password"],
108
- input[type="datetime"],
109
- input[type="datetime-local"],
110
- input[type="date"],
111
- input[type="month"],
112
- input[type="time"],
113
- input[type="week"],
114
- input[type="number"],
115
- input[type="email"],
116
- input[type="url"],
117
- input[type="search"],
118
- input[type="tel"],
119
- input[type="color"],
120
- .uneditable-input {
121
- background-color: $inputBackground;
122
- border: 1px solid $inputBorder;
123
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
124
- @include transition(border linear .2s, box-shadow linear .2s);
35
+ // Normalize form controls
125
36
 
126
- // Focus state
127
- &:focus {
128
- border-color: rgba(82,168,236,.8);
129
- outline: 0;
130
- outline: thin dotted \9; /* IE6-9 */
131
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6));
132
- }
37
+ // Override content-box in Normalize (* isn't specific enough)
38
+ input[type="search"] {
39
+ @include box-sizing(border-box);
133
40
  }
134
41
 
135
42
  // Position radios and checkboxes better
136
43
  input[type="radio"],
137
44
  input[type="checkbox"] {
138
45
  margin: 4px 0 0;
139
- *margin-top: 0; /* IE7 */
140
46
  margin-top: 1px \9; /* IE8-9 */
141
47
  line-height: normal;
142
48
  }
143
49
 
144
- // Reset width of input images, buttons, radios, checkboxes
145
- input[type="file"],
146
- input[type="image"],
147
- input[type="submit"],
148
- input[type="reset"],
149
- input[type="button"],
150
- input[type="radio"],
151
- input[type="checkbox"] {
152
- width: auto; // Override of generic input selector
153
- }
154
-
155
50
  // Set the height of select and file controls to match text inputs
156
- select,
157
51
  input[type="file"] {
158
- height: $inputHeight; /* In IE7, the height of the select element cannot be changed by height, only font-size */
159
- *margin-top: 4px; /* For IE7, add top margin to align select with labels */
160
- line-height: $inputHeight;
161
- }
162
-
163
- // Make select elements obey height by applying a border
164
- select {
165
- width: 220px; // default input width + 10px of padding that doesn't get applied
166
- border: 1px solid $inputBorder;
167
- background-color: $inputBackground; // Chrome on Linux and Mobile Safari need background-color
52
+ display: block;
168
53
  }
169
54
 
170
55
  // Make multiple select elements height not fixed
@@ -173,523 +58,365 @@ select[size] {
173
58
  height: auto;
174
59
  }
175
60
 
61
+ // Fix optgroup Firefox bug per https://github.com/twbs/bootstrap/issues/7611
62
+ select optgroup {
63
+ font-size: inherit;
64
+ font-style: inherit;
65
+ font-family: inherit;
66
+ }
67
+
176
68
  // Focus for select, file, radio, and checkbox
177
- select:focus,
178
69
  input[type="file"]:focus,
179
70
  input[type="radio"]:focus,
180
71
  input[type="checkbox"]:focus {
181
72
  @include tab-focus();
182
73
  }
183
74
 
75
+ // Fix for Chrome number input
76
+ // Setting certain font-sizes causes the `I` bar to appear on hover of the bottom increment button.
77
+ // See https://github.com/twbs/bootstrap/issues/8350 for more.
78
+ input[type="number"] {
79
+ &::-webkit-outer-spin-button,
80
+ &::-webkit-inner-spin-button {
81
+ height: auto;
82
+ }
83
+ }
184
84
 
185
- // Uneditable inputs
186
- // -------------------------
187
85
 
188
- // Make uneditable inputs look inactive
189
- .uneditable-input,
190
- .uneditable-textarea {
191
- color: $grayLight;
192
- background-color: darken($inputBackground, 1%);
193
- border-color: $inputBorder;
194
- @include box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
195
- cursor: not-allowed;
86
+ // Placeholder
87
+ //
88
+ // Placeholder text gets special styles because when browsers invalidate entire
89
+ // lines if it doesn't understand a selector/
90
+ .form-control {
91
+ @include placeholder();
196
92
  }
197
93
 
198
- // For text that needs to appear as an input but should not be an input
199
- .uneditable-input {
200
- overflow: hidden; // prevent text from wrapping, but still cut it off like an input does
201
- white-space: nowrap;
202
- }
203
94
 
204
- // Make uneditable textareas behave like a textarea
205
- .uneditable-textarea {
206
- width: auto;
95
+ // Common form controls
96
+ //
97
+ // Shared size and type resets for form controls. Apply `.form-control` to any
98
+ // of the following form controls:
99
+ //
100
+ // select
101
+ // textarea
102
+ // input[type="text"]
103
+ // input[type="password"]
104
+ // input[type="datetime"]
105
+ // input[type="datetime-local"]
106
+ // input[type="date"]
107
+ // input[type="month"]
108
+ // input[type="time"]
109
+ // input[type="week"]
110
+ // input[type="number"]
111
+ // input[type="email"]
112
+ // input[type="url"]
113
+ // input[type="search"]
114
+ // input[type="tel"]
115
+ // input[type="color"]
116
+
117
+ .form-control {
118
+ display: block;
119
+ width: 100%;
120
+ height: $input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
121
+ padding: $padding-base-vertical $padding-base-horizontal;
122
+ font-size: $font-size-base;
123
+ line-height: $line-height-base;
124
+ color: $gray;
125
+ vertical-align: middle;
126
+ background-color: $input-bg;
127
+ border: 1px solid $input-border;
128
+ border-radius: $input-border-radius;
129
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
130
+ @include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
131
+
132
+ &:focus {
133
+ border-color: rgba(82,168,236,.8);
134
+ outline: 0;
135
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6));
136
+ }
137
+
138
+ // Disabled and read-only inputs
139
+ // Note: HTML5 says that inputs under a fieldset > legend:first-child won't be
140
+ // disabled if the fieldset is disabled. Due to implementation difficulty,
141
+ // we don't honor that edge case; we style them as disabled anyway.
142
+ &[disabled],
143
+ &[readonly],
144
+ fieldset[disabled] & {
145
+ cursor: not-allowed;
146
+ background-color: $input-bg-disabled;
147
+ }
148
+ }
149
+ // Reset height for `textarea`s
150
+ textarea.form-control {
207
151
  height: auto;
208
152
  }
209
153
 
210
154
 
211
- // Placeholder
212
- // -------------------------
155
+ // Form groups
156
+ //
157
+ // Designed to help with the organization and spacing of vertical forms. For
158
+ // horizontal forms, use the predefined grid classes.
213
159
 
214
- // Placeholder text gets special styles because when browsers invalidate entire lines if it doesn't understand a selector
215
- input,
216
- textarea {
217
- @include placeholder();
160
+ .form-group {
161
+ margin-bottom: 15px;
218
162
  }
219
163
 
220
164
 
221
- // CHECKBOXES & RADIOS
222
- // -------------------
165
+ // Checkboxes and radios
166
+ //
167
+ // Indent the labels to position radios/checkboxes as hanging controls.
223
168
 
224
- // Indent the labels to position radios/checkboxes as hanging
225
169
  .radio,
226
170
  .checkbox {
227
- min-height: $baseLineHeight; // clear the floating input if there is no label text
171
+ display: block;
172
+ min-height: $line-height-computed; // clear the floating input if there is no label text
173
+ margin-top: 10px;
174
+ margin-bottom: 10px;
228
175
  padding-left: 20px;
176
+ vertical-align: middle;
177
+ label {
178
+ display: inline;
179
+ margin-bottom: 0;
180
+ font-weight: normal;
181
+ cursor: pointer;
182
+ }
229
183
  }
230
184
  .radio input[type="radio"],
231
- .checkbox input[type="checkbox"] {
185
+ .radio-inline input[type="radio"],
186
+ .checkbox input[type="checkbox"],
187
+ .checkbox-inline input[type="checkbox"] {
232
188
  float: left;
233
189
  margin-left: -20px;
234
190
  }
235
-
236
- // Move the options list down to align with labels
237
- .controls > .radio:first-child,
238
- .controls > .checkbox:first-child {
239
- padding-top: 5px; // has to be padding because margin collaspes
191
+ .radio + .radio,
192
+ .checkbox + .checkbox {
193
+ margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
240
194
  }
241
195
 
242
196
  // Radios and checkboxes on same line
243
- // TODO v3: Convert .inline to .control-inline
244
- .radio.inline,
245
- .checkbox.inline {
197
+ .radio-inline,
198
+ .checkbox-inline {
246
199
  display: inline-block;
247
- padding-top: 5px;
200
+ padding-left: 20px;
248
201
  margin-bottom: 0;
249
202
  vertical-align: middle;
203
+ font-weight: normal;
204
+ cursor: pointer;
250
205
  }
251
- .radio.inline + .radio.inline,
252
- .checkbox.inline + .checkbox.inline {
206
+ .radio-inline + .radio-inline,
207
+ .checkbox-inline + .checkbox-inline {
208
+ margin-top: 0;
253
209
  margin-left: 10px; // space out consecutive inline controls
254
210
  }
255
211
 
256
212
 
257
213
 
258
- // INPUT SIZES
259
- // -----------
260
-
261
- // General classes for quick sizes
262
- .input-mini { width: 60px; }
263
- .input-small { width: 90px; }
264
- .input-medium { width: 150px; }
265
- .input-large { width: 210px; }
266
- .input-xlarge { width: 270px; }
267
- .input-xxlarge { width: 530px; }
268
-
269
- // Grid style input sizes
270
- input[class*="span"],
271
- select[class*="span"],
272
- textarea[class*="span"],
273
- .uneditable-input[class*="span"],
274
- // Redeclare since the fluid row class is more specific
275
- .row-fluid input[class*="span"],
276
- .row-fluid select[class*="span"],
277
- .row-fluid textarea[class*="span"],
278
- .row-fluid .uneditable-input[class*="span"] {
279
- float: none;
280
- margin-left: 0;
281
- }
282
- // Ensure input-prepend/append never wraps
283
- .input-append input[class*="span"],
284
- .input-append .uneditable-input[class*="span"],
285
- .input-prepend input[class*="span"],
286
- .input-prepend .uneditable-input[class*="span"],
287
- .row-fluid input[class*="span"],
288
- .row-fluid select[class*="span"],
289
- .row-fluid textarea[class*="span"],
290
- .row-fluid .uneditable-input[class*="span"],
291
- .row-fluid .input-prepend [class*="span"],
292
- .row-fluid .input-append [class*="span"] {
293
- display: inline-block;
294
- }
295
-
296
-
297
-
298
- // GRID SIZING FOR INPUTS
299
- // ----------------------
300
-
301
- // Grid sizes
302
- @include grid-input($gridColumnWidth, $gridGutterWidth);
303
-
304
- // Control row for multiple inputs per line
305
- .controls-row {
306
- @include clearfix(); // Clear the float from controls
307
- }
308
-
309
- // Float to collapse white-space for proper grid alignment
310
- .controls-row [class*="span"],
311
- // Redeclare the fluid grid collapse since we undo the float for inputs
312
- .row-fluid .controls-row [class*="span"] {
313
- float: left;
314
- }
315
- // Explicity set top padding on all checkboxes/radios, not just first-child
316
- .controls-row .checkbox[class*="span"],
317
- .controls-row .radio[class*="span"] {
318
- padding-top: 5px;
319
- }
320
-
321
-
322
-
323
-
324
- // DISABLED STATE
325
- // --------------
326
-
327
- // Disabled and read-only inputs
328
- input[disabled],
329
- select[disabled],
330
- textarea[disabled],
331
- input[readonly],
332
- select[readonly],
333
- textarea[readonly] {
334
- cursor: not-allowed;
335
- background-color: $inputDisabledBackground;
214
+ // Form control sizing
215
+ //
216
+ // Relative text size, padding, and border-radii changes for form controls. For
217
+ // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
218
+ // element gets special love because it's special, and that's a fact!
219
+
220
+ .form-control {
221
+ &.input-large {
222
+ height: $input-height-large;
223
+ padding: $padding-large-vertical $padding-large-horizontal;
224
+ font-size: $font-size-large;
225
+ border-radius: $border-radius-large;
226
+ }
227
+ &.input-small {
228
+ height: $input-height-small;
229
+ padding: $padding-small-vertical $padding-small-horizontal;
230
+ font-size: $font-size-small;
231
+ border-radius: $border-radius-small;
232
+ }
336
233
  }
337
- // Explicitly reset the colors here
338
- input[type="radio"][disabled],
339
- input[type="checkbox"][disabled],
340
- input[type="radio"][readonly],
341
- input[type="checkbox"][readonly] {
342
- background-color: transparent;
234
+ select {
235
+ &.input-large {
236
+ height: $input-height-large;
237
+ line-height: $input-height-large;
238
+ }
239
+ &.input-small {
240
+ height: $input-height-small;
241
+ line-height: $input-height-small;
242
+ }
343
243
  }
344
244
 
345
245
 
346
-
347
- // FORM FIELD FEEDBACK STATES
348
- // --------------------------
246
+ // Form control feedback states
247
+ //
248
+ // Apply contextual and semantic states to individual form controls.
349
249
 
350
250
  // Warning
351
- .control-group.warning {
352
- @include formFieldState($warningText, $warningText, $warningBackground);
251
+ .has-warning {
252
+ @include form-control-validation($state-warning-text, $state-warning-text, $state-warning-bg);
353
253
  }
354
254
  // Error
355
- .control-group.error {
356
- @include formFieldState($errorText, $errorText, $errorBackground);
357
- }
358
- // Success
359
- .control-group.success {
360
- @include formFieldState($successText, $successText, $successBackground);
255
+ .has-error {
256
+ @include form-control-validation($state-danger-text, $state-danger-text, $state-danger-bg);
361
257
  }
362
258
  // Success
363
- .control-group.info {
364
- @include formFieldState($infoText, $infoText, $infoBackground);
259
+ .has-success {
260
+ @include form-control-validation($state-success-text, $state-success-text, $state-success-bg);
365
261
  }
366
262
 
367
- // HTML5 invalid states
368
- // Shares styles with the .control-group.error above
369
- input:focus:invalid,
370
- textarea:focus:invalid,
371
- select:focus:invalid {
372
- color: #b94a48;
373
- border-color: #ee5f5b;
374
- &:focus {
375
- border-color: darken(#ee5f5b, 10%);
376
- @include box-shadow(0 0 6px lighten(#ee5f5b, 20%));
377
- }
378
- }
379
-
380
-
381
-
382
- // FORM ACTIONS
383
- // ------------
384
-
385
- .form-actions {
386
- padding: ($baseLineHeight - 1) 20px $baseLineHeight;
387
- margin-top: $baseLineHeight;
388
- margin-bottom: $baseLineHeight;
389
- background-color: $formActionsBackground;
390
- border-top: 1px solid #e5e5e5;
391
- @include clearfix(); // Adding clearfix to allow for .pull-right button containers
392
- }
393
-
394
-
395
-
396
- // HELP TEXT
397
- // ---------
398
263
 
399
- .help-block,
400
- .help-inline {
401
- color: lighten($textColor, 15%); // lighten the text some for contrast
402
- }
264
+ // Help text
265
+ //
266
+ // Apply to any element you wish to create light text for placement immediately
267
+ // below a form control. Use for general help, formatting, or instructional text.
403
268
 
404
269
  .help-block {
405
270
  display: block; // account for any element using help-block
406
- margin-bottom: $baseLineHeight / 2;
407
- }
408
-
409
- .help-inline {
410
- display: inline-block;
411
- @include ie7-inline-block();
412
- vertical-align: middle;
413
- padding-left: 5px;
271
+ margin-top: 5px;
272
+ margin-bottom: 10px;
273
+ color: lighten($text-color, 25%); // lighten the text some for contrast
414
274
  }
415
275
 
416
276
 
417
277
 
418
- // INPUT GROUPS
419
- // ------------
278
+ // Input groups
279
+ // --------------------------------------------------
420
280
 
421
- // Allow us to put symbols and text within the input field for a cleaner look
422
- .input-append,
423
- .input-prepend {
424
- display: inline-block;
425
- margin-bottom: $baseLineHeight / 2;
426
- vertical-align: middle;
427
- font-size: 0; // white space collapse hack
428
- white-space: nowrap; // Prevent span and input from separating
429
-
430
- // Reset the white space collapse hack
431
- input,
432
- select,
433
- .uneditable-input,
434
- .dropdown-menu,
435
- .popover {
436
- font-size: $baseFontSize;
281
+ // Base styles
282
+ // -------------------------
283
+ .input-group {
284
+ display: table;
285
+ border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
286
+
287
+ // Undo padding and float of grid classes
288
+ &.col {
289
+ float: none;
290
+ padding-left: 0;
291
+ padding-right: 0;
437
292
  }
438
293
 
439
- input,
440
- select,
441
- .uneditable-input {
442
- position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
443
- margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
444
- *margin-left: 0;
445
- vertical-align: top;
446
- @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
447
- // Make input on top when focused so blue border and shadow always show
448
- &:focus {
449
- z-index: 2;
450
- }
451
- }
452
- .add-on {
453
- display: inline-block;
454
- width: auto;
455
- height: $baseLineHeight;
456
- min-width: 16px;
457
- padding: 4px 5px;
458
- font-size: $baseFontSize;
459
- font-weight: normal;
460
- line-height: $baseLineHeight;
461
- text-align: center;
462
- text-shadow: 0 1px 0 $white;
463
- vertical-align: middle;
464
- background-color: $grayLighter;
465
- border: 1px solid #ccc;
466
- }
467
- .add-on,
468
- .btn,
469
- .btn-group > .dropdown-toggle {
470
- vertical-align: top;
471
- @include border-radius(0);
472
- }
473
- .active {
474
- background-color: lighten($green, 30);
475
- border-color: $green;
294
+ .form-control {
295
+ width: 100%;
296
+ margin-bottom: 0;
476
297
  }
477
298
  }
478
299
 
479
- .input-prepend {
480
- .add-on,
481
- .btn {
482
- margin-right: -1px;
483
- }
484
- .add-on:first-child,
485
- .btn:first-child {
486
- // FYI, `.btn:first-child` accounts for a button group that's prepended
487
- @include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
488
- }
489
- }
300
+ // Display as table-cell
301
+ // -------------------------
302
+ .input-group-addon,
303
+ .input-group-btn,
304
+ .input-group .form-control {
305
+ display: table-cell;
490
306
 
491
- .input-append {
492
- input,
493
- select,
494
- .uneditable-input {
495
- @include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
496
- + .btn-group .btn:last-child {
497
- @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
498
- }
499
- }
500
- .add-on,
501
- .btn,
502
- .btn-group {
503
- margin-left: -1px;
504
- }
505
- .add-on:last-child,
506
- .btn:last-child,
507
- .btn-group:last-child > .dropdown-toggle {
508
- @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
307
+ &:not(:first-child):not(:last-child) {
308
+ border-radius: 0;
509
309
  }
510
310
  }
311
+ // Addon and addon wrapper for buttons
312
+ .input-group-addon,
313
+ .input-group-btn {
314
+ width: 1%;
315
+ white-space: nowrap;
316
+ vertical-align: middle; // Match the inputs
317
+ }
511
318
 
512
- // Remove all border-radius for inputs with both prepend and append
513
- .input-prepend.input-append {
514
- input,
515
- select,
516
- .uneditable-input {
517
- @include border-radius(0);
518
- + .btn-group .btn {
519
- @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
520
- }
521
- }
522
- .add-on:first-child,
523
- .btn:first-child {
524
- margin-right: -1px;
525
- @include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
526
- }
527
- .add-on:last-child,
528
- .btn:last-child {
529
- margin-left: -1px;
530
- @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
319
+ // Text input groups
320
+ // -------------------------
321
+ .input-group-addon {
322
+ @include box-sizing(border-box);
323
+ padding: $padding-base-vertical $padding-base-horizontal;
324
+ font-size: $font-size-base;
325
+ font-weight: normal;
326
+ line-height: $line-height-base;
327
+ text-align: center;
328
+ background-color: $gray-lighter;
329
+ border: 1px solid $input-group-addon-border-color;
330
+ border-radius: $border-radius-base;
331
+
332
+ &.input-small {
333
+ padding: $padding-small-vertical $padding-small-horizontal;
334
+ font-size: $font-size-small;
335
+ border-radius: $border-radius-small;
531
336
  }
532
- .btn-group:first-child {
533
- margin-left: 0;
337
+ &.input-large {
338
+ padding: $padding-large-vertical $padding-large-horizontal;
339
+ font-size: $font-size-large;
340
+ border-radius: $border-radius-large;
534
341
  }
535
342
  }
536
343
 
537
-
538
- // SEARCH FORM
539
- // -----------
540
-
541
- input.search-query {
542
- padding-right: 14px;
543
- padding-right: 4px \9;
544
- padding-left: 14px;
545
- padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */
546
- margin-bottom: 0; // Remove the default margin on all inputs
547
- @include border-radius(15px);
344
+ // Reset rounded corners
345
+ .input-group .form-control:first-child,
346
+ .input-group-addon:first-child,
347
+ .input-group-btn:first-child > .btn,
348
+ .input-group-btn:first-child > .dropdown-toggle,
349
+ .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
350
+ @include border-right-radius(0);
548
351
  }
549
-
550
- /* Allow for input prepend/append in search forms */
551
- .form-search .input-append .search-query,
552
- .form-search .input-prepend .search-query {
553
- @include border-radius(0); // Override due to specificity
352
+ .input-group-addon:first-child {
353
+ border-right: 0;
554
354
  }
555
- .form-search .input-append .search-query {
556
- @include border-radius(14px 0 0 14px);
355
+ .input-group .form-control:last-child,
356
+ .input-group-addon:last-child,
357
+ .input-group-btn:last-child > .btn,
358
+ .input-group-btn:last-child > .dropdown-toggle,
359
+ .input-group-btn:first-child > .btn:not(:first-child) {
360
+ @include border-left-radius(0);
557
361
  }
558
- .form-search .input-append .btn {
559
- @include border-radius(0 14px 14px 0);
362
+ .input-group-addon:last-child {
363
+ border-left: 0;
560
364
  }
561
- .form-search .input-prepend .search-query {
562
- @include border-radius(0 14px 14px 0);
365
+
366
+ // Button input groups
367
+ // -------------------------
368
+ .input-group-btn {
369
+ position: relative;
370
+ white-space: nowrap;
563
371
  }
564
- .form-search .input-prepend .btn {
565
- @include border-radius(14px 0 0 14px);
372
+ .input-group-btn > .btn {
373
+ position: relative;
374
+ // Jankily prevent input button groups from wrapping
375
+ + .btn {
376
+ margin-left: -4px;
377
+ }
378
+ // Bring the "active" button to the front
379
+ &:hover,
380
+ &:active {
381
+ z-index: 2;
382
+ }
566
383
  }
567
384
 
568
385
 
386
+ // Inline forms
387
+ // --------------------------------------------------
569
388
 
570
-
571
- // HORIZONTAL & VERTICAL FORMS
572
- // ---------------------------
573
-
574
- // Common properties
575
- // -----------------
576
-
577
- .form-search,
578
- .form-inline,
579
- .form-horizontal {
580
- input,
581
- textarea,
582
- select,
583
- .help-inline,
584
- .uneditable-input,
585
- .input-prepend,
586
- .input-append {
389
+ .form-inline {
390
+ .form-control,
391
+ .radio,
392
+ .checkbox {
587
393
  display: inline-block;
588
- @include ie7-inline-block();
589
- margin-bottom: 0;
590
- vertical-align: middle;
591
394
  }
592
- // Re-hide hidden elements due to specifity
593
- .hide {
594
- display: none;
395
+ .radio,
396
+ .checkbox {
397
+ margin-top: 0;
398
+ margin-bottom: 0;
595
399
  }
596
400
  }
597
- .form-search label,
598
- .form-inline label,
599
- .form-search .btn-group,
600
- .form-inline .btn-group {
601
- display: inline-block;
602
- }
603
- // Remove margin for input-prepend/-append
604
- .form-search .input-append,
605
- .form-inline .input-append,
606
- .form-search .input-prepend,
607
- .form-inline .input-prepend {
608
- margin-bottom: 0;
609
- }
610
- // Inline checkbox/radio labels (remove padding on left)
611
- .form-search .radio,
612
- .form-search .checkbox,
613
- .form-inline .radio,
614
- .form-inline .checkbox {
615
- padding-left: 0;
616
- margin-bottom: 0;
617
- vertical-align: middle;
618
- }
619
- // Remove float and margin, set to inline-block
620
- .form-search .radio input[type="radio"],
621
- .form-search .checkbox input[type="checkbox"],
622
- .form-inline .radio input[type="radio"],
623
- .form-inline .checkbox input[type="checkbox"] {
624
- float: left;
625
- margin-right: 3px;
626
- margin-left: 0;
627
- }
628
401
 
629
402
 
630
- // Margin to space out fieldsets
631
- .control-group {
632
- margin-bottom: $baseLineHeight / 2;
633
- }
403
+ // Horizontal forms
404
+ // --------------------------------------------------
405
+ // Horizontal forms are built on grid classes.
634
406
 
635
- // Legend collapses margin, so next element is responsible for spacing
636
- legend + .control-group {
637
- margin-top: $baseLineHeight;
638
- -webkit-margin-top-collapse: separate;
407
+ .form-horizontal .control-label {
408
+ padding-top: 6px;
639
409
  }
640
410
 
641
- // Horizontal-specific styles
642
- // --------------------------
643
-
644
411
  .form-horizontal {
645
- // Increase spacing between groups
646
- .control-group {
647
- margin-bottom: $baseLineHeight;
648
- @include clearfix();
649
- }
650
- // Float the labels left
651
- .control-label {
652
- float: left;
653
- width: $horizontalComponentOffset - 20;
654
- padding-top: 5px;
655
- text-align: right;
656
- }
657
- // Move over all input controls and content
658
- .controls {
659
- // Super jank IE7 fix to ensure the inputs in .input-append and input-prepend
660
- // don't inherit the margin of the parent, in this case .controls
661
- *display: inline-block;
662
- *padding-left: 20px;
663
- margin-left: $horizontalComponentOffset;
664
- *margin-left: 0;
665
- &:first-child {
666
- *padding-left: $horizontalComponentOffset;
667
- }
668
- }
669
- // Remove bottom margin on block level help text since that's accounted for on .control-group
670
- .help-block {
671
- margin-bottom: 0;
672
- }
673
- // And apply it only to .help-block instances that follow a form control
674
- input,
675
- select,
676
- textarea,
677
- .uneditable-input,
678
- .input-prepend,
679
- .input-append {
680
- + .help-block {
681
- margin-top: $baseLineHeight / 2;
682
- }
683
- }
684
- // Move over buttons in .form-actions to align with .controls
685
- .form-actions {
686
- padding-left: $horizontalComponentOffset;
412
+ .form-group {
413
+ @include make-row();
687
414
  }
688
415
  }
689
416
 
690
- // Block level inputs
691
- // --------------------------
692
-
693
- .input-block-level {
694
- @include input-block-level();
417
+ // Only right align form labels here when the columns stop stacking
418
+ @media (min-width: $screen-tablet) {
419
+ .form-horizontal .control-label {
420
+ text-align: right;
421
+ }
695
422
  }