card 1.92.2 → 1.93.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (965) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +3 -3
  3. data/VERSION +1 -1
  4. data/card.gemspec +1 -1
  5. data/config/initializers/01_core_extensions/array.rb +1 -1
  6. data/config/initializers/01_core_extensions/object.rb +9 -0
  7. data/config/initializers/01_core_extensions/persistent_identifiers.rb +1 -1
  8. data/config/initializers/02_patches/action_dispatch.rb +1 -0
  9. data/config/initializers/02_patches/active_record.rb +42 -0
  10. data/config/initializers/02_patches/active_support.rb +13 -0
  11. data/config/initializers/deck_config.rb +3 -0
  12. data/config/initializers/patches.rb +37 -6
  13. data/config/locales/de.yml +1 -3
  14. data/config/locales/en.yml +1 -3
  15. data/db/migrate_core_cards/20120611203506_rails_inflection_updates.rb +3 -3
  16. data/db/migrate_core_cards/20130823192433_add_style_cards.rb +1 -1
  17. data/db/migrate_core_cards/20130920214038_jsonize_tinymce.rb +1 -1
  18. data/db/migrate_core_cards/20140629222005_add_email_cards.rb +4 -4
  19. data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +1 -1
  20. data/db/migrate_core_cards/20150220134731_following_to_follow_rule.rb +1 -1
  21. data/db/migrate_core_cards/20150317162412_bootstrap_themes.rb +1 -1
  22. data/db/migrate_core_cards/20150429090551_search_card_context.rb +2 -2
  23. data/db/migrate_core_cards/20150501010515_responsive_sidebar.rb +1 -1
  24. data/db/migrate_core_cards/20150610180019_add_recaptcha_key_and_admin_info_cards.rb +2 -2
  25. data/db/migrate_core_cards/20150724123438_update_file_and_image_cards.rb +2 -2
  26. data/db/migrate_core_cards/20160811115836_rename_stats_to_admin.rb +1 -1
  27. data/db/migrate_core_cards/20160914132636_fix_mod_files.rb +3 -3
  28. data/db/migrate_core_cards/20170830210517_correct_signup_success_message.rb +2 -2
  29. data/db/migrate_core_cards/data/cards.yml +2 -2
  30. data/db/migrate_core_cards/data/cards/*header +1 -1
  31. data/lib/card.rb +53 -34
  32. data/lib/card/act_manager.rb +64 -10
  33. data/lib/card/act_manager/stage_director.rb +13 -2
  34. data/lib/card/act_manager/stage_director/phases.rb +6 -4
  35. data/lib/card/auth.rb +3 -1
  36. data/lib/card/cache.rb +8 -2
  37. data/lib/card/cache/persistent.rb +23 -10
  38. data/lib/card/codename.rb +59 -18
  39. data/lib/card/dirty.rb +39 -0
  40. data/lib/card/env/location.rb +1 -1
  41. data/lib/card/env/location_history.rb +1 -1
  42. data/lib/card/env/success.rb +1 -1
  43. data/lib/card/error.rb +3 -0
  44. data/lib/card/format.rb +55 -21
  45. data/lib/card/format/content.rb +1 -1
  46. data/lib/card/format/context_names.rb +2 -2
  47. data/lib/card/format/nest.rb +2 -2
  48. data/lib/card/format/nest/fetch.rb +1 -1
  49. data/lib/card/format/nest/subformat.rb +1 -1
  50. data/lib/card/format/render.rb +4 -18
  51. data/lib/card/migration.rb +1 -1
  52. data/lib/card/migration/import.rb +1 -1
  53. data/lib/card/migration/import/import_data.rb +5 -12
  54. data/lib/card/migration/import/import_data/card_attributes.rb +3 -4
  55. data/lib/card/mod.rb +4 -3
  56. data/lib/card/mod/dirs.rb +21 -10
  57. data/lib/card/mod/loader.rb +1 -1
  58. data/lib/card/model/save_helper.rb +1 -1
  59. data/lib/card/name.rb +8 -6
  60. data/lib/card/name/fields_and_traits.rb +5 -10
  61. data/lib/card/query.rb +1 -1
  62. data/lib/card/reference.rb +1 -1
  63. data/lib/card/set.rb +7 -14
  64. data/lib/card/set/advanced_api.rb +1 -0
  65. data/lib/card/set/event.rb +19 -109
  66. data/lib/card/set/event/delayed_event.rb +104 -0
  67. data/lib/card/set/format.rb +2 -2
  68. data/lib/card/set_pattern.rb +4 -4
  69. data/lib/card/subcards.rb +22 -35
  70. data/lib/card/tasks/card.rake +1 -2
  71. data/lib/card/view.rb +1 -2
  72. data/lib/card/view/cache.rb +1 -1
  73. data/lib/card/view/cache_action.rb +1 -1
  74. data/lib/card/view/options.rb +1 -1
  75. data/lib/card/view/stub.rb +5 -1
  76. data/lib/cardio.rb +50 -22
  77. data/mod/Modfile +1 -0
  78. data/mod/account/set/all/account.rb +2 -2
  79. data/mod/account/set/right/account.rb +4 -2
  80. data/mod/account/set/right/email.rb +1 -1
  81. data/mod/account/set/self/account_links.rb +2 -2
  82. data/mod/account/set/self/signin.rb +3 -3
  83. data/mod/account/spec/set/right/account_spec.rb +2 -2
  84. data/mod/account/spec/set/right/email_spec.rb +1 -1
  85. data/mod/account/spec/set/right/password_spec.rb +1 -1
  86. data/mod/account/spec/set/right/salt_spec.rb +1 -1
  87. data/mod/account/spec/set/type/signup_spec.rb +1 -1
  88. data/mod/basic_formats/format/css_format.rb +1 -2
  89. data/mod/basic_formats/format/csv_format.rb +1 -1
  90. data/mod/basic_formats/format/js_format.rb +4 -0
  91. data/mod/basic_formats/set/all/all_css.rb +3 -3
  92. data/mod/basic_formats/set/all/all_js.rb +1 -1
  93. data/mod/basic_formats/set/all/base.rb +5 -5
  94. data/mod/basic_formats/set/all/json.rb +4 -4
  95. data/mod/basic_formats/set/all/rss.rb +3 -3
  96. data/mod/basic_formats/set/self/head.rb +12 -7
  97. data/mod/bootstrap/db/migrate_cards/20170719163710_update_bootswatch_themes_to_4_beta.rb +115 -0
  98. data/mod/bootstrap/db/migrate_cards/20170726145012_select2.rb +7 -7
  99. data/mod/bootstrap/lib/bootstrap/component/panel.rb +1 -1
  100. data/mod/bootstrap/lib/javascript/script_load_select2.js.coffee +2 -0
  101. data/mod/bootstrap/lib/stylesheets/bootstrap_cards.scss +2 -8
  102. data/mod/bootstrap/lib/stylesheets/style_select2_bootstrap.scss +546 -628
  103. data/mod/bootstrap/set/abstract/bootstrap_code_file.rb +9 -6
  104. data/mod/bootstrap/set/all/bootstrap/accordion.rb +3 -3
  105. data/mod/bootstrap/set/all/bootstrap/helper.rb +58 -15
  106. data/mod/bootstrap/set/all/bootstrap/tabs.rb +2 -2
  107. data/mod/bootstrap/set/all/bootstrap/wrapper.rb +1 -1
  108. data/mod/bootstrap/set/self/bootstrap_js.rb +7 -1
  109. data/mod/bootstrap/set/self/bootswatch_shared.rb +8 -17
  110. data/mod/bootstrap/set/self/script_select2.rb +9 -0
  111. data/mod/bootstrap/set/self/style_select2.rb +1 -1
  112. data/mod/bootstrap/set/self/style_select2_bootstrap.rb +1 -0
  113. data/mod/bootstrap/vendor/bootstrap/.editorconfig +17 -0
  114. data/mod/bootstrap/vendor/bootstrap/.gitattributes +15 -0
  115. data/mod/bootstrap/vendor/bootstrap/.gitignore +41 -0
  116. data/mod/bootstrap/vendor/bootstrap/.hound.yml +12 -0
  117. data/mod/bootstrap/vendor/bootstrap/.travis.yml +45 -0
  118. data/mod/bootstrap/vendor/bootstrap/CHANGELOG.md +5 -0
  119. data/mod/bootstrap/vendor/bootstrap/CNAME +1 -0
  120. data/mod/bootstrap/vendor/bootstrap/CONTRIBUTING.md +270 -0
  121. data/mod/bootstrap/vendor/bootstrap/Gemfile +6 -0
  122. data/mod/bootstrap/vendor/bootstrap/Gemfile.lock +49 -0
  123. data/mod/bootstrap/vendor/bootstrap/Gruntfile.js +511 -0
  124. data/mod/bootstrap/vendor/bootstrap/ISSUE_TEMPLATE.md +22 -0
  125. data/mod/bootstrap/vendor/bootstrap/LICENSE +21 -0
  126. data/mod/bootstrap/vendor/bootstrap/README.md +142 -0
  127. data/mod/bootstrap/vendor/bootstrap/_config.yml +42 -0
  128. data/mod/bootstrap/vendor/bootstrap/bower.json +34 -0
  129. data/mod/bootstrap/vendor/bootstrap/composer.json +37 -0
  130. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-theme.css +587 -0
  131. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-theme.css.map +0 -0
  132. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-theme.min.css +6 -0
  133. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap-theme.min.css.map +0 -0
  134. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.css +6757 -0
  135. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.css.map +0 -0
  136. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.min.css +6 -0
  137. data/mod/bootstrap/vendor/bootstrap/dist/css/bootstrap.min.css.map +0 -0
  138. data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  139. data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +288 -0
  140. data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  141. data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  142. data/mod/bootstrap/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
  143. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.js +2377 -0
  144. data/mod/bootstrap/vendor/bootstrap/dist/js/bootstrap.min.js +7 -0
  145. data/mod/bootstrap/vendor/bootstrap/dist/js/npm.js +13 -0
  146. data/mod/bootstrap/vendor/bootstrap/docs/LICENSE +319 -0
  147. data/mod/bootstrap/vendor/bootstrap/docs/_data/browser-bugs.yml +433 -0
  148. data/mod/bootstrap/vendor/bootstrap/docs/_data/browser-features.yml +109 -0
  149. data/mod/bootstrap/vendor/bootstrap/docs/_data/core-team.yml +27 -0
  150. data/mod/bootstrap/vendor/bootstrap/docs/_data/glyphicons.yml +266 -0
  151. data/mod/bootstrap/vendor/bootstrap/docs/_data/sass-team.yml +7 -0
  152. data/mod/bootstrap/vendor/bootstrap/docs/_data/showcase.yml +19 -0
  153. data/mod/bootstrap/vendor/bootstrap/docs/_data/translations.yml +64 -0
  154. data/mod/bootstrap/vendor/bootstrap/docs/_includes/ads.html +1 -0
  155. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/alerts.html +89 -0
  156. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/badges.html +45 -0
  157. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/breadcrumbs.html +27 -0
  158. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/button-dropdowns.html +321 -0
  159. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/button-groups.html +268 -0
  160. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/dropdowns.html +156 -0
  161. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/glyphicons.html +91 -0
  162. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/input-groups.html +365 -0
  163. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/jumbotron.html +27 -0
  164. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/labels.html +40 -0
  165. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/list-group.html +188 -0
  166. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/media.html +207 -0
  167. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/navbar.html +461 -0
  168. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/navs.html +189 -0
  169. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/page-header.html +15 -0
  170. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/pagination.html +202 -0
  171. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/panels.html +279 -0
  172. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/progress-bars.html +214 -0
  173. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/responsive-embed.html +23 -0
  174. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/thumbnails.html +94 -0
  175. data/mod/bootstrap/vendor/bootstrap/docs/_includes/components/wells.html +33 -0
  176. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/buttons.html +189 -0
  177. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/code.html +52 -0
  178. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/forms.html +1029 -0
  179. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/grid.html +560 -0
  180. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/helpers.html +207 -0
  181. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/images.html +31 -0
  182. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/less.html +499 -0
  183. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/overview.html +52 -0
  184. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/responsive-utilities.html +258 -0
  185. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/sass.html +52 -0
  186. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/tables.html +467 -0
  187. data/mod/bootstrap/vendor/bootstrap/docs/_includes/css/type.html +461 -0
  188. data/mod/bootstrap/vendor/bootstrap/docs/_includes/customizer-variables.html +1892 -0
  189. data/mod/bootstrap/vendor/bootstrap/docs/_includes/footer.html +67 -0
  190. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/accessibility.html +37 -0
  191. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/browser-device-support.html +237 -0
  192. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/community.html +13 -0
  193. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/disabling-responsiveness.html +22 -0
  194. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/download.html +63 -0
  195. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/examples.html +161 -0
  196. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/grunt.html +35 -0
  197. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/license.html +34 -0
  198. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/template.html +37 -0
  199. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/third-party-support.html +51 -0
  200. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/tools.html +6 -0
  201. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/translations.html +12 -0
  202. data/mod/bootstrap/vendor/bootstrap/docs/_includes/getting-started/whats-included.html +55 -0
  203. data/mod/bootstrap/vendor/bootstrap/docs/_includes/header.html +58 -0
  204. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/affix.html +129 -0
  205. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/alerts.html +73 -0
  206. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/buttons.html +139 -0
  207. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/carousel.html +260 -0
  208. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/collapse.html +277 -0
  209. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/dropdowns.html +201 -0
  210. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/modal.html +520 -0
  211. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/overview.html +86 -0
  212. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/popovers.html +309 -0
  213. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/scrollspy.html +151 -0
  214. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/tabs.html +147 -0
  215. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/tooltips.html +276 -0
  216. data/mod/bootstrap/vendor/bootstrap/docs/_includes/js/transitions.html +15 -0
  217. data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/about.html +9 -0
  218. data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/components.html +146 -0
  219. data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/css.html +136 -0
  220. data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/customize.html +47 -0
  221. data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/getting-started.html +76 -0
  222. data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/javascript.html +124 -0
  223. data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/main.html +37 -0
  224. data/mod/bootstrap/vendor/bootstrap/docs/_includes/nav/migration.html +12 -0
  225. data/mod/bootstrap/vendor/bootstrap/docs/_layouts/default.html +65 -0
  226. data/mod/bootstrap/vendor/bootstrap/docs/_layouts/home.html +19 -0
  227. data/mod/bootstrap/vendor/bootstrap/docs/_plugins/bridge.rb +9 -0
  228. data/mod/bootstrap/vendor/bootstrap/docs/_plugins/bugify.rb +26 -0
  229. data/mod/bootstrap/vendor/bootstrap/docs/_pug/customizer-nav.pug +17 -0
  230. data/mod/bootstrap/vendor/bootstrap/docs/_pug/customizer-variables.pug +25 -0
  231. data/mod/bootstrap/vendor/bootstrap/docs/about.html +127 -0
  232. data/mod/bootstrap/vendor/bootstrap/docs/apple-touch-icon.png +0 -0
  233. data/mod/bootstrap/vendor/bootstrap/docs/assets/brand/bootstrap-outline.svg +20 -0
  234. data/mod/bootstrap/vendor/bootstrap/docs/assets/brand/bootstrap-punchout.svg +18 -0
  235. data/mod/bootstrap/vendor/bootstrap/docs/assets/brand/bootstrap-solid.svg +17 -0
  236. data/mod/bootstrap/vendor/bootstrap/docs/assets/css/docs.min.css +11 -0
  237. data/mod/bootstrap/vendor/bootstrap/docs/assets/css/docs.min.css.map +0 -0
  238. data/mod/bootstrap/vendor/bootstrap/docs/assets/css/ie10-viewport-bug-workaround.css +13 -0
  239. data/mod/bootstrap/vendor/bootstrap/docs/assets/css/src/docs.css +1632 -0
  240. data/mod/bootstrap/vendor/bootstrap/docs/assets/css/src/pygments-manni.css +66 -0
  241. data/mod/bootstrap/vendor/bootstrap/docs/assets/flash/ZeroClipboard.swf +0 -0
  242. data/mod/bootstrap/vendor/bootstrap/docs/assets/img/components.png +0 -0
  243. data/mod/bootstrap/vendor/bootstrap/docs/assets/img/devices.png +0 -0
  244. data/mod/bootstrap/vendor/bootstrap/docs/assets/img/expo-lyft.jpg +0 -0
  245. data/mod/bootstrap/vendor/bootstrap/docs/assets/img/expo-newsweek.jpg +0 -0
  246. data/mod/bootstrap/vendor/bootstrap/docs/assets/img/expo-riot.jpg +0 -0
  247. data/mod/bootstrap/vendor/bootstrap/docs/assets/img/expo-vogue.jpg +0 -0
  248. data/mod/bootstrap/vendor/bootstrap/docs/assets/img/sass-less.png +0 -0
  249. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/customize.min.js +91 -0
  250. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/docs.min.js +26 -0
  251. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/ie-emulation-modes-warning.js +51 -0
  252. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/ie10-viewport-bug-workaround.js +23 -0
  253. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/ie8-responsive-file-warning.js +13 -0
  254. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/raw-files.min.js +8 -0
  255. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/src/application.js +183 -0
  256. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/src/customizer.js +520 -0
  257. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/Blob.js +211 -0
  258. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/FileSaver.js +248 -0
  259. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/ZeroClipboard.min.js +9 -0
  260. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/anchor.min.js +6 -0
  261. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/autoprefixer.js +21114 -0
  262. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/holder.min.js +12 -0
  263. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/jquery.min.js +5 -0
  264. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/jszip.min.js +14 -0
  265. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/less.min.js +16 -0
  266. data/mod/bootstrap/vendor/bootstrap/docs/assets/js/vendor/uglify.min.js +6 -0
  267. data/mod/bootstrap/vendor/bootstrap/docs/browser-bugs.html +75 -0
  268. data/mod/bootstrap/vendor/bootstrap/docs/components.html +29 -0
  269. data/mod/bootstrap/vendor/bootstrap/docs/css.html +20 -0
  270. data/mod/bootstrap/vendor/bootstrap/docs/customize.html +385 -0
  271. data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap-theme.css +587 -0
  272. data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap-theme.css.map +0 -0
  273. data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap-theme.min.css +6 -0
  274. data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap-theme.min.css.map +0 -0
  275. data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap.css +6757 -0
  276. data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap.css.map +0 -0
  277. data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap.min.css +6 -0
  278. data/mod/bootstrap/vendor/bootstrap/docs/dist/css/bootstrap.min.css.map +0 -0
  279. data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  280. data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.svg +288 -0
  281. data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  282. data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  283. data/mod/bootstrap/vendor/bootstrap/docs/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
  284. data/mod/bootstrap/vendor/bootstrap/docs/dist/js/bootstrap.js +2377 -0
  285. data/mod/bootstrap/vendor/bootstrap/docs/dist/js/bootstrap.min.js +7 -0
  286. data/mod/bootstrap/vendor/bootstrap/docs/dist/js/npm.js +13 -0
  287. data/mod/bootstrap/vendor/bootstrap/docs/examples/blog/blog.css +166 -0
  288. data/mod/bootstrap/vendor/bootstrap/docs/examples/blog/index.html +180 -0
  289. data/mod/bootstrap/vendor/bootstrap/docs/examples/carousel/carousel.css +134 -0
  290. data/mod/bootstrap/vendor/bootstrap/docs/examples/carousel/index.html +220 -0
  291. data/mod/bootstrap/vendor/bootstrap/docs/examples/cover/cover.css +163 -0
  292. data/mod/bootstrap/vendor/bootstrap/docs/examples/cover/index.html +84 -0
  293. data/mod/bootstrap/vendor/bootstrap/docs/examples/dashboard/dashboard.css +105 -0
  294. data/mod/bootstrap/vendor/bootstrap/docs/examples/dashboard/index.html +252 -0
  295. data/mod/bootstrap/vendor/bootstrap/docs/examples/grid/grid.css +23 -0
  296. data/mod/bootstrap/vendor/bootstrap/docs/examples/grid/index.html +156 -0
  297. data/mod/bootstrap/vendor/bootstrap/docs/examples/jumbotron-narrow/index.html +88 -0
  298. data/mod/bootstrap/vendor/bootstrap/docs/examples/jumbotron-narrow/jumbotron-narrow.css +79 -0
  299. data/mod/bootstrap/vendor/bootstrap/docs/examples/jumbotron/index.html +107 -0
  300. data/mod/bootstrap/vendor/bootstrap/docs/examples/jumbotron/jumbotron.css +5 -0
  301. data/mod/bootstrap/vendor/bootstrap/docs/examples/justified-nav/index.html +92 -0
  302. data/mod/bootstrap/vendor/bootstrap/docs/examples/justified-nav/justified-nav.css +88 -0
  303. data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar-fixed-top/index.html +99 -0
  304. data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar-fixed-top/navbar-fixed-top.css +4 -0
  305. data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar-static-top/index.html +100 -0
  306. data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar-static-top/navbar-static-top.css +7 -0
  307. data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar/index.html +98 -0
  308. data/mod/bootstrap/vendor/bootstrap/docs/examples/navbar/navbar.css +8 -0
  309. data/mod/bootstrap/vendor/bootstrap/docs/examples/non-responsive/index.html +115 -0
  310. data/mod/bootstrap/vendor/bootstrap/docs/examples/non-responsive/non-responsive.css +262 -0
  311. data/mod/bootstrap/vendor/bootstrap/docs/examples/offcanvas/index.html +137 -0
  312. data/mod/bootstrap/vendor/bootstrap/docs/examples/offcanvas/offcanvas.css +59 -0
  313. data/mod/bootstrap/vendor/bootstrap/docs/examples/offcanvas/offcanvas.js +5 -0
  314. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/blog.jpg +0 -0
  315. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/carousel.jpg +0 -0
  316. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/cover.jpg +0 -0
  317. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/dashboard.jpg +0 -0
  318. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/equal-height-columns.jpg +0 -0
  319. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/grid.jpg +0 -0
  320. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/jumbotron-narrow.jpg +0 -0
  321. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/jumbotron.jpg +0 -0
  322. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/justified-nav.jpg +0 -0
  323. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/navbar-fixed.jpg +0 -0
  324. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/navbar-static.jpg +0 -0
  325. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/navbar.jpg +0 -0
  326. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/non-responsive.jpg +0 -0
  327. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/offcanvas.jpg +0 -0
  328. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/sign-in.jpg +0 -0
  329. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/starter-template.jpg +0 -0
  330. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/sticky-footer-navbar.jpg +0 -0
  331. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/sticky-footer.jpg +0 -0
  332. data/mod/bootstrap/vendor/bootstrap/docs/examples/screenshots/theme.jpg +0 -0
  333. data/mod/bootstrap/vendor/bootstrap/docs/examples/signin/index.html +58 -0
  334. data/mod/bootstrap/vendor/bootstrap/docs/examples/signin/signin.css +40 -0
  335. data/mod/bootstrap/vendor/bootstrap/docs/examples/starter-template/index.html +76 -0
  336. data/mod/bootstrap/vendor/bootstrap/docs/examples/starter-template/starter-template.css +7 -0
  337. data/mod/bootstrap/vendor/bootstrap/docs/examples/sticky-footer-navbar/index.html +95 -0
  338. data/mod/bootstrap/vendor/bootstrap/docs/examples/sticky-footer-navbar/sticky-footer-navbar.css +39 -0
  339. data/mod/bootstrap/vendor/bootstrap/docs/examples/sticky-footer/index.html +55 -0
  340. data/mod/bootstrap/vendor/bootstrap/docs/examples/sticky-footer/sticky-footer.css +32 -0
  341. data/mod/bootstrap/vendor/bootstrap/docs/examples/theme/index.html +644 -0
  342. data/mod/bootstrap/vendor/bootstrap/docs/examples/theme/theme.css +18 -0
  343. data/mod/bootstrap/vendor/bootstrap/docs/examples/tooltip-viewport/index.html +62 -0
  344. data/mod/bootstrap/vendor/bootstrap/docs/examples/tooltip-viewport/tooltip-viewport.css +26 -0
  345. data/mod/bootstrap/vendor/bootstrap/docs/examples/tooltip-viewport/tooltip-viewport.js +18 -0
  346. data/mod/bootstrap/vendor/bootstrap/docs/favicon.ico +0 -0
  347. data/mod/bootstrap/vendor/bootstrap/docs/getting-started.html +28 -0
  348. data/mod/bootstrap/vendor/bootstrap/docs/index.html +73 -0
  349. data/mod/bootstrap/vendor/bootstrap/docs/javascript.html +21 -0
  350. data/mod/bootstrap/vendor/bootstrap/docs/migration.html +445 -0
  351. data/mod/bootstrap/vendor/bootstrap/docs/robots.txt +9 -0
  352. data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  353. data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.svg +288 -0
  354. data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  355. data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  356. data/mod/bootstrap/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  357. data/mod/bootstrap/vendor/bootstrap/grunt/.jshintrc +7 -0
  358. data/mod/bootstrap/vendor/bootstrap/grunt/bs-commonjs-generator.js +30 -0
  359. data/mod/bootstrap/vendor/bootstrap/grunt/bs-glyphicons-data-generator.js +42 -0
  360. data/mod/bootstrap/vendor/bootstrap/grunt/bs-lessdoc-parser.js +237 -0
  361. data/mod/bootstrap/vendor/bootstrap/grunt/bs-raw-files-generator.js +44 -0
  362. data/mod/bootstrap/vendor/bootstrap/grunt/change-version.js +109 -0
  363. data/mod/bootstrap/vendor/bootstrap/grunt/configBridge.json +46 -0
  364. data/mod/bootstrap/vendor/bootstrap/grunt/npm-shrinkwrap.json +2679 -0
  365. data/mod/bootstrap/vendor/bootstrap/grunt/sauce_browsers.yml +82 -0
  366. data/mod/bootstrap/vendor/bootstrap/js/.jscsrc +42 -0
  367. data/mod/bootstrap/vendor/bootstrap/js/.jshintrc +15 -0
  368. data/mod/bootstrap/vendor/bootstrap/js/affix.js +162 -0
  369. data/mod/bootstrap/vendor/bootstrap/js/alert.js +94 -0
  370. data/mod/bootstrap/vendor/bootstrap/js/button.js +125 -0
  371. data/mod/bootstrap/vendor/bootstrap/js/carousel.js +239 -0
  372. data/mod/bootstrap/vendor/bootstrap/js/collapse.js +212 -0
  373. data/mod/bootstrap/vendor/bootstrap/js/dropdown.js +165 -0
  374. data/mod/bootstrap/vendor/bootstrap/js/modal.js +339 -0
  375. data/mod/bootstrap/vendor/bootstrap/js/popover.js +108 -0
  376. data/mod/bootstrap/vendor/bootstrap/js/scrollspy.js +172 -0
  377. data/mod/bootstrap/vendor/bootstrap/js/tab.js +155 -0
  378. data/mod/bootstrap/vendor/bootstrap/js/tests/README.md +62 -0
  379. data/mod/bootstrap/vendor/bootstrap/js/tests/index.html +169 -0
  380. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/.jshintrc +6 -0
  381. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/affix.js +107 -0
  382. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/alert.js +78 -0
  383. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/button.js +168 -0
  384. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/carousel.js +718 -0
  385. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/collapse.js +443 -0
  386. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/dropdown.js +423 -0
  387. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/modal.js +377 -0
  388. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/phantom.js +72 -0
  389. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/popover.js +290 -0
  390. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/scrollspy.js +278 -0
  391. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/tab.js +216 -0
  392. data/mod/bootstrap/vendor/bootstrap/js/tests/unit/tooltip.js +1325 -0
  393. data/mod/bootstrap/vendor/bootstrap/js/tests/vendor/jquery.min.js +5 -0
  394. data/mod/bootstrap/vendor/bootstrap/js/tests/vendor/qunit.css +305 -0
  395. data/mod/bootstrap/vendor/bootstrap/js/tests/vendor/qunit.js +4204 -0
  396. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/affix-with-sticky-footer.html +317 -0
  397. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/affix.html +306 -0
  398. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/alert.html +48 -0
  399. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/button.html +79 -0
  400. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/carousel.html +58 -0
  401. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/collapse.html +78 -0
  402. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/dropdown.html +108 -0
  403. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/modal.html +205 -0
  404. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/popover.html +54 -0
  405. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/scrollspy.html +109 -0
  406. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/tab.html +172 -0
  407. data/mod/bootstrap/vendor/bootstrap/js/tests/visual/tooltip.html +50 -0
  408. data/mod/bootstrap/vendor/bootstrap/js/tooltip.js +520 -0
  409. data/mod/bootstrap/vendor/bootstrap/js/transition.js +59 -0
  410. data/mod/bootstrap/vendor/bootstrap/less/.csscomb.json +304 -0
  411. data/mod/bootstrap/vendor/bootstrap/less/.csslintrc +19 -0
  412. data/mod/bootstrap/vendor/bootstrap/less/alerts.less +73 -0
  413. data/mod/bootstrap/vendor/bootstrap/less/badges.less +66 -0
  414. data/mod/bootstrap/vendor/bootstrap/less/bootstrap.less +56 -0
  415. data/mod/bootstrap/vendor/bootstrap/less/breadcrumbs.less +26 -0
  416. data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/_button-group.scss → vendor/bootstrap/less/button-groups.less} +100 -58
  417. data/mod/bootstrap/vendor/bootstrap/less/buttons.less +166 -0
  418. data/mod/bootstrap/vendor/bootstrap/less/carousel.less +270 -0
  419. data/mod/bootstrap/vendor/bootstrap/less/close.less +34 -0
  420. data/mod/bootstrap/vendor/bootstrap/less/code.less +69 -0
  421. data/mod/bootstrap/vendor/bootstrap/less/component-animations.less +33 -0
  422. data/mod/bootstrap/vendor/bootstrap/less/dropdowns.less +216 -0
  423. data/mod/bootstrap/vendor/bootstrap/less/forms.less +613 -0
  424. data/mod/bootstrap/vendor/bootstrap/less/glyphicons.less +305 -0
  425. data/mod/bootstrap/vendor/bootstrap/less/grid.less +84 -0
  426. data/mod/bootstrap/vendor/bootstrap/less/input-groups.less +171 -0
  427. data/mod/bootstrap/vendor/bootstrap/less/jumbotron.less +54 -0
  428. data/mod/bootstrap/vendor/bootstrap/less/labels.less +64 -0
  429. data/mod/bootstrap/vendor/bootstrap/less/list-group.less +130 -0
  430. data/mod/bootstrap/vendor/bootstrap/less/media.less +66 -0
  431. data/mod/bootstrap/vendor/bootstrap/less/mixins.less +40 -0
  432. data/mod/bootstrap/vendor/bootstrap/less/mixins/alerts.less +14 -0
  433. data/mod/bootstrap/vendor/bootstrap/less/mixins/background-variant.less +9 -0
  434. data/mod/bootstrap/vendor/bootstrap/less/mixins/border-radius.less +18 -0
  435. data/mod/bootstrap/vendor/bootstrap/less/mixins/buttons.less +65 -0
  436. data/mod/bootstrap/vendor/bootstrap/less/mixins/center-block.less +7 -0
  437. data/mod/bootstrap/vendor/bootstrap/less/mixins/clearfix.less +22 -0
  438. data/mod/bootstrap/vendor/bootstrap/less/mixins/forms.less +85 -0
  439. data/mod/bootstrap/vendor/bootstrap/less/mixins/gradients.less +59 -0
  440. data/mod/bootstrap/vendor/bootstrap/less/mixins/grid-framework.less +91 -0
  441. data/mod/bootstrap/vendor/bootstrap/less/mixins/grid.less +122 -0
  442. data/mod/bootstrap/vendor/bootstrap/less/mixins/hide-text.less +21 -0
  443. data/mod/bootstrap/vendor/bootstrap/less/mixins/image.less +33 -0
  444. data/mod/bootstrap/vendor/bootstrap/less/mixins/labels.less +12 -0
  445. data/mod/bootstrap/vendor/bootstrap/less/mixins/list-group.less +30 -0
  446. data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_nav-divider.scss → vendor/bootstrap/less/mixins/nav-divider.less} +3 -3
  447. data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_navbar-align.scss → vendor/bootstrap/less/mixins/nav-vertical-align.less} +4 -4
  448. data/mod/bootstrap/vendor/bootstrap/less/mixins/opacity.less +8 -0
  449. data/mod/bootstrap/vendor/bootstrap/less/mixins/pagination.less +24 -0
  450. data/mod/bootstrap/vendor/bootstrap/less/mixins/panels.less +24 -0
  451. data/mod/bootstrap/vendor/bootstrap/less/mixins/progress-bar.less +10 -0
  452. data/mod/bootstrap/vendor/bootstrap/less/mixins/reset-filter.less +8 -0
  453. data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_reset-text.scss → vendor/bootstrap/less/mixins/reset-text.less} +6 -5
  454. data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_resize.scss → vendor/bootstrap/less/mixins/resize.less} +2 -2
  455. data/mod/bootstrap/vendor/bootstrap/less/mixins/responsive-visibility.less +15 -0
  456. data/mod/bootstrap/vendor/bootstrap/less/mixins/size.less +10 -0
  457. data/mod/bootstrap/vendor/bootstrap/less/mixins/tab-focus.less +9 -0
  458. data/mod/bootstrap/vendor/bootstrap/less/mixins/table-row.less +28 -0
  459. data/mod/bootstrap/vendor/bootstrap/less/mixins/text-emphasis.less +9 -0
  460. data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/mixins/_text-truncate.scss → vendor/bootstrap/less/mixins/text-overflow.less} +3 -3
  461. data/mod/bootstrap/vendor/bootstrap/less/mixins/vendor-prefixes.less +227 -0
  462. data/mod/bootstrap/vendor/bootstrap/less/modals.less +150 -0
  463. data/mod/bootstrap/vendor/bootstrap/less/navbar.less +660 -0
  464. data/mod/bootstrap/vendor/bootstrap/less/navs.less +242 -0
  465. data/mod/bootstrap/vendor/bootstrap/less/normalize.less +424 -0
  466. data/mod/bootstrap/vendor/bootstrap/less/pager.less +54 -0
  467. data/mod/bootstrap/vendor/bootstrap/less/pagination.less +89 -0
  468. data/mod/bootstrap/vendor/bootstrap/less/panels.less +271 -0
  469. data/mod/bootstrap/vendor/bootstrap/less/popovers.less +131 -0
  470. data/mod/bootstrap/vendor/bootstrap/less/print.less +101 -0
  471. data/mod/bootstrap/vendor/bootstrap/less/progress-bars.less +87 -0
  472. data/mod/bootstrap/{lib/stylesheets/bootstrap/scss/_responsive-embed.scss → vendor/bootstrap/less/responsive-embed.less} +9 -26
  473. data/mod/bootstrap/vendor/bootstrap/less/responsive-utilities.less +194 -0
  474. data/mod/bootstrap/vendor/bootstrap/less/scaffolding.less +161 -0
  475. data/mod/bootstrap/vendor/bootstrap/less/tables.less +234 -0
  476. data/mod/bootstrap/vendor/bootstrap/less/theme.less +291 -0
  477. data/mod/bootstrap/vendor/bootstrap/less/thumbnails.less +36 -0
  478. data/mod/bootstrap/vendor/bootstrap/less/tooltip.less +101 -0
  479. data/mod/bootstrap/vendor/bootstrap/less/type.less +302 -0
  480. data/mod/bootstrap/vendor/bootstrap/less/utilities.less +55 -0
  481. data/mod/bootstrap/vendor/bootstrap/less/variables.less +869 -0
  482. data/mod/bootstrap/vendor/bootstrap/less/wells.less +29 -0
  483. data/mod/bootstrap/vendor/bootstrap/nuget/MyGet.ps1 +8 -0
  484. data/mod/bootstrap/vendor/bootstrap/nuget/bootstrap.less.nuspec +28 -0
  485. data/mod/bootstrap/vendor/bootstrap/nuget/bootstrap.nuspec +28 -0
  486. data/mod/bootstrap/vendor/bootstrap/package.js +32 -0
  487. data/mod/bootstrap/vendor/bootstrap/package.json +89 -0
  488. data/mod/bootstrap/vendor/bootswatch/README.md +63 -0
  489. data/mod/bootstrap/vendor/bootswatch/swatchmaker/README.md +1 -0
  490. data/mod/bootstrap/vendor/select2/.editorconfig +6 -0
  491. data/mod/bootstrap/vendor/select2/.github/CONTRIBUTING.md +203 -0
  492. data/mod/bootstrap/vendor/select2/.github/ISSUE_TEMPLATE.md +20 -0
  493. data/mod/bootstrap/vendor/select2/.github/PULL_REQUEST_TEMPLATE.md +13 -0
  494. data/mod/bootstrap/vendor/select2/.gitignore +3 -0
  495. data/mod/bootstrap/vendor/select2/.jshintignore +4 -0
  496. data/mod/bootstrap/vendor/select2/.jshintrc +25 -0
  497. data/mod/bootstrap/vendor/select2/.travis.yml +22 -0
  498. data/mod/bootstrap/vendor/select2/CHANGELOG.md +272 -0
  499. data/mod/bootstrap/vendor/select2/Gruntfile.js +380 -0
  500. data/mod/bootstrap/vendor/select2/LICENSE.md +21 -0
  501. data/mod/bootstrap/vendor/select2/README.md +123 -0
  502. data/mod/bootstrap/vendor/select2/bower.json +13 -0
  503. data/mod/bootstrap/vendor/select2/component.json +19 -0
  504. data/mod/bootstrap/vendor/select2/composer.json +25 -0
  505. data/mod/bootstrap/{lib/stylesheets/style_select2.css → vendor/select2/dist/css/select2.css} +0 -0
  506. data/mod/bootstrap/{lib/stylesheets → vendor/select2/dist/css}/select2.min.css +0 -0
  507. data/mod/bootstrap/vendor/select2/dist/js/i18n/af.js +3 -0
  508. data/mod/bootstrap/vendor/select2/dist/js/i18n/ar.js +3 -0
  509. data/mod/bootstrap/vendor/select2/dist/js/i18n/az.js +3 -0
  510. data/mod/bootstrap/vendor/select2/dist/js/i18n/bg.js +3 -0
  511. data/mod/bootstrap/vendor/select2/dist/js/i18n/bs.js +3 -0
  512. data/mod/bootstrap/vendor/select2/dist/js/i18n/ca.js +3 -0
  513. data/mod/bootstrap/vendor/select2/dist/js/i18n/cs.js +3 -0
  514. data/mod/bootstrap/vendor/select2/dist/js/i18n/da.js +3 -0
  515. data/mod/bootstrap/vendor/select2/dist/js/i18n/de.js +3 -0
  516. data/mod/bootstrap/vendor/select2/dist/js/i18n/dsb.js +3 -0
  517. data/mod/bootstrap/vendor/select2/dist/js/i18n/el.js +3 -0
  518. data/mod/bootstrap/vendor/select2/dist/js/i18n/en.js +3 -0
  519. data/mod/bootstrap/vendor/select2/dist/js/i18n/es.js +3 -0
  520. data/mod/bootstrap/vendor/select2/dist/js/i18n/et.js +3 -0
  521. data/mod/bootstrap/vendor/select2/dist/js/i18n/eu.js +3 -0
  522. data/mod/bootstrap/vendor/select2/dist/js/i18n/fa.js +3 -0
  523. data/mod/bootstrap/vendor/select2/dist/js/i18n/fi.js +3 -0
  524. data/mod/bootstrap/vendor/select2/dist/js/i18n/fr.js +3 -0
  525. data/mod/bootstrap/vendor/select2/dist/js/i18n/gl.js +3 -0
  526. data/mod/bootstrap/vendor/select2/dist/js/i18n/he.js +3 -0
  527. data/mod/bootstrap/vendor/select2/dist/js/i18n/hi.js +3 -0
  528. data/mod/bootstrap/vendor/select2/dist/js/i18n/hr.js +3 -0
  529. data/mod/bootstrap/vendor/select2/dist/js/i18n/hsb.js +3 -0
  530. data/mod/bootstrap/vendor/select2/dist/js/i18n/hu.js +3 -0
  531. data/mod/bootstrap/vendor/select2/dist/js/i18n/hy.js +3 -0
  532. data/mod/bootstrap/vendor/select2/dist/js/i18n/id.js +3 -0
  533. data/mod/bootstrap/vendor/select2/dist/js/i18n/is.js +3 -0
  534. data/mod/bootstrap/vendor/select2/dist/js/i18n/it.js +3 -0
  535. data/mod/bootstrap/vendor/select2/dist/js/i18n/ja.js +3 -0
  536. data/mod/bootstrap/vendor/select2/dist/js/i18n/km.js +3 -0
  537. data/mod/bootstrap/vendor/select2/dist/js/i18n/ko.js +3 -0
  538. data/mod/bootstrap/vendor/select2/dist/js/i18n/lt.js +3 -0
  539. data/mod/bootstrap/vendor/select2/dist/js/i18n/lv.js +3 -0
  540. data/mod/bootstrap/vendor/select2/dist/js/i18n/mk.js +3 -0
  541. data/mod/bootstrap/vendor/select2/dist/js/i18n/ms.js +3 -0
  542. data/mod/bootstrap/vendor/select2/dist/js/i18n/nb.js +3 -0
  543. data/mod/bootstrap/vendor/select2/dist/js/i18n/nl.js +3 -0
  544. data/mod/bootstrap/vendor/select2/dist/js/i18n/pl.js +3 -0
  545. data/mod/bootstrap/vendor/select2/dist/js/i18n/ps.js +3 -0
  546. data/mod/bootstrap/vendor/select2/dist/js/i18n/pt-BR.js +3 -0
  547. data/mod/bootstrap/vendor/select2/dist/js/i18n/pt.js +3 -0
  548. data/mod/bootstrap/vendor/select2/dist/js/i18n/ro.js +3 -0
  549. data/mod/bootstrap/vendor/select2/dist/js/i18n/ru.js +3 -0
  550. data/mod/bootstrap/vendor/select2/dist/js/i18n/sk.js +3 -0
  551. data/mod/bootstrap/vendor/select2/dist/js/i18n/sl.js +3 -0
  552. data/mod/bootstrap/vendor/select2/dist/js/i18n/sr-Cyrl.js +3 -0
  553. data/mod/bootstrap/vendor/select2/dist/js/i18n/sr.js +3 -0
  554. data/mod/bootstrap/vendor/select2/dist/js/i18n/sv.js +3 -0
  555. data/mod/bootstrap/vendor/select2/dist/js/i18n/th.js +3 -0
  556. data/mod/bootstrap/vendor/select2/dist/js/i18n/tr.js +3 -0
  557. data/mod/bootstrap/vendor/select2/dist/js/i18n/uk.js +3 -0
  558. data/mod/bootstrap/vendor/select2/dist/js/i18n/vi.js +3 -0
  559. data/mod/bootstrap/vendor/select2/dist/js/i18n/zh-CN.js +3 -0
  560. data/mod/bootstrap/vendor/select2/dist/js/i18n/zh-TW.js +3 -0
  561. data/mod/bootstrap/vendor/select2/dist/js/select2.full.js +6457 -0
  562. data/mod/bootstrap/vendor/select2/dist/js/select2.full.min.js +1 -0
  563. data/mod/bootstrap/{lib/javascript/script_select2.js → vendor/select2/dist/js/select2.js} +90 -69
  564. data/mod/bootstrap/vendor/select2/dist/js/select2.min.js +1 -0
  565. data/mod/bootstrap/vendor/select2/docs/README.md +1 -0
  566. data/mod/bootstrap/vendor/select2/docs/announcements-4.0.html +12 -0
  567. data/mod/bootstrap/vendor/select2/docs/community.html +12 -0
  568. data/mod/bootstrap/vendor/select2/docs/examples.html +12 -0
  569. data/mod/bootstrap/vendor/select2/docs/index.html +12 -0
  570. data/mod/bootstrap/vendor/select2/docs/options-old.html +12 -0
  571. data/mod/bootstrap/vendor/select2/docs/options.html +12 -0
  572. data/mod/bootstrap/vendor/select2/package.json +73 -0
  573. data/mod/bootstrap/vendor/select2/select2.jquery.json +32 -0
  574. data/mod/bootstrap/vendor/select2/src/js/banner.end.js +6 -0
  575. data/mod/bootstrap/vendor/select2/src/js/banner.start.js +6 -0
  576. data/mod/bootstrap/vendor/select2/src/js/jquery.mousewheel.shim.js +6 -0
  577. data/mod/bootstrap/vendor/select2/src/js/jquery.select2.js +57 -0
  578. data/mod/bootstrap/vendor/select2/src/js/jquery.shim.js +14 -0
  579. data/mod/bootstrap/vendor/select2/src/js/select2/compat/containerCss.js +56 -0
  580. data/mod/bootstrap/vendor/select2/src/js/select2/compat/dropdownCss.js +56 -0
  581. data/mod/bootstrap/vendor/select2/src/js/select2/compat/initSelection.js +42 -0
  582. data/mod/bootstrap/vendor/select2/src/js/select2/compat/inputData.js +127 -0
  583. data/mod/bootstrap/vendor/select2/src/js/select2/compat/matcher.js +42 -0
  584. data/mod/bootstrap/vendor/select2/src/js/select2/compat/query.js +26 -0
  585. data/mod/bootstrap/vendor/select2/src/js/select2/compat/utils.js +43 -0
  586. data/mod/bootstrap/vendor/select2/src/js/select2/core.js +612 -0
  587. data/mod/bootstrap/vendor/select2/src/js/select2/data/ajax.js +109 -0
  588. data/mod/bootstrap/vendor/select2/src/js/select2/data/array.js +79 -0
  589. data/mod/bootstrap/vendor/select2/src/js/select2/data/base.js +40 -0
  590. data/mod/bootstrap/vendor/select2/src/js/select2/data/maximumInputLength.js +31 -0
  591. data/mod/bootstrap/vendor/select2/src/js/select2/data/maximumSelectionLength.js +31 -0
  592. data/mod/bootstrap/vendor/select2/src/js/select2/data/minimumInputLength.js +30 -0
  593. data/mod/bootstrap/vendor/select2/src/js/select2/data/select.js +285 -0
  594. data/mod/bootstrap/vendor/select2/src/js/select2/data/tags.js +128 -0
  595. data/mod/bootstrap/vendor/select2/src/js/select2/data/tokenizer.js +116 -0
  596. data/mod/bootstrap/vendor/select2/src/js/select2/defaults.js +396 -0
  597. data/mod/bootstrap/vendor/select2/src/js/select2/diacritics.js +847 -0
  598. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown.js +42 -0
  599. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/attachBody.js +222 -0
  600. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/attachContainer.js +18 -0
  601. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/closeOnSelect.js +35 -0
  602. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/hidePlaceholder.js +42 -0
  603. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/infiniteScroll.js +89 -0
  604. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/minimumResultsForSearch.js +39 -0
  605. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/search.js +101 -0
  606. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/selectOnClose.js +50 -0
  607. data/mod/bootstrap/vendor/select2/src/js/select2/dropdown/stopPropagation.js +38 -0
  608. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/af.js +44 -0
  609. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ar.js +30 -0
  610. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/az.js +27 -0
  611. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/bg.js +47 -0
  612. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/bs.js +55 -0
  613. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ca.js +52 -0
  614. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/cs.js +61 -0
  615. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/da.js +36 -0
  616. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/de.js +40 -0
  617. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/dsb.js +48 -0
  618. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/el.js +52 -0
  619. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/en.js +44 -0
  620. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/es.js +52 -0
  621. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/et.js +53 -0
  622. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/eu.js +51 -0
  623. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/fa.js +38 -0
  624. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/fi.js +30 -0
  625. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/fr.js +33 -0
  626. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/gl.js +39 -0
  627. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/he.js +56 -0
  628. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hi.js +39 -0
  629. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hr.js +44 -0
  630. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hsb.js +48 -0
  631. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hu.js +30 -0
  632. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/hy.js +38 -0
  633. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/id.js +30 -0
  634. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/is.js +41 -0
  635. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/it.js +48 -0
  636. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ja.js +36 -0
  637. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/km.js +36 -0
  638. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ko.js +36 -0
  639. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/lt.js +52 -0
  640. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/lv.js +51 -0
  641. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/mk.js +47 -0
  642. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ms.js +30 -0
  643. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/nb.js +32 -0
  644. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/nl.js +43 -0
  645. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/pl.js +45 -0
  646. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ps.js +45 -0
  647. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/pt-BR.js +46 -0
  648. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/pt.js +40 -0
  649. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ro.js +46 -0
  650. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/ru.js +58 -0
  651. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sk.js +59 -0
  652. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sl.js +54 -0
  653. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sr-Cyrl.js +55 -0
  654. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sr.js +55 -0
  655. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/sv.js +37 -0
  656. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/th.js +36 -0
  657. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/tr.js +36 -0
  658. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/uk.js +43 -0
  659. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/vi.js +37 -0
  660. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/zh-CN.js +36 -0
  661. data/mod/bootstrap/vendor/select2/src/js/select2/i18n/zh-TW.js +33 -0
  662. data/mod/bootstrap/vendor/select2/src/js/select2/keys.js +25 -0
  663. data/mod/bootstrap/vendor/select2/src/js/select2/options.js +122 -0
  664. data/mod/bootstrap/vendor/select2/src/js/select2/results.js +523 -0
  665. data/mod/bootstrap/vendor/select2/src/js/select2/selection/allowClear.js +97 -0
  666. data/mod/bootstrap/vendor/select2/src/js/select2/selection/base.js +158 -0
  667. data/mod/bootstrap/vendor/select2/src/js/select2/selection/clickMask.js +29 -0
  668. data/mod/bootstrap/vendor/select2/src/js/select2/selection/eventRelay.js +45 -0
  669. data/mod/bootstrap/vendor/select2/src/js/select2/selection/multiple.js +109 -0
  670. data/mod/bootstrap/vendor/select2/src/js/select2/selection/placeholder.js +49 -0
  671. data/mod/bootstrap/vendor/select2/src/js/select2/selection/search.js +222 -0
  672. data/mod/bootstrap/vendor/select2/src/js/select2/selection/single.js +99 -0
  673. data/mod/bootstrap/vendor/select2/src/js/select2/selection/stopPropagation.js +38 -0
  674. data/mod/bootstrap/vendor/select2/src/js/select2/translation.js +36 -0
  675. data/mod/bootstrap/vendor/select2/src/js/select2/utils.js +276 -0
  676. data/mod/bootstrap/vendor/select2/src/js/wrapper.end.js +12 -0
  677. data/mod/bootstrap/vendor/select2/src/js/wrapper.start.js +38 -0
  678. data/mod/bootstrap/vendor/select2/src/scss/_dropdown.scss +73 -0
  679. data/mod/bootstrap/vendor/select2/src/scss/_multiple.scss +35 -0
  680. data/mod/bootstrap/vendor/select2/src/scss/_single.scss +34 -0
  681. data/mod/bootstrap/vendor/select2/src/scss/core.scss +48 -0
  682. data/mod/bootstrap/vendor/select2/src/scss/mixins/_gradients.scss +13 -0
  683. data/mod/bootstrap/vendor/select2/src/scss/theme/classic/_defaults.scss +34 -0
  684. data/mod/bootstrap/vendor/select2/src/scss/theme/classic/_multiple.scss +93 -0
  685. data/mod/bootstrap/vendor/select2/src/scss/theme/classic/_single.scss +124 -0
  686. data/mod/bootstrap/vendor/select2/src/scss/theme/classic/layout.scss +64 -0
  687. data/mod/bootstrap/vendor/select2/src/scss/theme/default/_multiple.scss +98 -0
  688. data/mod/bootstrap/vendor/select2/src/scss/theme/default/_single.scss +83 -0
  689. data/mod/bootstrap/vendor/select2/src/scss/theme/default/layout.scss +97 -0
  690. data/mod/bootstrap/vendor/select2/tests/a11y/search-tests.js +51 -0
  691. data/mod/bootstrap/vendor/select2/tests/a11y/selection-tests.js +154 -0
  692. data/mod/bootstrap/vendor/select2/tests/data/array-tests.js +318 -0
  693. data/mod/bootstrap/vendor/select2/tests/data/base-tests.js +29 -0
  694. data/mod/bootstrap/vendor/select2/tests/data/inputData-tests.js +158 -0
  695. data/mod/bootstrap/vendor/select2/tests/data/maximumInputLength-tests.js +138 -0
  696. data/mod/bootstrap/vendor/select2/tests/data/maximumSelectionLength-tests.js +202 -0
  697. data/mod/bootstrap/vendor/select2/tests/data/minimumInputLength-tests.js +138 -0
  698. data/mod/bootstrap/vendor/select2/tests/data/select-tests.js +489 -0
  699. data/mod/bootstrap/vendor/select2/tests/data/tags-tests.js +276 -0
  700. data/mod/bootstrap/vendor/select2/tests/data/tokenizer-tests.js +219 -0
  701. data/mod/bootstrap/vendor/select2/tests/dropdown/dropdownCss-tests.js +104 -0
  702. data/mod/bootstrap/vendor/select2/tests/dropdown/positioning-tests.js +177 -0
  703. data/mod/bootstrap/vendor/select2/tests/dropdown/selectOnClose-tests.js +137 -0
  704. data/mod/bootstrap/vendor/select2/tests/dropdown/stopPropagation-tests.js +33 -0
  705. data/mod/bootstrap/vendor/select2/tests/helpers.js +46 -0
  706. data/mod/bootstrap/vendor/select2/tests/integration.html +21 -0
  707. data/mod/bootstrap/vendor/select2/tests/integration/dom-changes.js +257 -0
  708. data/mod/bootstrap/vendor/select2/tests/integration/jquery-calls.js +30 -0
  709. data/mod/bootstrap/vendor/select2/tests/integration/select2-methods.js +139 -0
  710. data/mod/bootstrap/vendor/select2/tests/options/ajax-tests.js +32 -0
  711. data/mod/bootstrap/vendor/select2/tests/options/data-tests.js +44 -0
  712. data/mod/bootstrap/vendor/select2/tests/options/deprecated-tests.js +250 -0
  713. data/mod/bootstrap/vendor/select2/tests/options/translation-tests.js +28 -0
  714. data/mod/bootstrap/vendor/select2/tests/options/width-tests.js +66 -0
  715. data/mod/bootstrap/vendor/select2/tests/results/focusing-tests.js +138 -0
  716. data/mod/bootstrap/vendor/select2/tests/selection/allowClear-tests.js +218 -0
  717. data/mod/bootstrap/vendor/select2/tests/selection/containerCss-tests.js +104 -0
  718. data/mod/bootstrap/vendor/select2/tests/selection/multiple-tests.js +149 -0
  719. data/mod/bootstrap/vendor/select2/tests/selection/placeholder-tests.js +74 -0
  720. data/mod/bootstrap/vendor/select2/tests/selection/search-tests.js +191 -0
  721. data/mod/bootstrap/vendor/select2/tests/selection/single-tests.js +117 -0
  722. data/mod/bootstrap/vendor/select2/tests/selection/stopPropagation-tests.js +33 -0
  723. data/mod/bootstrap/vendor/select2/tests/unit.html +95 -0
  724. data/mod/bootstrap/vendor/select2/tests/utils/decorator-tests.js +189 -0
  725. data/mod/bootstrap/vendor/select2/tests/utils/escapeMarkup-tests.js +36 -0
  726. data/mod/bootstrap/vendor/select2/tests/vendor/jquery-1.7.2.js +9404 -0
  727. data/mod/bootstrap/vendor/select2/tests/vendor/qunit-1.23.1.css +305 -0
  728. data/mod/bootstrap/vendor/select2/tests/vendor/qunit-1.23.1.js +4334 -0
  729. data/mod/bootstrap/vendor/select2/vendor/jquery-2.1.0.js +9111 -0
  730. data/mod/carrierwave/lib/carrier_wave/cardmount.rb +6 -1
  731. data/mod/carrierwave/lib/carrier_wave/file_card_uploader.rb +4 -0
  732. data/mod/carrierwave/set/abstract/attachment.rb +13 -6
  733. data/mod/carrierwave/set/abstract/attachment/storage_type.rb +15 -12
  734. data/mod/carrierwave/set/abstract/attachment/upload_cache.rb +2 -3
  735. data/mod/carrierwave/set/type/file.rb +17 -17
  736. data/mod/carrierwave/set/type/image.rb +40 -37
  737. data/mod/carrierwave/spec/set/type/file_spec.rb +15 -15
  738. data/mod/carrierwave/spec/set/type/image_spec.rb +3 -3
  739. data/mod/core/chunk/reference.rb +3 -3
  740. data/mod/core/chunk/view_stub.rb +12 -4
  741. data/mod/core/format/html_format.rb +1 -1
  742. data/mod/core/format/text_format.rb +5 -0
  743. data/mod/core/set/abstract/code_file.rb +8 -3
  744. data/mod/core/set/all/actify.rb +8 -50
  745. data/mod/core/set/all/assign_attributes.rb +1 -1
  746. data/mod/core/set/all/cache.rb +1 -1
  747. data/mod/core/set/all/collection.rb +7 -7
  748. data/mod/core/set/all/content.rb +12 -6
  749. data/mod/core/set/all/fetch.rb +23 -15
  750. data/mod/core/set/all/fetch_helper.rb +11 -9
  751. data/mod/core/set/all/haml.rb +4 -0
  752. data/mod/core/set/all/initialize.rb +2 -2
  753. data/mod/core/set/all/mark.rb +17 -35
  754. data/mod/core/set/all/name.rb +25 -25
  755. data/mod/core/set/all/name_validations.rb +6 -6
  756. data/mod/core/set/all/permissions.rb +1 -1
  757. data/mod/core/set/all/phases.rb +3 -3
  758. data/mod/core/set/all/references.rb +4 -4
  759. data/mod/core/set/all/rename.rb +6 -7
  760. data/mod/core/set/all/rules.rb +2 -2
  761. data/mod/core/set/all/stages.rb +2 -11
  762. data/mod/core/set/all/subcards.rb +1 -1
  763. data/mod/core/set/all/templating.rb +4 -4
  764. data/mod/core/set/all/type.rb +2 -2
  765. data/mod/core/set/all/update_read_rules.rb +2 -56
  766. data/mod/core/set_pattern/04_star.rb +1 -1
  767. data/mod/core/set_pattern/05_rstar.rb +1 -1
  768. data/mod/core/set_pattern/06_right.rb +1 -1
  769. data/mod/core/set_pattern/07_type_plus_right.rb +2 -3
  770. data/mod/core/spec/format/html_format_spec.rb +4 -4
  771. data/mod/core/spec/set/all/actify_spec.rb +107 -42
  772. data/mod/core/spec/set/all/event_conditions_spec.rb +1 -1
  773. data/mod/core/spec/set/all/fetch_spec.rb +57 -13
  774. data/mod/core/spec/set/all/name_spec.rb +1 -1
  775. data/mod/core/spec/set/all/permissions/reader_rules_spec.rb +1 -1
  776. data/mod/core/spec/set/all/permissions_spec.rb +2 -2
  777. data/mod/core/spec/set/all/rename_spec.rb +7 -5
  778. data/mod/core/spec/set/all/templating_spec.rb +5 -5
  779. data/mod/core/spec/set/all/type_spec.rb +1 -1
  780. data/mod/developer/set/all/event_viz.rb +1 -3
  781. data/mod/history/lib/card/act.rb +2 -6
  782. data/mod/history/lib/card/act/act_renderer.rb +6 -11
  783. data/mod/history/lib/card/action/action_renderer.rb +1 -1
  784. data/mod/history/lib/card/change.rb +1 -1
  785. data/mod/history/set/all/action_view.rb +1 -1
  786. data/mod/history/set/all/actions.rb +10 -1
  787. data/mod/history/set/all/content_history.rb +9 -9
  788. data/mod/history/set/all/history.rb +40 -27
  789. data/mod/machines/lib/javascript/decko.js.coffee +1 -1
  790. data/mod/machines/lib/javascript/decko_filter.js.coffee +40 -0
  791. data/mod/machines/lib/javascript/decko_layout.js.coffee +16 -8
  792. data/mod/machines/lib/stylesheets/style_cards.scss +9 -0
  793. data/mod/machines/set/abstract/machine.rb +12 -9
  794. data/mod/machines/set/abstract/script.rb +4 -0
  795. data/mod/machines/set/self/script_slot.rb +2 -1
  796. data/mod/machines/set/type/css.rb +4 -0
  797. data/mod/machines/spec/set/type/skin_spec.rb +2 -2
  798. data/mod/machines/spec/shared_examples/machine_input.rb +3 -3
  799. data/mod/notifications/format/email_html_format.rb +4 -0
  800. data/mod/notifications/set/all/follow.rb +1 -1
  801. data/mod/notifications/set/all/send_notifications.rb +18 -17
  802. data/mod/notifications/set/right/bcc.rb +1 -1
  803. data/mod/notifications/set/right/follow.rb +3 -3
  804. data/mod/notifications/set/right/followers.rb +1 -1
  805. data/mod/notifications/set/right/following.rb +2 -2
  806. data/mod/notifications/set/right/html_message.rb +0 -5
  807. data/mod/notifications/set/right/text_message.rb +0 -5
  808. data/mod/notifications/set/self/follow_defaults.rb +3 -3
  809. data/mod/notifications/set/type_plus_right/user/follow.rb +1 -1
  810. data/mod/notifications/spec/set/right/followers_spec.rb +1 -1
  811. data/mod/pointer/set/abstract/01_paging.rb +1 -1
  812. data/mod/pointer/set/abstract/02_pointer.rb +2 -2
  813. data/mod/pointer/set/abstract/02_pointer/edit.rb +10 -8
  814. data/mod/pointer/set/abstract/code_pointer.rb +1 -1
  815. data/mod/pointer/set/self/input_options.rb +1 -1
  816. data/mod/pointer/spec/set/type/pointer_spec.rb +1 -1
  817. data/mod/prosemirror_editor/set/abstract/prosemirror_editor.rb +1 -1
  818. data/mod/{standard → search}/set/abstract/01_search_params.rb +0 -0
  819. data/mod/{standard → search}/set/abstract/search.rb +1 -1
  820. data/mod/{standard → search}/set/abstract/wql_search.rb +2 -2
  821. data/mod/search/set/all/filter.rb +12 -0
  822. data/mod/{standard → search}/set/self/navbox.rb +1 -1
  823. data/mod/{standard → search}/set/self/recent.rb +1 -1
  824. data/mod/{standard → search}/set/self/search.rb +2 -2
  825. data/mod/{standard → search}/set/type/search_type.rb +2 -2
  826. data/mod/search/spec/set/all/filter_spec.rb +37 -0
  827. data/mod/{standard → search}/spec/set/self/navbox_spec.rb +0 -0
  828. data/mod/{standard → search}/spec/set/self/recent_spec.rb +0 -0
  829. data/mod/{standard → search}/spec/set/self/search_spec.rb +0 -0
  830. data/mod/search/template/all/filter/_filter_input.haml +8 -0
  831. data/mod/search/template/all/filter/filter_form.haml +32 -0
  832. data/mod/settings/lib/card/setting.rb +11 -11
  833. data/mod/settings/set/abstract/permission.rb +3 -3
  834. data/mod/settings/set/right/read.rb +56 -0
  835. data/mod/settings/set/type/setting.rb +1 -1
  836. data/mod/solid_cache/set/right/solid_cache.rb +1 -1
  837. data/mod/standard/set/abstract/toolbar_split_button.rb +1 -1
  838. data/mod/standard/set/all/error.rb +1 -1
  839. data/mod/standard/set/all/links.rb +3 -3
  840. data/mod/standard/set/all/list_changes.rb +7 -3
  841. data/mod/standard/set/all/rich_html/content.rb +17 -17
  842. data/mod/standard/set/all/rich_html/editing.rb +3 -3
  843. data/mod/standard/set/all/rich_html/editor.rb +1 -1
  844. data/mod/standard/set/all/rich_html/form.rb +2 -2
  845. data/mod/standard/set/all/rich_html/formgroup.rb +1 -1
  846. data/mod/standard/set/all/rich_html/header.rb +3 -3
  847. data/mod/standard/set/all/rich_html/menu.rb +7 -7
  848. data/mod/standard/set/all/rich_html/modal.rb +3 -3
  849. data/mod/standard/set/all/rich_html/new.rb +3 -3
  850. data/mod/standard/set/all/rich_html/toolbar.rb +16 -14
  851. data/mod/standard/set/all/rich_html/wrapper.rb +7 -7
  852. data/mod/standard/set/rstar/rules.rb +5 -5
  853. data/mod/standard/set/rstar/rules_editor.rb +5 -5
  854. data/mod/standard/set/type/cardtype.rb +1 -1
  855. data/mod/standard/set/type/list.rb +6 -6
  856. data/mod/standard/set/type/listed_by.rb +29 -24
  857. data/mod/standard/set/type/session.rb +0 -4
  858. data/mod/standard/set/type/set.rb +23 -26
  859. data/mod/standard/set/type/toggle.rb +2 -2
  860. data/mod/standard/spec/set/all/history_spec.rb +1 -0
  861. data/mod/standard/spec/set/all/rich_html/editing_spec.rb +1 -1
  862. data/mod/standard/spec/set/all/rich_html/wrapper_spec.rb +2 -2
  863. data/mod/standard/spec/set/type/list_spec.rb +7 -3
  864. data/mod/standard/spec/set/type/listed_by_spec.rb +3 -2
  865. data/mod/standard/spec/set/type/uri_spec.rb +8 -8
  866. data/spec/config/initializers/core_extensions_spec.rb +2 -2
  867. data/spec/lib/card/cache_spec.rb +3 -3
  868. data/spec/lib/card/codename_spec.rb +40 -2
  869. data/spec/lib/card/format_spec.rb +6 -6
  870. data/spec/lib/card/query_spec.rb +0 -2
  871. data/spec/lib/card/reference_spec.rb +3 -3
  872. data/spec/lib/card/stage_director_spec.rb +52 -17
  873. data/spec/lib/card/success_spec.rb +1 -1
  874. data/spec/models/card/trash_spec.rb +1 -1
  875. data/spec/models/card_spec.rb +3 -3
  876. data/spec/support/helper/event_helper.rb +14 -0
  877. data/spec/support/helper/render_helper.rb +1 -1
  878. data/spec/support/matchers/card_matchers.rb +7 -9
  879. metadata +643 -111
  880. data/lib/active_record/connection_adapters_ext.rb +0 -52
  881. data/lib/active_support/callbacks_ext.rb +0 -9
  882. data/lib/card/name/view_name.rb +0 -50
  883. data/mod/bootstrap/db/migrate_cards/20170719163701_update_bootswatch_themes.rb +0 -80
  884. data/mod/bootstrap/lib/javascript/bootstrap.js +0 -3535
  885. data/mod/bootstrap/lib/javascript/bootstrap.min.js +0 -7
  886. data/mod/bootstrap/lib/javascript/select2.min.js +0 -3
  887. data/mod/bootstrap/lib/javascript/tether.min.js +0 -1
  888. data/mod/bootstrap/lib/stylesheets/bootstrap.css +0 -9320
  889. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/.scss-lint.yml +0 -548
  890. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_alert.scss +0 -55
  891. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_badge.scss +0 -77
  892. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_breadcrumb.scss +0 -38
  893. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_buttons.scss +0 -170
  894. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_card.scss +0 -276
  895. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_carousel.scss +0 -178
  896. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_close.scss +0 -31
  897. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_code.scss +0 -64
  898. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_custom-forms.scss +0 -263
  899. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_custom.scss +0 -4
  900. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_dropdown.scss +0 -161
  901. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_forms.scss +0 -388
  902. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_grid.scss +0 -52
  903. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_images.scss +0 -43
  904. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_input-group.scss +0 -178
  905. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_jumbotron.scss +0 -20
  906. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_list-group.scss +0 -141
  907. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_media.scss +0 -8
  908. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_mixins.scss +0 -57
  909. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_modal.scss +0 -142
  910. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_nav.scss +0 -119
  911. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_navbar.scss +0 -268
  912. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_normalize.scss +0 -461
  913. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_pagination.scss +0 -67
  914. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_popover.scss +0 -171
  915. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_print.scss +0 -119
  916. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_progress.scss +0 -32
  917. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_reboot.scss +0 -389
  918. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_tables.scss +0 -153
  919. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_tooltip.scss +0 -90
  920. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_transitions.scss +0 -34
  921. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_type.scss +0 -143
  922. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_utilities.scss +0 -13
  923. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/_variables.scss +0 -961
  924. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/bootstrap-grid.scss +0 -43
  925. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/bootstrap-reboot.scss +0 -10
  926. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/bootstrap.scss +0 -54
  927. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_alert.scss +0 -14
  928. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_background-variant.scss +0 -12
  929. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_badge.scss +0 -11
  930. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_border-radius.scss +0 -35
  931. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_breakpoints.scss +0 -95
  932. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_buttons.scss +0 -86
  933. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_cards.scss +0 -47
  934. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_clearfix.scss +0 -7
  935. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_float.scss +0 -9
  936. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_forms.scss +0 -79
  937. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_gradients.scss +0 -37
  938. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_grid-framework.scss +0 -65
  939. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_grid.scss +0 -100
  940. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_hover.scss +0 -60
  941. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_image.scss +0 -36
  942. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_list-group.scss +0 -28
  943. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_lists.scss +0 -7
  944. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_pagination.scss +0 -21
  945. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_screen-reader.scss +0 -32
  946. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_size.scss +0 -6
  947. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_table-row.scss +0 -30
  948. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_text-emphasis.scss +0 -12
  949. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_text-hide.scss +0 -8
  950. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_transforms.scss +0 -14
  951. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/mixins/_visibility.scss +0 -5
  952. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_align.scss +0 -6
  953. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_background.scss +0 -19
  954. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_borders.scss +0 -37
  955. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_clearfix.scss +0 -3
  956. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_display.scss +0 -18
  957. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_flex.scss +0 -48
  958. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_float.scss +0 -9
  959. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_position.scss +0 -23
  960. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_screenreaders.scss +0 -11
  961. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_sizing.scss +0 -10
  962. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_spacing.scss +0 -43
  963. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_text.scss +0 -61
  964. data/mod/bootstrap/lib/stylesheets/bootstrap/scss/utilities/_visibility.scss +0 -55
  965. data/mod/bootstrap/lib/stylesheets/select2-boostrap-v4-alpha-6.scss +0 -828
@@ -34,7 +34,7 @@ describe Card::Set::Right::Email do
34
34
  it "downcases email" do
35
35
  Card::Auth.as_bot do
36
36
  @email_card.update_attributes! content: "QuIrE@example.com"
37
- expect(@email_card.content).to eq("quire@example.com")
37
+ expect(@email_card.db_content).to eq("quire@example.com")
38
38
  end
39
39
  end
40
40
 
@@ -27,7 +27,7 @@ describe Card::Set::Right::Password do
27
27
  pw_card = acct.password_card
28
28
  pw_card.content = ""
29
29
  pw_card.save
30
- expect(original_pw).to eq(pw_card.refresh(_force = true).content)
30
+ expect(original_pw).to eq(pw_card.refresh(_force = true).db_content)
31
31
  end
32
32
 
33
33
  it "does not break email editing" do
@@ -2,5 +2,5 @@
2
2
 
3
3
  describe Card::Set::Right::Salt do
4
4
  # not used yet.
5
- # when used this should confirm that raw_content and raw view are different.
5
+ # when used this should confirm that content and raw view are different.
6
6
  end
@@ -7,7 +7,7 @@ describe Card::Set::Type::Signup do
7
7
 
8
8
  context "signup form form" do
9
9
  subject do
10
- Card.new(type_id: Card::SignupID).format.render :new
10
+ Card.new(type_id: Card::SignupID).format.render! :new
11
11
  end
12
12
 
13
13
  it "prompts to signup" do
@@ -9,10 +9,9 @@ class Card
9
9
  "text/css"
10
10
  end
11
11
 
12
- def view_caching?
12
+ def self.view_caching?
13
13
  false
14
14
  end
15
-
16
15
  end
17
16
  end
18
17
  end
@@ -9,7 +9,7 @@ class Card
9
9
  "text/comma-separated-values"
10
10
  end
11
11
 
12
- def view_caching?
12
+ def self.view_caching?
13
13
  # TODO: make view caching handle non-strings
14
14
  # (specifically stub_render)
15
15
  false
@@ -5,6 +5,10 @@ class Card
5
5
  class JsFormat < Format
6
6
  register :js
7
7
 
8
+ def self.view_caching?
9
+ false
10
+ end
11
+
8
12
  def mime_type
9
13
  "text/javascript"
10
14
  end
@@ -6,11 +6,11 @@ format :css do
6
6
 
7
7
  def show view, args
8
8
  view ||= :content
9
- render view, args
9
+ render! view, args
10
10
  end
11
11
 
12
12
  view :titled do |args|
13
- major_comment(%( Style Card: "#{card.name}" )) + _render_core(args)
13
+ major_comment(%( Style Card: \\"#{card.name}\\" )) + _render_core(args)
14
14
  end
15
15
 
16
16
  view :content do |args|
@@ -26,7 +26,7 @@ format :css do
26
26
  end
27
27
 
28
28
  view :url, perms: :none do
29
- page_path card.cardname, format: :css
29
+ page_path card.name, format: :css
30
30
  end
31
31
 
32
32
  def major_comment comment, char="-"
@@ -5,6 +5,6 @@ format :js do
5
5
  end
6
6
 
7
7
  view :include_tag do |_args|
8
- %(\n#{javascript_include_tag page_path(card.cardname)}\n )
8
+ %(\n#{javascript_include_tag page_path(card.name)}\n )
9
9
  end
10
10
  end
@@ -1,12 +1,12 @@
1
1
  format do
2
2
  def show view, args
3
3
  view ||= :core
4
- render view, args
4
+ render! view, args.merge(main_nest_options)
5
5
  end
6
6
 
7
7
  # NAME VIEWS
8
8
  view :name, closed: true, perms: :none do
9
- name_variant card.cardname
9
+ name_variant card.name
10
10
  end
11
11
 
12
12
  def name_variant name
@@ -14,7 +14,7 @@ format do
14
14
  end
15
15
 
16
16
  view(:key, closed: true, perms: :none) { card.key }
17
- view(:linkname, closed: true, perms: :none) { card.cardname.url_key }
17
+ view(:linkname, closed: true, perms: :none) { card.name.url_key }
18
18
  view(:url, closed: true, perms: :none) { card_url _render_linkname }
19
19
 
20
20
  view :title, closed: true, perms: :none do
@@ -67,7 +67,7 @@ format do
67
67
 
68
68
  view :raw do
69
69
  scard = voo.structure ? Card[voo.structure] : card
70
- scard ? scard.raw_content : _render_blank
70
+ scard ? scard.content : _render_blank
71
71
  end
72
72
 
73
73
  view :core, closed: true do
@@ -142,7 +142,7 @@ format do
142
142
 
143
143
  def on_type_set
144
144
  return unless
145
- (tmpl_set_name = parent.card.cardname.trunk_name) &&
145
+ (tmpl_set_name = parent.card.name.trunk_name) &&
146
146
  (tmpl_set_class_name = tmpl_set_name.tag_name) &&
147
147
  (tmpl_set_class_card = Card[tmpl_set_class_name]) &&
148
148
  (tmpl_set_class_card.codename == :type)
@@ -15,7 +15,7 @@ format :json do
15
15
 
16
16
  def show view, args
17
17
  view ||= :content
18
- raw = render view, args
18
+ raw = render! view, args
19
19
  return raw if raw.is_a? String
20
20
  method = params[:compress] ? :generate : :pretty_generate
21
21
  JSON.send method, raw
@@ -48,7 +48,7 @@ format :json do
48
48
  view :status, tags: :unknown_ok, perms: :none, cache: :never do
49
49
  status = card.state
50
50
  hash = { key: card.key,
51
- url_key: card.cardname.url_key,
51
+ url_key: card.name.url_key,
52
52
  status: status }
53
53
  hash[:id] = card.id if status == :real
54
54
  hash
@@ -62,7 +62,7 @@ format :json do
62
62
 
63
63
  view :atom, cache: :never do
64
64
  h = { name: card.name, type: card.type_name }
65
- h[:content] = card.content unless card.structure
65
+ h[:content] = card.db_content unless card.structure
66
66
  h[:codename] = card.codename if card.codename
67
67
  h[:value] = _render_core if depth < max_depth
68
68
  h
@@ -91,7 +91,7 @@ format :json do
91
91
 
92
92
  def essentials
93
93
  return {} if card.structure
94
- { content: card.content }
94
+ { content: card.db_content }
95
95
  end
96
96
 
97
97
  def request_url
@@ -8,7 +8,7 @@ format :rss do
8
8
 
9
9
  def show view, args
10
10
  view ||= :feed
11
- render view, args
11
+ render! view, args
12
12
  end
13
13
 
14
14
  # FIXME: integrate this with common XML features when it is added
@@ -40,7 +40,7 @@ format :rss do
40
40
  view :feed_item_list, cache: :never do
41
41
  raw_feed_items.each do |item|
42
42
  @xml.item do
43
- subformat(item).render(:feed_item,
43
+ subformat(item).render!(:feed_item,
44
44
  description_view: feed_item_description_view)
45
45
  end
46
46
  end
@@ -66,7 +66,7 @@ format :rss do
66
66
  end
67
67
 
68
68
  def description args
69
- render(args[:description_view] || :open_content)
69
+ render!(args[:description_view] || :open_content)
70
70
  end
71
71
 
72
72
  def feed_item_description_view
@@ -43,7 +43,7 @@ format :html do
43
43
  style_card ||= root.card.rule_card :style
44
44
  @css_path =
45
45
  if params[:debug] == "style"
46
- page_path(style_card.cardname, item: :import, format: :css)
46
+ page_path(style_card.name, item: :import, format: :css)
47
47
  elsif style_card
48
48
  style_card.machine_output_url
49
49
  end
@@ -64,14 +64,19 @@ format :html do
64
64
  end
65
65
 
66
66
  def favicon
67
- %i[favicon logo].each do |name|
68
- if (c = Card[name]) && c.type_id == ImageID && !c.db_content.blank?
69
- href = subformat(c)._render_source size: :small
70
- return %(<link rel="shortcut icon" href="#{href}" />)
67
+ return "" unless favicon_code
68
+ %(<link rel="shortcut icon" href="#{nest favicon_code, view: :source, size: :small}" />)
69
+ end
70
+
71
+ def favicon_code
72
+ @favicon_code ||=
73
+ %i[favicon logo].find do |name|
74
+ icon_card = Card[name]
75
+ icon_card.type_id == ImageID && !icon_card.db_content.blank?
71
76
  end
72
- end
73
77
  end
74
78
 
79
+
75
80
  def universal_edit_button
76
81
  return if root.card.new_record? || !root.card.ok?(:update)
77
82
  href = root.path view: :edit
@@ -84,7 +89,7 @@ format :html do
84
89
  if root.search_params[:vars]
85
90
  root.search_params[:vars].each { |key, val| opts["_#{key}"] = val }
86
91
  end
87
- href = page_path root.card.cardname, opts
92
+ href = page_path root.card.name, opts
88
93
  tag "link", rel: "alternate", type: "application/rss+xml",
89
94
  title: "RSS", href: href
90
95
  end
@@ -0,0 +1,115 @@
1
+ # -*- encoding : utf-8 -*-
2
+
3
+ class UpdateBootswatchThemesTo4Beta < Card::Migration::Core
4
+ def up
5
+ puts "Updating bootstrap themes ..."
6
+ Skin.themes.each do |theme_name|
7
+ puts theme_name
8
+ Skin.new(theme_name).create_or_update
9
+ end
10
+ update_default_bootstrap
11
+ end
12
+
13
+ def update_default_bootstrap
14
+ paths = [Skin.bootstrap_scss_path("functions"),
15
+ Skin.bootstrap_scss_path("variables")]
16
+ puts "Update bootstrap default"
17
+ Skin.new("Bootstrap default")
18
+ .update_scss field_name: "variables", file_name: paths
19
+ puts "Finished"
20
+ end
21
+
22
+ class Skin
23
+ include ::Card::Model::SaveHelper
24
+
25
+ class << self
26
+ def vendor_path
27
+ File.expand_path "../../../vendor", __FILE__
28
+ end
29
+
30
+ def bootstrap_scss_path filename
31
+ File.join vendor_path, "bootstrap", "scss", "_#{filename}.scss"
32
+ end
33
+
34
+ def themes
35
+ json = File.read File.join(vendor_path, "bootswatch", "api", "4.json")
36
+ JSON.parse(json)["themes"].map { |theme| theme["name"] }
37
+ end
38
+ end
39
+
40
+ def initialize theme_name
41
+ @theme_name = theme_name.downcase
42
+ @skin_name = "#{theme_name} skin"
43
+ @skin_codename = @skin_name.downcase.tr(" ", "_")
44
+ end
45
+
46
+ def create_or_update
47
+ Card.exists?(@skin_name) ? update_skin : create_skin
48
+ end
49
+
50
+
51
+ def create_skin
52
+ Card.create! name: @skin_name,
53
+ codename: @skin_codename,
54
+ type_id: Card::SkinID,
55
+ content: "[[themeless bootstrap skin]]\n[[+bootswatch theme]]",
56
+ subcards: {
57
+ "+variables" => scss_args([Skin.bootstrap_scss_path("functions"),
58
+ Skin.bootstrap_scss_path("variables"),
59
+ "variables"]),
60
+ "+style" => scss_args("bootswatch"),
61
+ "+Image" => thumbnail_args
62
+ }
63
+ end
64
+
65
+ def update_skin
66
+ update_scss file_name: [Skin.bootstrap_scss_path("functions"),
67
+ Skin.bootstrap_scss_path("variables"),
68
+ "variables"],
69
+ field_name: "variables"
70
+ update_scss file_name: "bootswatch", field_name: "style"
71
+ update_tumbnail
72
+ end
73
+
74
+ def update_scss file_name:, field_name: file_name
75
+ update_card "#{@skin_name}+#{field_name}", scss_args(file_name)
76
+ end
77
+
78
+ def update_tumbnail
79
+ update_card "#{@skin_name}+Image", thumbnail_args
80
+ end
81
+
82
+ private
83
+
84
+ def scss_args file_name
85
+ paths = Array.wrap(file_name).map { |fn| resource_path(fn) }
86
+ content = paths.map { |p| File.read(p) }.join "\n"
87
+ { type_id: Card::ScssID, content: content }
88
+ end
89
+
90
+ def thumbnail_args
91
+ {
92
+ codename: "#{@skin_codename}_image",
93
+ type_id: Card::ImageID,
94
+ mod: :bootstrap, storage_type: :coded,
95
+ image: File.open(resource_path("thumbnail.png"))
96
+ }
97
+ end
98
+
99
+ def resource_path resource
100
+ resource = "_#{resource}.scss" unless resource.include? "."
101
+ if resource.include? File::SEPARATOR
102
+ resource
103
+ else
104
+ File.join base_resource_dir, resource
105
+ end
106
+ end
107
+
108
+ def base_resource_dir
109
+ File.join Skin.vendor_path, "bootswatch", @theme_name
110
+ # Card::Migration::Core.data_path "b4_beta_themes/#{@theme_name.downcase.tr(" ","_")}"
111
+ end
112
+ end
113
+ end
114
+
115
+
@@ -6,13 +6,13 @@ class Select2 < Card::Migration
6
6
  type_id: Card::JavaScriptID,
7
7
  to: "*all+*script"
8
8
 
9
- add_style"select2",
10
- type_id: Card::CssID,
11
- to: "*all+*style"
12
-
13
- add_style"select2 bootstrap",
14
- type_id: Card::ScssID,
15
- to: "*all+*style"
9
+ # add_style "select2",
10
+ # type_id: Card::CssID,
11
+ # to: "*all+*style"
12
+ #
13
+ # add_style "select2 bootstrap",
14
+ # type_id: Card::ScssID,
15
+ # to: "*all+*style"
16
16
 
17
17
  add_script "load select2",
18
18
  type_id: Card::CoffeeScriptID,
@@ -3,7 +3,7 @@ class Bootstrap
3
3
  class Panel < OldComponent
4
4
  def_div_method :panel, "card"
5
5
  def_div_method :heading, "card-header"
6
- def_div_method :body, "card-block"
6
+ def_div_method :body, "card-body"
7
7
  end
8
8
  end
9
9
  end
@@ -2,6 +2,8 @@ decko.slotReady (slot) ->
2
2
  slot.find('select:not(._no-select2)').each (i) ->
3
3
  $(this).select2()
4
4
 
5
+ $.fn.select2.defaults.set( "theme", "bootstrap" )
6
+
5
7
  # slot.find('.pointer-multiselect').each (i) ->
6
8
  # load_select2($(this))
7
9
  #
@@ -15,6 +15,7 @@ $label_color: #666666;
15
15
  $border_color: #999999;
16
16
  $header_color: #eeeeee;
17
17
  $credit_color: #186886; /* wagn blue */
18
+ $gray-light: #e7e7e7;
18
19
 
19
20
  header {
20
21
  a {
@@ -63,7 +64,7 @@ form {
63
64
 
64
65
 
65
66
  .link-muted {
66
- color: $gray-light;
67
+ color: $gray-light; // FIXME: this should depend on the theme
67
68
  &:hover {
68
69
  color: inherit;
69
70
  }
@@ -130,13 +131,6 @@ body.mceContentBody {
130
131
  padding: 5px !important;
131
132
  margin-bottom: 15px !important;
132
133
  }
133
- .offcanvas-toggle-right {
134
- float: right;
135
- }
136
- .offcanvas-toggle-left {
137
- float: left;
138
- }
139
-
140
134
 
141
135
  /*---------- Card menu ------------*/
142
136
 
@@ -1,19 +1,21 @@
1
+ // The original select2 bootstrap is overriden here using this gist
2
+ // https://gist.github.com/DaleMckeown/82995dcc482650f130a708f11a66a2a6
3
+ // to make it work with bootstrap 4 beta
4
+
1
5
  //
2
6
  // Variables
3
7
  // --------------------------------------------------
4
8
 
9
+
5
10
  // Variables directly translating Bootstrap variables
6
11
  // -------------------------
7
12
 
8
- $s2bs-border-radius-base: $border-radius !default;
9
- $s2bs-border-radius-large: $border-radius-lg !default;
10
- $s2bs-border-radius-small: $border-radius-sm !default;
11
- $s2bs-btn-default-bg: $btn-secondary-bg !default;
12
- $s2bs-btn-default-border: $btn-secondary-border !default;
13
- $s2bs-btn-default-color: $btn-secondary-color !default;
14
- $s2bs-caret-width-base: $caret-width !default;
15
- $s2bs-caret-width-large: $caret-width !default;
16
- $s2bs-cursor-disabled: $cursor-disabled !default;
13
+ $s2bs-border-radius: $border-radius !default;
14
+ $s2bs-border-radius-lg: $border-radius-lg !default;
15
+ $s2bs-border-radius-sm: $border-radius-sm !default;
16
+ $s2bs-btn-bg: theme-color("info") !default;
17
+ $s2bs-btn-border-color: theme-color("info") !default;
18
+ $s2bs-btn-color: $white !default;
17
19
  $s2bs-dropdown-header-color: $dropdown-header-color !default;
18
20
  $s2bs-dropdown-link-active-bg: $dropdown-link-active-bg !default;
19
21
  $s2bs-dropdown-link-active-color: $dropdown-link-active-color !default;
@@ -21,43 +23,46 @@ $s2bs-dropdown-link-disabled-color: $dropdown-link-disabled-color !default;
21
23
  $s2bs-dropdown-link-hover-bg: $dropdown-link-hover-bg !default;
22
24
  $s2bs-dropdown-link-hover-color: $dropdown-link-hover-color !default;
23
25
  $s2bs-font-size-base: $font-size-base !default;
24
- $s2bs-font-size-large: $font-size-lg !default;
25
- $s2bs-font-size-small: $font-size-sm !default;
26
- $s2bs-padding-base-horizontal: $input-padding-x !default;
27
- $s2bs-padding-large-horizontal: $input-padding-x-lg !default;
28
- $s2bs-padding-small-horizontal: $input-padding-x-sm !default;
29
- $s2bs-padding-base-vertical: $input-padding-y !default;
30
- $s2bs-padding-large-vertical: $input-padding-y-lg !default;
31
- $s2bs-padding-small-vertical: $input-padding-y-sm !default;
32
- $s2bs-line-height-base: $input-line-height !default;
33
- $s2bs-line-height-large: $line-height-lg !default;
34
- $s2bs-line-height-small: $line-height-sm !default;
35
- $s2bs-input-bg: $input-bg !default;
36
- $s2bs-input-bg-disabled: $input-bg-disabled !default;
26
+ $s2bs-font-size-lg: $font-size-lg !default;
27
+ $s2bs-font-size-sm: $font-size-sm !default;
37
28
  $s2bs-input-color: $input-color !default;
38
- $s2bs-input-color-placeholder: $input-color-placeholder !default;
29
+ $s2bs-input-bg: $input-bg !default;
39
30
  $s2bs-input-border: $input-border-color !default;
40
- $s2bs-input-border-focus: $input-border-focus !default;
41
- $s2bs-input-border-radius: $border-radius !default;
42
- $s2bs-input-height-base: $input-height !default;
43
- $s2bs-input-height-large: $input-height-lg !default;
44
- $s2bs-input-height-small: $input-height-sm !default;
45
- $s2bs-screen-size-sm: 540px !default;
46
-
31
+ $s2bs-input-border-radius: $input-border-radius !default;
32
+ $s2bs-input-btn-padding-x: $input-btn-padding-x !default;
33
+ $s2bs-input-btn-padding-y: $input-btn-padding-y !default;
34
+ $s2bs-input-btn-padding-x-lg: $input-btn-padding-x-lg !default;
35
+ $s2bs-input-btn-padding-y-lg: $input-btn-padding-y-lg !default;
36
+ $s2bs-input-btn-padding-x-sm: $input-btn-padding-x-sm !default;
37
+ $s2bs-input-btn-padding-y-sm: $input-btn-padding-y-sm !default;
38
+ $s2bs-input-disabled-bg: $input-disabled-bg !default;
39
+ $s2bs-input-focus-border-color: $input-focus-border-color !default;
40
+ $s2bs-input-focus-color: $input-focus-color !default;
41
+ $s2bs-input-height-inner: $input-height-inner !default;
42
+ $s2bs-input-height: $input-height !default;
43
+ $s2bs-input-height-inner-sm: $input-height-inner-sm !default;
44
+ $s2bs-input-height-sm: $input-height-sm !default;
45
+ $s2bs-input-height-inner-lg: $input-height-inner-lg !default;
46
+ $s2bs-input-height-lg: $input-height-lg !default;
47
+ $s2bs-input-placeholder-color: $input-placeholder-color !default;
48
+ $s2bs-line-height-base: $input-btn-line-height !default;
49
+ $s2bs-line-height-lg: $input-btn-line-height-lg !default;
50
+ $s2bs-line-height-sm: $input-btn-line-height-sm !default;
47
51
 
48
52
  // Theme-specific variables
49
53
  // -------------------------
50
-
51
- $s2bs-dropdown-arrow-color: $s2bs-input-color-placeholder !default;
54
+ $s2bs-caret-width: .3rem !default;
55
+ $s2bs-clear-selection-color: $s2bs-input-placeholder-color !default;
56
+ $s2bs-clear-selection-hover-color: $s2bs-btn-color !default;
57
+ $s2bs-dropdown-arrow-color: $s2bs-input-placeholder-color !default;
52
58
  $s2bs-dropdown-box-shadow: 0 6px 12px rgba(0,0,0,.175) !default;
53
59
  $s2bs-dropdown-box-shadow-above: 0px -6px 12px rgba(0,0,0,.175) !default;
54
- $s2bs-clear-selection-color: $s2bs-dropdown-arrow-color !default;
55
- $s2bs-clear-selection-hover-color: $s2bs-btn-default-color !default;
56
- $s2bs-remove-choice-color: $s2bs-input-color-placeholder !default;
57
- $s2bs-remove-choice-hover-color: $s2bs-btn-default-color !default;
58
- $s2bs-selection-choice-border-radius: $s2bs-border-radius-base !default;
59
- $s2bs-dropdown-header-padding-vertical: $s2bs-padding-base-vertical !default;
60
- $s2bs-dropdown-header-font-size: $s2bs-font-size-small !default;
60
+ $s2bs-dropdown-header-font-size: $s2bs-font-size-sm !default;
61
+ $s2bs-dropdown-header-padding-vertical: $s2bs-input-btn-padding-y !default;
62
+ $s2bs-remove-choice-color: $s2bs-btn-color !default;
63
+ $s2bs-remove-choice-hover-color: $s2bs-btn-color !default;
64
+ $s2bs-screen-size-sm: map-get($container-max-widths, "sm") !default;
65
+ $s2bs-selection-choice-border-radius: $s2bs-border-radius !default;
61
66
 
62
67
 
63
68
  // Bootstrap defaults not available as pre-defined variables
@@ -68,65 +73,64 @@ $s2bs-dropdown-header-font-size: $s2bs-font-size-small !default;
68
73
  $s2bs-form-control-default-box-shadow: inset 0 1px 1px rgba(0,0,0,.075) !default;
69
74
 
70
75
  // @see https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/mixins/_forms.scss#L60
71
- $s2bs-form-control-focus-box-shadow: $s2bs-form-control-default-box-shadow, 0 0 8px rgba($s2bs-input-border-focus, 0.6) !default;
76
+ $s2bs-form-control-focus-box-shadow: $s2bs-form-control-default-box-shadow, 0 0 8px rgba($s2bs-input-focus-color, 0.6) !default;
72
77
 
73
78
  // @see https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/_forms.scss#L127
74
79
  $s2bs-form-control-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s !default;
75
80
 
76
81
 
77
-
78
-
79
82
  //
80
83
  // Mixins
81
84
  // --------------------------------------------------
82
85
 
83
86
  // @see https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/_forms.scss#L115
84
87
  @mixin bootstrap-input-defaults {
85
- @include box-shadow($s2bs-form-control-default-box-shadow);
86
- background-color: $s2bs-input-bg;
87
- border: 1px solid $s2bs-input-border;
88
- border-radius: $s2bs-input-border-radius;
89
- color: $s2bs-input-color;
90
- font-size: $s2bs-font-size-base;
88
+ @include box-shadow($s2bs-form-control-default-box-shadow);
89
+ background-color: $s2bs-input-bg;
90
+ border: 1px solid $s2bs-input-border;
91
+ color: $s2bs-input-color;
92
+ font-size: $s2bs-font-size-base;
93
+
94
+ @include border-radius($s2bs-input-border-radius);
91
95
  }
92
96
 
93
97
  // @see http://getbootstrap.com/css/#forms-control-validation
94
98
  // @see https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/_forms.scss#L388
95
99
  @mixin validation-state-focus($color) {
96
- $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($color, 20%);
97
100
 
98
- .select2-dropdown,
99
- .select2-selection {
100
- border-color: $color;
101
- }
101
+ $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($color, 20%);
102
102
 
103
- .select2-container--focus .select2-selection,
104
- .select2-container--open .select2-selection {
105
- @include box-shadow($shadow);
106
- border-color: darken($color, 10%);
107
- }
103
+ .select2-dropdown,
104
+ .select2-selection {
105
+ border-color: $color;
106
+ }
108
107
 
109
- &.select2-drop-active {
110
- border-color: darken($color, 10%);
108
+ .select2-container--focus .select2-selection,
109
+ .select2-container--open .select2-selection {
110
+ @include box-shadow($shadow);
111
+ border-color: darken($color, 10%);
112
+ }
113
+
114
+ &.select2-drop-active {
115
+ border-color: darken($color, 10%);
111
116
 
112
- &.select2-drop.select2-drop-above {
113
- border-top-color: darken($color, 10%);
117
+ &.select2-drop.select2-drop-above {
118
+ border-top-color: darken($color, 10%);
119
+ }
114
120
  }
115
- }
116
121
  }
117
122
 
118
123
  // dropdown arrow when dropdown is open
119
124
  @mixin dropdown-arrow {
120
- .select2-selection--single {
121
- /**
122
- * Make the dropdown arrow point up while the dropdown is visible.
123
- */
124
-
125
- .select2-selection__arrow b {
126
- border-color: transparent transparent $s2bs-dropdown-arrow-color transparent;
127
- border-width: 0 $s2bs-caret-width-large $s2bs-caret-width-large $s2bs-caret-width-large;
125
+ .select2-selection--single {
126
+ /**
127
+ * Make the dropdown arrow point up while the dropdown is visible.
128
+ */
129
+ .select2-selection__arrow b {
130
+ border-color: transparent transparent $s2bs-dropdown-arrow-color transparent;
131
+ border-width: 0 $s2bs-caret-width $s2bs-caret-width $s2bs-caret-width;
132
+ }
128
133
  }
129
- }
130
134
  }
131
135
 
132
136
 
@@ -134,576 +138,493 @@ $s2bs-form-control-transition: border-color ease-in-out .15s, box-shadow ease-in
134
138
 
135
139
 
136
140
  .select2-container--bootstrap {
137
- display: block;
138
-
139
-
140
-
141
-
142
- /*------------------------------------*\
141
+ display: block;
142
+ /*------------------------------------*\
143
143
  #COMMON STYLES
144
144
  \*------------------------------------*/
145
+ .select2-selection {
146
+ @include bootstrap-input-defaults;
147
+ outline: 0;
145
148
 
146
- .select2-selection {
147
- @include bootstrap-input-defaults;
148
- outline: 0;
149
-
150
- &.form-control {
151
- border-radius: $s2bs-border-radius-base;
152
- }
153
- }
154
-
155
-
156
-
157
- /**
158
- * Search field in the Select2 dropdown.
159
- */
160
-
161
- .select2-search--dropdown {
162
- .select2-search__field {
163
- @include bootstrap-input-defaults;
164
- }
165
- }
166
-
167
- /**
168
- * No outline for all search fields - in the dropdown
169
- * and inline in multi Select2s.
170
- */
171
-
172
- .select2-search__field {
173
- outline: 0;
174
-
175
- &::-webkit-input-placeholder {
176
- color: $s2bs-input-color-placeholder;
177
- }
178
-
179
- /* Firefox 18- */
180
- &:-moz-placeholder {
181
- color: $s2bs-input-color-placeholder;
149
+ &.form-control {
150
+ @include border-radius($s2bs-input-border-radius);
151
+ }
182
152
  }
183
-
184
153
  /**
185
- * Firefox 19+
186
- *
187
- * @see http://stackoverflow.com/questions/24236240/color-for-styled-placeholder-text-is-muted-in-firefox
188
- */
189
- &::-moz-placeholder {
190
- color: $s2bs-input-color-placeholder;
191
- opacity: 1;
192
- }
193
-
194
- &:-ms-input-placeholder {
195
- color: $s2bs-input-color-placeholder;
196
- }
197
- }
198
-
199
- /**
200
- * Adjust Select2's choices hover and selected styles to match
201
- * Bootstrap 3's default dropdown styles.
202
- *
203
- * @see http://getbootstrap.com/components/#dropdowns
204
- */
205
-
206
- .select2-results__option {
207
- padding: $s2bs-padding-base-vertical $s2bs-padding-base-horizontal;
208
-
209
- &[role=group] {
210
- padding: 0;
154
+ * Search field in the Select2 dropdown.
155
+ */
156
+ .select2-search--dropdown {
157
+ .select2-search__field {
158
+ @include bootstrap-input-defaults;
159
+ }
211
160
  }
212
-
213
161
  /**
214
- * Disabled results.
215
- *
216
- * @see https://select2.github.io/examples.html#disabled-results
217
- */
218
-
219
- &[aria-disabled=true] {
220
- color: $s2bs-dropdown-link-disabled-color;
221
- cursor: $s2bs-cursor-disabled;
222
- }
162
+ * No outline for all search fields - in the dropdown
163
+ * and inline in multi Select2s.
164
+ */
165
+ .select2-search__field {
166
+ outline: 0;
223
167
 
224
- /**
225
- * Hover state.
226
- */
168
+ &::-webkit-input-placeholder {
169
+ color: $s2bs-input-placeholder-color;
170
+ }
171
+ /* Firefox 18- */
172
+ &:-moz-placeholder {
173
+ color: $s2bs-input-placeholder-color;
174
+ }
175
+ /**
176
+ * Firefox 19+
177
+ *
178
+ * @see http://stackoverflow.com/questions/24236240/color-for-styled-placeholder-text-is-muted-in-firefox
179
+ */
180
+ &::-moz-placeholder {
181
+ color: $s2bs-input-placeholder-color;
182
+ opacity: 1;
183
+ }
227
184
 
228
- &[aria-selected=true] {
229
- background-color: $s2bs-dropdown-link-hover-bg;
230
- color: $s2bs-dropdown-link-hover-color;
185
+ &:-ms-input-placeholder {
186
+ color: $s2bs-input-placeholder-color;
187
+ }
231
188
  }
232
-
233
189
  /**
234
- * Selected state.
235
- */
236
-
237
- &--highlighted[aria-selected] {
238
- background-color: $s2bs-dropdown-link-active-bg;
239
- color: $s2bs-dropdown-link-active-color;
240
- }
241
-
190
+ * Adjust Select2's choices hover and selected styles to match
191
+ * Bootstrap 4's default dropdown styles.
192
+ *
193
+ * @see http://getbootstrap.com/components/#dropdowns
194
+ */
242
195
  .select2-results__option {
243
- padding: $s2bs-padding-base-vertical $s2bs-padding-base-horizontal;
244
-
245
- .select2-results__group {
246
- padding-left: 0;
247
- }
196
+ padding: $s2bs-input-btn-padding-y $s2bs-input-btn-padding-x;
248
197
 
249
- .select2-results__option {
250
- margin-left: -$s2bs-padding-base-horizontal;
251
- padding-left: $s2bs-padding-base-horizontal*2;
198
+ &[role=group] {
199
+ padding: 0;
200
+ }
201
+ /**
202
+ * Disabled results.
203
+ *
204
+ * @see https://select2.github.io/examples.html#disabled-results
205
+ */
206
+ &[aria-disabled=true] {
207
+ color: $s2bs-dropdown-link-disabled-color;
208
+ }
209
+ /**
210
+ * Hover state.
211
+ */
212
+ &[aria-selected=true] {
213
+ background-color: $s2bs-dropdown-link-hover-bg;
214
+ color: $s2bs-dropdown-link-hover-color;
215
+ }
216
+ /**
217
+ * Selected state.
218
+ */
219
+ &--highlighted[aria-selected] {
220
+ background-color: $s2bs-dropdown-link-active-bg;
221
+ color: $s2bs-dropdown-link-active-color;
222
+ }
252
223
 
253
224
  .select2-results__option {
254
- margin-left: -$s2bs-padding-base-horizontal*2;
255
- padding-left: $s2bs-padding-base-horizontal*3;
225
+ padding: $s2bs-input-btn-padding-y $s2bs-input-btn-padding-x;
256
226
 
257
- .select2-results__option {
258
- margin-left: -$s2bs-padding-base-horizontal*3;
259
- padding-left: $s2bs-padding-base-horizontal*4;
227
+ .select2-results__group {
228
+ padding-left: 0;
229
+ }
260
230
 
261
231
  .select2-results__option {
262
- margin-left: -$s2bs-padding-base-horizontal*4;
263
- padding-left: $s2bs-padding-base-horizontal*5;
264
-
265
- .select2-results__option {
266
- margin-left: -$s2bs-padding-base-horizontal*5;
267
- padding-left: $s2bs-padding-base-horizontal*6;
268
- }
232
+ margin-left: -$s2bs-input-btn-padding-x;
233
+ padding-left: $s2bs-input-btn-padding-x*2;
234
+
235
+ .select2-results__option {
236
+ margin-left: -$s2bs-input-btn-padding-x*2;
237
+ padding-left: $s2bs-input-btn-padding-x*3;
238
+
239
+ .select2-results__option {
240
+ margin-left: -$s2bs-input-btn-padding-x*3;
241
+ padding-left: $s2bs-input-btn-padding-x*4;
242
+
243
+ .select2-results__option {
244
+ margin-left: -$s2bs-input-btn-padding-x*4;
245
+ padding-left: $s2bs-input-btn-padding-x*5;
246
+
247
+ .select2-results__option {
248
+ margin-left: -$s2bs-input-btn-padding-x*5;
249
+ padding-left: $s2bs-input-btn-padding-x*6;
250
+ }
251
+ }
252
+ }
253
+ }
269
254
  }
270
- }
271
255
  }
272
- }
273
- }
274
- }
275
-
276
- .select2-results__group {
277
- color: $s2bs-dropdown-header-color;
278
- display: block;
279
- padding: $s2bs-dropdown-header-padding-vertical $s2bs-padding-base-horizontal;
280
- font-size: $s2bs-dropdown-header-font-size;
281
- line-height: $s2bs-line-height-base;
282
- white-space: nowrap;
283
- }
284
-
285
- &.select2-container--focus,
286
- &.select2-container--open {
287
- .select2-selection {
288
- @include box-shadow($s2bs-form-control-focus-box-shadow);
289
- @include transition($s2bs-form-control-transition);
290
- border-color: $s2bs-input-border-focus;
291
256
  }
292
- }
293
257
 
294
- &.select2-container--open {
295
- /**
296
- * Make the dropdown arrow point up while the dropdown is visible.
297
- */
298
-
299
- .select2-selection .select2-selection__arrow b {
300
- border-color: transparent transparent $s2bs-dropdown-arrow-color transparent;
301
- border-width: 0 $s2bs-caret-width-base $s2bs-caret-width-base $s2bs-caret-width-base;
302
- }
303
-
304
- /**
305
- * Handle border radii of the container when the dropdown is showing.
306
- */
307
-
308
- &.select2-container--below {
309
- .select2-selection {
310
- @include border-bottom-radius(0);
311
- border-bottom-color: transparent;
312
- }
313
- }
314
-
315
- &.select2-container--above {
316
- .select2-selection {
317
- @include border-top-radius(0);
318
- border-top-color: transparent;
319
- }
258
+ .select2-results__group {
259
+ color: $s2bs-dropdown-header-color;
260
+ display: block;
261
+ padding: $s2bs-dropdown-header-padding-vertical $s2bs-input-btn-padding-x;
262
+ font-size: $s2bs-dropdown-header-font-size;
263
+ line-height: $s2bs-line-height-base;
264
+ white-space: nowrap;
320
265
  }
321
- }
322
-
323
- /**
324
- * Clear the selection.
325
- */
326
-
327
- .select2-selection__clear {
328
- color: $s2bs-clear-selection-color;
329
- cursor: pointer;
330
- float: right;
331
- font-weight: bold;
332
- margin-right: 10px;
333
266
 
334
- &:hover {
335
- color: $s2bs-clear-selection-hover-color;
267
+ &.select2-container--focus,
268
+ &.select2-container--open {
269
+ .select2-selection {
270
+ @include box-shadow($s2bs-form-control-focus-box-shadow);
271
+ @include transition($s2bs-form-control-transition);
272
+ border-color: $s2bs-input-focus-border-color;
273
+ }
336
274
  }
337
- }
338
275
 
339
- /**
340
- * Address disabled Select2 styles.
341
- *
342
- * @see https://select2.github.io/examples.html#disabled
343
- * @see http://getbootstrap.com/css/#forms-control-disabled
344
- */
276
+ &.select2-container--open {
277
+ /**
278
+ * Make the dropdown arrow point up while the dropdown is visible.
279
+ */
280
+ .select2-selection .select2-selection__arrow b {
281
+ border-color: transparent transparent $s2bs-dropdown-arrow-color transparent;
282
+ border-width: 0 $s2bs-caret-width $s2bs-caret-width $s2bs-caret-width;
283
+ }
284
+ /**
285
+ * Handle border radii of the container when the dropdown is showing.
286
+ */
287
+ &.select2-container--below {
288
+ .select2-selection {
289
+ @include border-bottom-radius(0);
290
+ border-bottom-color: transparent;
291
+ }
292
+ }
345
293
 
346
- &.select2-container--disabled {
347
- .select2-selection {
348
- border-color: $s2bs-input-border;
349
- @include box-shadow(none);
294
+ &.select2-container--above {
295
+ .select2-selection {
296
+ @include border-top-radius(0);
297
+ border-top-color: transparent;
298
+ }
299
+ }
350
300
  }
301
+ /**
302
+ * Clear the selection.
303
+ */
304
+ .select2-selection__clear {
305
+ color: $s2bs-clear-selection-color;
306
+ //cursor: pointer;
307
+ float: right;
308
+ font-weight: bold;
309
+ margin-right: 10px;
351
310
 
352
- .select2-selection,
353
- .select2-search__field {
354
- cursor: $s2bs-cursor-disabled;
311
+ &:hover {
312
+ color: $s2bs-clear-selection-hover-color;
313
+ }
355
314
  }
315
+ /**
316
+ * Address disabled Select2 styles.
317
+ *
318
+ * @see https://select2.github.io/examples.html#disabled
319
+ * @see http://getbootstrap.com/css/#forms-control-disabled
320
+ */
321
+ &.select2-container--disabled {
322
+ .select2-selection {
323
+ border-color: $s2bs-input-border;
324
+ @include box-shadow(none);
325
+ }
356
326
 
357
- .select2-selection,
358
- .select2-selection--multiple .select2-selection__choice {
359
- background-color: $s2bs-input-bg-disabled;
360
- }
327
+ .select2-selection,
328
+ .select2-selection--multiple .select2-selection__choice {
329
+ background-color: $s2bs-input-disabled-bg;
330
+ }
361
331
 
362
- .select2-selection__clear,
363
- .select2-selection--multiple .select2-selection__choice__remove {
364
- display: none;
332
+ .select2-selection__clear,
333
+ .select2-selection--multiple .select2-selection__choice__remove {
334
+ display: none;
335
+ }
365
336
  }
366
- }
367
-
368
-
369
-
370
-
371
-
372
- /*------------------------------------*\
337
+ /*------------------------------------*\
373
338
  #DROPDOWN
374
- \*------------------------------------*/
375
-
376
- /**
377
- * Dropdown border color and box-shadow.
378
- */
379
-
380
- .select2-dropdown {
381
- @include box-shadow($s2bs-dropdown-box-shadow);
382
- border-color: $s2bs-input-border-focus;
383
- overflow-x: hidden;
384
- margin-top: -1px;
385
-
386
- &--above {
387
- @include box-shadow($s2bs-dropdown-box-shadow-above);
388
- margin-top: 1px;
339
+ \*------------------------------------*/
340
+ /**
341
+ * Dropdown border color and box-shadow.
342
+ */
343
+ .select2-dropdown {
344
+ @include box-shadow($s2bs-dropdown-box-shadow);
345
+ border-color: $s2bs-input-focus-border-color;
346
+ overflow-x: hidden;
347
+ margin-top: -1px;
348
+ @include border-radius($s2bs-input-border-radius);
349
+
350
+ &--above {
351
+ @include box-shadow($s2bs-dropdown-box-shadow-above);
352
+ margin-top: 1px;
353
+ }
389
354
  }
390
- }
391
-
392
- /**
393
- * Limit the dropdown height.
394
- */
395
-
396
- .select2-results > .select2-results__options {
397
- max-height: 200px;
398
- overflow-y: auto;
399
- }
400
-
401
-
402
-
403
-
404
-
405
- /*------------------------------------*\
406
- #SINGLE SELECT2
407
- \*------------------------------------*/
408
-
409
- .select2-selection--single {
410
- height: $s2bs-input-height-base;
411
- line-height: $s2bs-line-height-base;
412
- padding: $s2bs-padding-base-vertical ($s2bs-padding-base-horizontal + $s2bs-caret-width-base*3) $s2bs-padding-base-vertical $s2bs-padding-base-horizontal;
413
-
414
355
  /**
415
- * Adjust the single Select2's dropdown arrow button appearance.
416
- */
417
-
418
- .select2-selection__arrow {
419
- position: absolute;
420
- bottom: 0;
421
- right: $s2bs-padding-base-horizontal;
422
- top: 0;
423
- width: $s2bs-caret-width-base;
424
-
425
- b {
426
- border-color: $s2bs-dropdown-arrow-color transparent transparent transparent;
427
- border-style: solid;
428
- border-width: $s2bs-caret-width-base $s2bs-caret-width-base 0 $s2bs-caret-width-base;
429
- height: 0;
430
- left: 0;
431
- margin-left: -$s2bs-caret-width-base;
432
- margin-top: -$s2bs-caret-width-base/2;
433
- position: absolute;
434
- top: 50%;
435
- width: 0;
436
- }
356
+ * Limit the dropdown height.
357
+ */
358
+ .select2-results > .select2-results__options {
359
+ max-height: 200px;
360
+ overflow-y: auto;
437
361
  }
362
+ /*------------------------------------*\
363
+ #SINGLE SELECT2
364
+ \*------------------------------------*/
365
+ .select2-selection--single {
366
+ height: $s2bs-input-height;
367
+ line-height: $s2bs-line-height-base;
368
+ padding: $s2bs-input-btn-padding-y ($s2bs-input-btn-padding-x + $s2bs-caret-width*3) $s2bs-input-btn-padding-y $s2bs-input-btn-padding-x;
369
+ /**
370
+ * Adjust the single Select2's dropdown arrow button appearance.
371
+ */
372
+ .select2-selection__arrow {
373
+ position: absolute;
374
+ bottom: 0;
375
+ right: $s2bs-input-btn-padding-x;
376
+ top: 0;
377
+ width: $s2bs-caret-width;
378
+
379
+ b {
380
+ border-color: $s2bs-dropdown-arrow-color transparent transparent transparent;
381
+ border-style: solid;
382
+ border-width: $s2bs-caret-width $s2bs-caret-width 0 $s2bs-caret-width;
383
+ height: 0;
384
+ left: 0;
385
+ margin-left: -$s2bs-caret-width;
386
+ margin-top: -$s2bs-caret-width/2;
387
+ position: absolute;
388
+ top: 50%;
389
+ width: 0;
390
+ }
391
+ }
438
392
 
439
- .select2-selection__rendered {
440
- color: $s2bs-input-color;
441
- padding: 0;
442
- }
393
+ .select2-selection__rendered {
394
+ color: $s2bs-input-color;
395
+ padding: 0;
396
+ }
443
397
 
444
- .select2-selection__placeholder {
445
- color: $s2bs-input-color-placeholder;
398
+ .select2-selection__placeholder {
399
+ color: $s2bs-input-placeholder-color;
400
+ }
446
401
  }
447
- }
448
-
449
-
450
-
451
-
452
-
453
- /*------------------------------------*\
402
+ /*------------------------------------*\
454
403
  #MULTIPLE SELECT2
455
- \*------------------------------------*/
456
-
457
- .select2-selection--multiple {
458
- min-height: $s2bs-input-height-base;
459
- padding: 0;
460
- height: auto;
461
-
462
- .select2-selection__rendered {
463
- box-sizing: border-box;
464
- display: block;
465
- line-height: $s2bs-line-height-base;
466
- list-style: none;
467
- margin: 0;
468
- overflow: hidden;
469
- padding: 0;
470
- width: 100%;
471
- text-overflow: ellipsis;
472
- white-space: nowrap;
473
- }
474
-
475
- .select2-selection__placeholder {
476
- color: $s2bs-input-color-placeholder;
477
- float: left;
478
- margin-top: 5px;
479
- }
480
-
481
- /**
482
- * Make Multi Select2's choices match Bootstrap 3's default button styles.
483
- */
484
-
485
- .select2-selection__choice {
486
- color: $s2bs-input-color;
487
- background: $s2bs-btn-default-bg;
488
- border: 1px solid $s2bs-btn-default-border;
489
- border-radius: $s2bs-selection-choice-border-radius;
490
- cursor: default;
491
- float: left;
492
- margin: -($s2bs-padding-base-vertical - 1) 0 0 $s2bs-padding-base-horizontal/2;
493
- padding: 0 $s2bs-padding-base-vertical;
494
- }
404
+ \*------------------------------------*/
405
+ .select2-selection--multiple {
406
+ min-height: $s2bs-input-height;
407
+ padding: 0;
408
+ height: auto;
409
+
410
+ .select2-selection__rendered {
411
+ box-sizing: border-box;
412
+ display: block;
413
+ line-height: $s2bs-line-height-base;
414
+ list-style: none;
415
+ margin: 0;
416
+ overflow: hidden;
417
+ padding: 0;
418
+ width: 100%;
419
+ text-overflow: ellipsis;
420
+ white-space: nowrap;
421
+ }
495
422
 
496
- /**
497
- * Minus 2px borders.
498
- */
499
-
500
- .select2-search--inline {
501
- .select2-search__field {
502
- background: transparent;
503
- padding: 0 $s2bs-padding-base-horizontal;
504
- height: $s2bs-input-height-base;
505
- line-height: $s2bs-line-height-base;
506
- margin-top: 0;
507
- min-width: 5em;
508
- }
509
- }
423
+ .select2-selection__placeholder {
424
+ color: $s2bs-input-placeholder-color;
425
+ float: left;
426
+ margin-top: 5px;
427
+ }
428
+ /**
429
+ * Make Multi Select2's choices match Bootstrap 4's default button styles.
430
+ */
431
+ .select2-selection__choice {
432
+ color: $s2bs-btn-color;
433
+ background: $s2bs-btn-bg;
434
+ border: 1px solid $s2bs-btn-border-color;
435
+ //cursor: default;
436
+ float: left;
437
+ margin: -($s2bs-input-btn-padding-y - 1) 0 0 $s2bs-input-btn-padding-x/2;
438
+ padding: 0 $s2bs-input-btn-padding-y;
439
+ @include border-radius($s2bs-selection-choice-border-radius);
440
+ }
441
+ .select2-search--inline {
442
+ .select2-search__field {
443
+ background: transparent;
444
+ padding: 0 $s2bs-input-btn-padding-x;
445
+ height: $s2bs-input-height-inner;
446
+ line-height: $s2bs-line-height-base;
447
+ margin-top: 0;
448
+ min-width: 5em;
449
+ }
450
+ }
510
451
 
511
- .select2-selection__choice__remove {
512
- color: $s2bs-remove-choice-color;
513
- cursor: pointer;
514
- display: inline-block;
515
- font-weight: bold;
516
- margin-right: $s2bs-padding-base-vertical / 2;
452
+ .select2-selection__choice__remove {
453
+ color: $s2bs-remove-choice-color;
454
+ cursor: pointer;
455
+ display: inline-block;
456
+ font-weight: bold;
457
+ margin-right: $s2bs-input-btn-padding-y / 2;
517
458
 
518
- &:hover {
519
- color: $s2bs-remove-choice-hover-color;
520
- }
459
+ &:hover {
460
+ color: $s2bs-remove-choice-hover-color;
461
+ }
462
+ }
463
+ /**
464
+ * Clear the selection.
465
+ */
466
+ .select2-selection__clear {
467
+ margin-top: $s2bs-input-btn-padding-y;
468
+ }
521
469
  }
522
-
523
470
  /**
524
- * Clear the selection.
525
- */
526
-
527
- .select2-selection__clear {
528
- margin-top: $s2bs-padding-base-vertical;
471
+ * Address Bootstrap control sizing classes
472
+ *
473
+ * 1. Reset Bootstrap defaults.
474
+ * 2. Adjust the dropdown arrow button icon position.
475
+ *
476
+ * @see http://getbootstrap.com/css/#forms-control-sizes
477
+ */
478
+ /* 1 */
479
+ .select2-selection--single.input-sm,
480
+ .input-group-sm & .select2-selection--single,
481
+ .form-group-sm & .select2-selection--single {
482
+ @include border-radius($s2bs-border-radius-sm);
483
+ font-size: $s2bs-font-size-sm;
484
+ height: $s2bs-input-height-sm;
485
+ line-height: $s2bs-line-height-sm;
486
+ padding: $s2bs-input-btn-padding-y-sm $s2bs-input-btn-padding-x-sm + $s2bs-caret-width*3 $s2bs-input-btn-padding-y-sm $s2bs-input-btn-padding-x-sm;
487
+ /* 2 */
488
+ .select2-selection__arrow b {
489
+ margin-left: -$s2bs-input-btn-padding-y-sm;
490
+ }
529
491
  }
530
- }
531
-
532
-
533
492
 
493
+ .select2-selection--multiple.input-sm,
494
+ .input-group-sm & .select2-selection--multiple,
495
+ .form-group-sm & .select2-selection--multiple {
496
+ min-height: $s2bs-input-height-sm;
497
+ @include border-radius($s2bs-border-radius-sm);
534
498
 
499
+ .select2-selection__choice {
500
+ font-size: $s2bs-font-size-sm;
501
+ line-height: $s2bs-line-height-sm;
502
+ margin: ($s2bs-input-btn-padding-y-sm) 0 0 $s2bs-input-btn-padding-x-sm/2;
503
+ padding: 0 $s2bs-input-btn-padding-y-sm;
504
+ }
535
505
 
536
- /**
537
- * Address Bootstrap control sizing classes
538
- *
539
- * 1. Reset Bootstrap defaults.
540
- * 2. Adjust the dropdown arrow button icon position.
541
- *
542
- * @see http://getbootstrap.com/css/#forms-control-sizes
543
- */
544
-
545
- /* 1 */
546
- .select2-selection--single.input-sm,
547
- .input-group-sm & .select2-selection--single,
548
- .form-group-sm & .select2-selection--single {
549
- border-radius: $s2bs-border-radius-small;
550
- font-size: $s2bs-font-size-small;
551
- height: $s2bs-input-height-small;
552
- line-height: $s2bs-line-height-small;
553
- padding: $s2bs-padding-small-vertical $s2bs-padding-small-horizontal + $s2bs-caret-width-base*3 $s2bs-padding-small-vertical $s2bs-padding-small-horizontal;
506
+ .select2-search--inline .select2-search__field {
507
+ padding: 0 $s2bs-input-btn-padding-x-sm;
508
+ font-size: $s2bs-font-size-sm;
509
+ height: $s2bs-input-height-inner-sm;
510
+ line-height: $s2bs-line-height-sm;
511
+ }
554
512
 
555
- /* 2 */
556
- .select2-selection__arrow b {
557
- margin-left: -$s2bs-padding-small-vertical;
558
- }
559
- }
560
-
561
- .select2-selection--multiple.input-sm,
562
- .input-group-sm & .select2-selection--multiple,
563
- .form-group-sm & .select2-selection--multiple {
564
- min-height: $s2bs-input-height-small;
565
- border-radius: $s2bs-border-radius-small;
566
-
567
- .select2-selection__choice {
568
- font-size: $s2bs-font-size-small;
569
- line-height: $s2bs-line-height-small;
570
- margin: ($s2bs-padding-small-vertical) 0 0 $s2bs-padding-small-horizontal/2;
571
- padding: 0 $s2bs-padding-small-vertical;
513
+ .select2-selection__clear {
514
+ margin-top: $s2bs-input-btn-padding-y-sm;
515
+ }
572
516
  }
573
517
 
574
- .select2-search--inline .select2-search__field {
575
- padding: 0 $s2bs-padding-small-horizontal;
576
- font-size: $s2bs-font-size-small;
577
- height: $s2bs-input-height-small - 2;
578
- line-height: $s2bs-line-height-small;
518
+ .select2-selection--single.input-lg,
519
+ .input-group-lg & .select2-selection--single,
520
+ .form-group-lg & .select2-selection--single {
521
+ @include border-radius($s2bs-border-radius-lg);
522
+ font-size: $s2bs-font-size-lg;
523
+ height: $s2bs-input-height-lg;
524
+ line-height: $s2bs-line-height-lg;
525
+ padding: $s2bs-input-btn-padding-y-lg $s2bs-input-btn-padding-x-lg + $s2bs-caret-width*3 $s2bs-input-btn-padding-y-lg $s2bs-input-btn-padding-x-lg;
526
+ /* 1 */
527
+ .select2-selection__arrow {
528
+ width: $s2bs-caret-width;
529
+
530
+ b {
531
+ border-width: $s2bs-caret-width $s2bs-caret-width 0 $s2bs-caret-width;
532
+ margin-left: -$s2bs-caret-width;
533
+ margin-left: -$s2bs-input-btn-padding-y-lg;
534
+ margin-top: -$s2bs-caret-width/2;
535
+ }
536
+ }
579
537
  }
580
538
 
581
- .select2-selection__clear {
582
- margin-top: $s2bs-padding-small-vertical;
583
- }
584
- }
539
+ .select2-selection--multiple.input-lg,
540
+ .input-group-lg & .select2-selection--multiple,
541
+ .form-group-lg & .select2-selection--multiple {
542
+ min-height: $s2bs-input-height-lg;
543
+ @include border-radius($s2bs-border-radius-lg);
585
544
 
586
- .select2-selection--single.input-lg,
587
- .input-group-lg & .select2-selection--single,
588
- .form-group-lg & .select2-selection--single {
589
- border-radius: $s2bs-border-radius-large;
590
- font-size: $s2bs-font-size-large;
591
- height: $s2bs-input-height-large;
592
- line-height: $s2bs-line-height-large;
593
- padding: $s2bs-padding-large-vertical $s2bs-padding-large-horizontal + $s2bs-caret-width-large*3 $s2bs-padding-large-vertical $s2bs-padding-large-horizontal;
545
+ .select2-selection__choice {
546
+ font-size: $s2bs-font-size-lg;
547
+ line-height: $s2bs-line-height-lg;
548
+ @include border-radius($s2bs-selection-choice-border-radius);
549
+ margin: ($s2bs-input-btn-padding-y-lg - 1) 0 0 $s2bs-input-btn-padding-x-lg/2;
550
+ padding: 0 $s2bs-input-btn-padding-y-lg;
551
+ }
594
552
 
595
- /* 1 */
596
- .select2-selection__arrow {
597
- width: $s2bs-caret-width-large;
598
-
599
- b {
600
- border-width: $s2bs-caret-width-large $s2bs-caret-width-large 0 $s2bs-caret-width-large;
601
- margin-left: -$s2bs-caret-width-large;
602
- margin-left: -$s2bs-padding-large-vertical;
603
- margin-top: -$s2bs-caret-width-large/2;
604
- }
605
- }
606
- }
607
-
608
- .select2-selection--multiple.input-lg,
609
- .input-group-lg & .select2-selection--multiple,
610
- .form-group-lg & .select2-selection--multiple {
611
- min-height: $s2bs-input-height-large;
612
- border-radius: $s2bs-border-radius-large;
613
-
614
- .select2-selection__choice {
615
- font-size: $s2bs-font-size-large;
616
- line-height: $s2bs-line-height-large;
617
- border-radius: $s2bs-selection-choice-border-radius;
618
- margin: ($s2bs-padding-large-vertical - 1) 0 0 $s2bs-padding-large-horizontal/2;
619
- padding: 0 $s2bs-padding-large-vertical;
620
- }
553
+ .select2-search--inline .select2-search__field {
554
+ padding: 0 $s2bs-input-btn-padding-x-lg;
555
+ font-size: $s2bs-font-size-lg;
556
+ height: $s2bs-input-height-inner-lg;
557
+ line-height: $s2bs-line-height-lg;
558
+ }
621
559
 
622
- .select2-search--inline .select2-search__field {
623
- padding: 0 $s2bs-padding-large-horizontal;
624
- font-size: $s2bs-font-size-large;
625
- height: $s2bs-input-height-large - 2;
626
- line-height: $s2bs-line-height-large;
560
+ .select2-selection__clear {
561
+ margin-top: $s2bs-input-btn-padding-y-lg;
562
+ }
627
563
  }
628
564
 
629
- .select2-selection__clear {
630
- margin-top: $s2bs-padding-large-vertical;
565
+ .select2-selection.input-lg.select2-container--open {
566
+ @include dropdown-arrow;
631
567
  }
632
- }
633
-
634
- .select2-selection.input-lg.select2-container--open {
635
- @include dropdown-arrow;
636
- }
637
568
 
638
- .input-group-lg & .select2-selection {
639
- &.select2-container--open {
640
- @include dropdown-arrow;
569
+ .input-group-lg & .select2-selection {
570
+ &.select2-container--open {
571
+ @include dropdown-arrow;
572
+ }
641
573
  }
642
- }
643
-
644
-
645
-
646
-
647
-
648
- /*------------------------------------*\
574
+ /*------------------------------------*\
649
575
  #RTL SUPPORT
650
- \*------------------------------------*/
651
-
652
- &[dir="rtl"] {
653
-
654
- /**
655
- * Single Select2
656
- *
657
- * 1. Makes sure that .select2-selection__placeholder is positioned
658
- * correctly.
659
- */
660
-
661
- .select2-selection--single {
662
- padding-left: $s2bs-padding-base-horizontal + $s2bs-caret-width-base*3;
663
- padding-right: $s2bs-padding-base-horizontal;
664
-
665
- .select2-selection__rendered {
666
- padding-right: 0;
667
- padding-left: 0;
668
- text-align: right; /* 1 */
669
- }
576
+ \*------------------------------------*/
577
+ &[dir="rtl"] {
578
+ /**
579
+ * Single Select2
580
+ *
581
+ * 1. Makes sure that .select2-selection__placeholder is positioned
582
+ * correctly.
583
+ */
584
+ .select2-selection--single {
585
+ padding-left: $s2bs-input-btn-padding-x + $s2bs-caret-width*3;
586
+ padding-right: $s2bs-input-btn-padding-x;
587
+
588
+ .select2-selection__rendered {
589
+ padding-right: 0;
590
+ padding-left: 0;
591
+ text-align: right; /* 1 */
592
+ }
670
593
 
671
- .select2-selection__clear {
672
- float: left;
673
- }
594
+ .select2-selection__clear {
595
+ float: left;
596
+ }
674
597
 
675
- .select2-selection__arrow {
676
- left: $s2bs-padding-base-horizontal;
677
- right: auto;
598
+ .select2-selection__arrow {
599
+ left: $s2bs-input-btn-padding-x;
600
+ right: auto;
678
601
 
679
- b {
680
- margin-left: 0;
602
+ b {
603
+ margin-left: 0;
604
+ }
605
+ }
681
606
  }
682
- }
683
- }
684
-
685
- /**
686
- * Multiple Select2
687
- */
688
-
689
- .select2-selection--multiple {
690
- .select2-selection__choice,
691
- .select2-selection__placeholder,
692
- .select2-search--inline {
693
- float: right;
694
- }
607
+ /**
608
+ * Multiple Select2
609
+ */
610
+ .select2-selection--multiple {
611
+ .select2-selection__choice,
612
+ .select2-selection__placeholder,
613
+ .select2-search--inline {
614
+ float: right;
615
+ }
695
616
 
696
- .select2-selection__choice {
697
- margin-left: 0;
698
- margin-right: $s2bs-padding-base-horizontal/2;
699
- }
617
+ .select2-selection__choice {
618
+ margin-left: 0;
619
+ margin-right: $s2bs-input-btn-padding-x/2;
620
+ }
700
621
 
701
- .select2-selection__choice__remove {
702
- margin-left: 2px;
703
- margin-right: auto;
704
- }
622
+ .select2-selection__choice__remove {
623
+ margin-left: 2px;
624
+ margin-right: auto;
625
+ }
626
+ }
705
627
  }
706
- }
707
628
  }
708
629
 
709
630
 
@@ -714,6 +635,7 @@ $s2bs-form-control-transition: border-color ease-in-out .15s, box-shadow ease-in
714
635
  #ADDITIONAL GOODIES
715
636
  \*------------------------------------*/
716
637
 
638
+
717
639
  /**
718
640
  * Address Bootstrap's validation states
719
641
  *
@@ -726,15 +648,15 @@ $s2bs-form-control-transition: border-color ease-in-out .15s, box-shadow ease-in
726
648
  */
727
649
 
728
650
  .has-warning {
729
- @include validation-state-focus($state-warning-text);
651
+ @include validation-state-focus(theme-color("warning"));
730
652
  }
731
653
 
732
- .has-error {
733
- @include validation-state-focus($state-danger-text);
654
+ .has-danger {
655
+ @include validation-state-focus(theme-color("danger"));
734
656
  }
735
657
 
736
658
  .has-success {
737
- @include validation-state-focus($state-success-text);
659
+ @include validation-state-focus(theme-color("success"));
738
660
  }
739
661
 
740
662
  /**
@@ -749,57 +671,53 @@ $s2bs-form-control-transition: border-color ease-in-out .15s, box-shadow ease-in
749
671
  */
750
672
 
751
673
  .input-group > .select2-hidden-accessible {
752
- &:first-child + .select2-container--bootstrap > .selection > .select2-selection,
753
- &:first-child + .select2-container--bootstrap > .selection > .select2-selection.form-control {
754
- @include border-right-radius(0);
755
- }
756
-
757
- &:not(:first-child) + .select2-container--bootstrap:not(:last-child) > .selection > .select2-selection,
758
- &:not(:first-child) + .select2-container--bootstrap:not(:last-child) > .selection > .select2-selection.form-control {
759
- border-radius: 0;
760
- }
761
-
762
- &:not(:first-child):not(:last-child) + .select2-container--bootstrap:last-child > .selection > .select2-selection,
763
- &:not(:first-child):not(:last-child) + .select2-container--bootstrap:last-child > .selection > .select2-selection.form-control {
764
- @include border-left-radius(0);
765
- }
674
+ &:first-child + .select2-container--bootstrap > .selection > .select2-selection,
675
+ &:first-child + .select2-container--bootstrap > .selection > .select2-selection.form-control {
676
+ @include border-right-radius(0);
677
+ }
678
+
679
+ &:not(:first-child) + .select2-container--bootstrap:not(:last-child) > .selection > .select2-selection,
680
+ &:not(:first-child) + .select2-container--bootstrap:not(:last-child) > .selection > .select2-selection.form-control {
681
+ @include border-radius(0);
682
+ }
683
+
684
+ &:not(:first-child):not(:last-child) + .select2-container--bootstrap:last-child > .selection > .select2-selection,
685
+ &:not(:first-child):not(:last-child) + .select2-container--bootstrap:last-child > .selection > .select2-selection.form-control {
686
+ @include border-left-radius(0);
687
+ }
766
688
  }
767
689
 
768
690
  .input-group > .select2-container--bootstrap {
769
- display: table;
770
- table-layout: fixed;
771
- position: relative;
772
- z-index: 2;
773
- width: 100%;
774
- margin-bottom: 0;
775
-
776
- > .selection > .select2-selection.form-control {
777
- float: none;
778
- }
779
-
780
- /**
781
- * Adjust z-index like Bootstrap does to show the focus-box-shadow
782
- * above appended buttons in .input-group and .form-group.
783
- */
784
-
785
- &.select2-container--open, /* .form-group */
786
- &.select2-container--focus /* .input-group */ {
787
- z-index: 3;
788
- }
789
-
790
- /**
791
- * Adjust alignment of Bootstrap buttons in Bootstrap Input Groups to address
792
- * Multi Select2's height which - depending on how many elements have been selected -
793
- * may grow taller than its initial size.
794
- *
795
- * @see http://getbootstrap.com/components/#input-groups
796
- */
797
-
798
- &,
799
- .input-group-btn,
800
- .input-group-btn .btn {
801
- vertical-align: top;
802
- }
691
+ display: table;
692
+ table-layout: fixed;
693
+ position: relative;
694
+ z-index: 2;
695
+ width: 100%;
696
+ margin-bottom: 0;
697
+
698
+ > .selection > .select2-selection.form-control {
699
+ float: none;
700
+ }
701
+ /**
702
+ * Adjust z-index like Bootstrap does to show the focus-box-shadow
703
+ * above appended buttons in .input-group and .form-group.
704
+ */
705
+ &.select2-container--open, /* .form-group */
706
+ &.select2-container--focus /* .input-group */ {
707
+ z-index: 3;
708
+ }
709
+ /**
710
+ * Adjust alignment of Bootstrap buttons in Bootstrap Input Groups to address
711
+ * Multi Select2's height which - depending on how many elements have been selected -
712
+ * may grow taller than its initial size.
713
+ *
714
+ * @see http://getbootstrap.com/components/#input-groups
715
+ */
716
+ &,
717
+ .input-group-btn,
718
+ .input-group-btn .btn {
719
+ vertical-align: top;
720
+ }
803
721
  }
804
722
 
805
723
  /**
@@ -813,8 +731,8 @@ $s2bs-form-control-transition: border-color ease-in-out .15s, box-shadow ease-in
813
731
  */
814
732
 
815
733
  .form-control.select2-hidden-accessible {
816
- position: absolute !important;
817
- width: 1px !important;
734
+ position: absolute !important;
735
+ width: 1px !important;
818
736
  }
819
737
 
820
738
  /**
@@ -822,7 +740,7 @@ $s2bs-form-control-transition: border-color ease-in-out .15s, box-shadow ease-in
822
740
  */
823
741
 
824
742
  .form-inline .select2-container--bootstrap {
825
- @media (min-width: $s2bs-screen-size-sm) {
826
- display: inline-block;
827
- }
743
+ @media (min-width: $s2bs-screen-size-sm) {
744
+ display: inline-block;
745
+ }
828
746
  }