plinth 0.0.1.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,26 @@
1
+ %form{:action => "/test-endpoint", :class => "formtastic entry", :data => { :"forms-success-content" => " ", :"forms-success-replace" => ".test-content", :forms => "/test-endpoint" } }
2
+ %fieldset.inputs
3
+ %ol
4
+ %li.string.input.required.stringish
5
+ %label{:for => "test_entry_first_name"}
6
+ First name
7
+ %abbr{:title => "required"} *
8
+ %input{:id => "test_entry_first_name", :maxlength => "255", :name => "entry[first_name]", :type => "text"}
9
+ %li.string.input.required.stringish
10
+ %label{:for => "test_entry_last_name"}
11
+ Last name
12
+ %abbr{:title => "required"} *
13
+ %input{:id => "test_entry_last_name", :maxlength => "255", :name => "entry[last_name]", :type => "text"}
14
+ %li.email.input.required.stringish
15
+ %label{:for => "test_entry_email"}
16
+ Email
17
+ %abbr{:title => "required"} *
18
+ %input{:id => "test_entry_email", :maxlength => "255", :name => "entry[email]", :type => "email"}
19
+
20
+ %fieldset.actions
21
+ %ol
22
+ %li.support.action
23
+ :markdown
24
+ By submitting this test you agree to the [Terms and Conditions](/terms-and-conditions) and to share your information with us.
25
+ %li.action.button_action
26
+ %button.green.btn{:name => "button", :type => "submit"} Submit Test
@@ -0,0 +1,26 @@
1
+ %form{:action => "/test-endpoint", :class => "horizontal formtastic entry", :data => { :"forms-success-content" => " ", :"forms-success-replace" => ".test-content", :forms => "/test-endpoint" } }
2
+ %fieldset.inputs
3
+ %ol
4
+ %li.string.input.required.stringish
5
+ %label{:for => "test_entry_first_name"}
6
+ First name
7
+ %abbr{:title => "required"} *
8
+ %input{:id => "test_entry_first_name", :maxlength => "255", :name => "entry[first_name]", :type => "text"}
9
+ %li.string.input.required.stringish
10
+ %label{:for => "test_entry_last_name"}
11
+ Last name
12
+ %abbr{:title => "required"} *
13
+ %input{:id => "test_entry_last_name", :maxlength => "255", :name => "entry[last_name]", :type => "text"}
14
+ %li.email.input.required.stringish
15
+ %label{:for => "test_entry_email"}
16
+ Email
17
+ %abbr{:title => "required"} *
18
+ %input{:id => "test_entry_email", :maxlength => "255", :name => "entry[email]", :type => "email"}
19
+
20
+ %fieldset.actions
21
+ %ol
22
+ %li.support.action
23
+ :markdown
24
+ By submitting this test you agree to the [Terms and Conditions](/terms-and-conditions) and to share your information with us.
25
+ %li.action.button_action
26
+ %button.green.btn{:name => "button", :type => "submit"} Submit Test
@@ -0,0 +1,10 @@
1
+ %form
2
+ .row
3
+ .mother-eight.column
4
+ .row.collapse
5
+ .mother-six.column
6
+ %input.prefix{:type=>"text"}
7
+ .mother-two.column
8
+ %input.orange.small.green.btn.suffix{:type=>"submit", :value => "Submit"}
9
+
10
+
@@ -0,0 +1,3 @@
1
+ .location.input
2
+ %input.location-field{ :placeholder=>"Town, City or Postcode", :type=>"text"}
3
+ %a.ss-icon.locate{:href=>"#locate"} locate
@@ -0,0 +1,5 @@
1
+ %a.label A Label
2
+ %a.label.orange A Label
3
+ %a.label.blue A Label
4
+ %a.label.green A Label
5
+
@@ -0,0 +1,3 @@
1
+ %a.blue.label.shout.small A Label
2
+ %a.blue.label.shout.medium A Label
3
+ %a.blue.label.shout.large A Label
@@ -0,0 +1,10 @@
1
+ %ul
2
+ %li
3
+ %a{:href=>"my_url"} Item 1
4
+ %li
5
+ %a{:href=>"my_url"} Item 2
6
+ %ol
7
+ %li
8
+ %a{:href=>"my_url"} Item 1
9
+ %li
10
+ %a{:href=>"my_url"} Item 2
@@ -0,0 +1,5 @@
1
+ %ul.action-list
2
+ %li
3
+ %a{:href=>"my_url"} Item 1
4
+ %li
5
+ %a{:href=>"my_url"} Item 2
@@ -0,0 +1,12 @@
1
+ %nav
2
+ %ul
3
+ %li
4
+ %a{:href=>"my_url"} Item 1
5
+ %li
6
+ %a{:href=>"my_url"} Item 2
7
+ %nav
8
+ %ul.action-list
9
+ %li
10
+ %a{:href=>"my_url"} Item 1
11
+ %li
12
+ %a{:href=>"my_url"} Item 2
@@ -0,0 +1,10 @@
1
+ %ul.unset-list
2
+ %li
3
+ %a{:href=>"my_url"} Item 1
4
+ %li
5
+ %a{:href=>"my_url"} Item 2
6
+ %ol.unset-list
7
+ %li
8
+ %a{:href=>"my_url"} Item 1
9
+ %li
10
+ %a{:href=>"my_url"} Item 2
@@ -0,0 +1,2 @@
1
+ %p Standard Paragraph - Lebowski ipsum I didn't blame anyone for the loss of my legs, some chinaman in Korea took them from me but I went out and achieved anyway. Dolor sit amet, consectetur adipiscing elit praesent ac magna justo.
2
+
@@ -0,0 +1,5 @@
1
+ %h1 Heading 1
2
+ %h2 Heading 2
3
+ %h3 Heading 3
4
+ %h4 Heading 4
5
+ %h5 Heading 5
@@ -0,0 +1,3 @@
1
+ %p.standout Standout text - Lebowski ipsum I didn't…
2
+ %p.secondary Secondary text - Lebowski ipsum I didn't…
3
+ %p.support Support text - Lebowski ipsum I didn't…
@@ -0,0 +1,9 @@
1
+ %a{href: "#my_link"} Text link
2
+ %br
3
+ %a.is-active{href: "#my_link"} Text link hover/active
4
+ %br
5
+ %a.prominent{href: "#my_link"} Prominent text link
6
+ %br
7
+ %a.prominent.is-active{href: "#my_link"} Prominent text link hover/active
8
+
9
+
@@ -0,0 +1,4 @@
1
+ .large.shout Large shout text
2
+ .medium.shout Medium shout text
3
+ .small.shout Small shout text
4
+ .shout Shout Text
@@ -0,0 +1,10 @@
1
+ .container
2
+ .row
3
+ .mother-eight.column
4
+ %h1 My Title
5
+ %p.standout Curabitur dictum ultricies leo, sit amet pretium tortor lacinia at. Duis faucibus, nisi a hendrerit dictum, lorem tellus vulputate leo, mattis tincidunt ligula tellus nec tellus.
6
+ .row
7
+ .mother-two.column
8
+ My Nav
9
+ .mother-six.column
10
+ Stuff
@@ -0,0 +1,29 @@
1
+ .row
2
+ - 8.times do |n|
3
+ .mother-one.sister-one.baby-one.column
4
+ %p.example-highlight= n+1
5
+
6
+ .row
7
+ .mother-one.sister-hide.column
8
+ %p.example-highlight 1
9
+ .mother-two.sister-one.baby-two.column
10
+ %p.example-highlight 2
11
+ .mother-five.sister-three.baby-two.column
12
+ %p.example-highlight 5
13
+
14
+ .row
15
+ .mother-push-two.mother-six.sister-push-none.sister-four.column
16
+ %p.example-highlight 6
17
+ .row
18
+ .mother-eight.column
19
+ %p.example-highlight Nested Grid
20
+ .row
21
+ .mother-four.sister-four.column
22
+ %p.example-highlight 4
23
+ .mother-four.sister-four.column
24
+ %p.example-highlight 4
25
+
26
+ .row
27
+ .mother-eight.column
28
+ %p.example-highlight 8
29
+
@@ -0,0 +1,11 @@
1
+ %section.alert#info_box
2
+ %a{ :href => "#info_box", :class => "ss-icon close", :data => {:close => true}} close
3
+ %p Standard Information Flash Message
4
+ %section.alert.success#success_box
5
+ %a{ :href => "#success_box", :class => "ss-icon close", :data => {:close => "#success_box"}} close
6
+ %p Success Flash Message
7
+ %section.alert.error#error_box
8
+ %a{ :href => "#error_box", :class => "ss-icon close", :data => {:close => "#error_box"}} close
9
+ %p Error Flash Message
10
+
11
+
@@ -0,0 +1,34 @@
1
+ %footer.footer
2
+ .container
3
+ %a{ :href=> '#footer-content', :class => "footer-tab ss-icon footer-up", :data => { :switch => true, :"switch-toggle" => true}} navigateup
4
+ %a{ :href=> '#footer-content', :class => "footer-tab ss-icon footer-down", :data => { :switch => true, :"switch-toggle" => true}} navigatedown
5
+ #footer-content.container
6
+ .mother-three.column
7
+ .row
8
+ .mother-two.sister-one.column.footer-logo-container
9
+ %a{:href=> "http://www.studentbeans.com" }
10
+ .footer-logo{ :role=>"img", :"aria-label"=>"Studentbeans.com"}
11
+ .row
12
+ %p.support © #{Time.now.year.to_s} The Beans Group. All Rights reserved.
13
+ .mother-two.column
14
+ %ul.support
15
+ %li
16
+ %a{ :href => "http://www.studentbeans.com/registration.html"} Join studentbeans.com
17
+ %li
18
+ %a{ :href => "http://www.studentbeans.com/national/offers/"} National Student Offers
19
+ %li
20
+ %a{ :href => "http://www.studentbeans.com/national/offers/top.html"} Top 20 Offers
21
+ .mother-two.column
22
+ %ul.support
23
+ %li
24
+ %a{ :href => "http://www.studentbeans.com/student101/"} Student 101
25
+ %li
26
+ %a{ :href => "http://www.studentbeans.com/student-money/"} Easy Money
27
+ %li
28
+ %a{ :href => "http://www.studentbeans.com/national/jobs-for-students"} Student Jobs
29
+ .mother-one.column
30
+ %ul.action-list.h5
31
+ %li
32
+ %a{ :href => "http://facebook.com/studentbeans", :class => "ss-icon ss-social"} facebook
33
+ %li
34
+ %a{ :href => "http://twitter.com/studentbeans", :class => "ss-icon ss-social"} twitter
@@ -0,0 +1,18 @@
1
+ %nav.nav-global
2
+ #nav-global-2.nav-collapse.baby-switch-content<
3
+ %ul.nav-items.collapse><
4
+ %li.is-active><
5
+ %a{:href => "#Item-1"} Item 1
6
+ %li><
7
+ %a{:href => "#Item-2"} Item 2
8
+ %li><
9
+ %a{:href => "#Item-3"} Item 3
10
+
11
+ .nav-mobile-switch.baby-only
12
+ %a{ :href => "#nav-global-2", :data => {:switch => true, :"switch-toggle" => true} }><
13
+ %span>< Show navigation
14
+ %i><
15
+ %i><
16
+ %i><
17
+
18
+
@@ -0,0 +1,9 @@
1
+ %aside.panel
2
+ %p My Panel Content
3
+ %aside.panel.panel-left
4
+ %p My Panel Content
5
+ %aside.panel.panel-right
6
+ %p My Panel Content
7
+ %aside.panel.panel-center
8
+ %p My Panel Content
9
+
@@ -0,0 +1,11 @@
1
+ %ul
2
+ %li
3
+ %a{ :href => "#sg-target1-3", :data => { :switch => true }, :id => "eg1-2"} Switch link 1
4
+ %li
5
+ %a{ :href => "#sg-target2-3", :data => { :switch => true }, :id => "eg2-2"} Switch link 2
6
+ %li
7
+ %a{ :href => "#sg-target3-3", :data => { :switch => true }, :id => "eg3-2"} Switch link 3
8
+ %div.switch-content{:id => "sg-target1-3"} Switch content 1
9
+ %div.switch-content{:id => "sg-target2-3"} Switch content 2
10
+ %div.switch-content{:id => "sg-target3-3"} Switch content 3
11
+
@@ -0,0 +1,11 @@
1
+ %ul
2
+ %li
3
+ %a{ :href => "#sg-target1-3", :data => { :switch => true, :"switch-group" => "sg-group-1" }, :id => "eg1-2"} Switch link 1
4
+ %li
5
+ %a{ :href => "#sg-target2-3", :data => { :switch => true, :"switch-group" => "sg-group-1" }, :id => "eg2-2"} Switch link 2
6
+ %li
7
+ %a{ :href => "#sg-target3-3", :data => { :switch => true, :"switch-group" => "sg-group-1" }, :id => "eg3-2"} Switch link 3
8
+ %div.switch-content{:id => "sg-target1-3"} Switch content 1
9
+ %div.switch-content{:id => "sg-target2-3"} Switch content 2
10
+ %div.switch-content{:id => "sg-target3-3"} Switch content 3
11
+
@@ -0,0 +1,11 @@
1
+ %ul
2
+ %li
3
+ %a{ :href => "#sgt-target1-3", :data => { :switch => true, :"switch-toggle" => true, :"switch-group" => "sgt-group-1" }, :id => "eg1-2"} Switch link 1
4
+ %li
5
+ %a{ :href => "#sgt-target2-3", :data => { :switch => true, :"switch-toggle" => true, :"switch-group" => "sgt-group-1" }, :id => "eg2-2"} Switch link 2
6
+ %li
7
+ %a{ :href => "#sgt-target3-3", :data => { :switch => true, :"switch-toggle" => true, :"switch-group" => "sgt-group-1" }, :id => "eg3-2"} Switch link 3
8
+ %div.switch-content{:id => "sgt-target1-3"} Switch content 1
9
+ %div.switch-content{:id => "sgt-target2-3"} Switch content 2
10
+ %div.switch-content{:id => "sgt-target3-3"} Switch content 3
11
+
@@ -0,0 +1,5 @@
1
+ %ul
2
+ %li
3
+ %a{ :href => "#toggle-target1-3", :data => { :switch => true, :"switch-toggle" => true, :"switch-group" => "toggle-group-1" }, :id => "eg1-2"} Switch link 1
4
+ %div.switch-content{:id => "toggle-target1-3"} Switch content 1
5
+
@@ -0,0 +1,11 @@
1
+ %ul.tabs
2
+ %li.is-active
3
+ %a{ :href => "#target1-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg1-2"} Switch link 1
4
+ %li
5
+ %a{ :href => "#target2-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg2-2"} Switch link 2
6
+ %li
7
+ %a{ :href => "#target3-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg3-2"} Switch link 3
8
+ %div.switch-content.is-active{:id => "target1-3"} Switch content 1
9
+ %div.switch-content{:id => "target2-3"} Switch content 2
10
+ %div.switch-content{:id => "target3-3"} Switch content 3
11
+
@@ -0,0 +1 @@
1
+ %p.standout It's a complicated case, Maude. Lotta ins. Lotta outs. And a lotta strands to keep in my head, man. Dolor sit amet, consectetur adipiscing elit praesent ac magna justo pellentesque ac lectus. I mean his wife goes out and owes money and they pee on my rug. Here's the name and number of a doctor who will look at it for you. You will receive no bill. He's a good man.
@@ -0,0 +1,8 @@
1
+ .row
2
+ %header.mother-eight.column{ role: "banner"}
3
+ - if @page_title
4
+ %h1!= @page_title
5
+ - if @page_description
6
+ %p.standout= @page_description
7
+ -if @page_title or @page_description
8
+ %hr
@@ -0,0 +1,5 @@
1
+ - unless @page_nav.nil?
2
+ %nav.panel
3
+ %ul
4
+ - @page_nav.each do |text,path|
5
+ %li= link_to text, path
@@ -0,0 +1,35 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+
5
+ %h2 Alerts
6
+
7
+ %hr
8
+
9
+ %p Simplest form of the switch. In this version the switch is a simple reveal plugin with no off state.
10
+
11
+ = example do
12
+ %section.alert#info_box
13
+ = link_to "close", "#info_box", :class => "ss-icon close", :data => {:close => true}
14
+ %p some text
15
+ %section.alert.success#success_box
16
+ = link_to "close", "#", :class => "ss-icon close", :data => {:close => "#success_box"}
17
+ %p some text
18
+ %section.alert.error#error_box
19
+ = link_to "close", "#", :class => "ss-icon close", :data => {:close => "#error_box"}
20
+ %p some text
21
+
22
+ :coderay
23
+ #!haml
24
+
25
+ %section.alert#info_box
26
+ = link_to "close", "#info_box", :class => "ss-icon close", :data => {:close => true}
27
+ %p some text
28
+ %section.alert.success#success_box
29
+ = link_to "close", "#", :class => "ss-icon close", :data => {:close => "#success_box"}
30
+ %p some text
31
+ %section.alert.error#error_box
32
+ = link_to "close", "#", :class => "ss-icon close", :data => {:close => "#error_box"}
33
+ %p some text
34
+ // end
35
+
@@ -0,0 +1,116 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+ %h2 Buttons
5
+
6
+ .row
7
+ - ['','orange','green', 'blue'].each do |color|
8
+ .mother-six.column
9
+ = example do
10
+ - ['large','medium', 'small'].each do |type|
11
+ %a{:href=>"stuff", :class=>"btn #{type} #{color}"}= (color.length > 0) ? "#{color} button" : "#{type} button"
12
+ %br
13
+ %br
14
+ :coderay
15
+ #!haml
16
+
17
+ %a{:href=>"#the link", :class=>"btn |size| |color|"} My Button
18
+ // OR
19
+ = link_to "Link Name", link_path, :class=>"btn |size| |color|"
20
+ // end
21
+
22
+ %hr
23
+
24
+ %h3.h5 Button states
25
+ = example do
26
+ - ['','orange','green', 'blue'].each do |color|
27
+ - ['normal','is-active','disabled'].each do |type|
28
+ %a{:href=>"stuff", :class=>"small btn #{type} #{color}"}= "#{type}"
29
+ %br
30
+ %br
31
+
32
+ %h2 Button Groups
33
+
34
+ = example do
35
+ %a{:href=>"stuff", :class=>"btn prefix"}>< Button 1
36
+ %a{:href=>"stuff", :class=>"btn prefix suffix"}>< Button 2
37
+ %button{:class=>"btn suffix"}>< Button 3
38
+
39
+
40
+ %h2 Web Icons
41
+
42
+ %p
43
+ We are using the webfonts from Symbolset,
44
+ = link_to "click here ", "http://symbolset.com/"
45
+ for a full reference on avaliable icons.
46
+
47
+ %hr
48
+
49
+ %h3.h5#social_icons social icons
50
+
51
+ = example do
52
+ %ul.action-list.h4
53
+ %li
54
+ =link_to "twitter", "http://twitter.com", :class => "ss-icon ss-social"
55
+ %li
56
+ %i.ss-icon.ss-social.twitter twitter
57
+ %li
58
+ %i.ss-icon.ss-social twitter
59
+ %li
60
+ =link_to "facebook", "http://facebook.com", :class => "ss-icon ss-social"
61
+ %li
62
+ %i.ss-icon.ss-social.facebook facebook
63
+ %li
64
+ %i.ss-icon.ss-social facebook
65
+ %li
66
+ =link_to "mail", "mailto:me@me.com", :class => "ss-icon ss-social"
67
+ %li
68
+ %i.ss-icon.ss-social.email email
69
+ %li
70
+ %i.ss-icon.ss-social email
71
+
72
+ :coderay
73
+ #!haml
74
+
75
+ %ul.action-list.h4
76
+ %li
77
+ =link_to "twitter", "http://twitter.com", :class => "ss-icon ss-social"
78
+ %li
79
+ %i.ss-icon.ss-social.twitter twitter
80
+ %li
81
+ %i.ss-icon.ss-social twitter
82
+ %li
83
+ =link_to "facebook", "http://facebook.com", :class => "ss-icon ss-social"
84
+ %li
85
+ %i.ss-icon.ss-social.facebook facebook
86
+ %li
87
+ %i.ss-icon.ss-social facebook
88
+ %li
89
+ =link_to "mail", "mailto:me@me.com", :class => "ss-icon ss-social"
90
+ %li
91
+ %i.ss-icon.ss-social.email email
92
+ %li
93
+ %i.ss-icon.ss-social email
94
+ // end
95
+
96
+ %hr
97
+
98
+ %h3.h5#social_icons Standard icons
99
+
100
+ = example do
101
+ %ul.action-list
102
+ %li
103
+ =link_to "close", "close", :class => "ss-icon"
104
+ %li
105
+ %i.ss-icon close
106
+ %li.ss-delete close
107
+
108
+ :coderay
109
+ #!haml
110
+
111
+ %ul.action-list
112
+ %li= link_to "close", "close", :class => "ss-icon"
113
+ %li
114
+ %i.ss-icon close
115
+ %li.ss-delete close
116
+ // end
@@ -0,0 +1,69 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+
5
+ %h2 Footer
6
+
7
+
8
+ = example do
9
+ %footer.footer
10
+ .container
11
+ %a{ :href=> '#footer-content', :class => "footer-tab ss-icon footer-up", :data => { :switch => true, :"switch-toggle" => true}} navigateup
12
+ %a{ :href=> '#footer-content', :class => "footer-tab ss-icon footer-down", :data => { :switch => true, :"switch-toggle" => true}} navigatedown
13
+
14
+ #footer-content.container
15
+ .mother-seven.column
16
+ .row
17
+ .mother-two.sister-one.column.footer-logo-container
18
+ %a{:href=>root_path}
19
+ .footer-logo{ :role=>"img", :"aria-label"=>"Studentbeans.com"}
20
+ .row
21
+ %p.support &copy; #{Time.now.year.to_s} The Beans Group. All Rights reserved.
22
+ .mother-two.column
23
+ %ul.support
24
+ %li=link_to "footer link"
25
+ %li=link_to "footer link"
26
+ %li=link_to "footer link"
27
+ .mother-two.column
28
+ %ul.support
29
+ %li=link_to "footer link"
30
+ %li=link_to "footer link"
31
+ %li=link_to "footer link"
32
+ .mother-one.column
33
+ %ul.action-list.h5
34
+ %li=link_to "facebook", "http://facebook.com", :class => "ss-icon ss-social"
35
+ %li=link_to "twitter", "http://twitter.com", :class => "ss-icon ss-social"
36
+
37
+
38
+ :coderay
39
+ #!haml
40
+
41
+ %footer.footer
42
+ .container
43
+ %a{ :href=> '#footer-content', :class => "footer-tab ss-icon footer-up", :data => { :switch => true, :"switch-toggle" => true}} navigateup
44
+ %a{ :href=> '#footer-content', :class => "footer-tab ss-icon footer-down", :data => { :switch => true, :"switch-toggle" => true}} navigatedown
45
+
46
+ #footer-content.container
47
+ .mother-seven.column
48
+ .row
49
+ .mother-two.sister-one.column.footer-logo-container
50
+ %a{:href=>root_path}
51
+ .footer-logo{ :role=>"img", :"aria-label"=>"Studentbeans.com"}
52
+ .row
53
+ %p.support &copy; #{Time.now.year.to_s} The Beans Group. All Rights reserved.
54
+ .mother-two.column
55
+ %ul.support
56
+ %li=link_to "footer link"
57
+ %li=link_to "footer link"
58
+ %li=link_to "footer link"
59
+ .mother-two.column
60
+ %ul.support
61
+ %li=link_to "footer link"
62
+ %li=link_to "footer link"
63
+ %li=link_to "footer link"
64
+ .mother-one.column
65
+ %ul.action-list.h5
66
+ %li=link_to "facebook", "http://facebook.com", :class => "ss-icon ss-social"
67
+ %li=link_to "twitter", "http://twitter.com", :class => "ss-icon ss-social"
68
+ // end
69
+
@@ -0,0 +1,7 @@
1
+ %form
2
+ %div
3
+ %label a label
4
+ %input{:type =>"text", :class=>"large"}
5
+ %div
6
+ %label a label
7
+ %input{:type =>"text"}
@@ -0,0 +1,59 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+
5
+ %h2 Forms
6
+
7
+
8
+ %hr
9
+
10
+ %h3.h5 location input
11
+ = example do
12
+ %div.location-input
13
+ %input{:type=>"text", :placeholder=>"Location"}
14
+ %span.ss-icon.locate locate
15
+ %br
16
+ %div.location-input
17
+ %input{:type=>"text", :placeholder=>"Location"}
18
+ %span.ss-icon.locate.is-active locate
19
+
20
+ :coderay
21
+ #!haml
22
+
23
+ %div.location-input
24
+ %input{:type=>"text", :placeholder=>"Location"}
25
+ %span.ss-icon.locate locate
26
+
27
+ %div.location-input
28
+ %input{:type=>"text", :placeholder=>"Location"}
29
+ %span.ss-icon.locate.is-active locate
30
+ // end
31
+
32
+ %hr
33
+
34
+ %h3.h5 Prefixed input
35
+
36
+ = example do
37
+ %form
38
+ .row
39
+ .mother-eight.column
40
+ .row.collapse
41
+ .mother-eight.column
42
+ %input.prefix{:type=>"text"}
43
+ .mother-four.column
44
+ %input.orange.small.btn.suffix{:type=>"submit", :value => "Submit"}
45
+
46
+
47
+ :coderay
48
+ #!haml
49
+
50
+ %form
51
+ .row
52
+ .mother-eight.column
53
+ .row.collapse
54
+ .mother-eight.column
55
+ %input.prefix{:type=>"text"}
56
+ .mother-four.column
57
+ %input.btn.suffix{:type=>"submit", :value => "Submit"}
58
+ // end
59
+