card 1.15.1 → 1.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/card.gemspec +19 -16
  4. data/config/initializers/recaptcha.rb +1 -0
  5. data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +13 -14
  6. data/db/migrate_core_cards/20150326205655_bootswatch_themes.rb +30 -0
  7. data/db/migrate_core_cards/20150331135745_new_card_menu.rb +8 -0
  8. data/db/migrate_core_cards/20150508212032_menu_compatibility.rb +27 -0
  9. data/db/migrate_core_cards/20150510031118_fix_skin_images.rb +13 -0
  10. data/db/migrate_core_cards/data/1.12_stylesheets/classic_cards.scss +9 -5
  11. data/db/migrate_core_cards/data/1.12_stylesheets/common.scss +5 -5
  12. data/{test/fixtures/.gitkeep → db/migrate_core_cards/data/themes/bootstrap_default/_bootswatch.scss} +0 -0
  13. data/db/migrate_core_cards/data/themes/bootstrap_default/_variables.scss +866 -0
  14. data/db/migrate_core_cards/data/themes/cerulean/_bootswatch.scss +125 -0
  15. data/db/migrate_core_cards/data/themes/cerulean/_variables.scss +861 -0
  16. data/db/migrate_core_cards/data/themes/cosmo/_bootswatch.scss +237 -0
  17. data/db/migrate_core_cards/data/themes/cosmo/_variables.scss +861 -0
  18. data/db/migrate_core_cards/data/themes/cyborg/_bootswatch.scss +210 -0
  19. data/db/migrate_core_cards/data/themes/cyborg/_variables.scss +861 -0
  20. data/db/migrate_core_cards/data/themes/darkly/_bootswatch.scss +330 -0
  21. data/db/migrate_core_cards/data/themes/darkly/_variables.scss +861 -0
  22. data/db/migrate_core_cards/data/themes/flatly/_bootswatch.scss +313 -0
  23. data/db/migrate_core_cards/data/themes/flatly/_variables.scss +861 -0
  24. data/db/migrate_core_cards/data/themes/journal/_bootswatch.scss +120 -0
  25. data/db/migrate_core_cards/data/themes/journal/_variables.scss +861 -0
  26. data/db/migrate_core_cards/data/themes/lumen/_bootswatch.scss +496 -0
  27. data/db/migrate_core_cards/data/themes/lumen/_variables.scss +861 -0
  28. data/db/migrate_core_cards/data/themes/paper/_bootswatch.scss +607 -0
  29. data/db/migrate_core_cards/data/themes/paper/_variables.scss +861 -0
  30. data/db/migrate_core_cards/data/themes/readable/_bootswatch.scss +174 -0
  31. data/db/migrate_core_cards/data/themes/readable/_variables.scss +861 -0
  32. data/db/migrate_core_cards/data/themes/sandstone/_bootswatch.scss +194 -0
  33. data/db/migrate_core_cards/data/themes/sandstone/_variables.scss +861 -0
  34. data/db/migrate_core_cards/data/themes/simplex/_bootswatch.scss +142 -0
  35. data/db/migrate_core_cards/data/themes/simplex/_variables.scss +861 -0
  36. data/db/migrate_core_cards/data/themes/slate/_bootswatch.scss +417 -0
  37. data/db/migrate_core_cards/data/themes/slate/_variables.scss +861 -0
  38. data/db/migrate_core_cards/data/themes/spacelab/_bootswatch.scss +137 -0
  39. data/db/migrate_core_cards/data/themes/spacelab/_variables.scss +861 -0
  40. data/db/migrate_core_cards/data/themes/superhero/_bootswatch.scss +332 -0
  41. data/db/migrate_core_cards/data/themes/superhero/_variables.scss +861 -0
  42. data/db/migrate_core_cards/data/themes/united/_bootswatch.scss +42 -0
  43. data/db/migrate_core_cards/data/themes/united/_variables.scss +861 -0
  44. data/db/migrate_core_cards/data/themes/yeti/_bootswatch.scss +437 -0
  45. data/db/migrate_core_cards/data/themes/yeti/_variables.scss +861 -0
  46. data/db/seed/README.md +2 -0
  47. data/db/{bootstrap → seed/new}/card_actions.yml +561 -295
  48. data/db/{bootstrap → seed/new}/card_acts.yml +1 -1
  49. data/db/seed/new/card_changes.yml +29331 -0
  50. data/db/{bootstrap → seed/new}/card_references.yml +1544 -1355
  51. data/db/seed/new/cards.yml +28057 -0
  52. data/db/seed/test/fixtures/.gitkeep +0 -0
  53. data/{test → db/seed/test}/fixtures/card_actions.yml +1501 -1235
  54. data/{test → db/seed/test}/fixtures/card_acts.yml +244 -244
  55. data/db/seed/test/fixtures/card_changes.yml +34527 -0
  56. data/{test → db/seed/test}/fixtures/card_references.yml +2215 -2026
  57. data/db/seed/test/fixtures/cards.yml +32708 -0
  58. data/{test → db/seed/test}/fixtures/mao2.jpg +0 -0
  59. data/{test → db/seed/test}/fixtures/rails.gif +0 -0
  60. data/{test → db/seed/test}/seed.rb +0 -0
  61. data/db/version_core_cards.txt +1 -1
  62. data/lib/card/format.rb +56 -56
  63. data/lib/cardio.rb +7 -5
  64. data/mod/01_core/chunk/include.rb +1 -1
  65. data/mod/01_core/set/all/fetch.rb +27 -27
  66. data/mod/01_core/set/all/rules.rb +53 -53
  67. data/mod/01_core/set/all/states.rb +5 -0
  68. data/mod/01_core/spec/format/html_format_spec.rb +6 -6
  69. data/mod/01_core/spec/set/all/rules2_spec.rb +6 -6
  70. data/mod/01_history/set/all/history.rb +4 -4
  71. data/mod/02_basic_types/set/all/rss.rb +10 -9
  72. data/mod/03_machines/lib/javascript/script_card_menu.js.coffee +20 -0
  73. data/mod/03_machines/lib/javascript/wagn.js.coffee +46 -34
  74. data/mod/03_machines/lib/javascript/wagn_mod.js.coffee +36 -148
  75. data/mod/03_machines/lib/stylesheets/style_bootstrap_compatible.css +10 -96
  76. data/mod/03_machines/lib/stylesheets/style_cards.scss +127 -87
  77. data/mod/03_machines/set/self/script_card_menu.rb +10 -2
  78. data/mod/05_email/set/all/follow.rb +38 -22
  79. data/mod/05_email/set/right/follow.rb +79 -1
  80. data/mod/05_email/set/type_plus_right/user/follow.rb +31 -31
  81. data/mod/05_email/spec/set/all/follow_spec.rb +37 -28
  82. data/mod/05_email/spec/set/right/followers_spec.rb +29 -29
  83. data/mod/05_standard/set/all/error.rb +17 -20
  84. data/mod/05_standard/set/all/links.rb +31 -18
  85. data/mod/05_standard/set/all/rich_html/content.rb +41 -18
  86. data/mod/05_standard/set/all/rich_html/editing.rb +21 -17
  87. data/mod/05_standard/set/all/rich_html/header.rb +13 -48
  88. data/mod/05_standard/set/all/rich_html/menu.rb +147 -0
  89. data/mod/05_standard/set/all/rich_html/modal.rb +54 -0
  90. data/mod/05_standard/set/all/rich_html/toolbar.rb +237 -0
  91. data/mod/05_standard/set/all/rich_html/wrapper.rb +43 -25
  92. data/mod/05_standard/set/right/account.rb +8 -7
  93. data/mod/05_standard/set/rstar/rules.rb +111 -84
  94. data/mod/05_standard/set/self/head.rb +15 -15
  95. data/mod/05_standard/set/type/set.rb +65 -34
  96. data/mod/05_standard/spec/set/all/attach_spec.rb +1 -1
  97. data/mod/05_standard/spec/set/all/rich_html/wrapper_spec.rb +13 -9
  98. data/mod/05_standard/spec/set/rstar/rules_spec.rb +1 -1
  99. data/mod/06_bootstrap/lib/javascript/bootstrap.js +108 -97
  100. data/mod/06_bootstrap/lib/javascript/smartmenu.js +94 -0
  101. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_alerts.scss +73 -0
  102. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_badges.scss +68 -0
  103. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
  104. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_button-groups.scss +243 -0
  105. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_buttons.scss +160 -0
  106. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_carousel.scss +269 -0
  107. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_close.scss +36 -0
  108. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_code.scss +69 -0
  109. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_component-animations.scss +37 -0
  110. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_dropdowns.scss +214 -0
  111. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_forms.scss +578 -0
  112. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_glyphicons.scss +305 -0
  113. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_grid.scss +84 -0
  114. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_input-groups.scss +166 -0
  115. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_jumbotron.scss +50 -0
  116. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_labels.scss +66 -0
  117. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_list-group.scss +124 -0
  118. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_media.scss +61 -0
  119. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_mixins.scss +39 -0
  120. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_modals.scss +150 -0
  121. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_navbar.scss +662 -0
  122. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_navs.scss +242 -0
  123. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_normalize.scss +427 -0
  124. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_pager.scss +54 -0
  125. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_pagination.scss +88 -0
  126. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_panels.scss +265 -0
  127. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_popovers.scss +135 -0
  128. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_print.scss +107 -0
  129. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_progress-bars.scss +87 -0
  130. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_responsive-embed.scss +35 -0
  131. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_responsive-utilities.scss +177 -0
  132. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_scaffolding.scss +162 -0
  133. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_tables.scss +234 -0
  134. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_theme.scss +273 -0
  135. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_thumbnails.scss +38 -0
  136. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_tooltip.scss +102 -0
  137. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_type.scss +298 -0
  138. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_utilities.scss +55 -0
  139. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_variables.scss +866 -0
  140. data/mod/06_bootstrap/lib/stylesheets/bootstrap/_wells.scss +29 -0
  141. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
  142. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
  143. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  144. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
  145. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  146. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  147. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_forms.scss +88 -0
  148. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
  149. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
  150. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  151. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  152. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_image.scss +33 -0
  153. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  154. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
  155. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  156. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  157. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
  158. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
  159. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_panels.scss +24 -0
  160. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
  161. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  162. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  163. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
  164. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_size.scss +10 -0
  165. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  166. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  167. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
  168. data/mod/06_bootstrap/lib/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  169. data/mod/06_bootstrap/lib/stylesheets/{bootswatch_mixins.scss → bootstrap/mixins/_vendor-prefixes.scss} +1 -61
  170. data/mod/06_bootstrap/lib/stylesheets/bootstrap_cards.scss +20 -13
  171. data/mod/06_bootstrap/lib/stylesheets/smartmenu.css +433 -0
  172. data/mod/06_bootstrap/set/all/bootstrap/wrapper.rb +2 -2
  173. data/mod/06_bootstrap/set/all/rich_bootstrap.rb +58 -4
  174. data/mod/06_bootstrap/set/self/bootstrap_js.rb +1 -1
  175. data/mod/06_bootstrap/set/self/bootswatch_shared.rb +32 -0
  176. data/mod/06_bootstrap/set/self/smartmenu_css.rb +7 -0
  177. data/mod/06_bootstrap/set/self/smartmenu_js.rb +7 -0
  178. data/spec/spec_helper.rb +16 -16
  179. metadata +133 -93
  180. data/db/bootstrap/card_changes.yml +0 -12765
  181. data/db/bootstrap/cards.yml +0 -11567
  182. data/db/seeds.rb +0 -8
  183. data/mod/03_machines/lib/javascript/script_card_menu.js +0 -72
  184. data/mod/06_bootstrap/lib/stylesheets/bootstrap_css.css +0 -6565
  185. data/mod/06_bootstrap/lib/stylesheets/theme_bootstrap_default.css +0 -476
  186. data/mod/06_bootstrap/lib/stylesheets/theme_cerulean.css +0 -6721
  187. data/mod/06_bootstrap/lib/stylesheets/theme_cosmo.css +0 -5898
  188. data/mod/06_bootstrap/lib/stylesheets/theme_cyborg.css +0 -5876
  189. data/mod/06_bootstrap/lib/stylesheets/theme_darkly.css +0 -5986
  190. data/mod/06_bootstrap/lib/stylesheets/theme_flatly.css +0 -6830
  191. data/mod/06_bootstrap/lib/stylesheets/theme_journal.css +0 -6647
  192. data/mod/06_bootstrap/lib/stylesheets/theme_lumen.css +0 -6097
  193. data/mod/06_bootstrap/lib/stylesheets/theme_paper.css +0 -6647
  194. data/mod/06_bootstrap/lib/stylesheets/theme_readable.css +0 -5896
  195. data/mod/06_bootstrap/lib/stylesheets/theme_sandstone.css +0 -6733
  196. data/mod/06_bootstrap/lib/stylesheets/theme_simplex.css +0 -5886
  197. data/mod/06_bootstrap/lib/stylesheets/theme_slate.css +0 -7057
  198. data/mod/06_bootstrap/lib/stylesheets/theme_spacelab.css +0 -5935
  199. data/mod/06_bootstrap/lib/stylesheets/theme_superhero.css +0 -5964
  200. data/mod/06_bootstrap/lib/stylesheets/theme_united.css +0 -6588
  201. data/mod/06_bootstrap/lib/stylesheets/theme_yeti.css +0 -6088
  202. data/mod/06_bootstrap/set/self/bootstrap_css.rb +0 -9
  203. data/mod/06_bootstrap/set/self/bootswatch_mixins.rb +0 -9
  204. data/mod/06_bootstrap/set/self/theme_bootstrap_default.rb +0 -2
  205. data/mod/06_bootstrap/set/self/theme_cerulean.rb +0 -9
  206. data/mod/06_bootstrap/set/self/theme_cosmo.rb +0 -2
  207. data/mod/06_bootstrap/set/self/theme_cyborg.rb +0 -2
  208. data/mod/06_bootstrap/set/self/theme_darkly.rb +0 -2
  209. data/mod/06_bootstrap/set/self/theme_flatly.rb +0 -2
  210. data/mod/06_bootstrap/set/self/theme_journal.rb +0 -2
  211. data/mod/06_bootstrap/set/self/theme_lumen.rb +0 -2
  212. data/mod/06_bootstrap/set/self/theme_paper.rb +0 -2
  213. data/mod/06_bootstrap/set/self/theme_readable.rb +0 -2
  214. data/mod/06_bootstrap/set/self/theme_sandstone.rb +0 -2
  215. data/mod/06_bootstrap/set/self/theme_simplex.rb +0 -2
  216. data/mod/06_bootstrap/set/self/theme_slate.rb +0 -2
  217. data/mod/06_bootstrap/set/self/theme_spacelab.rb +0 -2
  218. data/mod/06_bootstrap/set/self/theme_superhero.rb +0 -2
  219. data/mod/06_bootstrap/set/self/theme_united.rb +0 -2
  220. data/mod/06_bootstrap/set/self/theme_yeti.rb +0 -2
  221. data/test/fixtures/card_changes.yml +0 -17961
  222. data/test/fixtures/cards.yml +0 -16218
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4adb937d3b2787b3d0b61aa9cf1332e6af7b4421
4
- data.tar.gz: 8216118ed857c63b6650b3fe0500cab233adc22b
3
+ metadata.gz: 274f65e527708b6f35af24110339662cc3e4d675
4
+ data.tar.gz: 6253843809f23a2bf28af5d87c96d7353f430f82
5
5
  SHA512:
6
- metadata.gz: f8faa53af62e6e55de5055aec974e8bff35dc2123777ab0f8ec2b47eaf94687733835b3c3bf50c19ad79c084696b2a18f110462c6d99df212de2305128d4b27a
7
- data.tar.gz: b6f3e68fcc7166730e7137689a4acaebd9fe9ba590c2c477c1bcbccfc4fe9f7219d1a7bc19c9bfb8f3bc6860d0f6493b88ba075bfb7538d163f7c264fb351800
6
+ metadata.gz: 2c78f0e71a3501868330b12752c3272b428a758760af31385cc678352d4c59d6ea28a6c263b648b749d79a5cf6ac6e81b33936489938b441204b85530ec92f36
7
+ data.tar.gz: bd927f2facaa1833c0278221c8130c652afc91e2bad7641f4fba1927344367d8d23f6681fbb210ee97647a7a6d59213a6b1318616c07a9ae1af05000b9f1f59a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.1
1
+ 1.15.2
@@ -1,15 +1,11 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
- #require File.expand_path( '../lib/card/version', __FILE__ )
4
- #version = Card::Version.release
5
- version = File.open(File.expand_path( '../VERSION', __FILE__ )).read.chomp
6
-
7
3
  Gem::Specification.new do |s|
8
4
  s.name = 'card'
9
- s.version = version
5
+ s.version = File.open(File.expand_path( '../VERSION', __FILE__ )).read.chomp
10
6
  s.authors = ["Ethan McCutchen", "Lewis Hoffman", "Gerry Gleason", "Philipp Kühl"]
11
7
  s.email = ['info@wagn.org']
12
-
8
+
13
9
  # s.date = '2013-12-20'
14
10
  s.summary = "an atomic, set-driven content engine"
15
11
  s.description = "Cards are data atoms that are grouped into Sets to which Rules can apply. Cards can formatted with Views and transformed with Events."
@@ -17,37 +13,44 @@ Gem::Specification.new do |s|
17
13
  s.license = 'GPL'
18
14
 
19
15
  s.files = `git ls-files`.split($/)
20
-
16
+
17
+ # add submodule files (seed data)
18
+ `git submodule --quiet foreach pwd`.split($\).each do |submod_path|
19
+ gem_root = File.expand_path File.dirname(__FILE__)
20
+ relative_submod_path = submod_path.gsub "#{gem_root}/", ''
21
+ Dir.chdir(submod_path) do
22
+ s.files += `git ls-files`.split($\).map do |filename|
23
+ "#{relative_submod_path}/#{filename}"
24
+ end
25
+ end
26
+ end
27
+
21
28
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
22
29
  s.require_paths = ["lib"]
23
30
 
24
31
  s.required_ruby_version = '>= 1.8.7'
25
32
 
26
33
  [
27
-
34
+
28
35
  [ 'smartname', '0.2.3' ],
29
36
 
30
37
  [ 'uuid', '~> 2.3' ],
31
38
  [ 'paperclip', '~> 2.8' ],
32
39
  [ 'htmlentities', '~> 4.3' ],
33
40
  [ 'rmagick', '~> 2.13' ],
34
- [ 'recaptcha', '~> 0.3' ],
41
+ [ 'recaptcha', '~> 0.3' ],
35
42
  [ 'coderay', '~> 1.0' ],
36
43
  [ 'sass', '~> 3.2' ],
37
44
  [ 'coffee-script','~> 2.2' ],
38
45
  [ 'uglifier', '~> 2.5' ],
39
-
46
+
40
47
  [ 'haml', '~> 4.0' ],
41
48
  [ 'kaminari', '~> 0.16' ],
42
49
  [ 'bootstrap-kaminari-views', '~> 0.0.5'],
43
- [ 'diffy', '~> 3.0' ],
44
- [ 'diff-lcs', '~> 1.2' ],
45
- # should not depend!
46
- [ 'airbrake', '~> 4.1' ]
50
+ [ 'diff-lcs', '~> 1.2' ]
47
51
 
48
-
49
52
  ].each do |dep|
50
53
  s.add_runtime_dependency *dep
51
54
  end
52
-
55
+
53
56
  end
@@ -3,4 +3,5 @@ Recaptcha.configure do |config|
3
3
  config.public_key = Cardio.config.recaptcha_public_key || nil
4
4
  config.private_key = Cardio.config.recaptcha_private_key || nil
5
5
  config.proxy = Cardio.config.recaptcha_proxy || nil
6
+ config.api_version = 'v1'
6
7
  end
@@ -8,9 +8,8 @@ class ImportBootstrapLayout < Card::CoreMigration
8
8
  layout.update_referencers = true
9
9
  layout.save!
10
10
  end
11
-
12
- import_json "bootstrap_layout.json"#, :pristine=>true, :output_file=>nil
13
11
 
12
+ import_json "bootstrap_layout.json"#, :pristine=>true, :output_file=>nil
14
13
  if layout && layout.pristine? &&
15
14
  all = Card[:all]
16
15
  layout_rule_card = all.fetch :trait=>:layout
@@ -18,7 +17,7 @@ class ImportBootstrapLayout < Card::CoreMigration
18
17
  if layout_rule_card.pristine? && style_rule_card.pristine?
19
18
  layout_rule_card.update_attributes! :content=> '[[Default Layout]]'
20
19
  if style_rule_card.item_names.first == 'customized classic skin'
21
- Card.create! :name=>'customized bootstrap skin', :type=>'Skin',
20
+ Card.create! :name=>'customized bootstrap skin', :type=>'Skin',
22
21
  :content=>"[[classic bootstrap skin]]\n[[*css]]"
23
22
  style_rule_card.update_attributes! :content=> '[[customized bootstrap skin]]'
24
23
  else
@@ -26,46 +25,46 @@ class ImportBootstrapLayout < Card::CoreMigration
26
25
  end
27
26
  end
28
27
  end
29
-
28
+
30
29
  Card.create! :name=>"*header+*self+*read", :content=>'[[Anyone]]'
31
-
30
+
32
31
  # merge "style: functional" and "style: standard" into "style: cards"
33
32
  old_func = Card[:style_functional]
34
33
  old_func.name = 'style: cards'
35
34
  old_func.codename = 'style_cards'
36
35
  old_func.update_referencers = true
37
36
  old_func.save!
38
-
37
+
39
38
  old_stand = Card[:style_standard]
40
39
  old_stand.codename = nil
41
40
  old_stand.delete!
42
-
41
+
43
42
 
44
43
  # these are hard-coded
45
44
  Card.create! :name=>'theme: bootstrap_default', :type_code=>:css, :codename=>'theme_bootstrap_default'
46
45
  Card.create! :name=>'style: bootstrap', :type_code=>:css, :codename=>'bootstrap_css'
47
46
  Card.create! :name=>'style: bootstrap cards', :type_code=>:css, :codename=>'bootstrap_cards'
48
-
47
+
49
48
  Card.create! :name=>'style: bootstrap compatible', :type_code=>:scss, :codename=>'style_bootstrap_compatible'
50
49
  Card.create! :name=>'script: bootstrap', :type_code=>:js, :codename=>'bootstrap_js'
51
-
50
+
52
51
  # add new setting: *default html view
53
52
  Card.create! :name=>'*default html view', :type_code=>:setting, :codename=>'default_html_view'
54
53
  Card.create! :name=>'*default html view+*right+*default', :type_code=>:phrase
55
-
54
+
56
55
  # retain old behavior (default view was content, now titled)
57
56
  Card.create! :name=>'*all+*default html view', :content=>'content'
58
-
57
+
59
58
  # update layouts to have explicit views in inclusions
60
59
  Card.search( :type_id=>Card::LayoutTypeID ) do |lcard|
61
60
  lcontent = Card::Content.new lcard.content, lcard
62
61
  lcontent.find_chunks( Card::Chunk::Include ).each do |nest|
63
62
  nest.explicit_view = (nest.options[:inc_name]=='_main' ? 'open' : 'core')
64
- end
63
+ end
65
64
  lcard.update_attributes! :content=>lcontent.to_s
66
65
  end
67
-
66
+
68
67
  Card::Cache.reset_global
69
-
68
+
70
69
  end
71
70
  end
@@ -0,0 +1,30 @@
1
+ # -*- encoding : utf-8 -*-
2
+
3
+ class BootswatchThemes < Card::CoreMigration
4
+ def up
5
+ themeless = Card.fetch 'themeless bootstrap skin', :new=>{:type_code=>:skin}
6
+ themeless.update_attributes! :content=> "[[style: jquery-ui-smoothness]]\n[[style: cards]]\n[[style: right sidebar]]\n[[style: bootstrap cards]]"
7
+ bs = Card[:bootstrap_css]
8
+ bs.update_attributes! :codename=>nil
9
+ bs.delete!
10
+
11
+ Card.create! :name=>'bootswatch shared', :type_code=>:scss, :codename=>'bootswatch_shared'
12
+ Card.create! :name=>'bootswatch theme+*right+*structure', :type_id=>Card::ScssID, :content=>'{{_left+variables}}{{bootswatch shared}}{{_left+style}}'
13
+ %w{bootstrap_default cerulean cosmo cyborg darkly flatly journal lumen paper readable sandstone simplex slate spacelab superhero united yeti }.each do |theme_name|
14
+ path = data_path "themes/#{theme_name}"
15
+ theme = Card.fetch "#{theme_name} skin"
16
+
17
+ if theme
18
+ theme.update_attributes! :type_id=>Card::SkinID, :content => "[[themeless bootstrap skin]]\n[[+bootswatch theme]]", :subcards=> {
19
+ "+variables" => {:type_id=>Card::ScssID, :content=>File.read(File.join path, '_variables.scss')},
20
+ "+style" => {:type_id=>Card::ScssID, :content=>File.read(File.join path, '_bootswatch.scss')}
21
+ }
22
+ else
23
+ Card.create! :name=>"#{theme_name.sub('_',' ')} skin", :type_id=>Card::SkinID, :content => "[[themeless bootstrap skin]]\n[[+bootswatch theme]]", :subcards=> {
24
+ "+variables" => {:type_id=>Card::ScssID, :content=>File.read(File.join path, '_variables.scss')},
25
+ "+style" => {:type_id=>Card::ScssID, :content=>File.read(File.join path, '_bootswatch.scss')}
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,8 @@
1
+ # -*- encoding : utf-8 -*-
2
+
3
+ class NewCardMenu < Card::CoreMigration
4
+ def up
5
+ menu_js = Card[:script_card_menu]
6
+ menu_js.update_attributes! :type_id=>Card::CoffeeScriptID
7
+ end
8
+ end
@@ -0,0 +1,27 @@
1
+ # -*- encoding : utf-8 -*-
2
+
3
+ class MenuCompatibility < Card::CoreMigration
4
+ def up
5
+
6
+ # Add bootswatch shared to old skins so that menu works
7
+ bootswatch_shared = Card[:bootswatch_shared]
8
+ Card.search(:type_id=>Card::SkinID) do |skin|
9
+ if skin.item_cards.find { |item_card| item_card.codename.to_s == 'style_bootstrap_compatible'}
10
+ skin.add_item bootswatch_shared.name
11
+ skin.save!
12
+ end
13
+ end
14
+
15
+ # Delete output files so all the styling and js changes take effect.
16
+ # (this can be removed if/when later migrations update those things directly)
17
+ [:style, :script].each do |setting|
18
+ Card.search(
19
+ :right_id=>Card::MachineOutputID,
20
+ :left=>{ :right=>{:codename=>setting.to_s } }
21
+ ).each do |output_card|
22
+ output_card.delete!
23
+ end
24
+ end
25
+
26
+ end
27
+ end
@@ -0,0 +1,13 @@
1
+ # -*- encoding : utf-8 -*-
2
+
3
+ class FixSkinImages < Card::CoreMigration
4
+ def up
5
+
6
+ # This is needed because the bootswatch_themes migration removed codenames.
7
+ # They were no longer needed for style handling but are still needed for images
8
+ %w{bootstrap_default cerulean cosmo cyborg darkly flatly journal lumen paper readable sandstone simplex slate spacelab superhero united yeti }.each do |theme_name|
9
+ theme_name = "#{theme_name}_skin"
10
+ Card.fetch( theme_name ).update_attributes! :codename=>theme_name
11
+ end
12
+ end
13
+ end
@@ -1,4 +1,4 @@
1
- /*
1
+ /*
2
2
  This stylesheet defines the core rules of the "classic" Wagn look.
3
3
  */
4
4
 
@@ -35,7 +35,7 @@ body {
35
35
  > .instruction {
36
36
  color: #440;
37
37
  background: #ddc;
38
- }
38
+ }
39
39
  }
40
40
 
41
41
 
@@ -55,9 +55,13 @@ body {
55
55
  }
56
56
 
57
57
 
58
- .errors-view > .card-body {
59
- border: 2px solid #b44;
60
- background: #ffb;
58
+ .errors-view {
59
+ > .card-frame, & {
60
+ > .card-body {
61
+ border: 2px solid #b44;
62
+ background: #ffb;
63
+ }
64
+ }
61
65
  }
62
66
 
63
67
 
@@ -25,7 +25,7 @@ textarea, input {
25
25
  line-height: 1.5em;
26
26
  }
27
27
 
28
- /*
28
+ /*
29
29
  the following gives users more explicit control over spacing within tinyMCE
30
30
  but leads to lots of empty paragraph tags
31
31
  */
@@ -74,13 +74,13 @@ form {
74
74
  > .card-header {
75
75
  background: $header_color;
76
76
  padding: 5px 12px;
77
- }
77
+ }
78
78
  > .card-body {
79
79
  padding: 5px 12px;
80
80
  }
81
81
  > .instruction {
82
82
  background: #ccc;
83
- }
83
+ }
84
84
  }
85
85
 
86
86
  .card-header > .instruction {
@@ -122,10 +122,10 @@ select {
122
122
  border-left: 2px solid #666;
123
123
  background: $input_color;
124
124
  :focus {
125
- background: $input_focus_color;
125
+ background: $input_focus_color;
126
126
  }
127
127
  }
128
- .history-view > .card-content,
128
+ .history-view > .card-frame > .card-content,
129
129
  .conflict-view,
130
130
  body#tinymce {
131
131
  background: $input_color;
@@ -0,0 +1,866 @@
1
+ $bootstrap-sass-asset-helper: false !default;
2
+ //
3
+ // Variables
4
+ // --------------------------------------------------
5
+
6
+
7
+ //== Colors
8
+ //
9
+ //## Gray and brand colors for use across Bootstrap.
10
+
11
+ $gray-base: #000 !default;
12
+ $gray-darker: lighten($gray-base, 13.5%) !default; // #222
13
+ $gray-dark: lighten($gray-base, 20%) !default; // #333
14
+ $gray: lighten($gray-base, 33.5%) !default; // #555
15
+ $gray-light: lighten($gray-base, 46.7%) !default; // #777
16
+ $gray-lighter: lighten($gray-base, 93.5%) !default; // #eee
17
+
18
+ $brand-primary: darken(#428bca, 6.5%) !default; // #337ab7
19
+ $brand-success: #5cb85c !default;
20
+ $brand-info: #5bc0de !default;
21
+ $brand-warning: #f0ad4e !default;
22
+ $brand-danger: #d9534f !default;
23
+
24
+
25
+ //== Scaffolding
26
+ //
27
+ //## Settings for some of the most global styles.
28
+
29
+ //** Background color for `<body>`.
30
+ $body-bg: #fff !default;
31
+ //** Global text color on `<body>`.
32
+ $text-color: $gray-dark !default;
33
+
34
+ //** Global textual link color.
35
+ $link-color: $brand-primary !default;
36
+ //** Link hover color set via `darken()` function.
37
+ $link-hover-color: darken($link-color, 15%) !default;
38
+ //** Link hover decoration.
39
+ $link-hover-decoration: underline !default;
40
+
41
+
42
+ //== Typography
43
+ //
44
+ //## Font, line-height, and color for body text, headings, and more.
45
+
46
+ $font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
47
+ $font-family-serif: Georgia, "Times New Roman", Times, serif !default;
48
+ //** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
49
+ $font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace !default;
50
+ $font-family-base: $font-family-sans-serif !default;
51
+
52
+ $font-size-base: 14px !default;
53
+ $font-size-large: ceil(($font-size-base * 1.25)) !default; // ~18px
54
+ $font-size-small: ceil(($font-size-base * 0.85)) !default; // ~12px
55
+
56
+ $font-size-h1: floor(($font-size-base * 2.6)) !default; // ~36px
57
+ $font-size-h2: floor(($font-size-base * 2.15)) !default; // ~30px
58
+ $font-size-h3: ceil(($font-size-base * 1.7)) !default; // ~24px
59
+ $font-size-h4: ceil(($font-size-base * 1.25)) !default; // ~18px
60
+ $font-size-h5: $font-size-base !default;
61
+ $font-size-h6: ceil(($font-size-base * 0.85)) !default; // ~12px
62
+
63
+ //** Unit-less `line-height` for use in components like buttons.
64
+ $line-height-base: 1.428571429 !default; // 20/14
65
+ //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
66
+ $line-height-computed: floor(($font-size-base * $line-height-base)) !default; // ~20px
67
+
68
+ //** By default, this inherits from the `<body>`.
69
+ $headings-font-family: inherit !default;
70
+ $headings-font-weight: 500 !default;
71
+ $headings-line-height: 1.1 !default;
72
+ $headings-color: inherit !default;
73
+
74
+
75
+ //== Iconography
76
+ //
77
+ //## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
78
+
79
+ //** Load fonts from this directory.
80
+
81
+ // [converter] If $bootstrap-sass-asset-helper if used, provide path relative to the assets load path.
82
+ // [converter] This is because some asset helpers, such as Sprockets, do not work with file-relative paths.
83
+ $icon-font-path: if($bootstrap-sass-asset-helper, "bootstrap/", "../fonts/bootstrap/") !default;
84
+
85
+ //** File name for all font files.
86
+ $icon-font-name: "glyphicons-halflings-regular" !default;
87
+ //** Element ID within SVG icon file.
88
+ $icon-font-svg-id: "glyphicons_halflingsregular" !default;
89
+
90
+
91
+ //== Components
92
+ //
93
+ //## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
94
+
95
+ $padding-base-vertical: 6px !default;
96
+ $padding-base-horizontal: 12px !default;
97
+
98
+ $padding-large-vertical: 10px !default;
99
+ $padding-large-horizontal: 16px !default;
100
+
101
+ $padding-small-vertical: 5px !default;
102
+ $padding-small-horizontal: 10px !default;
103
+
104
+ $padding-xs-vertical: 1px !default;
105
+ $padding-xs-horizontal: 5px !default;
106
+
107
+ $line-height-large: 1.3333333 !default; // extra decimals for Win 8.1 Chrome
108
+ $line-height-small: 1.5 !default;
109
+
110
+ $border-radius-base: 4px !default;
111
+ $border-radius-large: 6px !default;
112
+ $border-radius-small: 3px !default;
113
+
114
+ //** Global color for active items (e.g., navs or dropdowns).
115
+ $component-active-color: #fff !default;
116
+ //** Global background color for active items (e.g., navs or dropdowns).
117
+ $component-active-bg: $brand-primary !default;
118
+
119
+ //** Width of the `border` for generating carets that indicator dropdowns.
120
+ $caret-width-base: 4px !default;
121
+ //** Carets increase slightly in size for larger components.
122
+ $caret-width-large: 5px !default;
123
+
124
+
125
+ //== Tables
126
+ //
127
+ //## Customizes the `.table` component with basic values, each used across all table variations.
128
+
129
+ //** Padding for `<th>`s and `<td>`s.
130
+ $table-cell-padding: 8px !default;
131
+ //** Padding for cells in `.table-condensed`.
132
+ $table-condensed-cell-padding: 5px !default;
133
+
134
+ //** Default background color used for all tables.
135
+ $table-bg: transparent !default;
136
+ //** Background color used for `.table-striped`.
137
+ $table-bg-accent: #f9f9f9 !default;
138
+ //** Background color used for `.table-hover`.
139
+ $table-bg-hover: #f5f5f5 !default;
140
+ $table-bg-active: $table-bg-hover !default;
141
+
142
+ //** Border color for table and cell borders.
143
+ $table-border-color: #ddd !default;
144
+
145
+
146
+ //== Buttons
147
+ //
148
+ //## For each of Bootstrap's buttons, define text, background and border color.
149
+
150
+ $btn-font-weight: normal !default;
151
+
152
+ $btn-default-color: #333 !default;
153
+ $btn-default-bg: #fff !default;
154
+ $btn-default-border: #ccc !default;
155
+
156
+ $btn-primary-color: #fff !default;
157
+ $btn-primary-bg: $brand-primary !default;
158
+ $btn-primary-border: darken($btn-primary-bg, 5%) !default;
159
+
160
+ $btn-success-color: #fff !default;
161
+ $btn-success-bg: $brand-success !default;
162
+ $btn-success-border: darken($btn-success-bg, 5%) !default;
163
+
164
+ $btn-info-color: #fff !default;
165
+ $btn-info-bg: $brand-info !default;
166
+ $btn-info-border: darken($btn-info-bg, 5%) !default;
167
+
168
+ $btn-warning-color: #fff !default;
169
+ $btn-warning-bg: $brand-warning !default;
170
+ $btn-warning-border: darken($btn-warning-bg, 5%) !default;
171
+
172
+ $btn-danger-color: #fff !default;
173
+ $btn-danger-bg: $brand-danger !default;
174
+ $btn-danger-border: darken($btn-danger-bg, 5%) !default;
175
+
176
+ $btn-link-disabled-color: $gray-light !default;
177
+
178
+
179
+ //== Forms
180
+ //
181
+ //##
182
+
183
+ //** `<input>` background color
184
+ $input-bg: #fff !default;
185
+ //** `<input disabled>` background color
186
+ $input-bg-disabled: $gray-lighter !default;
187
+
188
+ //** Text color for `<input>`s
189
+ $input-color: $gray !default;
190
+ //** `<input>` border color
191
+ $input-border: #ccc !default;
192
+
193
+ // TODO: Rename `$input-border-radius` to `$input-border-radius-base` in v4
194
+ //** Default `.form-control` border radius
195
+ // This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
196
+ $input-border-radius: $border-radius-base !default;
197
+ //** Large `.form-control` border radius
198
+ $input-border-radius-large: $border-radius-large !default;
199
+ //** Small `.form-control` border radius
200
+ $input-border-radius-small: $border-radius-small !default;
201
+
202
+ //** Border color for inputs on focus
203
+ $input-border-focus: #66afe9 !default;
204
+
205
+ //** Placeholder text color
206
+ $input-color-placeholder: #999 !default;
207
+
208
+ //** Default `.form-control` height
209
+ $input-height-base: ($line-height-computed + ($padding-base-vertical * 2) + 2) !default;
210
+ //** Large `.form-control` height
211
+ $input-height-large: (ceil($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 2) !default;
212
+ //** Small `.form-control` height
213
+ $input-height-small: (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2) !default;
214
+
215
+ //** `.form-group` margin
216
+ $form-group-margin-bottom: 15px !default;
217
+
218
+ $legend-color: $gray-dark !default;
219
+ $legend-border-color: #e5e5e5 !default;
220
+
221
+ //** Background color for textual input addons
222
+ $input-group-addon-bg: $gray-lighter !default;
223
+ //** Border color for textual input addons
224
+ $input-group-addon-border-color: $input-border !default;
225
+
226
+ //** Disabled cursor for form controls and buttons.
227
+ $cursor-disabled: not-allowed !default;
228
+
229
+
230
+ //== Dropdowns
231
+ //
232
+ //## Dropdown menu container and contents.
233
+
234
+ //** Background for the dropdown menu.
235
+ $dropdown-bg: #fff !default;
236
+ //** Dropdown menu `border-color`.
237
+ $dropdown-border: rgba(0,0,0,.15) !default;
238
+ //** Dropdown menu `border-color` **for IE8**.
239
+ $dropdown-fallback-border: #ccc !default;
240
+ //** Divider color for between dropdown items.
241
+ $dropdown-divider-bg: #e5e5e5 !default;
242
+
243
+ //** Dropdown link text color.
244
+ $dropdown-link-color: $gray-dark !default;
245
+ //** Hover color for dropdown links.
246
+ $dropdown-link-hover-color: darken($gray-dark, 5%) !default;
247
+ //** Hover background for dropdown links.
248
+ $dropdown-link-hover-bg: #f5f5f5 !default;
249
+
250
+ //** Active dropdown menu item text color.
251
+ $dropdown-link-active-color: $component-active-color !default;
252
+ //** Active dropdown menu item background color.
253
+ $dropdown-link-active-bg: $component-active-bg !default;
254
+
255
+ //** Disabled dropdown menu item background color.
256
+ $dropdown-link-disabled-color: $gray-light !default;
257
+
258
+ //** Text color for headers within dropdown menus.
259
+ $dropdown-header-color: $gray-light !default;
260
+
261
+ //** Deprecated `$dropdown-caret-color` as of v3.1.0
262
+ $dropdown-caret-color: #000 !default;
263
+
264
+
265
+ //-- Z-index master list
266
+ //
267
+ // Warning: Avoid customizing these values. They're used for a bird's eye view
268
+ // of components dependent on the z-axis and are designed to all work together.
269
+ //
270
+ // Note: These variables are not generated into the Customizer.
271
+
272
+ $zindex-navbar: 1000 !default;
273
+ $zindex-dropdown: 1000 !default;
274
+ $zindex-popover: 1060 !default;
275
+ $zindex-tooltip: 1070 !default;
276
+ $zindex-navbar-fixed: 1030 !default;
277
+ $zindex-modal-background: 1040 !default;
278
+ $zindex-modal: 1050 !default;
279
+
280
+
281
+ //== Media queries breakpoints
282
+ //
283
+ //## Define the breakpoints at which your layout will change, adapting to different screen sizes.
284
+
285
+ // Extra small screen / phone
286
+ //** Deprecated `$screen-xs` as of v3.0.1
287
+ $screen-xs: 480px !default;
288
+ //** Deprecated `$screen-xs-min` as of v3.2.0
289
+ $screen-xs-min: $screen-xs !default;
290
+ //** Deprecated `$screen-phone` as of v3.0.1
291
+ $screen-phone: $screen-xs-min !default;
292
+
293
+ // Small screen / tablet
294
+ //** Deprecated `$screen-sm` as of v3.0.1
295
+ $screen-sm: 768px !default;
296
+ $screen-sm-min: $screen-sm !default;
297
+ //** Deprecated `$screen-tablet` as of v3.0.1
298
+ $screen-tablet: $screen-sm-min !default;
299
+
300
+ // Medium screen / desktop
301
+ //** Deprecated `$screen-md` as of v3.0.1
302
+ $screen-md: 992px !default;
303
+ $screen-md-min: $screen-md !default;
304
+ //** Deprecated `$screen-desktop` as of v3.0.1
305
+ $screen-desktop: $screen-md-min !default;
306
+
307
+ // Large screen / wide desktop
308
+ //** Deprecated `$screen-lg` as of v3.0.1
309
+ $screen-lg: 1200px !default;
310
+ $screen-lg-min: $screen-lg !default;
311
+ //** Deprecated `$screen-lg-desktop` as of v3.0.1
312
+ $screen-lg-desktop: $screen-lg-min !default;
313
+
314
+ // So media queries don't overlap when required, provide a maximum
315
+ $screen-xs-max: ($screen-sm-min - 1) !default;
316
+ $screen-sm-max: ($screen-md-min - 1) !default;
317
+ $screen-md-max: ($screen-lg-min - 1) !default;
318
+
319
+
320
+ //== Grid system
321
+ //
322
+ //## Define your custom responsive grid.
323
+
324
+ //** Number of columns in the grid.
325
+ $grid-columns: 12 !default;
326
+ //** Padding between columns. Gets divided in half for the left and right.
327
+ $grid-gutter-width: 30px !default;
328
+ // Navbar collapse
329
+ //** Point at which the navbar becomes uncollapsed.
330
+ $grid-float-breakpoint: $screen-sm-min !default;
331
+ //** Point at which the navbar begins collapsing.
332
+ $grid-float-breakpoint-max: ($grid-float-breakpoint - 1) !default;
333
+
334
+
335
+ //== Container sizes
336
+ //
337
+ //## Define the maximum width of `.container` for different screen sizes.
338
+
339
+ // Small screen / tablet
340
+ $container-tablet: (720px + $grid-gutter-width) !default;
341
+ //** For `$screen-sm-min` and up.
342
+ $container-sm: $container-tablet !default;
343
+
344
+ // Medium screen / desktop
345
+ $container-desktop: (940px + $grid-gutter-width) !default;
346
+ //** For `$screen-md-min` and up.
347
+ $container-md: $container-desktop !default;
348
+
349
+ // Large screen / wide desktop
350
+ $container-large-desktop: (1140px + $grid-gutter-width) !default;
351
+ //** For `$screen-lg-min` and up.
352
+ $container-lg: $container-large-desktop !default;
353
+
354
+
355
+ //== Navbar
356
+ //
357
+ //##
358
+
359
+ // Basics of a navbar
360
+ $navbar-height: 50px !default;
361
+ $navbar-margin-bottom: $line-height-computed !default;
362
+ $navbar-border-radius: $border-radius-base !default;
363
+ $navbar-padding-horizontal: floor(($grid-gutter-width / 2)) !default;
364
+ $navbar-padding-vertical: (($navbar-height - $line-height-computed) / 2) !default;
365
+ $navbar-collapse-max-height: 340px !default;
366
+
367
+ $navbar-default-color: #777 !default;
368
+ $navbar-default-bg: #f8f8f8 !default;
369
+ $navbar-default-border: darken($navbar-default-bg, 6.5%) !default;
370
+
371
+ // Navbar links
372
+ $navbar-default-link-color: #777 !default;
373
+ $navbar-default-link-hover-color: #333 !default;
374
+ $navbar-default-link-hover-bg: transparent !default;
375
+ $navbar-default-link-active-color: #555 !default;
376
+ $navbar-default-link-active-bg: darken($navbar-default-bg, 6.5%) !default;
377
+ $navbar-default-link-disabled-color: #ccc !default;
378
+ $navbar-default-link-disabled-bg: transparent !default;
379
+
380
+ // Navbar brand label
381
+ $navbar-default-brand-color: $navbar-default-link-color !default;
382
+ $navbar-default-brand-hover-color: darken($navbar-default-brand-color, 10%) !default;
383
+ $navbar-default-brand-hover-bg: transparent !default;
384
+
385
+ // Navbar toggle
386
+ $navbar-default-toggle-hover-bg: #ddd !default;
387
+ $navbar-default-toggle-icon-bar-bg: #888 !default;
388
+ $navbar-default-toggle-border-color: #ddd !default;
389
+
390
+
391
+ // Inverted navbar
392
+ // Reset inverted navbar basics
393
+ $navbar-inverse-color: lighten($gray-light, 15%) !default;
394
+ $navbar-inverse-bg: #222 !default;
395
+ $navbar-inverse-border: darken($navbar-inverse-bg, 10%) !default;
396
+
397
+ // Inverted navbar links
398
+ $navbar-inverse-link-color: lighten($gray-light, 15%) !default;
399
+ $navbar-inverse-link-hover-color: #fff !default;
400
+ $navbar-inverse-link-hover-bg: transparent !default;
401
+ $navbar-inverse-link-active-color: $navbar-inverse-link-hover-color !default;
402
+ $navbar-inverse-link-active-bg: darken($navbar-inverse-bg, 10%) !default;
403
+ $navbar-inverse-link-disabled-color: #444 !default;
404
+ $navbar-inverse-link-disabled-bg: transparent !default;
405
+
406
+ // Inverted navbar brand label
407
+ $navbar-inverse-brand-color: $navbar-inverse-link-color !default;
408
+ $navbar-inverse-brand-hover-color: #fff !default;
409
+ $navbar-inverse-brand-hover-bg: transparent !default;
410
+
411
+ // Inverted navbar toggle
412
+ $navbar-inverse-toggle-hover-bg: #333 !default;
413
+ $navbar-inverse-toggle-icon-bar-bg: #fff !default;
414
+ $navbar-inverse-toggle-border-color: #333 !default;
415
+
416
+
417
+ //== Navs
418
+ //
419
+ //##
420
+
421
+ //=== Shared nav styles
422
+ $nav-link-padding: 10px 15px !default;
423
+ $nav-link-hover-bg: $gray-lighter !default;
424
+
425
+ $nav-disabled-link-color: $gray-light !default;
426
+ $nav-disabled-link-hover-color: $gray-light !default;
427
+
428
+ //== Tabs
429
+ $nav-tabs-border-color: #ddd !default;
430
+
431
+ $nav-tabs-link-hover-border-color: $gray-lighter !default;
432
+
433
+ $nav-tabs-active-link-hover-bg: $body-bg !default;
434
+ $nav-tabs-active-link-hover-color: $gray !default;
435
+ $nav-tabs-active-link-hover-border-color: #ddd !default;
436
+
437
+ $nav-tabs-justified-link-border-color: #ddd !default;
438
+ $nav-tabs-justified-active-link-border-color: $body-bg !default;
439
+
440
+ //== Pills
441
+ $nav-pills-border-radius: $border-radius-base !default;
442
+ $nav-pills-active-link-hover-bg: $component-active-bg !default;
443
+ $nav-pills-active-link-hover-color: $component-active-color !default;
444
+
445
+
446
+ //== Pagination
447
+ //
448
+ //##
449
+
450
+ $pagination-color: $link-color !default;
451
+ $pagination-bg: #fff !default;
452
+ $pagination-border: #ddd !default;
453
+
454
+ $pagination-hover-color: $link-hover-color !default;
455
+ $pagination-hover-bg: $gray-lighter !default;
456
+ $pagination-hover-border: #ddd !default;
457
+
458
+ $pagination-active-color: #fff !default;
459
+ $pagination-active-bg: $brand-primary !default;
460
+ $pagination-active-border: $brand-primary !default;
461
+
462
+ $pagination-disabled-color: $gray-light !default;
463
+ $pagination-disabled-bg: #fff !default;
464
+ $pagination-disabled-border: #ddd !default;
465
+
466
+
467
+ //== Pager
468
+ //
469
+ //##
470
+
471
+ $pager-bg: $pagination-bg !default;
472
+ $pager-border: $pagination-border !default;
473
+ $pager-border-radius: 15px !default;
474
+
475
+ $pager-hover-bg: $pagination-hover-bg !default;
476
+
477
+ $pager-active-bg: $pagination-active-bg !default;
478
+ $pager-active-color: $pagination-active-color !default;
479
+
480
+ $pager-disabled-color: $pagination-disabled-color !default;
481
+
482
+
483
+ //== Jumbotron
484
+ //
485
+ //##
486
+
487
+ $jumbotron-padding: 30px !default;
488
+ $jumbotron-color: inherit !default;
489
+ $jumbotron-bg: $gray-lighter !default;
490
+ $jumbotron-heading-color: inherit !default;
491
+ $jumbotron-font-size: ceil(($font-size-base * 1.5)) !default;
492
+
493
+
494
+ //== Form states and alerts
495
+ //
496
+ //## Define colors for form feedback states and, by default, alerts.
497
+
498
+ $state-success-text: #3c763d !default;
499
+ $state-success-bg: #dff0d8 !default;
500
+ $state-success-border: darken(adjust-hue($state-success-bg, -10), 5%) !default;
501
+
502
+ $state-info-text: #31708f !default;
503
+ $state-info-bg: #d9edf7 !default;
504
+ $state-info-border: darken(adjust-hue($state-info-bg, -10), 7%) !default;
505
+
506
+ $state-warning-text: #8a6d3b !default;
507
+ $state-warning-bg: #fcf8e3 !default;
508
+ $state-warning-border: darken(adjust-hue($state-warning-bg, -10), 5%) !default;
509
+
510
+ $state-danger-text: #a94442 !default;
511
+ $state-danger-bg: #f2dede !default;
512
+ $state-danger-border: darken(adjust-hue($state-danger-bg, -10), 5%) !default;
513
+
514
+
515
+ //== Tooltips
516
+ //
517
+ //##
518
+
519
+ //** Tooltip max width
520
+ $tooltip-max-width: 200px !default;
521
+ //** Tooltip text color
522
+ $tooltip-color: #fff !default;
523
+ //** Tooltip background color
524
+ $tooltip-bg: #000 !default;
525
+ $tooltip-opacity: .9 !default;
526
+
527
+ //** Tooltip arrow width
528
+ $tooltip-arrow-width: 5px !default;
529
+ //** Tooltip arrow color
530
+ $tooltip-arrow-color: $tooltip-bg !default;
531
+
532
+
533
+ //== Popovers
534
+ //
535
+ //##
536
+
537
+ //** Popover body background color
538
+ $popover-bg: #fff !default;
539
+ //** Popover maximum width
540
+ $popover-max-width: 276px !default;
541
+ //** Popover border color
542
+ $popover-border-color: rgba(0,0,0,.2) !default;
543
+ //** Popover fallback border color
544
+ $popover-fallback-border-color: #ccc !default;
545
+
546
+ //** Popover title background color
547
+ $popover-title-bg: darken($popover-bg, 3%) !default;
548
+
549
+ //** Popover arrow width
550
+ $popover-arrow-width: 10px !default;
551
+ //** Popover arrow color
552
+ $popover-arrow-color: $popover-bg !default;
553
+
554
+ //** Popover outer arrow width
555
+ $popover-arrow-outer-width: ($popover-arrow-width + 1) !default;
556
+ //** Popover outer arrow color
557
+ $popover-arrow-outer-color: fade_in($popover-border-color, 0.05) !default;
558
+ //** Popover outer arrow fallback color
559
+ $popover-arrow-outer-fallback-color: darken($popover-fallback-border-color, 20%) !default;
560
+
561
+
562
+ //== Labels
563
+ //
564
+ //##
565
+
566
+ //** Default label background color
567
+ $label-default-bg: $gray-light !default;
568
+ //** Primary label background color
569
+ $label-primary-bg: $brand-primary !default;
570
+ //** Success label background color
571
+ $label-success-bg: $brand-success !default;
572
+ //** Info label background color
573
+ $label-info-bg: $brand-info !default;
574
+ //** Warning label background color
575
+ $label-warning-bg: $brand-warning !default;
576
+ //** Danger label background color
577
+ $label-danger-bg: $brand-danger !default;
578
+
579
+ //** Default label text color
580
+ $label-color: #fff !default;
581
+ //** Default text color of a linked label
582
+ $label-link-hover-color: #fff !default;
583
+
584
+
585
+ //== Modals
586
+ //
587
+ //##
588
+
589
+ //** Padding applied to the modal body
590
+ $modal-inner-padding: 15px !default;
591
+
592
+ //** Padding applied to the modal title
593
+ $modal-title-padding: 15px !default;
594
+ //** Modal title line-height
595
+ $modal-title-line-height: $line-height-base !default;
596
+
597
+ //** Background color of modal content area
598
+ $modal-content-bg: #fff !default;
599
+ //** Modal content border color
600
+ $modal-content-border-color: rgba(0,0,0,.2) !default;
601
+ //** Modal content border color **for IE8**
602
+ $modal-content-fallback-border-color: #999 !default;
603
+
604
+ //** Modal backdrop background color
605
+ $modal-backdrop-bg: #000 !default;
606
+ //** Modal backdrop opacity
607
+ $modal-backdrop-opacity: .5 !default;
608
+ //** Modal header border color
609
+ $modal-header-border-color: #e5e5e5 !default;
610
+ //** Modal footer border color
611
+ $modal-footer-border-color: $modal-header-border-color !default;
612
+
613
+ $modal-lg: 900px !default;
614
+ $modal-md: 600px !default;
615
+ $modal-sm: 300px !default;
616
+
617
+
618
+ //== Alerts
619
+ //
620
+ //## Define alert colors, border radius, and padding.
621
+
622
+ $alert-padding: 15px !default;
623
+ $alert-border-radius: $border-radius-base !default;
624
+ $alert-link-font-weight: bold !default;
625
+
626
+ $alert-success-bg: $state-success-bg !default;
627
+ $alert-success-text: $state-success-text !default;
628
+ $alert-success-border: $state-success-border !default;
629
+
630
+ $alert-info-bg: $state-info-bg !default;
631
+ $alert-info-text: $state-info-text !default;
632
+ $alert-info-border: $state-info-border !default;
633
+
634
+ $alert-warning-bg: $state-warning-bg !default;
635
+ $alert-warning-text: $state-warning-text !default;
636
+ $alert-warning-border: $state-warning-border !default;
637
+
638
+ $alert-danger-bg: $state-danger-bg !default;
639
+ $alert-danger-text: $state-danger-text !default;
640
+ $alert-danger-border: $state-danger-border !default;
641
+
642
+
643
+ //== Progress bars
644
+ //
645
+ //##
646
+
647
+ //** Background color of the whole progress component
648
+ $progress-bg: #f5f5f5 !default;
649
+ //** Progress bar text color
650
+ $progress-bar-color: #fff !default;
651
+ //** Variable for setting rounded corners on progress bar.
652
+ $progress-border-radius: $border-radius-base !default;
653
+
654
+ //** Default progress bar color
655
+ $progress-bar-bg: $brand-primary !default;
656
+ //** Success progress bar color
657
+ $progress-bar-success-bg: $brand-success !default;
658
+ //** Warning progress bar color
659
+ $progress-bar-warning-bg: $brand-warning !default;
660
+ //** Danger progress bar color
661
+ $progress-bar-danger-bg: $brand-danger !default;
662
+ //** Info progress bar color
663
+ $progress-bar-info-bg: $brand-info !default;
664
+
665
+
666
+ //== List group
667
+ //
668
+ //##
669
+
670
+ //** Background color on `.list-group-item`
671
+ $list-group-bg: #fff !default;
672
+ //** `.list-group-item` border color
673
+ $list-group-border: #ddd !default;
674
+ //** List group border radius
675
+ $list-group-border-radius: $border-radius-base !default;
676
+
677
+ //** Background color of single list items on hover
678
+ $list-group-hover-bg: #f5f5f5 !default;
679
+ //** Text color of active list items
680
+ $list-group-active-color: $component-active-color !default;
681
+ //** Background color of active list items
682
+ $list-group-active-bg: $component-active-bg !default;
683
+ //** Border color of active list elements
684
+ $list-group-active-border: $list-group-active-bg !default;
685
+ //** Text color for content within active list items
686
+ $list-group-active-text-color: lighten($list-group-active-bg, 40%) !default;
687
+
688
+ //** Text color of disabled list items
689
+ $list-group-disabled-color: $gray-light !default;
690
+ //** Background color of disabled list items
691
+ $list-group-disabled-bg: $gray-lighter !default;
692
+ //** Text color for content within disabled list items
693
+ $list-group-disabled-text-color: $list-group-disabled-color !default;
694
+
695
+ $list-group-link-color: #555 !default;
696
+ $list-group-link-hover-color: $list-group-link-color !default;
697
+ $list-group-link-heading-color: #333 !default;
698
+
699
+
700
+ //== Panels
701
+ //
702
+ //##
703
+
704
+ $panel-bg: #fff !default;
705
+ $panel-body-padding: 15px !default;
706
+ $panel-heading-padding: 10px 15px !default;
707
+ $panel-footer-padding: $panel-heading-padding !default;
708
+ $panel-border-radius: $border-radius-base !default;
709
+
710
+ //** Border color for elements within panels
711
+ $panel-inner-border: #ddd !default;
712
+ $panel-footer-bg: #f5f5f5 !default;
713
+
714
+ $panel-default-text: $gray-dark !default;
715
+ $panel-default-border: #ddd !default;
716
+ $panel-default-heading-bg: #f5f5f5 !default;
717
+
718
+ $panel-primary-text: #fff !default;
719
+ $panel-primary-border: $brand-primary !default;
720
+ $panel-primary-heading-bg: $brand-primary !default;
721
+
722
+ $panel-success-text: $state-success-text !default;
723
+ $panel-success-border: $state-success-border !default;
724
+ $panel-success-heading-bg: $state-success-bg !default;
725
+
726
+ $panel-info-text: $state-info-text !default;
727
+ $panel-info-border: $state-info-border !default;
728
+ $panel-info-heading-bg: $state-info-bg !default;
729
+
730
+ $panel-warning-text: $state-warning-text !default;
731
+ $panel-warning-border: $state-warning-border !default;
732
+ $panel-warning-heading-bg: $state-warning-bg !default;
733
+
734
+ $panel-danger-text: $state-danger-text !default;
735
+ $panel-danger-border: $state-danger-border !default;
736
+ $panel-danger-heading-bg: $state-danger-bg !default;
737
+
738
+
739
+ //== Thumbnails
740
+ //
741
+ //##
742
+
743
+ //** Padding around the thumbnail image
744
+ $thumbnail-padding: 4px !default;
745
+ //** Thumbnail background color
746
+ $thumbnail-bg: $body-bg !default;
747
+ //** Thumbnail border color
748
+ $thumbnail-border: #ddd !default;
749
+ //** Thumbnail border radius
750
+ $thumbnail-border-radius: $border-radius-base !default;
751
+
752
+ //** Custom text color for thumbnail captions
753
+ $thumbnail-caption-color: $text-color !default;
754
+ //** Padding around the thumbnail caption
755
+ $thumbnail-caption-padding: 9px !default;
756
+
757
+
758
+ //== Wells
759
+ //
760
+ //##
761
+
762
+ $well-bg: #f5f5f5 !default;
763
+ $well-border: darken($well-bg, 7%) !default;
764
+
765
+
766
+ //== Badges
767
+ //
768
+ //##
769
+
770
+ $badge-color: #fff !default;
771
+ //** Linked badge text color on hover
772
+ $badge-link-hover-color: #fff !default;
773
+ $badge-bg: $gray-light !default;
774
+
775
+ //** Badge text color in active nav link
776
+ $badge-active-color: $link-color !default;
777
+ //** Badge background color in active nav link
778
+ $badge-active-bg: #fff !default;
779
+
780
+ $badge-font-weight: bold !default;
781
+ $badge-line-height: 1 !default;
782
+ $badge-border-radius: 10px !default;
783
+
784
+
785
+ //== Breadcrumbs
786
+ //
787
+ //##
788
+
789
+ $breadcrumb-padding-vertical: 8px !default;
790
+ $breadcrumb-padding-horizontal: 15px !default;
791
+ //** Breadcrumb background color
792
+ $breadcrumb-bg: #f5f5f5 !default;
793
+ //** Breadcrumb text color
794
+ $breadcrumb-color: #ccc !default;
795
+ //** Text color of current page in the breadcrumb
796
+ $breadcrumb-active-color: $gray-light !default;
797
+ //** Textual separator for between breadcrumb elements
798
+ $breadcrumb-separator: "/" !default;
799
+
800
+
801
+ //== Carousel
802
+ //
803
+ //##
804
+
805
+ $carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6) !default;
806
+
807
+ $carousel-control-color: #fff !default;
808
+ $carousel-control-width: 15% !default;
809
+ $carousel-control-opacity: .5 !default;
810
+ $carousel-control-font-size: 20px !default;
811
+
812
+ $carousel-indicator-active-bg: #fff !default;
813
+ $carousel-indicator-border-color: #fff !default;
814
+
815
+ $carousel-caption-color: #fff !default;
816
+
817
+
818
+ //== Close
819
+ //
820
+ //##
821
+
822
+ $close-font-weight: bold !default;
823
+ $close-color: #000 !default;
824
+ $close-text-shadow: 0 1px 0 #fff !default;
825
+
826
+
827
+ //== Code
828
+ //
829
+ //##
830
+
831
+ $code-color: #c7254e !default;
832
+ $code-bg: #f9f2f4 !default;
833
+
834
+ $kbd-color: #fff !default;
835
+ $kbd-bg: #333 !default;
836
+
837
+ $pre-bg: #f5f5f5 !default;
838
+ $pre-color: $gray-dark !default;
839
+ $pre-border-color: #ccc !default;
840
+ $pre-scrollable-max-height: 340px !default;
841
+
842
+
843
+ //== Type
844
+ //
845
+ //##
846
+
847
+ //** Horizontal offset for forms and lists.
848
+ $component-offset-horizontal: 180px !default;
849
+ //** Text muted color
850
+ $text-muted: $gray-light !default;
851
+ //** Abbreviations and acronyms border color
852
+ $abbr-border-color: $gray-light !default;
853
+ //** Headings small color
854
+ $headings-small-color: $gray-light !default;
855
+ //** Blockquote small color
856
+ $blockquote-small-color: $gray-light !default;
857
+ //** Blockquote font size
858
+ $blockquote-font-size: ($font-size-base * 1.25) !default;
859
+ //** Blockquote border color
860
+ $blockquote-border-color: $gray-lighter !default;
861
+ //** Page header border color
862
+ $page-header-border-color: $gray-lighter !default;
863
+ //** Width of horizontal description list titles
864
+ $dl-horizontal-offset: $component-offset-horizontal !default;
865
+ //** Horizontal line color.
866
+ $hr-border: $gray-lighter !default;