easy_html_creator 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -2
  3. data/dev_root/demo-website-offline/coffee/test.coffee +28 -0
  4. data/dev_root/demo-website-offline/helper/test_helper.rb +5 -0
  5. data/dev_root/demo-website-offline/index.haml +109 -0
  6. data/dev_root/demo-website-offline/layout.haml +13 -0
  7. data/dev_root/demo-website-offline/partials/_assets.javascripts.haml +7 -0
  8. data/dev_root/{demo-website/partials/_metadata.haml → demo-website-offline/partials/_assets.metadata.haml} +3 -0
  9. data/dev_root/demo-website-offline/partials/_assets.stylesheets.haml +4 -0
  10. data/dev_root/demo-website-offline/partials/_footer.haml +5 -0
  11. data/dev_root/demo-website-offline/partials/_header.haml +27 -0
  12. data/dev_root/demo-website-offline/public/bower.json +21 -0
  13. data/dev_root/demo-website-offline/public/bower_components/bootstrap/Gruntfile.js +509 -0
  14. data/dev_root/demo-website-offline/public/bower_components/bootstrap/LICENSE +21 -0
  15. data/dev_root/demo-website-offline/public/bower_components/bootstrap/README.md +132 -0
  16. data/dev_root/demo-website-offline/public/bower_components/bootstrap/bower.json +38 -0
  17. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/css/bootstrap-theme.css +476 -0
  18. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/css/bootstrap-theme.css.map +1 -0
  19. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/css/bootstrap-theme.min.css +5 -0
  20. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/css/bootstrap.css +6566 -0
  21. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/css/bootstrap.css.map +1 -0
  22. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/css/bootstrap.min.css +5 -0
  23. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  24. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +288 -0
  25. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  26. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  27. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
  28. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/js/bootstrap.js +2306 -0
  29. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/js/bootstrap.min.js +7 -0
  30. data/dev_root/demo-website-offline/public/bower_components/bootstrap/dist/js/npm.js +13 -0
  31. data/dev_root/demo-website-offline/public/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  32. data/dev_root/demo-website-offline/public/bower_components/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
  33. data/dev_root/demo-website-offline/public/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  34. data/dev_root/demo-website-offline/public/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  35. data/dev_root/demo-website-offline/public/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  36. data/dev_root/demo-website-offline/public/bower_components/bootstrap/grunt/bs-commonjs-generator.js +23 -0
  37. data/dev_root/demo-website-offline/public/bower_components/bootstrap/grunt/bs-glyphicons-data-generator.js +41 -0
  38. data/dev_root/demo-website-offline/public/bower_components/bootstrap/grunt/bs-lessdoc-parser.js +238 -0
  39. data/dev_root/demo-website-offline/public/bower_components/bootstrap/grunt/bs-raw-files-generator.js +46 -0
  40. data/dev_root/demo-website-offline/public/bower_components/bootstrap/grunt/configBridge.json +45 -0
  41. data/dev_root/demo-website-offline/public/bower_components/bootstrap/grunt/sauce_browsers.yml +82 -0
  42. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/affix.js +162 -0
  43. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/alert.js +94 -0
  44. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/button.js +116 -0
  45. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/carousel.js +237 -0
  46. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/collapse.js +211 -0
  47. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/dropdown.js +161 -0
  48. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/modal.js +324 -0
  49. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/popover.js +113 -0
  50. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/scrollspy.js +175 -0
  51. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/tab.js +153 -0
  52. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/tooltip.js +472 -0
  53. data/dev_root/demo-website-offline/public/bower_components/bootstrap/js/transition.js +59 -0
  54. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/alerts.less +73 -0
  55. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/badges.less +65 -0
  56. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/bootstrap.less +50 -0
  57. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/breadcrumbs.less +26 -0
  58. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/button-groups.less +243 -0
  59. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/buttons.less +160 -0
  60. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/carousel.less +269 -0
  61. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/close.less +34 -0
  62. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/code.less +69 -0
  63. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/component-animations.less +34 -0
  64. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/dropdowns.less +214 -0
  65. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/forms.less +566 -0
  66. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/glyphicons.less +301 -0
  67. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/grid.less +84 -0
  68. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/input-groups.less +166 -0
  69. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/jumbotron.less +50 -0
  70. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/labels.less +64 -0
  71. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/list-group.less +124 -0
  72. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/media.less +61 -0
  73. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins.less +39 -0
  74. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/alerts.less +14 -0
  75. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/background-variant.less +8 -0
  76. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/border-radius.less +18 -0
  77. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/buttons.less +52 -0
  78. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/center-block.less +7 -0
  79. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/clearfix.less +22 -0
  80. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/forms.less +85 -0
  81. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/gradients.less +59 -0
  82. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/grid-framework.less +91 -0
  83. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/grid.less +122 -0
  84. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/hide-text.less +21 -0
  85. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/image.less +33 -0
  86. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/labels.less +12 -0
  87. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/list-group.less +29 -0
  88. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/nav-divider.less +10 -0
  89. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/nav-vertical-align.less +9 -0
  90. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/opacity.less +8 -0
  91. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/pagination.less +23 -0
  92. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/panels.less +24 -0
  93. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/progress-bar.less +10 -0
  94. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/reset-filter.less +8 -0
  95. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/resize.less +6 -0
  96. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/responsive-visibility.less +15 -0
  97. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/size.less +10 -0
  98. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/tab-focus.less +9 -0
  99. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/table-row.less +28 -0
  100. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/text-emphasis.less +8 -0
  101. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/text-overflow.less +8 -0
  102. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/mixins/vendor-prefixes.less +227 -0
  103. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/modals.less +148 -0
  104. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/navbar.less +661 -0
  105. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/navs.less +244 -0
  106. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/normalize.less +427 -0
  107. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/pager.less +54 -0
  108. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/pagination.less +88 -0
  109. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/panels.less +265 -0
  110. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/popovers.less +135 -0
  111. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/print.less +107 -0
  112. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/progress-bars.less +87 -0
  113. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/responsive-embed.less +35 -0
  114. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/responsive-utilities.less +194 -0
  115. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/scaffolding.less +150 -0
  116. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/tables.less +234 -0
  117. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/theme.less +273 -0
  118. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/thumbnails.less +36 -0
  119. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/tooltip.less +103 -0
  120. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/type.less +302 -0
  121. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/utilities.less +56 -0
  122. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/variables.less +857 -0
  123. data/dev_root/demo-website-offline/public/bower_components/bootstrap/less/wells.less +29 -0
  124. data/dev_root/demo-website-offline/public/bower_components/bootstrap/package.json +83 -0
  125. data/dev_root/demo-website-offline/public/bower_components/html5shiv/Gruntfile.js +61 -0
  126. data/dev_root/demo-website-offline/public/bower_components/html5shiv/bower.json +15 -0
  127. data/dev_root/demo-website-offline/public/bower_components/html5shiv/dist/html5shiv-printshiv.js +520 -0
  128. data/dev_root/demo-website-offline/public/bower_components/html5shiv/dist/html5shiv-printshiv.min.js +4 -0
  129. data/dev_root/demo-website-offline/public/bower_components/html5shiv/dist/html5shiv.js +322 -0
  130. data/dev_root/demo-website-offline/public/bower_components/html5shiv/dist/html5shiv.min.js +4 -0
  131. data/dev_root/demo-website-offline/public/bower_components/html5shiv/package.json +16 -0
  132. data/dev_root/demo-website-offline/public/bower_components/html5shiv/readme.md +152 -0
  133. data/dev_root/demo-website-offline/public/bower_components/jquery/MIT-LICENSE.txt +21 -0
  134. data/dev_root/demo-website-offline/public/bower_components/jquery/bower.json +27 -0
  135. data/dev_root/demo-website-offline/public/bower_components/jquery/dist/jquery.js +9205 -0
  136. data/dev_root/demo-website-offline/public/bower_components/jquery/dist/jquery.min.js +5 -0
  137. data/dev_root/demo-website-offline/public/bower_components/jquery/dist/jquery.min.map +1 -0
  138. data/dev_root/demo-website-offline/public/bower_components/jquery/src/ajax.js +786 -0
  139. data/dev_root/demo-website-offline/public/bower_components/jquery/src/ajax/jsonp.js +89 -0
  140. data/dev_root/demo-website-offline/public/bower_components/jquery/src/ajax/load.js +75 -0
  141. data/dev_root/demo-website-offline/public/bower_components/jquery/src/ajax/parseJSON.js +13 -0
  142. data/dev_root/demo-website-offline/public/bower_components/jquery/src/ajax/parseXML.js +28 -0
  143. data/dev_root/demo-website-offline/public/bower_components/jquery/src/ajax/script.js +64 -0
  144. data/dev_root/demo-website-offline/public/bower_components/jquery/src/ajax/var/nonce.js +5 -0
  145. data/dev_root/demo-website-offline/public/bower_components/jquery/src/ajax/var/rquery.js +3 -0
  146. data/dev_root/demo-website-offline/public/bower_components/jquery/src/ajax/xhr.js +136 -0
  147. data/dev_root/demo-website-offline/public/bower_components/jquery/src/attributes.js +11 -0
  148. data/dev_root/demo-website-offline/public/bower_components/jquery/src/attributes/attr.js +141 -0
  149. data/dev_root/demo-website-offline/public/bower_components/jquery/src/attributes/classes.js +158 -0
  150. data/dev_root/demo-website-offline/public/bower_components/jquery/src/attributes/prop.js +94 -0
  151. data/dev_root/demo-website-offline/public/bower_components/jquery/src/attributes/support.js +35 -0
  152. data/dev_root/demo-website-offline/public/bower_components/jquery/src/attributes/val.js +161 -0
  153. data/dev_root/demo-website-offline/public/bower_components/jquery/src/callbacks.js +205 -0
  154. data/dev_root/demo-website-offline/public/bower_components/jquery/src/core.js +497 -0
  155. data/dev_root/demo-website-offline/public/bower_components/jquery/src/core/access.js +60 -0
  156. data/dev_root/demo-website-offline/public/bower_components/jquery/src/core/init.js +123 -0
  157. data/dev_root/demo-website-offline/public/bower_components/jquery/src/core/parseHTML.js +39 -0
  158. data/dev_root/demo-website-offline/public/bower_components/jquery/src/core/ready.js +97 -0
  159. data/dev_root/demo-website-offline/public/bower_components/jquery/src/core/var/rsingleTag.js +4 -0
  160. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css.js +450 -0
  161. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/addGetHookIf.js +22 -0
  162. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/curCSS.js +57 -0
  163. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/defaultDisplay.js +70 -0
  164. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  165. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/support.js +96 -0
  166. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/swap.js +28 -0
  167. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/var/cssExpand.js +3 -0
  168. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/var/getStyles.js +12 -0
  169. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/var/isHidden.js +13 -0
  170. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/var/rmargin.js +3 -0
  171. data/dev_root/demo-website-offline/public/bower_components/jquery/src/css/var/rnumnonpx.js +5 -0
  172. data/dev_root/demo-website-offline/public/bower_components/jquery/src/data.js +178 -0
  173. data/dev_root/demo-website-offline/public/bower_components/jquery/src/data/Data.js +181 -0
  174. data/dev_root/demo-website-offline/public/bower_components/jquery/src/data/accepts.js +20 -0
  175. data/dev_root/demo-website-offline/public/bower_components/jquery/src/data/var/data_priv.js +5 -0
  176. data/dev_root/demo-website-offline/public/bower_components/jquery/src/data/var/data_user.js +5 -0
  177. data/dev_root/demo-website-offline/public/bower_components/jquery/src/deferred.js +149 -0
  178. data/dev_root/demo-website-offline/public/bower_components/jquery/src/deprecated.js +13 -0
  179. data/dev_root/demo-website-offline/public/bower_components/jquery/src/dimensions.js +50 -0
  180. data/dev_root/demo-website-offline/public/bower_components/jquery/src/effects.js +648 -0
  181. data/dev_root/demo-website-offline/public/bower_components/jquery/src/effects/Tween.js +114 -0
  182. data/dev_root/demo-website-offline/public/bower_components/jquery/src/effects/animatedSelector.js +13 -0
  183. data/dev_root/demo-website-offline/public/bower_components/jquery/src/event.js +868 -0
  184. data/dev_root/demo-website-offline/public/bower_components/jquery/src/event/ajax.js +13 -0
  185. data/dev_root/demo-website-offline/public/bower_components/jquery/src/event/alias.js +39 -0
  186. data/dev_root/demo-website-offline/public/bower_components/jquery/src/event/support.js +9 -0
  187. data/dev_root/demo-website-offline/public/bower_components/jquery/src/exports/amd.js +24 -0
  188. data/dev_root/demo-website-offline/public/bower_components/jquery/src/exports/global.js +32 -0
  189. data/dev_root/demo-website-offline/public/bower_components/jquery/src/intro.js +44 -0
  190. data/dev_root/demo-website-offline/public/bower_components/jquery/src/jquery.js +37 -0
  191. data/dev_root/demo-website-offline/public/bower_components/jquery/src/manipulation.js +580 -0
  192. data/dev_root/demo-website-offline/public/bower_components/jquery/src/manipulation/_evalUrl.js +18 -0
  193. data/dev_root/demo-website-offline/public/bower_components/jquery/src/manipulation/support.js +32 -0
  194. data/dev_root/demo-website-offline/public/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  195. data/dev_root/demo-website-offline/public/bower_components/jquery/src/offset.js +207 -0
  196. data/dev_root/demo-website-offline/public/bower_components/jquery/src/outro.js +1 -0
  197. data/dev_root/demo-website-offline/public/bower_components/jquery/src/queue.js +142 -0
  198. data/dev_root/demo-website-offline/public/bower_components/jquery/src/queue/delay.js +22 -0
  199. data/dev_root/demo-website-offline/public/bower_components/jquery/src/selector-native.js +172 -0
  200. data/dev_root/demo-website-offline/public/bower_components/jquery/src/selector-sizzle.js +14 -0
  201. data/dev_root/demo-website-offline/public/bower_components/jquery/src/selector.js +1 -0
  202. data/dev_root/demo-website-offline/public/bower_components/jquery/src/serialize.js +111 -0
  203. data/dev_root/demo-website-offline/public/bower_components/jquery/src/sizzle/dist/sizzle.js +2067 -0
  204. data/dev_root/demo-website-offline/public/bower_components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  205. data/dev_root/demo-website-offline/public/bower_components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  206. data/dev_root/demo-website-offline/public/bower_components/jquery/src/traversing.js +199 -0
  207. data/dev_root/demo-website-offline/public/bower_components/jquery/src/traversing/findFilter.js +100 -0
  208. data/dev_root/demo-website-offline/public/bower_components/jquery/src/traversing/var/rneedsContext.js +6 -0
  209. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/arr.js +3 -0
  210. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/class2type.js +4 -0
  211. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/concat.js +5 -0
  212. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/hasOwn.js +5 -0
  213. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/indexOf.js +5 -0
  214. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/pnum.js +3 -0
  215. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/push.js +5 -0
  216. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/rnotwhite.js +3 -0
  217. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/slice.js +5 -0
  218. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/strundefined.js +3 -0
  219. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/support.js +4 -0
  220. data/dev_root/demo-website-offline/public/bower_components/jquery/src/var/toString.js +5 -0
  221. data/dev_root/demo-website-offline/public/bower_components/jquery/src/wrap.js +79 -0
  222. data/dev_root/demo-website-offline/public/bower_components/respond/Gruntfile.js +90 -0
  223. data/dev_root/demo-website-offline/public/bower_components/respond/LICENSE-MIT +22 -0
  224. data/dev_root/demo-website-offline/public/bower_components/respond/README.md +114 -0
  225. data/dev_root/demo-website-offline/public/bower_components/respond/bower.json +10 -0
  226. data/dev_root/demo-website-offline/public/bower_components/respond/cross-domain/example.html +24 -0
  227. data/dev_root/demo-website-offline/public/bower_components/respond/cross-domain/respond-proxy.html +96 -0
  228. data/dev_root/demo-website-offline/public/bower_components/respond/cross-domain/respond.proxy.gif +0 -0
  229. data/dev_root/demo-website-offline/public/bower_components/respond/cross-domain/respond.proxy.js +127 -0
  230. data/dev_root/demo-website-offline/public/bower_components/respond/dest/respond.matchmedia.addListener.min.js +5 -0
  231. data/dev_root/demo-website-offline/public/bower_components/respond/dest/respond.matchmedia.addListener.src.js +273 -0
  232. data/dev_root/demo-website-offline/public/bower_components/respond/dest/respond.min.js +5 -0
  233. data/dev_root/demo-website-offline/public/bower_components/respond/dest/respond.src.js +224 -0
  234. data/dev_root/demo-website-offline/public/bower_components/respond/package.json +32 -0
  235. data/dev_root/demo-website-offline/public/bower_components/respond/src/matchmedia.addListener.js +76 -0
  236. data/dev_root/demo-website-offline/public/bower_components/respond/src/matchmedia.polyfill.js +36 -0
  237. data/dev_root/demo-website-offline/public/bower_components/respond/src/respond.js +341 -0
  238. data/dev_root/demo-website-offline/public/fonts/OpenSans400.css +64 -0
  239. data/dev_root/demo-website-offline/public/fonts/OpenSans400italic.css +64 -0
  240. data/dev_root/demo-website-offline/public/fonts/OpenSans600.css +64 -0
  241. data/dev_root/demo-website-offline/public/images/easy-way.jpg +0 -0
  242. data/dev_root/demo-website-offline/public/robots.txt +0 -0
  243. data/dev_root/demo-website-offline/sass/main.sass +44 -0
  244. data/dev_root/demo-website/helper/test_helper.rb +2 -2
  245. data/dev_root/demo-website/index.haml +102 -12
  246. data/dev_root/demo-website/layout.haml +6 -3
  247. data/dev_root/demo-website/partials/{_assets.haml → _assets.javascripts.haml} +0 -4
  248. data/dev_root/demo-website/partials/_assets.metadata.haml +12 -0
  249. data/dev_root/demo-website/partials/_assets.stylesheets.haml +9 -0
  250. data/dev_root/demo-website/partials/_footer.haml +5 -1
  251. data/dev_root/demo-website/partials/_header.haml +27 -1
  252. data/dev_root/demo-website/sass/main.sass +43 -2
  253. data/dev_root/shared/helper/shared_helper.rb +2 -2
  254. data/dev_root/shared/sass/mixins/_arrows.sass +32 -0
  255. data/dev_root/shared/sass/mixins/_buttons.sass +32 -0
  256. data/dev_root/shared/sass/{_css3.sass → mixins/_css3.sass} +0 -0
  257. data/dev_root/shared/sass/mixins/_helper.sass +70 -0
  258. data/dev_root/shared/sass/mixins/_normalize.sass +340 -0
  259. data/dev_root/shared/sass/mixins/_reset.sass +46 -0
  260. data/lib/generator/generator.rb +2 -1
  261. data/lib/generator/haml_generator.rb +13 -14
  262. data/lib/generator/helper/activesupport_override.rb +13 -5
  263. data/lib/generator/sass_generator.rb +2 -0
  264. data/lib/generator/structure_generator.rb +12 -2
  265. data/lib/server/dispatcher.rb +43 -30
  266. data/lib/server/response.rb +4 -4
  267. data/lib/server/server.rb +3 -2
  268. metadata +253 -7
@@ -0,0 +1,69 @@
1
+ //
2
+ // Code (inline and block)
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Inline and block code styles
7
+ code,
8
+ kbd,
9
+ pre,
10
+ samp {
11
+ font-family: @font-family-monospace;
12
+ }
13
+
14
+ // Inline code
15
+ code {
16
+ padding: 2px 4px;
17
+ font-size: 90%;
18
+ color: @code-color;
19
+ background-color: @code-bg;
20
+ border-radius: @border-radius-base;
21
+ }
22
+
23
+ // User input typically entered via keyboard
24
+ kbd {
25
+ padding: 2px 4px;
26
+ font-size: 90%;
27
+ color: @kbd-color;
28
+ background-color: @kbd-bg;
29
+ border-radius: @border-radius-small;
30
+ box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
31
+
32
+ kbd {
33
+ padding: 0;
34
+ font-size: 100%;
35
+ font-weight: bold;
36
+ box-shadow: none;
37
+ }
38
+ }
39
+
40
+ // Blocks of code
41
+ pre {
42
+ display: block;
43
+ padding: ((@line-height-computed - 1) / 2);
44
+ margin: 0 0 (@line-height-computed / 2);
45
+ font-size: (@font-size-base - 1); // 14px to 13px
46
+ line-height: @line-height-base;
47
+ word-break: break-all;
48
+ word-wrap: break-word;
49
+ color: @pre-color;
50
+ background-color: @pre-bg;
51
+ border: 1px solid @pre-border-color;
52
+ border-radius: @border-radius-base;
53
+
54
+ // Account for some code outputs that place code tags in pre tags
55
+ code {
56
+ padding: 0;
57
+ font-size: inherit;
58
+ color: inherit;
59
+ white-space: pre-wrap;
60
+ background-color: transparent;
61
+ border-radius: 0;
62
+ }
63
+ }
64
+
65
+ // Enable scrollable blocks of code
66
+ .pre-scrollable {
67
+ max-height: @pre-scrollable-max-height;
68
+ overflow-y: scroll;
69
+ }
@@ -0,0 +1,34 @@
1
+ //
2
+ // Component animations
3
+ // --------------------------------------------------
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/twbs/bootstrap/pull/3552.
9
+
10
+ .fade {
11
+ opacity: 0;
12
+ .transition(opacity .15s linear);
13
+ &.in {
14
+ opacity: 1;
15
+ }
16
+ }
17
+
18
+ .collapse {
19
+ display: none;
20
+ visibility: hidden;
21
+
22
+ &.in { display: block; visibility: visible; }
23
+ tr&.in { display: table-row; }
24
+ tbody&.in { display: table-row-group; }
25
+ }
26
+
27
+ .collapsing {
28
+ position: relative;
29
+ height: 0;
30
+ overflow: hidden;
31
+ .transition-property(~"height, visibility");
32
+ .transition-duration(.35s);
33
+ .transition-timing-function(ease);
34
+ }
@@ -0,0 +1,214 @@
1
+ //
2
+ // Dropdown menus
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Dropdown arrow/caret
7
+ .caret {
8
+ display: inline-block;
9
+ width: 0;
10
+ height: 0;
11
+ margin-left: 2px;
12
+ vertical-align: middle;
13
+ border-top: @caret-width-base solid;
14
+ border-right: @caret-width-base solid transparent;
15
+ border-left: @caret-width-base solid transparent;
16
+ }
17
+
18
+ // The dropdown wrapper (div)
19
+ .dropup,
20
+ .dropdown {
21
+ position: relative;
22
+ }
23
+
24
+ // Prevent the focus on the dropdown toggle when closing dropdowns
25
+ .dropdown-toggle:focus {
26
+ outline: 0;
27
+ }
28
+
29
+ // The dropdown menu (ul)
30
+ .dropdown-menu {
31
+ position: absolute;
32
+ top: 100%;
33
+ left: 0;
34
+ z-index: @zindex-dropdown;
35
+ display: none; // none by default, but block on "open" of the menu
36
+ float: left;
37
+ min-width: 160px;
38
+ padding: 5px 0;
39
+ margin: 2px 0 0; // override default ul
40
+ list-style: none;
41
+ font-size: @font-size-base;
42
+ text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
43
+ background-color: @dropdown-bg;
44
+ border: 1px solid @dropdown-fallback-border; // IE8 fallback
45
+ border: 1px solid @dropdown-border;
46
+ border-radius: @border-radius-base;
47
+ .box-shadow(0 6px 12px rgba(0,0,0,.175));
48
+ background-clip: padding-box;
49
+
50
+ // Aligns the dropdown menu to right
51
+ //
52
+ // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
53
+ &.pull-right {
54
+ right: 0;
55
+ left: auto;
56
+ }
57
+
58
+ // Dividers (basically an hr) within the dropdown
59
+ .divider {
60
+ .nav-divider(@dropdown-divider-bg);
61
+ }
62
+
63
+ // Links within the dropdown menu
64
+ > li > a {
65
+ display: block;
66
+ padding: 3px 20px;
67
+ clear: both;
68
+ font-weight: normal;
69
+ line-height: @line-height-base;
70
+ color: @dropdown-link-color;
71
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
72
+ }
73
+ }
74
+
75
+ // Hover/Focus state
76
+ .dropdown-menu > li > a {
77
+ &:hover,
78
+ &:focus {
79
+ text-decoration: none;
80
+ color: @dropdown-link-hover-color;
81
+ background-color: @dropdown-link-hover-bg;
82
+ }
83
+ }
84
+
85
+ // Active state
86
+ .dropdown-menu > .active > a {
87
+ &,
88
+ &:hover,
89
+ &:focus {
90
+ color: @dropdown-link-active-color;
91
+ text-decoration: none;
92
+ outline: 0;
93
+ background-color: @dropdown-link-active-bg;
94
+ }
95
+ }
96
+
97
+ // Disabled state
98
+ //
99
+ // Gray out text and ensure the hover/focus state remains gray
100
+
101
+ .dropdown-menu > .disabled > a {
102
+ &,
103
+ &:hover,
104
+ &:focus {
105
+ color: @dropdown-link-disabled-color;
106
+ }
107
+
108
+ // Nuke hover/focus effects
109
+ &:hover,
110
+ &:focus {
111
+ text-decoration: none;
112
+ background-color: transparent;
113
+ background-image: none; // Remove CSS gradient
114
+ .reset-filter();
115
+ cursor: @cursor-disabled;
116
+ }
117
+ }
118
+
119
+ // Open state for the dropdown
120
+ .open {
121
+ // Show the menu
122
+ > .dropdown-menu {
123
+ display: block;
124
+ }
125
+
126
+ // Remove the outline when :focus is triggered
127
+ > a {
128
+ outline: 0;
129
+ }
130
+ }
131
+
132
+ // Menu positioning
133
+ //
134
+ // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
135
+ // menu with the parent.
136
+ .dropdown-menu-right {
137
+ left: auto; // Reset the default from `.dropdown-menu`
138
+ right: 0;
139
+ }
140
+ // With v3, we enabled auto-flipping if you have a dropdown within a right
141
+ // aligned nav component. To enable the undoing of that, we provide an override
142
+ // to restore the default dropdown menu alignment.
143
+ //
144
+ // This is only for left-aligning a dropdown menu within a `.navbar-right` or
145
+ // `.pull-right` nav component.
146
+ .dropdown-menu-left {
147
+ left: 0;
148
+ right: auto;
149
+ }
150
+
151
+ // Dropdown section headers
152
+ .dropdown-header {
153
+ display: block;
154
+ padding: 3px 20px;
155
+ font-size: @font-size-small;
156
+ line-height: @line-height-base;
157
+ color: @dropdown-header-color;
158
+ white-space: nowrap; // as with > li > a
159
+ }
160
+
161
+ // Backdrop to catch body clicks on mobile, etc.
162
+ .dropdown-backdrop {
163
+ position: fixed;
164
+ left: 0;
165
+ right: 0;
166
+ bottom: 0;
167
+ top: 0;
168
+ z-index: (@zindex-dropdown - 10);
169
+ }
170
+
171
+ // Right aligned dropdowns
172
+ .pull-right > .dropdown-menu {
173
+ right: 0;
174
+ left: auto;
175
+ }
176
+
177
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
178
+ //
179
+ // Just add .dropup after the standard .dropdown class and you're set, bro.
180
+ // TODO: abstract this so that the navbar fixed styles are not placed here?
181
+
182
+ .dropup,
183
+ .navbar-fixed-bottom .dropdown {
184
+ // Reverse the caret
185
+ .caret {
186
+ border-top: 0;
187
+ border-bottom: @caret-width-base solid;
188
+ content: "";
189
+ }
190
+ // Different positioning for bottom up menu
191
+ .dropdown-menu {
192
+ top: auto;
193
+ bottom: 100%;
194
+ margin-bottom: 2px;
195
+ }
196
+ }
197
+
198
+
199
+ // Component alignment
200
+ //
201
+ // Reiterate per navbar.less and the modified component alignment there.
202
+
203
+ @media (min-width: @grid-float-breakpoint) {
204
+ .navbar-right {
205
+ .dropdown-menu {
206
+ .dropdown-menu-right();
207
+ }
208
+ // Necessary for overrides of the default right aligned menu.
209
+ // Will remove come v4 in all likelihood.
210
+ .dropdown-menu-left {
211
+ .dropdown-menu-left();
212
+ }
213
+ }
214
+ }
@@ -0,0 +1,566 @@
1
+ //
2
+ // Forms
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Normalize non-controls
7
+ //
8
+ // Restyle and baseline non-control form elements.
9
+
10
+ fieldset {
11
+ padding: 0;
12
+ margin: 0;
13
+ border: 0;
14
+ // Chrome and Firefox set a `min-width: min-content;` on fieldsets,
15
+ // so we reset that to ensure it behaves more like a standard block element.
16
+ // See https://github.com/twbs/bootstrap/issues/12359.
17
+ min-width: 0;
18
+ }
19
+
20
+ legend {
21
+ display: block;
22
+ width: 100%;
23
+ padding: 0;
24
+ margin-bottom: @line-height-computed;
25
+ font-size: (@font-size-base * 1.5);
26
+ line-height: inherit;
27
+ color: @legend-color;
28
+ border: 0;
29
+ border-bottom: 1px solid @legend-border-color;
30
+ }
31
+
32
+ label {
33
+ display: inline-block;
34
+ max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)
35
+ margin-bottom: 5px;
36
+ font-weight: bold;
37
+ }
38
+
39
+
40
+ // Normalize form controls
41
+ //
42
+ // While most of our form styles require extra classes, some basic normalization
43
+ // is required to ensure optimum display with or without those classes to better
44
+ // address browser inconsistencies.
45
+
46
+ // Override content-box in Normalize (* isn't specific enough)
47
+ input[type="search"] {
48
+ .box-sizing(border-box);
49
+ }
50
+
51
+ // Position radios and checkboxes better
52
+ input[type="radio"],
53
+ input[type="checkbox"] {
54
+ margin: 4px 0 0;
55
+ margin-top: 1px \9; // IE8-9
56
+ line-height: normal;
57
+ }
58
+
59
+ // Set the height of file controls to match text inputs
60
+ input[type="file"] {
61
+ display: block;
62
+ }
63
+
64
+ // Make range inputs behave like textual form controls
65
+ input[type="range"] {
66
+ display: block;
67
+ width: 100%;
68
+ }
69
+
70
+ // Make multiple select elements height not fixed
71
+ select[multiple],
72
+ select[size] {
73
+ height: auto;
74
+ }
75
+
76
+ // Focus for file, radio, and checkbox
77
+ input[type="file"]:focus,
78
+ input[type="radio"]:focus,
79
+ input[type="checkbox"]:focus {
80
+ .tab-focus();
81
+ }
82
+
83
+ // Adjust output element
84
+ output {
85
+ display: block;
86
+ padding-top: (@padding-base-vertical + 1);
87
+ font-size: @font-size-base;
88
+ line-height: @line-height-base;
89
+ color: @input-color;
90
+ }
91
+
92
+
93
+ // Common form controls
94
+ //
95
+ // Shared size and type resets for form controls. Apply `.form-control` to any
96
+ // of the following form controls:
97
+ //
98
+ // select
99
+ // textarea
100
+ // input[type="text"]
101
+ // input[type="password"]
102
+ // input[type="datetime"]
103
+ // input[type="datetime-local"]
104
+ // input[type="date"]
105
+ // input[type="month"]
106
+ // input[type="time"]
107
+ // input[type="week"]
108
+ // input[type="number"]
109
+ // input[type="email"]
110
+ // input[type="url"]
111
+ // input[type="search"]
112
+ // input[type="tel"]
113
+ // input[type="color"]
114
+
115
+ .form-control {
116
+ display: block;
117
+ width: 100%;
118
+ height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
119
+ padding: @padding-base-vertical @padding-base-horizontal;
120
+ font-size: @font-size-base;
121
+ line-height: @line-height-base;
122
+ color: @input-color;
123
+ background-color: @input-bg;
124
+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
125
+ border: 1px solid @input-border;
126
+ border-radius: @input-border-radius; // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
127
+ .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
128
+ .transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s");
129
+
130
+ // Customize the `:focus` state to imitate native WebKit styles.
131
+ .form-control-focus();
132
+
133
+ // Placeholder
134
+ .placeholder();
135
+
136
+ // Disabled and read-only inputs
137
+ //
138
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
139
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
140
+ // don't honor that edge case; we style them as disabled anyway.
141
+ &[disabled],
142
+ &[readonly],
143
+ fieldset[disabled] & {
144
+ cursor: @cursor-disabled;
145
+ background-color: @input-bg-disabled;
146
+ opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
147
+ }
148
+
149
+ // Reset height for `textarea`s
150
+ textarea& {
151
+ height: auto;
152
+ }
153
+ }
154
+
155
+
156
+ // Search inputs in iOS
157
+ //
158
+ // This overrides the extra rounded corners on search inputs in iOS so that our
159
+ // `.form-control` class can properly style them. Note that this cannot simply
160
+ // be added to `.form-control` as it's not specific enough. For details, see
161
+ // https://github.com/twbs/bootstrap/issues/11586.
162
+
163
+ input[type="search"] {
164
+ -webkit-appearance: none;
165
+ }
166
+
167
+
168
+ // Special styles for iOS temporal inputs
169
+ //
170
+ // In Mobile Safari, setting `display: block` on temporal inputs causes the
171
+ // text within the input to become vertically misaligned. As a workaround, we
172
+ // set a pixel line-height that matches the given height of the input, but only
173
+ // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
174
+
175
+ @media screen and (-webkit-min-device-pixel-ratio: 0) {
176
+ input[type="date"],
177
+ input[type="time"],
178
+ input[type="datetime-local"],
179
+ input[type="month"] {
180
+ line-height: @input-height-base;
181
+
182
+ &.input-sm,
183
+ .input-group-sm & {
184
+ line-height: @input-height-small;
185
+ }
186
+
187
+ &.input-lg,
188
+ .input-group-lg & {
189
+ line-height: @input-height-large;
190
+ }
191
+ }
192
+ }
193
+
194
+
195
+ // Form groups
196
+ //
197
+ // Designed to help with the organization and spacing of vertical forms. For
198
+ // horizontal forms, use the predefined grid classes.
199
+
200
+ .form-group {
201
+ margin-bottom: 15px;
202
+ }
203
+
204
+
205
+ // Checkboxes and radios
206
+ //
207
+ // Indent the labels to position radios/checkboxes as hanging controls.
208
+
209
+ .radio,
210
+ .checkbox {
211
+ position: relative;
212
+ display: block;
213
+ margin-top: 10px;
214
+ margin-bottom: 10px;
215
+
216
+ label {
217
+ min-height: @line-height-computed; // Ensure the input doesn't jump when there is no text
218
+ padding-left: 20px;
219
+ margin-bottom: 0;
220
+ font-weight: normal;
221
+ cursor: pointer;
222
+ }
223
+ }
224
+ .radio input[type="radio"],
225
+ .radio-inline input[type="radio"],
226
+ .checkbox input[type="checkbox"],
227
+ .checkbox-inline input[type="checkbox"] {
228
+ position: absolute;
229
+ margin-left: -20px;
230
+ margin-top: 4px \9;
231
+ }
232
+
233
+ .radio + .radio,
234
+ .checkbox + .checkbox {
235
+ margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
236
+ }
237
+
238
+ // Radios and checkboxes on same line
239
+ .radio-inline,
240
+ .checkbox-inline {
241
+ display: inline-block;
242
+ padding-left: 20px;
243
+ margin-bottom: 0;
244
+ vertical-align: middle;
245
+ font-weight: normal;
246
+ cursor: pointer;
247
+ }
248
+ .radio-inline + .radio-inline,
249
+ .checkbox-inline + .checkbox-inline {
250
+ margin-top: 0;
251
+ margin-left: 10px; // space out consecutive inline controls
252
+ }
253
+
254
+ // Apply same disabled cursor tweak as for inputs
255
+ // Some special care is needed because <label>s don't inherit their parent's `cursor`.
256
+ //
257
+ // Note: Neither radios nor checkboxes can be readonly.
258
+ input[type="radio"],
259
+ input[type="checkbox"] {
260
+ &[disabled],
261
+ &.disabled,
262
+ fieldset[disabled] & {
263
+ cursor: @cursor-disabled;
264
+ }
265
+ }
266
+ // These classes are used directly on <label>s
267
+ .radio-inline,
268
+ .checkbox-inline {
269
+ &.disabled,
270
+ fieldset[disabled] & {
271
+ cursor: @cursor-disabled;
272
+ }
273
+ }
274
+ // These classes are used on elements with <label> descendants
275
+ .radio,
276
+ .checkbox {
277
+ &.disabled,
278
+ fieldset[disabled] & {
279
+ label {
280
+ cursor: @cursor-disabled;
281
+ }
282
+ }
283
+ }
284
+
285
+
286
+ // Static form control text
287
+ //
288
+ // Apply class to a `p` element to make any string of text align with labels in
289
+ // a horizontal form layout.
290
+
291
+ .form-control-static {
292
+ // Size it appropriately next to real form controls
293
+ padding-top: (@padding-base-vertical + 1);
294
+ padding-bottom: (@padding-base-vertical + 1);
295
+ // Remove default margin from `p`
296
+ margin-bottom: 0;
297
+
298
+ &.input-lg,
299
+ &.input-sm {
300
+ padding-left: 0;
301
+ padding-right: 0;
302
+ }
303
+ }
304
+
305
+
306
+ // Form control sizing
307
+ //
308
+ // Build on `.form-control` with modifier classes to decrease or increase the
309
+ // height and font-size of form controls.
310
+ //
311
+ // The `.form-group-* form-control` variations are sadly duplicated to avoid the
312
+ // issue documented in https://github.com/twbs/bootstrap/issues/15074.
313
+
314
+ .input-sm {
315
+ .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
316
+ }
317
+ .form-group-sm {
318
+ .form-control {
319
+ .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
320
+ }
321
+ .form-control-static {
322
+ height: @input-height-small;
323
+ padding: @padding-small-vertical @padding-small-horizontal;
324
+ font-size: @font-size-small;
325
+ line-height: @line-height-small;
326
+ }
327
+ }
328
+
329
+ .input-lg {
330
+ .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large);
331
+ }
332
+ .form-group-lg {
333
+ .form-control {
334
+ .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large);
335
+ }
336
+ .form-control-static {
337
+ height: @input-height-large;
338
+ padding: @padding-large-vertical @padding-large-horizontal;
339
+ font-size: @font-size-large;
340
+ line-height: @line-height-large;
341
+ }
342
+ }
343
+
344
+
345
+ // Form control feedback states
346
+ //
347
+ // Apply contextual and semantic states to individual form controls.
348
+
349
+ .has-feedback {
350
+ // Enable absolute positioning
351
+ position: relative;
352
+
353
+ // Ensure icons don't overlap text
354
+ .form-control {
355
+ padding-right: (@input-height-base * 1.25);
356
+ }
357
+ }
358
+ // Feedback icon (requires .glyphicon classes)
359
+ .form-control-feedback {
360
+ position: absolute;
361
+ top: 0;
362
+ right: 0;
363
+ z-index: 2; // Ensure icon is above input groups
364
+ display: block;
365
+ width: @input-height-base;
366
+ height: @input-height-base;
367
+ line-height: @input-height-base;
368
+ text-align: center;
369
+ pointer-events: none;
370
+ }
371
+ .input-lg + .form-control-feedback {
372
+ width: @input-height-large;
373
+ height: @input-height-large;
374
+ line-height: @input-height-large;
375
+ }
376
+ .input-sm + .form-control-feedback {
377
+ width: @input-height-small;
378
+ height: @input-height-small;
379
+ line-height: @input-height-small;
380
+ }
381
+
382
+ // Feedback states
383
+ .has-success {
384
+ .form-control-validation(@state-success-text; @state-success-text; @state-success-bg);
385
+ }
386
+ .has-warning {
387
+ .form-control-validation(@state-warning-text; @state-warning-text; @state-warning-bg);
388
+ }
389
+ .has-error {
390
+ .form-control-validation(@state-danger-text; @state-danger-text; @state-danger-bg);
391
+ }
392
+
393
+ // Reposition feedback icon if input has visible label above
394
+ .has-feedback label {
395
+
396
+ & ~ .form-control-feedback {
397
+ top: (@line-height-computed + 5); // Height of the `label` and its margin
398
+ }
399
+ &.sr-only ~ .form-control-feedback {
400
+ top: 0;
401
+ }
402
+ }
403
+
404
+
405
+ // Help text
406
+ //
407
+ // Apply to any element you wish to create light text for placement immediately
408
+ // below a form control. Use for general help, formatting, or instructional text.
409
+
410
+ .help-block {
411
+ display: block; // account for any element using help-block
412
+ margin-top: 5px;
413
+ margin-bottom: 10px;
414
+ color: lighten(@text-color, 25%); // lighten the text some for contrast
415
+ }
416
+
417
+
418
+ // Inline forms
419
+ //
420
+ // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
421
+ // forms begin stacked on extra small (mobile) devices and then go inline when
422
+ // viewports reach <768px.
423
+ //
424
+ // Requires wrapping inputs and labels with `.form-group` for proper display of
425
+ // default HTML form controls and our custom form controls (e.g., input groups).
426
+ //
427
+ // Heads up! This is mixin-ed into `.navbar-form` in navbars.less.
428
+
429
+ .form-inline {
430
+
431
+ // Kick in the inline
432
+ @media (min-width: @screen-sm-min) {
433
+ // Inline-block all the things for "inline"
434
+ .form-group {
435
+ display: inline-block;
436
+ margin-bottom: 0;
437
+ vertical-align: middle;
438
+ }
439
+
440
+ // In navbar-form, allow folks to *not* use `.form-group`
441
+ .form-control {
442
+ display: inline-block;
443
+ width: auto; // Prevent labels from stacking above inputs in `.form-group`
444
+ vertical-align: middle;
445
+ }
446
+
447
+ // Make static controls behave like regular ones
448
+ .form-control-static {
449
+ display: inline-block;
450
+ }
451
+
452
+ .input-group {
453
+ display: inline-table;
454
+ vertical-align: middle;
455
+
456
+ .input-group-addon,
457
+ .input-group-btn,
458
+ .form-control {
459
+ width: auto;
460
+ }
461
+ }
462
+
463
+ // Input groups need that 100% width though
464
+ .input-group > .form-control {
465
+ width: 100%;
466
+ }
467
+
468
+ .control-label {
469
+ margin-bottom: 0;
470
+ vertical-align: middle;
471
+ }
472
+
473
+ // Remove default margin on radios/checkboxes that were used for stacking, and
474
+ // then undo the floating of radios and checkboxes to match.
475
+ .radio,
476
+ .checkbox {
477
+ display: inline-block;
478
+ margin-top: 0;
479
+ margin-bottom: 0;
480
+ vertical-align: middle;
481
+
482
+ label {
483
+ padding-left: 0;
484
+ }
485
+ }
486
+ .radio input[type="radio"],
487
+ .checkbox input[type="checkbox"] {
488
+ position: relative;
489
+ margin-left: 0;
490
+ }
491
+
492
+ // Re-override the feedback icon.
493
+ .has-feedback .form-control-feedback {
494
+ top: 0;
495
+ }
496
+ }
497
+ }
498
+
499
+
500
+ // Horizontal forms
501
+ //
502
+ // Horizontal forms are built on grid classes and allow you to create forms with
503
+ // labels on the left and inputs on the right.
504
+
505
+ .form-horizontal {
506
+
507
+ // Consistent vertical alignment of radios and checkboxes
508
+ //
509
+ // Labels also get some reset styles, but that is scoped to a media query below.
510
+ .radio,
511
+ .checkbox,
512
+ .radio-inline,
513
+ .checkbox-inline {
514
+ margin-top: 0;
515
+ margin-bottom: 0;
516
+ padding-top: (@padding-base-vertical + 1); // Default padding plus a border
517
+ }
518
+ // Account for padding we're adding to ensure the alignment and of help text
519
+ // and other content below items
520
+ .radio,
521
+ .checkbox {
522
+ min-height: (@line-height-computed + (@padding-base-vertical + 1));
523
+ }
524
+
525
+ // Make form groups behave like rows
526
+ .form-group {
527
+ .make-row();
528
+ }
529
+
530
+ // Reset spacing and right align labels, but scope to media queries so that
531
+ // labels on narrow viewports stack the same as a default form example.
532
+ @media (min-width: @screen-sm-min) {
533
+ .control-label {
534
+ text-align: right;
535
+ margin-bottom: 0;
536
+ padding-top: (@padding-base-vertical + 1); // Default padding plus a border
537
+ }
538
+ }
539
+
540
+ // Validation states
541
+ //
542
+ // Reposition the icon because it's now within a grid column and columns have
543
+ // `position: relative;` on them. Also accounts for the grid gutter padding.
544
+ .has-feedback .form-control-feedback {
545
+ right: (@grid-gutter-width / 2);
546
+ }
547
+
548
+ // Form group sizes
549
+ //
550
+ // Quick utility class for applying `.input-lg` and `.input-sm` styles to the
551
+ // inputs and labels within a `.form-group`.
552
+ .form-group-lg {
553
+ @media (min-width: @screen-sm-min) {
554
+ .control-label {
555
+ padding-top: ((@padding-large-vertical * @line-height-large) + 1);
556
+ }
557
+ }
558
+ }
559
+ .form-group-sm {
560
+ @media (min-width: @screen-sm-min) {
561
+ .control-label {
562
+ padding-top: (@padding-small-vertical + 1);
563
+ }
564
+ }
565
+ }
566
+ }