plinth 0.0.1.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. data/.codoopts +10 -0
  2. data/.env +1 -0
  3. data/.gitignore +23 -0
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +1 -0
  6. data/Capfile +4 -0
  7. data/Gemfile +52 -0
  8. data/Gemfile.lock +243 -0
  9. data/Guardfile +9 -0
  10. data/LICENSE +22 -0
  11. data/Procfile +1 -0
  12. data/README.md +79 -0
  13. data/Rakefile +35 -0
  14. data/app/assets/images/layouts/basic-marketing-site.png +0 -0
  15. data/app/assets/images/layouts/jumbotron-site.png +0 -0
  16. data/app/assets/images/rails.png +0 -0
  17. data/app/assets/javascripts/application.js +17 -0
  18. data/app/assets/javascripts/base.js.coffee +3 -0
  19. data/app/assets/javascripts/grids.js.coffee +3 -0
  20. data/app/assets/javascripts/javascript.js.coffee +3 -0
  21. data/app/assets/javascripts/lib/modernizr.js +4 -0
  22. data/app/assets/javascripts/modules.js.coffee +3 -0
  23. data/app/assets/stylesheets/application-old-ie.css.scss +10 -0
  24. data/app/assets/stylesheets/application.css.scss +57 -0
  25. data/app/assets/stylesheets/base/_all.scss +6 -0
  26. data/app/assets/stylesheets/base/_reset.css.scss +16 -0
  27. data/app/assets/stylesheets/base/_type.scss +16 -0
  28. data/app/assets/stylesheets/modules/_coderay.css.scss +171 -0
  29. data/app/assets/stylesheets/modules/_layout_examples.css.scss +13 -0
  30. data/app/assets/stylesheets/modules/_webfont_table.css.scss +47 -0
  31. data/app/assets/stylesheets/vanilla-normal-old-ie.css.scss +11 -0
  32. data/app/assets/stylesheets/vanilla-normal.css.scss +33 -0
  33. data/app/controllers/application_controller.rb +5 -0
  34. data/app/controllers/base_controller.rb +52 -0
  35. data/app/controllers/grids_controller.rb +48 -0
  36. data/app/controllers/javascript_controller.rb +20 -0
  37. data/app/controllers/javascripts_controller.rb +4 -0
  38. data/app/controllers/modules_controller.rb +43 -0
  39. data/app/controllers/ui_controller.rb +2 -0
  40. data/app/helpers/plinth_helper.rb +33 -0
  41. data/app/views/base/_webfonts_social_standard.html +429 -0
  42. data/app/views/base/_webfonts_ss_standard.html +2413 -0
  43. data/app/views/base/buttons.html.haml +20 -0
  44. data/app/views/base/forms.html.haml +40 -0
  45. data/app/views/base/images.html.haml +20 -0
  46. data/app/views/base/index.html.haml +68 -0
  47. data/app/views/base/labels.html.haml +22 -0
  48. data/app/views/base/lists.html.haml +20 -0
  49. data/app/views/base/webfonts.html.haml +17 -0
  50. data/app/views/grids/index.html.haml +73 -0
  51. data/app/views/grids/layouts/basic-marketing-site.haml +69 -0
  52. data/app/views/grids/layouts/jumbotron-site.haml +92 -0
  53. data/app/views/grids/layouts.html.haml +9 -0
  54. data/app/views/layouts/_main_nav.html.haml +15 -0
  55. data/app/views/layouts/application.html.haml +15 -0
  56. data/app/views/modules/alerts.html.haml +12 -0
  57. data/app/views/modules/footer.html.haml +2 -0
  58. data/app/views/modules/index.html.haml +5 -0
  59. data/app/views/modules/nav.html.haml +12 -0
  60. data/app/views/modules/panels.html.haml +3 -0
  61. data/app/views/modules/tabs.html.haml +58 -0
  62. data/app/views/old_javascript/close.html.haml +2 -0
  63. data/app/views/old_javascript/forms.html.haml +2 -0
  64. data/app/views/old_javascript/ga_events.html.haml +2 -0
  65. data/app/views/old_javascript/index.html.haml +2 -0
  66. data/app/views/old_javascript/responsive_resize.html.haml +2 -0
  67. data/app/views/old_javascript/switch.html.haml +2 -0
  68. data/app/views/parts/base/_button.haml +3 -0
  69. data/app/views/parts/base/_button_colours.haml +4 -0
  70. data/app/views/parts/base/_button_group.haml +4 -0
  71. data/app/views/parts/base/_button_sizing.haml +3 -0
  72. data/app/views/parts/base/_button_states.haml +3 -0
  73. data/app/views/parts/base/_form_example.haml +26 -0
  74. data/app/views/parts/base/_form_example_horizontal.haml +26 -0
  75. data/app/views/parts/base/_form_group.haml +10 -0
  76. data/app/views/parts/base/_form_location.haml +3 -0
  77. data/app/views/parts/base/_labels.haml +5 -0
  78. data/app/views/parts/base/_labels_sizing.haml +3 -0
  79. data/app/views/parts/base/_list.haml +10 -0
  80. data/app/views/parts/base/_list_action.haml +5 -0
  81. data/app/views/parts/base/_list_nav.haml +12 -0
  82. data/app/views/parts/base/_list_unset.haml +10 -0
  83. data/app/views/parts/base/_type_body.haml +2 -0
  84. data/app/views/parts/base/_type_headings.haml +5 -0
  85. data/app/views/parts/base/_type_helpers.haml +3 -0
  86. data/app/views/parts/base/_type_links.haml +9 -0
  87. data/app/views/parts/base/_type_shouts.haml +4 -0
  88. data/app/views/parts/grids/_example_layout_1.haml +10 -0
  89. data/app/views/parts/grids/_live_grid.haml +29 -0
  90. data/app/views/parts/modules/_alerts.haml +11 -0
  91. data/app/views/parts/modules/_nav_footer.haml +34 -0
  92. data/app/views/parts/modules/_nav_header.haml +18 -0
  93. data/app/views/parts/modules/_panels.haml +9 -0
  94. data/app/views/parts/modules/_tabs_minimal.haml +11 -0
  95. data/app/views/parts/modules/_tabs_simple_group.haml +11 -0
  96. data/app/views/parts/modules/_tabs_simple_group_toggle.haml +11 -0
  97. data/app/views/parts/modules/_tabs_toggle.haml +5 -0
  98. data/app/views/parts/modules/_tabs_traditional.haml +11 -0
  99. data/app/views/shared/_placeholder_text.html.haml +1 -0
  100. data/app/views/shared/_title.html.haml +8 -0
  101. data/app/views/shared/_ui_nav.html.haml +5 -0
  102. data/app/views/ui/alert.html.haml +35 -0
  103. data/app/views/ui/buttons.html.haml +116 -0
  104. data/app/views/ui/footer.html.haml +69 -0
  105. data/app/views/ui/forms/_vertical_form.haml +7 -0
  106. data/app/views/ui/forms.html.haml +59 -0
  107. data/app/views/ui/grids.html.haml +18 -0
  108. data/app/views/ui/index.html.haml +5 -0
  109. data/app/views/ui/labels.html.haml +15 -0
  110. data/app/views/ui/modules/panel.html.haml +3 -0
  111. data/app/views/ui/nav.html.haml +48 -0
  112. data/app/views/ui/tabs.html.haml +171 -0
  113. data/app/views/ui/typography.html.haml +118 -0
  114. data/db/development.sqlite3 +0 -0
  115. data/db/seeds.rb +7 -0
  116. data/doc/README_FOR_APP +2 -0
  117. data/lib/assets/.gitkeep +0 -0
  118. data/lib/plinth/version.rb +3 -0
  119. data/lib/plinth.rb +11 -0
  120. data/lib/tasks/.gitkeep +0 -0
  121. data/lib/templates/haml/scaffold/_form.html.haml +8 -0
  122. data/log/.gitkeep +0 -0
  123. data/plinth.gemspec +33 -0
  124. data/public/404.html +26 -0
  125. data/public/422.html +26 -0
  126. data/public/500.html +25 -0
  127. data/public/favicon.ico +0 -0
  128. data/public/javascripts/LICENSE.html +158 -0
  129. data/public/javascripts/README.md.html +163 -0
  130. data/public/javascripts/assets/codo.css +1 -0
  131. data/public/javascripts/assets/codo.js +21 -0
  132. data/public/javascripts/assets/search_data.js +1 -0
  133. data/public/javascripts/class_index.html +215 -0
  134. data/public/javascripts/class_list.html +58 -0
  135. data/public/javascripts/classes/Close.html +259 -0
  136. data/public/javascripts/classes/GAEvent.html +231 -0
  137. data/public/javascripts/classes/ResizeHandler.html +225 -0
  138. data/public/javascripts/classes/Switch.html +318 -0
  139. data/public/javascripts/classes/TBGForm.html +373 -0
  140. data/public/javascripts/extra_list.html +36 -0
  141. data/public/javascripts/file_list.html +74 -0
  142. data/public/javascripts/files/styleguide/plugins/tbg-close.js.coffee.html +160 -0
  143. data/public/javascripts/files/styleguide/plugins/tbg-forms.js.coffee.html +160 -0
  144. data/public/javascripts/files/styleguide/plugins/tbg-ga-events.js.coffee.html +160 -0
  145. data/public/javascripts/files/styleguide/plugins/tbg-respinsiveresize.js.coffee.html +160 -0
  146. data/public/javascripts/files/styleguide/plugins/tbg-switch.js.coffee.html +160 -0
  147. data/public/javascripts/index.html +14 -0
  148. data/public/javascripts/method_list.html +187 -0
  149. data/public/javascripts/mixin_list.html +28 -0
  150. data/public/robots.txt +5 -0
  151. data/script/rails +6 -0
  152. data/spec/javascripts/fixtures/plugins/tbg-close_fixture.html.haml +4 -0
  153. data/spec/javascripts/fixtures/plugins/tbg-forms_fixture.html.haml +12 -0
  154. data/spec/javascripts/fixtures/plugins/tbg-ga-events_fixture.html.haml +9 -0
  155. data/spec/javascripts/fixtures/plugins/tbg-switch_fixture.html.haml +11 -0
  156. data/spec/javascripts/plugins/tbg-close_spec.js.coffee +54 -0
  157. data/spec/javascripts/plugins/tbg-forms_spec.js.coffee +87 -0
  158. data/spec/javascripts/plugins/tbg-ga-events_spec.js.coffee +83 -0
  159. data/spec/javascripts/plugins/tbg-switch_spec.js.coffee +96 -0
  160. data/spec/javascripts/spec.js.coffee +2 -0
  161. data/vendor/assets/fonts/ss-social-circle.eot +0 -0
  162. data/vendor/assets/fonts/ss-social-circle.svg +139 -0
  163. data/vendor/assets/fonts/ss-social-circle.ttf +0 -0
  164. data/vendor/assets/fonts/ss-social-circle.woff +0 -0
  165. data/vendor/assets/fonts/ss-social-regular.eot +0 -0
  166. data/vendor/assets/fonts/ss-social-regular.svg +133 -0
  167. data/vendor/assets/fonts/ss-social-regular.ttf +0 -0
  168. data/vendor/assets/fonts/ss-social-regular.woff +0 -0
  169. data/vendor/assets/fonts/ss-social.js +75 -0
  170. data/vendor/assets/fonts/ss-standard.eot +0 -0
  171. data/vendor/assets/fonts/ss-standard.js +75 -0
  172. data/vendor/assets/fonts/ss-standard.svg +207 -0
  173. data/vendor/assets/fonts/ss-standard.ttf +0 -0
  174. data/vendor/assets/fonts/ss-standard.woff +0 -0
  175. data/vendor/assets/images/background.png +0 -0
  176. data/vendor/assets/images/logos/sb-logo-white.png +0 -0
  177. data/vendor/assets/images/logos/sb-logo-white.svg +5 -0
  178. data/vendor/assets/images/middleman.png +0 -0
  179. data/vendor/assets/index.html.haml +8 -0
  180. data/vendor/assets/javascripts/.gitkeep +0 -0
  181. data/vendor/assets/javascripts/plinth/lib/handlebars.js +3 -0
  182. data/vendor/assets/javascripts/plinth/lib/jquery.fitvids.js +81 -0
  183. data/vendor/assets/javascripts/plinth/lib/ss-social.js +75 -0
  184. data/vendor/assets/javascripts/plinth/lib/ss-standard.js +78 -0
  185. data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.css +1 -0
  186. data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.js +21 -0
  187. data/vendor/assets/javascripts/plinth/plugins/doc/assets/search_data.js +1 -0
  188. data/vendor/assets/javascripts/plinth/plugins/doc/class_index.html +194 -0
  189. data/vendor/assets/javascripts/plinth/plugins/doc/class_list.html +58 -0
  190. data/vendor/assets/javascripts/plinth/plugins/doc/classes/Close.html +215 -0
  191. data/vendor/assets/javascripts/plinth/plugins/doc/classes/GAEvent.html +235 -0
  192. data/vendor/assets/javascripts/plinth/plugins/doc/classes/ResizeHandler.html +192 -0
  193. data/vendor/assets/javascripts/plinth/plugins/doc/classes/Switch.html +233 -0
  194. data/vendor/assets/javascripts/plinth/plugins/doc/classes/TBGForm.html +318 -0
  195. data/vendor/assets/javascripts/plinth/plugins/doc/extra_list.html +30 -0
  196. data/vendor/assets/javascripts/plinth/plugins/doc/file_list.html +58 -0
  197. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-close.js.coffee.html +154 -0
  198. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-forms.js.coffee.html +154 -0
  199. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-ga-events.js.coffee.html +154 -0
  200. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-respinsiveresize.js.coffee.html +154 -0
  201. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-switch.js.coffee.html +154 -0
  202. data/vendor/assets/javascripts/plinth/plugins/doc/index.html +14 -0
  203. data/vendor/assets/javascripts/plinth/plugins/doc/method_list.html +163 -0
  204. data/vendor/assets/javascripts/plinth/plugins/doc/mixin_list.html +28 -0
  205. data/vendor/assets/javascripts/plinth/plugins/tbg-close.js.coffee +97 -0
  206. data/vendor/assets/javascripts/plinth/plugins/tbg-forms.js.coffee +156 -0
  207. data/vendor/assets/javascripts/plinth/plugins/tbg-ga-events.js.coffee +107 -0
  208. data/vendor/assets/javascripts/plinth/plugins/tbg-respinsiveresize.js.coffee +73 -0
  209. data/vendor/assets/javascripts/plinth/plugins/tbg-switch.js.coffee +121 -0
  210. data/vendor/assets/stylesheets/.gitkeep +0 -0
  211. data/vendor/assets/stylesheets/_functions.scss +28 -0
  212. data/vendor/assets/stylesheets/_mixins.css.scss +273 -0
  213. data/vendor/assets/stylesheets/_settings.css.scss +120 -0
  214. data/vendor/assets/stylesheets/plinth/base/_all.css.scss +7 -0
  215. data/vendor/assets/stylesheets/plinth/base/_buttons.css.scss +166 -0
  216. data/vendor/assets/stylesheets/plinth/base/_form.css.scss +196 -0
  217. data/vendor/assets/stylesheets/plinth/base/_labels.css.scss +58 -0
  218. data/vendor/assets/stylesheets/plinth/base/_lists.css.scss +57 -0
  219. data/vendor/assets/stylesheets/plinth/base/_reset.css.scss +284 -0
  220. data/vendor/assets/stylesheets/plinth/base/_type.css.scss +328 -0
  221. data/vendor/assets/stylesheets/plinth/base/webfonts/_all.css.scss +2 -0
  222. data/vendor/assets/stylesheets/plinth/base/webfonts/ss-social.css.scss +57 -0
  223. data/vendor/assets/stylesheets/plinth/base/webfonts/ss-standard.css.scss +48 -0
  224. data/vendor/assets/stylesheets/plinth/grid/_grid.css.scss +127 -0
  225. data/vendor/assets/stylesheets/plinth/modules/_alert.css.scss +71 -0
  226. data/vendor/assets/stylesheets/plinth/modules/_all-grid.css.scss +1 -0
  227. data/vendor/assets/stylesheets/plinth/modules/_all-no-grid.css.scss +4 -0
  228. data/vendor/assets/stylesheets/plinth/modules/_footer.css.scss +93 -0
  229. data/vendor/assets/stylesheets/plinth/modules/_nav.css.scss +106 -0
  230. data/vendor/assets/stylesheets/plinth/modules/_panel.css.scss +28 -0
  231. data/vendor/assets/stylesheets/plinth/modules/_switch.css.scss +88 -0
  232. data/vendor/assets/stylesheets/plinth.css.scss +15 -0
  233. data/vendor/assets/views/buttons/_buttons.haml +9 -0
  234. data/vendor/assets/views/forms/_vertical_form.haml +7 -0
  235. data/vendor/assets/views/type/_headings.haml +6 -0
  236. data/vendor/assets/views/type/_paragraphs.haml +4 -0
  237. metadata +537 -0
data/.codoopts ADDED
@@ -0,0 +1,10 @@
1
+ --name "Codo"
2
+ --readme README.md
3
+ --title "Codo Documentation"
4
+ --private
5
+ --quiet
6
+ --output-dir ./public/javascripts
7
+ ./vendor/assets/javascripts
8
+ -
9
+ LICENSE
10
+ CHANGELOG.md
data/.env ADDED
@@ -0,0 +1 @@
1
+ RACK_ENV=development
data/.gitignore ADDED
@@ -0,0 +1,23 @@
1
+ # Ignore the build directory
2
+ /build
3
+
4
+ # Ignore packages
5
+ /pkg
6
+
7
+ *.rbc
8
+ *.sassc
9
+ .sass-cache
10
+ capybara-*.html
11
+ .rspec
12
+ /.bundle
13
+ /vendor/bundle
14
+ /log/*
15
+ /tmp/*
16
+ /db/*.sqlite3
17
+ /public/system/*
18
+ /coverage/
19
+ /spec/tmp/*
20
+ **.orig
21
+ rerun.txt
22
+ pickle-email-*.html
23
+ /public/assets/*
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 1.9.3-p194
data/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ # Changelog
data/Capfile ADDED
@@ -0,0 +1,4 @@
1
+ load 'deploy'
2
+ # Uncomment if you are using Rails' asset pipeline
3
+ # load 'deploy/assets'
4
+ load 'config/deploy' # remove this line to skip loading any of the default tasks
data/Gemfile ADDED
@@ -0,0 +1,52 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in plinth.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec :development_group => :dev
7
+
8
+
9
+ #
10
+ # Gems used only for assets and not required in production environments by default.
11
+ #
12
+
13
+ gem 'sass-rails', '~> 4.0.0'
14
+ gem 'coffee-rails', '~> 4.0.0'
15
+ gem "compass-rails", "~> 1.1.2"
16
+ gem 'uglifier', '>= 1.3.0'
17
+
18
+ #
19
+ # Use haml for templates & generators
20
+ #
21
+
22
+ gem "haml"
23
+ gem "haml-rails"
24
+ gem 'kramdown'
25
+ gem 'kramdown-haml'
26
+ gem 'thin'
27
+ gem 'formtastic'
28
+ gem 'rb-readline'
29
+
30
+ #
31
+ # Jquery rails - @TODO Is this needed?
32
+ #
33
+
34
+ gem 'jquery-rails'
35
+
36
+
37
+ #
38
+ # Javascript Testing
39
+ #
40
+
41
+ group :development, :test, :staging do
42
+ gem 'growl'
43
+ gem 'jasminerice', :git => "https://github.com/bradphelan/jasminerice"
44
+ gem "guard-jasmine"
45
+ # gem 'jsPercolator', :git => "git@github.com:adtaylor/jsPercolator.git"
46
+ gem 'rails', '4.0.1'
47
+ gem "capistrano"
48
+ gem "aws-sdk"
49
+ gem "net-sftp", "~> 2.1.1"
50
+ gem "haml-coderay"
51
+ gem "foreman"
52
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,243 @@
1
+ GIT
2
+ remote: https://github.com/bradphelan/jasminerice
3
+ revision: 091349c27343bfa728b8e5745675f9ddbb7d9699
4
+ specs:
5
+ jasminerice (0.1.0)
6
+ coffee-rails
7
+
8
+ PATH
9
+ remote: .
10
+ specs:
11
+ plinth (0.0.1.pre)
12
+ actionpack (>= 3.1, < 4.1)
13
+ activesupport (>= 3.1, < 4.1)
14
+ compass-rails (>= 1.0, < 2.0)
15
+ haml (>= 3.1, < 4.1)
16
+ haml-coderay (>= 0.2, < 0.3)
17
+ modular-scale (>= 1.0, < 2.0)
18
+ railties (>= 3.1, < 4.1)
19
+ sass-rails (>= 3.1, < 4.1)
20
+
21
+ GEM
22
+ remote: https://rubygems.org/
23
+ specs:
24
+ actionmailer (4.0.1)
25
+ actionpack (= 4.0.1)
26
+ mail (~> 2.5.4)
27
+ actionpack (4.0.1)
28
+ activesupport (= 4.0.1)
29
+ builder (~> 3.1.0)
30
+ erubis (~> 2.7.0)
31
+ rack (~> 1.5.2)
32
+ rack-test (~> 0.6.2)
33
+ activemodel (4.0.1)
34
+ activesupport (= 4.0.1)
35
+ builder (~> 3.1.0)
36
+ activerecord (4.0.1)
37
+ activemodel (= 4.0.1)
38
+ activerecord-deprecated_finders (~> 1.0.2)
39
+ activesupport (= 4.0.1)
40
+ arel (~> 4.0.0)
41
+ activerecord-deprecated_finders (1.0.3)
42
+ activesupport (4.0.1)
43
+ i18n (~> 0.6, >= 0.6.4)
44
+ minitest (~> 4.2)
45
+ multi_json (~> 1.3)
46
+ thread_safe (~> 0.1)
47
+ tzinfo (~> 0.3.37)
48
+ arel (4.0.1)
49
+ atomic (1.1.14)
50
+ aws-sdk (1.29.1)
51
+ json (~> 1.4)
52
+ nokogiri (>= 1.4.4)
53
+ uuidtools (~> 2.1)
54
+ builder (3.1.4)
55
+ capistrano (3.0.1)
56
+ i18n
57
+ rake (>= 10.0.0)
58
+ sshkit (>= 0.0.23)
59
+ celluloid (0.15.2)
60
+ timers (~> 1.1.0)
61
+ childprocess (0.3.9)
62
+ ffi (~> 1.0, >= 1.0.11)
63
+ chunky_png (1.2.9)
64
+ coderay (1.1.0)
65
+ coffee-rails (4.0.1)
66
+ coffee-script (>= 2.2.0)
67
+ railties (>= 4.0.0, < 5.0)
68
+ coffee-script (2.2.0)
69
+ coffee-script-source
70
+ execjs
71
+ coffee-script-source (1.6.3)
72
+ compass (0.12.2)
73
+ chunky_png (~> 1.2)
74
+ fssm (>= 0.2.7)
75
+ sass (~> 3.1)
76
+ compass-rails (1.1.2)
77
+ compass (>= 0.12.2)
78
+ daemons (1.1.9)
79
+ dotenv (0.9.0)
80
+ erubis (2.7.0)
81
+ eventmachine (1.0.3)
82
+ execjs (2.0.2)
83
+ ffi (1.9.3)
84
+ foreman (0.63.0)
85
+ dotenv (>= 0.7)
86
+ thor (>= 0.13.6)
87
+ formatador (0.2.4)
88
+ formtastic (2.2.1)
89
+ actionpack (>= 3.0)
90
+ fssm (0.2.10)
91
+ growl (1.0.3)
92
+ guard (2.2.4)
93
+ formatador (>= 0.2.4)
94
+ listen (~> 2.1)
95
+ lumberjack (~> 1.0)
96
+ pry (>= 0.9.12)
97
+ thor (>= 0.18.1)
98
+ guard-jasmine (1.19.0)
99
+ childprocess
100
+ guard (>= 2.0.0)
101
+ multi_json
102
+ thor
103
+ tilt
104
+ haml (4.0.4)
105
+ tilt
106
+ haml-coderay (0.2.0)
107
+ coderay
108
+ haml
109
+ haml-rails (0.5.2)
110
+ actionpack (~> 4.0.1)
111
+ activesupport (~> 4.0.1)
112
+ haml (>= 3.1, < 5.0)
113
+ railties (~> 4.0.1)
114
+ hike (1.2.3)
115
+ i18n (0.6.9)
116
+ jquery-rails (3.0.4)
117
+ railties (>= 3.0, < 5.0)
118
+ thor (>= 0.14, < 2.0)
119
+ json (1.8.1)
120
+ kramdown (1.3.0)
121
+ kramdown-haml (0.0.3)
122
+ haml
123
+ listen (2.4.0)
124
+ celluloid (>= 0.15.2)
125
+ rb-fsevent (>= 0.9.3)
126
+ rb-inotify (>= 0.9)
127
+ lumberjack (1.0.4)
128
+ mail (2.5.4)
129
+ mime-types (~> 1.16)
130
+ treetop (~> 1.4.8)
131
+ method_source (0.8.2)
132
+ mime-types (1.25.1)
133
+ mini_portile (0.5.2)
134
+ minitest (4.7.5)
135
+ modular-scale (1.0.6)
136
+ compass (>= 0.12.1)
137
+ sass (>= 3.2.0)
138
+ sassy-math (>= 1.5)
139
+ multi_json (1.8.2)
140
+ net-scp (1.1.2)
141
+ net-ssh (>= 2.6.5)
142
+ net-sftp (2.1.2)
143
+ net-ssh (>= 2.6.5)
144
+ net-ssh (2.7.0)
145
+ nokogiri (1.6.0)
146
+ mini_portile (~> 0.5.0)
147
+ polyglot (0.3.3)
148
+ pry (0.9.12.4)
149
+ coderay (~> 1.0)
150
+ method_source (~> 0.8)
151
+ slop (~> 3.4)
152
+ rack (1.5.2)
153
+ rack-test (0.6.2)
154
+ rack (>= 1.0)
155
+ rails (4.0.1)
156
+ actionmailer (= 4.0.1)
157
+ actionpack (= 4.0.1)
158
+ activerecord (= 4.0.1)
159
+ activesupport (= 4.0.1)
160
+ bundler (>= 1.3.0, < 2.0)
161
+ railties (= 4.0.1)
162
+ sprockets-rails (~> 2.0.0)
163
+ railties (4.0.1)
164
+ actionpack (= 4.0.1)
165
+ activesupport (= 4.0.1)
166
+ rake (>= 0.8.7)
167
+ thor (>= 0.18.1, < 2.0)
168
+ rake (10.1.0)
169
+ rb-fsevent (0.9.3)
170
+ rb-inotify (0.9.2)
171
+ ffi (>= 0.5.0)
172
+ rb-readline (0.5.0)
173
+ sass (3.2.12)
174
+ sass-rails (4.0.1)
175
+ railties (>= 4.0.0, < 5.0)
176
+ sass (>= 3.1.10)
177
+ sprockets-rails (~> 2.0.0)
178
+ sassy-math (1.5)
179
+ compass (~> 0.11)
180
+ slop (3.4.7)
181
+ sprockets (2.10.1)
182
+ hike (~> 1.2)
183
+ multi_json (~> 1.0)
184
+ rack (~> 1.0)
185
+ tilt (~> 1.1, != 1.3.0)
186
+ sprockets-rails (2.0.1)
187
+ actionpack (>= 3.0)
188
+ activesupport (>= 3.0)
189
+ sprockets (~> 2.8)
190
+ sqlite3 (1.3.8)
191
+ sshkit (1.2.0)
192
+ net-scp (>= 1.1.2)
193
+ net-ssh
194
+ term-ansicolor
195
+ term-ansicolor (1.2.2)
196
+ tins (~> 0.8)
197
+ thin (1.6.1)
198
+ daemons (>= 1.0.9)
199
+ eventmachine (>= 1.0.0)
200
+ rack (>= 1.0.0)
201
+ thor (0.18.1)
202
+ thread_safe (0.1.3)
203
+ atomic
204
+ tilt (1.4.1)
205
+ timers (1.1.0)
206
+ tins (0.13.1)
207
+ treetop (1.4.15)
208
+ polyglot
209
+ polyglot (>= 0.3.1)
210
+ tzinfo (0.3.38)
211
+ uglifier (2.3.2)
212
+ execjs (>= 0.3.0)
213
+ json (>= 1.8.0)
214
+ uuidtools (2.1.4)
215
+
216
+ PLATFORMS
217
+ ruby
218
+
219
+ DEPENDENCIES
220
+ aws-sdk
221
+ bundler (>= 1.3, < 2.0)
222
+ capistrano
223
+ coffee-rails (~> 4.0.0)
224
+ compass-rails (~> 1.1.2)
225
+ foreman
226
+ formtastic
227
+ growl
228
+ guard-jasmine
229
+ haml
230
+ haml-coderay
231
+ haml-rails
232
+ jasminerice!
233
+ jquery-rails
234
+ kramdown
235
+ kramdown-haml
236
+ net-sftp (~> 2.1.1)
237
+ plinth!
238
+ rails (= 4.0.1)
239
+ rb-readline
240
+ sass-rails (~> 4.0.0)
241
+ sqlite3 (>= 1.3, < 2.0)
242
+ thin
243
+ uglifier (>= 1.3.0)
data/Guardfile ADDED
@@ -0,0 +1,9 @@
1
+
2
+
3
+ guard 'jasmine' do
4
+ watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { "spec/javascripts" }
5
+ watch(%r{spec/javascripts/.+_spec\.(js\.coffee|js|coffee)$})
6
+ watch(%r{spec/javascripts/fixtures/(.+?)\.html\.haml})
7
+ watch(%r{vendor/assets/javascripts/plugins/(.+?)\.(js\.coffee|js|coffee)$}) { |m| "spec/javascripts/#{m[1]}_spec.#{m[2]}" }
8
+ end
9
+
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 TODO: The Beans Group LTD
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Procfile ADDED
@@ -0,0 +1 @@
1
+ web: bundle exec rails server thin -p $PORT -e $RACK_ENV
data/README.md ADDED
@@ -0,0 +1,79 @@
1
+ # Plinth
2
+
3
+ ## VERSION 2, Donetsk
4
+
5
+ TODO: Write a gem description
6
+
7
+ ## Development Workflow
8
+
9
+ Clone the repository:
10
+
11
+ git clone https://github.com/thebeansgroup/plinth.git
12
+
13
+ Checkout the develop branch
14
+
15
+ git checkout develop
16
+
17
+ Create a new branch for the feature you want to work on:
18
+
19
+ git checkout -b feature/[name-of-feature]
20
+
21
+ To run the site, use the foreman:
22
+
23
+ bundle install
24
+ foreman start
25
+
26
+ **NB: ** Ensure that you are _adding_ and _committing_ files into your branch as you go along. It is also good practive to _push_ the branch to github at the end of your development session, this enusres global access to the markup you have changed.
27
+
28
+ ## Installation
29
+
30
+ Add this line to your application's Gemfile:
31
+
32
+ gem 'plinth'
33
+
34
+ And then execute:
35
+
36
+ $ bundle
37
+
38
+ Or install it yourself as:
39
+
40
+ $ gem install plinth
41
+
42
+ ## Usage
43
+
44
+ ### Javascript
45
+ All javascripts provided by plinth can be pulled into the asset pipeline
46
+ with the normal require command:
47
+
48
+ //= require test
49
+
50
+ ### Stylesheets
51
+ All stylesheets provided by plinth can be pulled into the asset pipeline
52
+ with the normal require command:
53
+
54
+ //= require test
55
+
56
+ ### Views/Partials
57
+ In order to include partials defined by plinth you will have to add the
58
+ styleguid's view path to your apps view path. The quickest way is by creating
59
+ a before filter in either the action where you want the views to be accessible
60
+ or, if you will be using the views often, you can define the filter in the
61
+ application controller.
62
+
63
+ before_filter :plinth_view_path
64
+
65
+ private
66
+ def plinth_view_path
67
+ gem = Gem.loaded_specs['plinth']
68
+ if gem
69
+ prepend_view_path "#{gem.full_gem_path}/vendor/assets/views"
70
+ end
71
+ end
72
+
73
+ ## Contributing
74
+
75
+ 1. Fork it
76
+ 2. Create your feature branch (`git checkout -b my-new-feature develop`)
77
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
78
+ 4. Push to the branch (`git push origin my-new-feature`)
79
+ 5. Create new Pull Request, make sure your pull request target is the develop branch, not the master
data/Rakefile ADDED
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+
4
+ desc "Push Plinth"
5
+ task :push_it do
6
+ abort "This feature has been disbaled for now."
7
+ end
8
+
9
+ #
10
+ # Start server
11
+ #
12
+
13
+ desc "Start Plinth Server \[port 3001\]"
14
+ task :start do
15
+ puts ''
16
+ puts ''
17
+ puts '=============================='
18
+ puts ' STARTING PLINTH'
19
+ puts '=============================='
20
+ puts ''
21
+ system 'bundle exec rails s -p 3001'
22
+ end
23
+
24
+
25
+ begin
26
+ require 'jasmine'
27
+ load 'jasmine/tasks/jasmine.rake'
28
+ rescue LoadError
29
+ task :jasmine do
30
+ abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
31
+ end
32
+ end
33
+
34
+ require File.expand_path('../config/application', __FILE__)
35
+ Plinth::Application.load_tasks
Binary file
@@ -0,0 +1,17 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require plinth/plugins/tbg-switch
16
+ //= require plinth/plugins/tbg-close
17
+ //= require_tree .
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,4 @@
1
+ /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
2
+ * Build: http://modernizr.com/download/#-cssanimations-csstransforms-csstransitions-hashchange-history-video-geolocation-svg-shiv-cssclasses-testprop-testallprops-hasevent-domprefixes-load
3
+ */
4
+ ;window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(prefixes.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:B(f,"function")?f.bind(d||b):f}return!1}function F(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+n.join(d+" ")+d).split(" ");return B(b,"string")||B(b,"undefined")?D(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),E(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={svg:"http://www.w3.org/2000/svg"},q={},r={},s={},t=[],u=t.slice,v,w=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=B(e[d],"function"),B(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),x={}.hasOwnProperty,y;!B(x,"undefined")&&!B(x.call,"undefined")?y=function(a,b){return x.call(a,b)}:y=function(a,b){return b in a&&B(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=u.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(u.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(u.call(arguments)))};return e}),q.geolocation=function(){return"geolocation"in navigator},q.hashchange=function(){return w("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},q.history=function(){return!!a.history&&!!history.pushState},q.cssanimations=function(){return F("animationName")},q.csstransforms=function(){return!!F("transform")},q.csstransitions=function(){return F("transition")},q.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},q.svg=function(){return!!b.createElementNS&&!!b.createElementNS(p.svg,"svg").createSVGRect};for(var G in q)y(q,G)&&(v=G.toLowerCase(),e[v]=q[G](),t.push((e[v]?"":"no-")+v));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)y(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},z(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.hasEvent=w,e.testProp=function(a){return D([a])},e.testAllProps=F,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+t.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
@@ -0,0 +1,3 @@
1
+ # Place all the behaviors and hooks related to the matching controller here.
2
+ # All this logic will automatically be available in application.js.
3
+ # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,10 @@
1
+ @charset "UTF-8";
2
+
3
+ // ======================================================
4
+ // Old IE!!
5
+ // ======================================================
6
+
7
+ $old-ie: true;
8
+ $fixed-mqs: true;
9
+
10
+ @import "application";
@@ -0,0 +1,57 @@
1
+ @charset "UTF-8";
2
+
3
+ @import "plinth";
4
+
5
+ // ======================================================
6
+ // Settings grids
7
+ // ======================================================
8
+
9
+ // Max container width
10
+ $container-width: 800px;
11
+
12
+ $baby: 'baby-', 2, 10px;
13
+ $sister: 'sister-', 4, 15px, "min", 655px;
14
+ $mother: 'mother-', 8, 20px, "min", $container-width;
15
+ // Declare grid
16
+ $grids : $baby, $sister, $mother;
17
+
18
+
19
+ // ======================================================
20
+ // Plinth
21
+ // ======================================================
22
+
23
+ @import "plinth/base/_all";
24
+ @import "plinth/modules/_all-grid";
25
+ @import "plinth/modules/_all-no-grid";
26
+
27
+
28
+ // ======================================================
29
+ // Default grids
30
+ // ======================================================
31
+
32
+ @import "plinth/grid/_grid";
33
+
34
+
35
+ // ======================================================
36
+ // Build grid sizes
37
+ // ======================================================
38
+
39
+ @include create-column-sizes($grids);
40
+
41
+ // ======================================================
42
+ // Site Base Styles
43
+ // ======================================================
44
+
45
+ @import 'base/all';
46
+
47
+
48
+ // ======================================================
49
+ // Site modules
50
+ // ======================================================
51
+
52
+ @import 'modules/coderay';
53
+ @import 'modules/webfont_table';
54
+ @import 'modules/layout_examples';
55
+
56
+
57
+
@@ -0,0 +1,6 @@
1
+ //
2
+ // Site base styles
3
+ // $author Ad Taylor
4
+
5
+ @import "reset";
6
+ @import "type";
@@ -0,0 +1,16 @@
1
+ //
2
+ // Site extra resets
3
+ // $author Ad Taylor
4
+
5
+ // ======================================================
6
+ // Default elements
7
+ // ======================================================
8
+
9
+ hr {
10
+ margin: $base-line-height-px*2 0 $base-line-height-px;
11
+ height: 1px;
12
+ border: none;
13
+ color: mono(3);
14
+ background-color: mono(3);
15
+ }
16
+
@@ -0,0 +1,16 @@
1
+ //
2
+ // Site Type
3
+ // $author Ad Taylor
4
+
5
+ // ======================================================
6
+ // Headings
7
+ // ======================================================
8
+
9
+ h1, .h1 {
10
+ color: $main-color;
11
+
12
+ small {
13
+ font-weight: normal;
14
+ }
15
+ }
16
+