praxis 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -0
  3. data/CHANGELOG.md +16 -0
  4. data/lib/api_browser/Gruntfile.js +125 -16
  5. data/lib/api_browser/app/index.html +5 -1
  6. data/lib/api_browser/app/js/directives/fixed_if_fits.js +28 -17
  7. data/lib/api_browser/app/js/directives/highlight.js +14 -0
  8. data/lib/api_browser/app/js/directives/request_examples.js +29 -0
  9. data/lib/api_browser/app/js/factories/Documentation.js +6 -0
  10. data/lib/api_browser/app/js/factories/Example.js +47 -0
  11. data/lib/api_browser/app/js/factories/prepare_template.js +15 -0
  12. data/lib/api_browser/app/js/factories/template_for.js +2 -12
  13. data/lib/api_browser/app/sass/modules/_sidebar.scss +2 -0
  14. data/lib/api_browser/app/views/action.html +6 -24
  15. data/lib/api_browser/app/views/examples/general.html +26 -0
  16. data/lib/api_browser/{bower.json → bower_template.json} +13 -3
  17. data/lib/api_browser/package.json +3 -1
  18. data/lib/praxis/application.rb +2 -0
  19. data/lib/praxis/docs/generator.rb +4 -2
  20. data/lib/praxis/extensions/field_selection/field_selector.rb +1 -0
  21. data/lib/praxis/media_type.rb +1 -1
  22. data/lib/praxis/plugin.rb +4 -0
  23. data/lib/praxis/plugin_concern.rb +2 -1
  24. data/lib/praxis/tasks/api_docs.rb +9 -2
  25. data/lib/praxis/version.rb +1 -1
  26. data/praxis.gemspec +2 -2
  27. data/spec/praxis/action_definition_spec.rb +26 -1
  28. data/spec/praxis/extensions/field_selection/field_selector_spec.rb +4 -0
  29. data/spec/praxis/media_type_spec.rb +4 -3
  30. data/spec/support/spec_media_types.rb +5 -1
  31. metadata +12 -242
  32. data/lib/api_browser/app/bower_components/angular-mocks/.bower.json +0 -19
  33. data/lib/api_browser/app/bower_components/angular-mocks/README.md +0 -63
  34. data/lib/api_browser/app/bower_components/angular-mocks/angular-mocks.js +0 -2452
  35. data/lib/api_browser/app/bower_components/angular-mocks/bower.json +0 -9
  36. data/lib/api_browser/app/bower_components/angular-mocks/ngAnimateMock.js +0 -2
  37. data/lib/api_browser/app/bower_components/angular-mocks/ngMock.js +0 -2
  38. data/lib/api_browser/app/bower_components/angular-mocks/ngMockE2E.js +0 -2
  39. data/lib/api_browser/app/bower_components/angular-mocks/package.json +0 -27
  40. data/lib/api_browser/app/bower_components/angular-sanitize/.bower.json +0 -19
  41. data/lib/api_browser/app/bower_components/angular-sanitize/README.md +0 -68
  42. data/lib/api_browser/app/bower_components/angular-sanitize/angular-sanitize.js +0 -683
  43. data/lib/api_browser/app/bower_components/angular-sanitize/angular-sanitize.min.js +0 -16
  44. data/lib/api_browser/app/bower_components/angular-sanitize/angular-sanitize.min.js.map +0 -8
  45. data/lib/api_browser/app/bower_components/angular-sanitize/bower.json +0 -9
  46. data/lib/api_browser/app/bower_components/angular-sanitize/index.js +0 -2
  47. data/lib/api_browser/app/bower_components/angular-sanitize/package.json +0 -26
  48. data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/.bower.json +0 -31
  49. data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/bower.json +0 -19
  50. data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-csp.css +0 -6
  51. data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.js +0 -4840
  52. data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.min.js +0 -10
  53. data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js +0 -4461
  54. data/lib/api_browser/app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.min.js +0 -9
  55. data/lib/api_browser/app/bower_components/angular-ui-router/.bower.json +0 -33
  56. data/lib/api_browser/app/bower_components/angular-ui-router/CHANGELOG.md +0 -228
  57. data/lib/api_browser/app/bower_components/angular-ui-router/CONTRIBUTING.md +0 -65
  58. data/lib/api_browser/app/bower_components/angular-ui-router/LICENSE +0 -21
  59. data/lib/api_browser/app/bower_components/angular-ui-router/README.md +0 -245
  60. data/lib/api_browser/app/bower_components/angular-ui-router/api/angular-ui-router.d.ts +0 -126
  61. data/lib/api_browser/app/bower_components/angular-ui-router/bower.json +0 -23
  62. data/lib/api_browser/app/bower_components/angular-ui-router/release/angular-ui-router.js +0 -4370
  63. data/lib/api_browser/app/bower_components/angular-ui-router/release/angular-ui-router.min.js +0 -7
  64. data/lib/api_browser/app/bower_components/angular-ui-router/src/common.js +0 -292
  65. data/lib/api_browser/app/bower_components/angular-ui-router/src/resolve.js +0 -252
  66. data/lib/api_browser/app/bower_components/angular-ui-router/src/state.js +0 -1465
  67. data/lib/api_browser/app/bower_components/angular-ui-router/src/stateDirectives.js +0 -285
  68. data/lib/api_browser/app/bower_components/angular-ui-router/src/stateFilters.js +0 -39
  69. data/lib/api_browser/app/bower_components/angular-ui-router/src/templateFactory.js +0 -110
  70. data/lib/api_browser/app/bower_components/angular-ui-router/src/urlMatcherFactory.js +0 -1050
  71. data/lib/api_browser/app/bower_components/angular-ui-router/src/urlRouter.js +0 -427
  72. data/lib/api_browser/app/bower_components/angular-ui-router/src/view.js +0 -71
  73. data/lib/api_browser/app/bower_components/angular-ui-router/src/viewDirective.js +0 -303
  74. data/lib/api_browser/app/bower_components/angular-ui-router/src/viewScroll.js +0 -52
  75. data/lib/api_browser/app/bower_components/angular/.bower.json +0 -17
  76. data/lib/api_browser/app/bower_components/angular/README.md +0 -64
  77. data/lib/api_browser/app/bower_components/angular/angular-csp.css +0 -21
  78. data/lib/api_browser/app/bower_components/angular/angular.js +0 -28133
  79. data/lib/api_browser/app/bower_components/angular/angular.min.js +0 -289
  80. data/lib/api_browser/app/bower_components/angular/angular.min.js.gzip +0 -0
  81. data/lib/api_browser/app/bower_components/angular/angular.min.js.map +0 -8
  82. data/lib/api_browser/app/bower_components/angular/bower.json +0 -8
  83. data/lib/api_browser/app/bower_components/angular/index.js +0 -2
  84. data/lib/api_browser/app/bower_components/angular/package.json +0 -25
  85. data/lib/api_browser/app/bower_components/bootstrap-sass/.bower.json +0 -41
  86. data/lib/api_browser/app/bower_components/bootstrap-sass/CHANGELOG.md +0 -108
  87. data/lib/api_browser/app/bower_components/bootstrap-sass/CONTRIBUTING.md +0 -79
  88. data/lib/api_browser/app/bower_components/bootstrap-sass/README.md +0 -218
  89. data/lib/api_browser/app/bower_components/bootstrap-sass/bower.json +0 -22
  90. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  91. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +0 -229
  92. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  93. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  94. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap.js +0 -12
  95. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/affix.js +0 -126
  96. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/alert.js +0 -98
  97. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/button.js +0 -115
  98. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/carousel.js +0 -217
  99. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/collapse.js +0 -179
  100. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/dropdown.js +0 -154
  101. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/modal.js +0 -246
  102. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/popover.js +0 -117
  103. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/scrollspy.js +0 -158
  104. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/tab.js +0 -135
  105. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/tooltip.js +0 -386
  106. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/javascripts/bootstrap/transition.js +0 -56
  107. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap.scss +0 -1
  108. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_alerts.scss +0 -67
  109. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_badges.scss +0 -51
  110. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +0 -23
  111. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_button-groups.scss +0 -227
  112. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_buttons.scss +0 -155
  113. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_carousel.scss +0 -232
  114. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_close.scss +0 -35
  115. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_code.scss +0 -53
  116. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_component-animations.scss +0 -29
  117. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +0 -188
  118. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_forms.scss +0 -374
  119. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_glyphicons.scss +0 -237
  120. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_grid.scss +0 -79
  121. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_input-groups.scss +0 -136
  122. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_jumbotron.scss +0 -46
  123. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_labels.scss +0 -64
  124. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_list-group.scss +0 -88
  125. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_media.scss +0 -56
  126. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_mixins.scss +0 -848
  127. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_modals.scss +0 -129
  128. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_navbar.scss +0 -616
  129. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_navs.scss +0 -242
  130. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_normalize.scss +0 -406
  131. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_pager.scss +0 -55
  132. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_pagination.scss +0 -85
  133. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_panels.scss +0 -182
  134. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_popovers.scss +0 -133
  135. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_print.scss +0 -105
  136. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_progress-bars.scss +0 -80
  137. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_responsive-utilities.scss +0 -198
  138. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_scaffolding.scss +0 -119
  139. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_tables.scss +0 -231
  140. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_theme.scss +0 -247
  141. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_thumbnails.scss +0 -38
  142. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_tooltip.scss +0 -95
  143. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_type.scss +0 -281
  144. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_utilities.scss +0 -56
  145. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_variables.scss +0 -646
  146. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_wells.scss +0 -29
  147. data/lib/api_browser/app/bower_components/bootstrap-sass/vendor/assets/stylesheets/bootstrap/bootstrap.scss +0 -49
  148. data/lib/api_browser/app/bower_components/jquery/.bower.json +0 -38
  149. data/lib/api_browser/app/bower_components/jquery/MIT-LICENSE.txt +0 -21
  150. data/lib/api_browser/app/bower_components/jquery/bower.json +0 -27
  151. data/lib/api_browser/app/bower_components/jquery/dist/jquery.js +0 -9190
  152. data/lib/api_browser/app/bower_components/jquery/dist/jquery.min.js +0 -5
  153. data/lib/api_browser/app/bower_components/jquery/dist/jquery.min.map +0 -1
  154. data/lib/api_browser/app/bower_components/jquery/src/ajax.js +0 -806
  155. data/lib/api_browser/app/bower_components/jquery/src/ajax/jsonp.js +0 -89
  156. data/lib/api_browser/app/bower_components/jquery/src/ajax/load.js +0 -75
  157. data/lib/api_browser/app/bower_components/jquery/src/ajax/parseJSON.js +0 -13
  158. data/lib/api_browser/app/bower_components/jquery/src/ajax/parseXML.js +0 -28
  159. data/lib/api_browser/app/bower_components/jquery/src/ajax/script.js +0 -64
  160. data/lib/api_browser/app/bower_components/jquery/src/ajax/var/nonce.js +0 -5
  161. data/lib/api_browser/app/bower_components/jquery/src/ajax/var/rquery.js +0 -3
  162. data/lib/api_browser/app/bower_components/jquery/src/ajax/xhr.js +0 -135
  163. data/lib/api_browser/app/bower_components/jquery/src/attributes.js +0 -11
  164. data/lib/api_browser/app/bower_components/jquery/src/attributes/attr.js +0 -143
  165. data/lib/api_browser/app/bower_components/jquery/src/attributes/classes.js +0 -158
  166. data/lib/api_browser/app/bower_components/jquery/src/attributes/prop.js +0 -96
  167. data/lib/api_browser/app/bower_components/jquery/src/attributes/support.js +0 -35
  168. data/lib/api_browser/app/bower_components/jquery/src/attributes/val.js +0 -163
  169. data/lib/api_browser/app/bower_components/jquery/src/callbacks.js +0 -205
  170. data/lib/api_browser/app/bower_components/jquery/src/core.js +0 -498
  171. data/lib/api_browser/app/bower_components/jquery/src/core/access.js +0 -60
  172. data/lib/api_browser/app/bower_components/jquery/src/core/init.js +0 -123
  173. data/lib/api_browser/app/bower_components/jquery/src/core/parseHTML.js +0 -39
  174. data/lib/api_browser/app/bower_components/jquery/src/core/ready.js +0 -97
  175. data/lib/api_browser/app/bower_components/jquery/src/core/var/rsingleTag.js +0 -4
  176. data/lib/api_browser/app/bower_components/jquery/src/css.js +0 -451
  177. data/lib/api_browser/app/bower_components/jquery/src/css/addGetHookIf.js +0 -24
  178. data/lib/api_browser/app/bower_components/jquery/src/css/curCSS.js +0 -57
  179. data/lib/api_browser/app/bower_components/jquery/src/css/defaultDisplay.js +0 -70
  180. data/lib/api_browser/app/bower_components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  181. data/lib/api_browser/app/bower_components/jquery/src/css/support.js +0 -91
  182. data/lib/api_browser/app/bower_components/jquery/src/css/swap.js +0 -28
  183. data/lib/api_browser/app/bower_components/jquery/src/css/var/cssExpand.js +0 -3
  184. data/lib/api_browser/app/bower_components/jquery/src/css/var/getStyles.js +0 -5
  185. data/lib/api_browser/app/bower_components/jquery/src/css/var/isHidden.js +0 -13
  186. data/lib/api_browser/app/bower_components/jquery/src/css/var/rmargin.js +0 -3
  187. data/lib/api_browser/app/bower_components/jquery/src/css/var/rnumnonpx.js +0 -5
  188. data/lib/api_browser/app/bower_components/jquery/src/data.js +0 -179
  189. data/lib/api_browser/app/bower_components/jquery/src/data/Data.js +0 -181
  190. data/lib/api_browser/app/bower_components/jquery/src/data/accepts.js +0 -20
  191. data/lib/api_browser/app/bower_components/jquery/src/data/var/data_priv.js +0 -5
  192. data/lib/api_browser/app/bower_components/jquery/src/data/var/data_user.js +0 -5
  193. data/lib/api_browser/app/bower_components/jquery/src/deferred.js +0 -149
  194. data/lib/api_browser/app/bower_components/jquery/src/deprecated.js +0 -13
  195. data/lib/api_browser/app/bower_components/jquery/src/dimensions.js +0 -50
  196. data/lib/api_browser/app/bower_components/jquery/src/effects.js +0 -649
  197. data/lib/api_browser/app/bower_components/jquery/src/effects/Tween.js +0 -114
  198. data/lib/api_browser/app/bower_components/jquery/src/effects/animatedSelector.js +0 -13
  199. data/lib/api_browser/app/bower_components/jquery/src/event.js +0 -868
  200. data/lib/api_browser/app/bower_components/jquery/src/event/alias.js +0 -39
  201. data/lib/api_browser/app/bower_components/jquery/src/event/support.js +0 -9
  202. data/lib/api_browser/app/bower_components/jquery/src/exports/amd.js +0 -24
  203. data/lib/api_browser/app/bower_components/jquery/src/exports/global.js +0 -32
  204. data/lib/api_browser/app/bower_components/jquery/src/intro.js +0 -44
  205. data/lib/api_browser/app/bower_components/jquery/src/jquery.js +0 -36
  206. data/lib/api_browser/app/bower_components/jquery/src/manipulation.js +0 -582
  207. data/lib/api_browser/app/bower_components/jquery/src/manipulation/_evalUrl.js +0 -18
  208. data/lib/api_browser/app/bower_components/jquery/src/manipulation/support.js +0 -31
  209. data/lib/api_browser/app/bower_components/jquery/src/manipulation/var/rcheckableType.js +0 -3
  210. data/lib/api_browser/app/bower_components/jquery/src/offset.js +0 -204
  211. data/lib/api_browser/app/bower_components/jquery/src/outro.js +0 -1
  212. data/lib/api_browser/app/bower_components/jquery/src/queue.js +0 -142
  213. data/lib/api_browser/app/bower_components/jquery/src/queue/delay.js +0 -22
  214. data/lib/api_browser/app/bower_components/jquery/src/selector-native.js +0 -172
  215. data/lib/api_browser/app/bower_components/jquery/src/selector-sizzle.js +0 -14
  216. data/lib/api_browser/app/bower_components/jquery/src/selector.js +0 -1
  217. data/lib/api_browser/app/bower_components/jquery/src/serialize.js +0 -111
  218. data/lib/api_browser/app/bower_components/jquery/src/sizzle/dist/sizzle.js +0 -2044
  219. data/lib/api_browser/app/bower_components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
  220. data/lib/api_browser/app/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
  221. data/lib/api_browser/app/bower_components/jquery/src/traversing.js +0 -200
  222. data/lib/api_browser/app/bower_components/jquery/src/traversing/findFilter.js +0 -100
  223. data/lib/api_browser/app/bower_components/jquery/src/traversing/var/rneedsContext.js +0 -6
  224. data/lib/api_browser/app/bower_components/jquery/src/var/arr.js +0 -3
  225. data/lib/api_browser/app/bower_components/jquery/src/var/class2type.js +0 -4
  226. data/lib/api_browser/app/bower_components/jquery/src/var/concat.js +0 -5
  227. data/lib/api_browser/app/bower_components/jquery/src/var/hasOwn.js +0 -5
  228. data/lib/api_browser/app/bower_components/jquery/src/var/indexOf.js +0 -5
  229. data/lib/api_browser/app/bower_components/jquery/src/var/pnum.js +0 -3
  230. data/lib/api_browser/app/bower_components/jquery/src/var/push.js +0 -5
  231. data/lib/api_browser/app/bower_components/jquery/src/var/rnotwhite.js +0 -3
  232. data/lib/api_browser/app/bower_components/jquery/src/var/slice.js +0 -5
  233. data/lib/api_browser/app/bower_components/jquery/src/var/strundefined.js +0 -3
  234. data/lib/api_browser/app/bower_components/jquery/src/var/support.js +0 -4
  235. data/lib/api_browser/app/bower_components/jquery/src/var/toString.js +0 -5
  236. data/lib/api_browser/app/bower_components/jquery/src/wrap.js +0 -78
  237. data/lib/api_browser/app/bower_components/lodash/.bower.json +0 -30
  238. data/lib/api_browser/app/bower_components/lodash/LICENSE.txt +0 -22
  239. data/lib/api_browser/app/bower_components/lodash/bower.json +0 -20
  240. data/lib/api_browser/app/bower_components/lodash/lodash.js +0 -12235
  241. data/lib/api_browser/app/bower_components/lodash/lodash.min.js +0 -98
  242. data/lib/api_browser/app/bower_components/showdown/.bower.json +0 -39
  243. data/lib/api_browser/app/bower_components/showdown/.jshintignore +0 -2
  244. data/lib/api_browser/app/bower_components/showdown/.travis.yml +0 -8
  245. data/lib/api_browser/app/bower_components/showdown/Gruntfile.js +0 -100
  246. data/lib/api_browser/app/bower_components/showdown/README.md +0 -317
  247. data/lib/api_browser/app/bower_components/showdown/bower.json +0 -26
  248. data/lib/api_browser/app/bower_components/showdown/compressed/Showdown.js +0 -1606
  249. data/lib/api_browser/app/bower_components/showdown/compressed/Showdown.js.map +0 -1
  250. data/lib/api_browser/app/bower_components/showdown/compressed/Showdown.min.js +0 -2
  251. data/lib/api_browser/app/bower_components/showdown/compressed/extensions/github.min.js +0 -2
  252. data/lib/api_browser/app/bower_components/showdown/compressed/extensions/github.min.js.map +0 -1
  253. data/lib/api_browser/app/bower_components/showdown/compressed/extensions/prettify.min.js +0 -2
  254. data/lib/api_browser/app/bower_components/showdown/compressed/extensions/prettify.min.js.map +0 -1
  255. data/lib/api_browser/app/bower_components/showdown/compressed/extensions/table.min.js +0 -2
  256. data/lib/api_browser/app/bower_components/showdown/compressed/extensions/table.min.js.map +0 -1
  257. data/lib/api_browser/app/bower_components/showdown/compressed/extensions/twitter.min.js +0 -2
  258. data/lib/api_browser/app/bower_components/showdown/compressed/extensions/twitter.min.js.map +0 -1
  259. data/lib/api_browser/app/bower_components/showdown/license.txt +0 -34
  260. data/lib/api_browser/app/bower_components/showdown/package.json +0 -47
  261. data/lib/api_browser/app/bower_components/showdown/src/extensions/github.js +0 -25
  262. data/lib/api_browser/app/bower_components/showdown/src/extensions/prettify.js +0 -29
  263. data/lib/api_browser/app/bower_components/showdown/src/extensions/table.js +0 -106
  264. data/lib/api_browser/app/bower_components/showdown/src/extensions/twitter.js +0 -42
  265. data/lib/api_browser/app/bower_components/showdown/src/ng-showdown.js +0 -150
  266. data/lib/api_browser/app/bower_components/showdown/src/showdown.js +0 -1454
@@ -1,848 +0,0 @@
1
- //
2
- // Mixins
3
- // --------------------------------------------------
4
-
5
-
6
- // Utilities
7
- // -------------------------
8
-
9
- // Clearfix
10
- // Source: http://nicolasgallagher.com/micro-clearfix-hack/
11
- //
12
- // For modern browsers
13
- // 1. The space content is one way to avoid an Opera bug when the
14
- // contenteditable attribute is included anywhere else in the document.
15
- // Otherwise it causes space to appear at the top and bottom of elements
16
- // that are clearfixed.
17
- // 2. The use of `table` rather than `block` is only necessary if using
18
- // `:before` to contain the top-margins of child elements.
19
- @mixin clearfix() {
20
- &:before,
21
- &:after {
22
- content: " "; // 1
23
- display: table; // 2
24
- }
25
- &:after {
26
- clear: both;
27
- }
28
- }
29
-
30
- // WebKit-style focus
31
- @mixin tab-focus() {
32
- // Default
33
- outline: thin dotted;
34
- // WebKit
35
- outline: 5px auto -webkit-focus-ring-color;
36
- outline-offset: -2px;
37
- }
38
-
39
- // Center-align a block level element
40
- @mixin center-block() {
41
- display: block;
42
- margin-left: auto;
43
- margin-right: auto;
44
- }
45
-
46
- // Sizing shortcuts
47
- @mixin size($width, $height) {
48
- width: $width;
49
- height: $height;
50
- }
51
- @mixin square($size) {
52
- @include size($size, $size);
53
- }
54
-
55
- // Placeholder text
56
- @mixin placeholder($color: $input-color-placeholder) {
57
- &:-moz-placeholder { color: $color; } // Firefox 4-18
58
- &::-moz-placeholder { color: $color; // Firefox 19+
59
- opacity: 1; } // See https://github.com/twbs/bootstrap/pull/11526
60
- &:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
61
- &::-webkit-input-placeholder { color: $color; } // Safari and Chrome
62
- }
63
-
64
- // Text overflow
65
- // Requires inline-block or block for proper styling
66
- @mixin text-overflow() {
67
- overflow: hidden;
68
- text-overflow: ellipsis;
69
- white-space: nowrap;
70
- }
71
-
72
- // CSS image replacement
73
- //
74
- // Heads up! v3 launched with with only `.hide-text()`, but per our pattern for
75
- // mixins being reused as classes with the same name, this doesn't hold up. As
76
- // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. Note
77
- // that we cannot chain the mixins together in Less, so they are repeated.
78
- //
79
- // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
80
-
81
- // Deprecated as of v3.0.1 (will be removed in v4)
82
- @mixin hide-text() {
83
- font: #{0/0} a;
84
- color: transparent;
85
- text-shadow: none;
86
- background-color: transparent;
87
- border: 0;
88
- }
89
- // New mixin to use as of v3.0.1
90
- @mixin text-hide() {
91
- @include hide-text();
92
- }
93
-
94
-
95
-
96
- // CSS3 PROPERTIES
97
- // --------------------------------------------------
98
-
99
- // Single side border-radius
100
- @mixin border-top-radius($radius) {
101
- border-top-right-radius: $radius;
102
- border-top-left-radius: $radius;
103
- }
104
- @mixin border-right-radius($radius) {
105
- border-bottom-right-radius: $radius;
106
- border-top-right-radius: $radius;
107
- }
108
- @mixin border-bottom-radius($radius) {
109
- border-bottom-right-radius: $radius;
110
- border-bottom-left-radius: $radius;
111
- }
112
- @mixin border-left-radius($radius) {
113
- border-bottom-left-radius: $radius;
114
- border-top-left-radius: $radius;
115
- }
116
-
117
- // Drop shadows
118
- @mixin box-shadow($shadow...) {
119
- -webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1
120
- box-shadow: $shadow;
121
- }
122
-
123
- // Transitions
124
- @mixin transition($transition...) {
125
- -webkit-transition: $transition;
126
- transition: $transition;
127
- }
128
- @mixin transition-property($transition-property...) {
129
- -webkit-transition-property: $transition-property;
130
- transition-property: $transition-property;
131
- }
132
- @mixin transition-delay($transition-delay) {
133
- -webkit-transition-delay: $transition-delay;
134
- transition-delay: $transition-delay;
135
- }
136
- @mixin transition-duration($transition-duration...) {
137
- -webkit-transition-duration: $transition-duration;
138
- transition-duration: $transition-duration;
139
- }
140
- @mixin transition-transform($transition...) {
141
- -webkit-transition: -webkit-transform $transition;
142
- -moz-transition: -moz-transform $transition;
143
- -o-transition: -o-transform $transition;
144
- transition: transform $transition;
145
- }
146
-
147
- // Transformations
148
- @mixin rotate($degrees) {
149
- -webkit-transform: rotate($degrees);
150
- -ms-transform: rotate($degrees); // IE9+
151
- transform: rotate($degrees);
152
- }
153
- @mixin scale($ratio) {
154
- -webkit-transform: scale($ratio);
155
- -ms-transform: scale($ratio); // IE9+
156
- transform: scale($ratio);
157
- }
158
- @mixin translate($x, $y) {
159
- -webkit-transform: translate($x, $y);
160
- -ms-transform: translate($x, $y); // IE9+
161
- transform: translate($x, $y);
162
- }
163
- @mixin skew($x, $y) {
164
- -webkit-transform: skew($x, $y);
165
- -ms-transform: skewX($x) skewY($y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
166
- transform: skew($x, $y);
167
- }
168
- @mixin translate3d($x, $y, $z) {
169
- -webkit-transform: translate3d($x, $y, $z);
170
- transform: translate3d($x, $y, $z);
171
- }
172
-
173
- @mixin rotateX($degrees) {
174
- -webkit-transform: rotateX($degrees);
175
- -ms-transform: rotateX($degrees); // IE9+
176
- transform: rotateX($degrees);
177
- }
178
- @mixin rotateY($degrees) {
179
- -webkit-transform: rotateY($degrees);
180
- -ms-transform: rotateY($degrees); // IE9+
181
- transform: rotateY($degrees);
182
- }
183
- @mixin perspective($perspective) {
184
- -webkit-perspective: $perspective;
185
- -moz-perspective: $perspective;
186
- perspective: $perspective;
187
- }
188
- @mixin perspective-origin($perspective) {
189
- -webkit-perspective-origin: $perspective;
190
- -moz-perspective-origin: $perspective;
191
- perspective-origin: $perspective;
192
- }
193
- @mixin transform-origin($origin) {
194
- -webkit-transform-origin: $origin;
195
- -moz-transform-origin: $origin;
196
- transform-origin: $origin;
197
- }
198
-
199
- // Animations
200
- @mixin animation($animation) {
201
- -webkit-animation: $animation;
202
- animation: $animation;
203
- }
204
-
205
- // Backface visibility
206
- // Prevent browsers from flickering when using CSS 3D transforms.
207
- // Default value is `visible`, but can be changed to `hidden`
208
- @mixin backface-visibility($visibility){
209
- -webkit-backface-visibility: $visibility;
210
- -moz-backface-visibility: $visibility;
211
- backface-visibility: $visibility;
212
- }
213
-
214
- // Box sizing
215
- @mixin box-sizing($boxmodel) {
216
- -webkit-box-sizing: $boxmodel;
217
- -moz-box-sizing: $boxmodel;
218
- box-sizing: $boxmodel;
219
- }
220
-
221
- // User select
222
- // For selecting text on the page
223
- @mixin user-select($select) {
224
- -webkit-user-select: $select;
225
- -moz-user-select: $select;
226
- -ms-user-select: $select; // IE10+
227
- -o-user-select: $select;
228
- user-select: $select;
229
- }
230
-
231
- // Resize anything
232
- @mixin resizable($direction) {
233
- resize: $direction; // Options: horizontal, vertical, both
234
- overflow: auto; // Safari fix
235
- }
236
-
237
- // CSS3 Content Columns
238
- @mixin content-columns($column-count, $column-gap: $grid-gutter-width) {
239
- -webkit-column-count: $column-count;
240
- -moz-column-count: $column-count;
241
- column-count: $column-count;
242
- -webkit-column-gap: $column-gap;
243
- -moz-column-gap: $column-gap;
244
- column-gap: $column-gap;
245
- }
246
-
247
- // Optional hyphenation
248
- @mixin hyphens($mode: auto) {
249
- word-wrap: break-word;
250
- -webkit-hyphens: $mode;
251
- -moz-hyphens: $mode;
252
- -ms-hyphens: $mode; // IE10+
253
- -o-hyphens: $mode;
254
- hyphens: $mode;
255
- }
256
-
257
- // Opacity
258
- @mixin opacity($opacity) {
259
- opacity: $opacity;
260
- // IE8 filter
261
- $opacity-ie: ($opacity * 100);
262
- filter: #{alpha(opacity=$opacity-ie)};
263
- }
264
-
265
-
266
-
267
- // GRADIENTS
268
- // --------------------------------------------------
269
-
270
-
271
-
272
- // Horizontal gradient, from left to right
273
- //
274
- // Creates two color stops, start and end, by specifying a color and position for each color stop.
275
- // Color stops are not available in IE9 and below.
276
- @mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
277
- background-image: -webkit-linear-gradient(left, color-stop($start-color $start-percent), color-stop($end-color $end-percent)); // Safari 5.1-6, Chrome 10+
278
- background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
279
- background-repeat: repeat-x;
280
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
281
- }
282
-
283
- // Vertical gradient, from top to bottom
284
- //
285
- // Creates two color stops, start and end, by specifying a color and position for each color stop.
286
- // Color stops are not available in IE9 and below.
287
- @mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
288
- background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
289
- background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
290
- background-repeat: repeat-x;
291
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
292
- }
293
-
294
- @mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
295
- background-repeat: repeat-x;
296
- background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1-6, Chrome 10+
297
- background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
298
- }
299
- @mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
300
- background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
301
- background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
302
- background-repeat: no-repeat;
303
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
304
- }
305
- @mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
306
- background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color);
307
- background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
308
- background-repeat: no-repeat;
309
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
310
- }
311
- @mixin gradient-radial($inner-color: #555, $outer-color: #333) {
312
- background-image: -webkit-radial-gradient(circle, $inner-color, $outer-color);
313
- background-image: radial-gradient(circle, $inner-color, $outer-color);
314
- background-repeat: no-repeat;
315
- }
316
- @mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
317
- background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
318
- background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
319
- }
320
-
321
- // Reset filters for IE
322
- //
323
- // When you need to remove a gradient background, do not forget to use this to reset
324
- // the IE filter for IE9 and below.
325
- @mixin reset-filter() {
326
- filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
327
- }
328
-
329
-
330
-
331
- // Retina images
332
- //
333
- // Short retina mixin for setting background-image and -size
334
-
335
- @mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) {
336
- background-image: url(if($bootstrap-sass-asset-helper, twbs-image-path("#{$file-1x}"), "#{$file-1x}"));
337
-
338
- @media
339
- only screen and (-webkit-min-device-pixel-ratio: 2),
340
- only screen and ( min--moz-device-pixel-ratio: 2),
341
- only screen and ( -o-min-device-pixel-ratio: 2/1),
342
- only screen and ( min-device-pixel-ratio: 2),
343
- only screen and ( min-resolution: 192dpi),
344
- only screen and ( min-resolution: 2dppx) {
345
- background-image: url(if($bootstrap-sass-asset-helper, twbs-image-path("#{$file-2x}"), "#{$file-2x}"));
346
- background-size: $width-1x $height-1x;
347
- }
348
- }
349
-
350
-
351
- // Responsive image
352
- //
353
- // Keep images from scaling beyond the width of their parents.
354
-
355
- @mixin img-responsive($display: block) {
356
- display: $display;
357
- max-width: 100%; // Part 1: Set a maximum relative to the parent
358
- height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
359
- }
360
-
361
-
362
- // COMPONENT MIXINS
363
- // --------------------------------------------------
364
-
365
- // Horizontal dividers
366
- // -------------------------
367
- // Dividers (basically an hr) within dropdowns and nav lists
368
- @mixin nav-divider($color: #e5e5e5) {
369
- height: 1px;
370
- margin: (($line-height-computed / 2) - 1) 0;
371
- overflow: hidden;
372
- background-color: $color;
373
- }
374
-
375
- // Panels
376
- // -------------------------
377
- @mixin panel-variant($border, $heading-text-color, $heading-bg-color, $heading-border) {
378
- border-color: $border;
379
-
380
- & > .panel-heading {
381
- color: $heading-text-color;
382
- background-color: $heading-bg-color;
383
- border-color: $heading-border;
384
-
385
- + .panel-collapse .panel-body {
386
- border-top-color: $border;
387
- }
388
- }
389
- & > .panel-footer {
390
- + .panel-collapse .panel-body {
391
- border-bottom-color: $border;
392
- }
393
- }
394
- }
395
-
396
- // Alerts
397
- // -------------------------
398
- @mixin alert-variant($background, $border, $text-color) {
399
- background-color: $background;
400
- border-color: $border;
401
- color: $text-color;
402
-
403
- hr {
404
- border-top-color: darken($border, 5%);
405
- }
406
- .alert-link {
407
- color: darken($text-color, 10%);
408
- }
409
- }
410
-
411
- // Tables
412
- // -------------------------
413
- @mixin table-row-variant($state, $background) {
414
- // Exact selectors below required to override `.table-striped` and prevent
415
- // inheritance to nested tables.
416
- .table {
417
- > thead,
418
- > tbody,
419
- > tfoot {
420
- > tr > .#{$state},
421
- > .#{$state} > td,
422
- > .#{$state} > th {
423
- background-color: $background;
424
- }
425
- }
426
- }
427
-
428
- // Hover states for `.table-hover`
429
- // Note: this is not available for cells or rows within `thead` or `tfoot`.
430
- .table-hover > tbody {
431
- > tr > .#{$state}:hover,
432
- > .#{$state}:hover > td,
433
- > .#{$state}:hover > th {
434
- background-color: darken($background, 5%);
435
- }
436
- }
437
- }
438
-
439
- // Button variants
440
- // -------------------------
441
- // Easily pump out default styles, as well as :hover, :focus, :active,
442
- // and disabled options for all buttons
443
- @mixin button-variant($color, $background, $border) {
444
- color: $color;
445
- background-color: $background;
446
- border-color: $border;
447
-
448
- &:hover,
449
- &:focus,
450
- &:active,
451
- &.active {
452
- color: $color;
453
- background-color: darken($background, 8%);
454
- border-color: darken($border, 12%);
455
- }
456
- .open & { &.dropdown-toggle {
457
- color: $color;
458
- background-color: darken($background, 8%);
459
- border-color: darken($border, 12%);
460
- } }
461
- &:active,
462
- &.active {
463
- background-image: none;
464
- }
465
- .open & { &.dropdown-toggle {
466
- background-image: none;
467
- } }
468
- &.disabled,
469
- &[disabled],
470
- fieldset[disabled] & {
471
- &,
472
- &:hover,
473
- &:focus,
474
- &:active,
475
- &.active {
476
- background-color: $background;
477
- border-color: $border;
478
- }
479
- }
480
-
481
- .badge {
482
- color: $background;
483
- background-color: #fff;
484
- }
485
- }
486
-
487
- // Button sizes
488
- // -------------------------
489
- @mixin button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
490
- padding: $padding-vertical $padding-horizontal;
491
- font-size: $font-size;
492
- line-height: $line-height;
493
- border-radius: $border-radius;
494
- }
495
-
496
- // Pagination
497
- // -------------------------
498
- @mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
499
- > li {
500
- > a,
501
- > span {
502
- padding: $padding-vertical $padding-horizontal;
503
- font-size: $font-size;
504
- }
505
- &:first-child {
506
- > a,
507
- > span {
508
- @include border-left-radius($border-radius);
509
- }
510
- }
511
- &:last-child {
512
- > a,
513
- > span {
514
- @include border-right-radius($border-radius);
515
- }
516
- }
517
- }
518
- }
519
-
520
- // Labels
521
- // -------------------------
522
- @mixin label-variant($color) {
523
- background-color: $color;
524
- &[href] {
525
- &:hover,
526
- &:focus {
527
- background-color: darken($color, 10%);
528
- }
529
- }
530
- }
531
-
532
- // Navbar vertical align
533
- // -------------------------
534
- // Vertically center elements in the navbar.
535
- // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
536
- @mixin navbar-vertical-align($element-height) {
537
- margin-top: (($navbar-height - $element-height) / 2);
538
- margin-bottom: (($navbar-height - $element-height) / 2);
539
- }
540
-
541
- // Progress bars
542
- // -------------------------
543
- @mixin progress-bar-variant($color) {
544
- background-color: $color;
545
- .progress-striped & {
546
- @include gradient-striped();
547
- }
548
- }
549
-
550
- // Responsive utilities
551
- // -------------------------
552
- // More easily include all the states for responsive-utilities.less.
553
- // [converter] $parent hack
554
- @mixin responsive-visibility($parent) {
555
- #{$parent} { display: block !important; }
556
- table#{$parent} { display: table; }
557
- tr#{$parent} { display: table-row !important; }
558
- th#{$parent},
559
- td#{$parent} { display: table-cell !important; }
560
- }
561
-
562
- // [converter] $parent hack
563
- @mixin responsive-invisibility($parent) {
564
- #{$parent},
565
- tr#{$parent},
566
- th#{$parent},
567
- td#{$parent} { display: none !important; }
568
- }
569
-
570
-
571
- // Grid System
572
- // -----------
573
-
574
- // Centered container element
575
- @mixin container-fixed() {
576
- margin-right: auto;
577
- margin-left: auto;
578
- padding-left: ($grid-gutter-width / 2);
579
- padding-right: ($grid-gutter-width / 2);
580
- @include clearfix();
581
- }
582
-
583
- // Creates a wrapper for a series of columns
584
- @mixin make-row($gutter: $grid-gutter-width) {
585
- margin-left: ($gutter / -2);
586
- margin-right: ($gutter / -2);
587
- @include clearfix();
588
- }
589
-
590
- // Generate the extra small columns
591
- @mixin make-xs-column($columns, $gutter: $grid-gutter-width) {
592
- position: relative;
593
- float: left;
594
- width: percentage(($columns / $grid-columns));
595
- // Prevent columns from collapsing when empty
596
- min-height: 1px;
597
- // Inner gutter via padding
598
- padding-left: ($gutter / 2);
599
- padding-right: ($gutter / 2);
600
- }
601
-
602
- // Generate the small columns
603
- @mixin make-sm-column($columns, $gutter: $grid-gutter-width) {
604
- position: relative;
605
- // Prevent columns from collapsing when empty
606
- min-height: 1px;
607
- // Inner gutter via padding
608
- padding-left: ($gutter / 2);
609
- padding-right: ($gutter / 2);
610
-
611
- // Calculate width based on number of columns available
612
- @media (min-width: $screen-sm-min) {
613
- float: left;
614
- width: percentage(($columns / $grid-columns));
615
- }
616
- }
617
-
618
- // Generate the small column offsets
619
- @mixin make-sm-column-offset($columns) {
620
- @media (min-width: $screen-sm-min) {
621
- margin-left: percentage(($columns / $grid-columns));
622
- }
623
- }
624
- @mixin make-sm-column-push($columns) {
625
- @media (min-width: $screen-sm-min) {
626
- left: percentage(($columns / $grid-columns));
627
- }
628
- }
629
- @mixin make-sm-column-pull($columns) {
630
- @media (min-width: $screen-sm-min) {
631
- right: percentage(($columns / $grid-columns));
632
- }
633
- }
634
-
635
- // Generate the medium columns
636
- @mixin make-md-column($columns, $gutter: $grid-gutter-width) {
637
- position: relative;
638
- // Prevent columns from collapsing when empty
639
- min-height: 1px;
640
- // Inner gutter via padding
641
- padding-left: ($gutter / 2);
642
- padding-right: ($gutter / 2);
643
-
644
- // Calculate width based on number of columns available
645
- @media (min-width: $screen-md-min) {
646
- float: left;
647
- width: percentage(($columns / $grid-columns));
648
- }
649
- }
650
-
651
- // Generate the medium column offsets
652
- @mixin make-md-column-offset($columns) {
653
- @media (min-width: $screen-md-min) {
654
- margin-left: percentage(($columns / $grid-columns));
655
- }
656
- }
657
- @mixin make-md-column-push($columns) {
658
- @media (min-width: $screen-md) {
659
- left: percentage(($columns / $grid-columns));
660
- }
661
- }
662
- @mixin make-md-column-pull($columns) {
663
- @media (min-width: $screen-md-min) {
664
- right: percentage(($columns / $grid-columns));
665
- }
666
- }
667
-
668
- // Generate the large columns
669
- @mixin make-lg-column($columns, $gutter: $grid-gutter-width) {
670
- position: relative;
671
- // Prevent columns from collapsing when empty
672
- min-height: 1px;
673
- // Inner gutter via padding
674
- padding-left: ($gutter / 2);
675
- padding-right: ($gutter / 2);
676
-
677
- // Calculate width based on number of columns available
678
- @media (min-width: $screen-lg-min) {
679
- float: left;
680
- width: percentage(($columns / $grid-columns));
681
- }
682
- }
683
-
684
- // Generate the large column offsets
685
- @mixin make-lg-column-offset($columns) {
686
- @media (min-width: $screen-lg-min) {
687
- margin-left: percentage(($columns / $grid-columns));
688
- }
689
- }
690
- @mixin make-lg-column-push($columns) {
691
- @media (min-width: $screen-lg-min) {
692
- left: percentage(($columns / $grid-columns));
693
- }
694
- }
695
- @mixin make-lg-column-pull($columns) {
696
- @media (min-width: $screen-lg-min) {
697
- right: percentage(($columns / $grid-columns));
698
- }
699
- }
700
-
701
-
702
- // Framework grid generation
703
- //
704
- // Used only by Bootstrap to generate the correct number of grid classes given
705
- // any value of `$grid-columns`.
706
-
707
- // [converter] Grid converted to use SASS cycles (LESS uses recursive nested mixin defs not supported by SASS)
708
- @mixin make-grid-columns() {
709
- $list: '';
710
- $i: 1;
711
- $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
712
- @for $i from 2 through $grid-columns {
713
- $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}, #{$list}";
714
- }
715
- #{$list} {
716
- position: relative;
717
- // Prevent columns from collapsing when empty
718
- min-height: 1px;
719
- // Inner gutter via padding
720
- padding-left: ($grid-gutter-width / 2);
721
- padding-right: ($grid-gutter-width / 2);
722
- }
723
- }
724
-
725
-
726
- // [converter] Grid converted to use SASS cycles (LESS uses recursive nested mixin defs not supported by SASS)
727
- @mixin make-grid-columns-float($class) {
728
- $list: '';
729
- $i: 1;
730
- $list: ".col-#{$class}-#{$i}";
731
- @for $i from 2 through $grid-columns {
732
- $list: ".col-#{$class}-#{$i}, #{$list}";
733
- }
734
- #{$list} {
735
- float: left;
736
- }
737
- }
738
-
739
-
740
- @mixin calc-grid($index, $class, $type) {
741
- @if ($type == width) and ($index > 0) {
742
- .col-#{$class}-#{$index} {
743
- width: percentage(($index / $grid-columns));
744
- }
745
- }
746
- @if ($type == push) {
747
- .col-#{$class}-push-#{$index} {
748
- left: percentage(($index / $grid-columns));
749
- }
750
- }
751
- @if ($type == pull) {
752
- .col-#{$class}-pull-#{$index} {
753
- right: percentage(($index / $grid-columns));
754
- }
755
- }
756
- @if ($type == offset) {
757
- .col-#{$class}-offset-#{$index} {
758
- margin-left: percentage(($index / $grid-columns));
759
- }
760
- }
761
- }
762
-
763
- // [converter] This is defined recursively in LESS, but SASS supports real loops
764
- @mixin make-grid($columns, $class, $type) {
765
- @for $i from 0 through $columns {
766
- @include calc-grid($i, $class, $type);
767
- }
768
- }
769
-
770
-
771
-
772
- // Form validation states
773
- //
774
- // Used in forms.less to generate the form validation CSS for warnings, errors,
775
- // and successes.
776
-
777
- @mixin form-control-validation($text-color: #555, $border-color: #ccc, $background-color: #f5f5f5) {
778
- // Color the label and help text
779
- .help-block,
780
- .control-label,
781
- .radio,
782
- .checkbox,
783
- .radio-inline,
784
- .checkbox-inline {
785
- color: $text-color;
786
- }
787
- // Set the border and box shadow on specific inputs to match
788
- .form-control {
789
- border-color: $border-color;
790
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
791
- &:focus {
792
- border-color: darken($border-color, 10%);
793
- $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($border-color, 20%);
794
- @include box-shadow($shadow);
795
- }
796
- }
797
- // Set validation states also for addons
798
- .input-group-addon {
799
- color: $text-color;
800
- border-color: $border-color;
801
- background-color: $background-color;
802
- }
803
- }
804
-
805
- // Form control focus state
806
- //
807
- // Generate a customized focus state and for any input with the specified color,
808
- // which defaults to the `$input-focus-border` variable.
809
- //
810
- // We highly encourage you to not customize the default value, but instead use
811
- // this to tweak colors on an as-needed basis. This aesthetic change is based on
812
- // WebKit's default styles, but applicable to a wider range of browsers. Its
813
- // usability and accessibility should be taken into account with any change.
814
- //
815
- // Example usage: change the default blue border and shadow to white for better
816
- // contrast against a dark gray background.
817
-
818
- @mixin form-control-focus($color: $input-border-focus) {
819
- $color-rgba: rgba(red($color), green($color), blue($color), .6);
820
- &:focus {
821
- border-color: $color;
822
- outline: 0;
823
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px $color-rgba);
824
- }
825
- }
826
-
827
- // Form control sizing
828
- //
829
- // Relative text size, padding, and border-radii changes for form controls. For
830
- // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
831
- // element gets special love because it's special, and that's a fact!
832
-
833
- // [converter] $parent hack
834
- @mixin input-size($parent, $input-height, $padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
835
- #{$parent} { height: $input-height;
836
- padding: $padding-vertical $padding-horizontal;
837
- font-size: $font-size;
838
- line-height: $line-height;
839
- border-radius: $border-radius; }
840
- select#{$parent} {
841
- height: $input-height;
842
- line-height: $input-height;
843
- }
844
-
845
- textarea#{$parent} {
846
- height: auto;
847
- }
848
- }