plinth 0.0.1.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.codoopts +10 -0
- data/.env +1 -0
- data/.gitignore +23 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +1 -0
- data/Capfile +4 -0
- data/Gemfile +52 -0
- data/Gemfile.lock +243 -0
- data/Guardfile +9 -0
- data/LICENSE +22 -0
- data/Procfile +1 -0
- data/README.md +79 -0
- data/Rakefile +35 -0
- data/app/assets/images/layouts/basic-marketing-site.png +0 -0
- data/app/assets/images/layouts/jumbotron-site.png +0 -0
- data/app/assets/images/rails.png +0 -0
- data/app/assets/javascripts/application.js +17 -0
- data/app/assets/javascripts/base.js.coffee +3 -0
- data/app/assets/javascripts/grids.js.coffee +3 -0
- data/app/assets/javascripts/javascript.js.coffee +3 -0
- data/app/assets/javascripts/lib/modernizr.js +4 -0
- data/app/assets/javascripts/modules.js.coffee +3 -0
- data/app/assets/stylesheets/application-old-ie.css.scss +10 -0
- data/app/assets/stylesheets/application.css.scss +57 -0
- data/app/assets/stylesheets/base/_all.scss +6 -0
- data/app/assets/stylesheets/base/_reset.css.scss +16 -0
- data/app/assets/stylesheets/base/_type.scss +16 -0
- data/app/assets/stylesheets/modules/_coderay.css.scss +171 -0
- data/app/assets/stylesheets/modules/_layout_examples.css.scss +13 -0
- data/app/assets/stylesheets/modules/_webfont_table.css.scss +47 -0
- data/app/assets/stylesheets/vanilla-normal-old-ie.css.scss +11 -0
- data/app/assets/stylesheets/vanilla-normal.css.scss +33 -0
- data/app/controllers/application_controller.rb +5 -0
- data/app/controllers/base_controller.rb +52 -0
- data/app/controllers/grids_controller.rb +48 -0
- data/app/controllers/javascript_controller.rb +20 -0
- data/app/controllers/javascripts_controller.rb +4 -0
- data/app/controllers/modules_controller.rb +43 -0
- data/app/controllers/ui_controller.rb +2 -0
- data/app/helpers/plinth_helper.rb +33 -0
- data/app/views/base/_webfonts_social_standard.html +429 -0
- data/app/views/base/_webfonts_ss_standard.html +2413 -0
- data/app/views/base/buttons.html.haml +20 -0
- data/app/views/base/forms.html.haml +40 -0
- data/app/views/base/images.html.haml +20 -0
- data/app/views/base/index.html.haml +68 -0
- data/app/views/base/labels.html.haml +22 -0
- data/app/views/base/lists.html.haml +20 -0
- data/app/views/base/webfonts.html.haml +17 -0
- data/app/views/grids/index.html.haml +73 -0
- data/app/views/grids/layouts/basic-marketing-site.haml +69 -0
- data/app/views/grids/layouts/jumbotron-site.haml +92 -0
- data/app/views/grids/layouts.html.haml +9 -0
- data/app/views/layouts/_main_nav.html.haml +15 -0
- data/app/views/layouts/application.html.haml +15 -0
- data/app/views/modules/alerts.html.haml +12 -0
- data/app/views/modules/footer.html.haml +2 -0
- data/app/views/modules/index.html.haml +5 -0
- data/app/views/modules/nav.html.haml +12 -0
- data/app/views/modules/panels.html.haml +3 -0
- data/app/views/modules/tabs.html.haml +58 -0
- data/app/views/old_javascript/close.html.haml +2 -0
- data/app/views/old_javascript/forms.html.haml +2 -0
- data/app/views/old_javascript/ga_events.html.haml +2 -0
- data/app/views/old_javascript/index.html.haml +2 -0
- data/app/views/old_javascript/responsive_resize.html.haml +2 -0
- data/app/views/old_javascript/switch.html.haml +2 -0
- data/app/views/parts/base/_button.haml +3 -0
- data/app/views/parts/base/_button_colours.haml +4 -0
- data/app/views/parts/base/_button_group.haml +4 -0
- data/app/views/parts/base/_button_sizing.haml +3 -0
- data/app/views/parts/base/_button_states.haml +3 -0
- data/app/views/parts/base/_form_example.haml +26 -0
- data/app/views/parts/base/_form_example_horizontal.haml +26 -0
- data/app/views/parts/base/_form_group.haml +10 -0
- data/app/views/parts/base/_form_location.haml +3 -0
- data/app/views/parts/base/_labels.haml +5 -0
- data/app/views/parts/base/_labels_sizing.haml +3 -0
- data/app/views/parts/base/_list.haml +10 -0
- data/app/views/parts/base/_list_action.haml +5 -0
- data/app/views/parts/base/_list_nav.haml +12 -0
- data/app/views/parts/base/_list_unset.haml +10 -0
- data/app/views/parts/base/_type_body.haml +2 -0
- data/app/views/parts/base/_type_headings.haml +5 -0
- data/app/views/parts/base/_type_helpers.haml +3 -0
- data/app/views/parts/base/_type_links.haml +9 -0
- data/app/views/parts/base/_type_shouts.haml +4 -0
- data/app/views/parts/grids/_example_layout_1.haml +10 -0
- data/app/views/parts/grids/_live_grid.haml +29 -0
- data/app/views/parts/modules/_alerts.haml +11 -0
- data/app/views/parts/modules/_nav_footer.haml +34 -0
- data/app/views/parts/modules/_nav_header.haml +18 -0
- data/app/views/parts/modules/_panels.haml +9 -0
- data/app/views/parts/modules/_tabs_minimal.haml +11 -0
- data/app/views/parts/modules/_tabs_simple_group.haml +11 -0
- data/app/views/parts/modules/_tabs_simple_group_toggle.haml +11 -0
- data/app/views/parts/modules/_tabs_toggle.haml +5 -0
- data/app/views/parts/modules/_tabs_traditional.haml +11 -0
- data/app/views/shared/_placeholder_text.html.haml +1 -0
- data/app/views/shared/_title.html.haml +8 -0
- data/app/views/shared/_ui_nav.html.haml +5 -0
- data/app/views/ui/alert.html.haml +35 -0
- data/app/views/ui/buttons.html.haml +116 -0
- data/app/views/ui/footer.html.haml +69 -0
- data/app/views/ui/forms/_vertical_form.haml +7 -0
- data/app/views/ui/forms.html.haml +59 -0
- data/app/views/ui/grids.html.haml +18 -0
- data/app/views/ui/index.html.haml +5 -0
- data/app/views/ui/labels.html.haml +15 -0
- data/app/views/ui/modules/panel.html.haml +3 -0
- data/app/views/ui/nav.html.haml +48 -0
- data/app/views/ui/tabs.html.haml +171 -0
- data/app/views/ui/typography.html.haml +118 -0
- data/db/development.sqlite3 +0 -0
- data/db/seeds.rb +7 -0
- data/doc/README_FOR_APP +2 -0
- data/lib/assets/.gitkeep +0 -0
- data/lib/plinth/version.rb +3 -0
- data/lib/plinth.rb +11 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/templates/haml/scaffold/_form.html.haml +8 -0
- data/log/.gitkeep +0 -0
- data/plinth.gemspec +33 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +25 -0
- data/public/favicon.ico +0 -0
- data/public/javascripts/LICENSE.html +158 -0
- data/public/javascripts/README.md.html +163 -0
- data/public/javascripts/assets/codo.css +1 -0
- data/public/javascripts/assets/codo.js +21 -0
- data/public/javascripts/assets/search_data.js +1 -0
- data/public/javascripts/class_index.html +215 -0
- data/public/javascripts/class_list.html +58 -0
- data/public/javascripts/classes/Close.html +259 -0
- data/public/javascripts/classes/GAEvent.html +231 -0
- data/public/javascripts/classes/ResizeHandler.html +225 -0
- data/public/javascripts/classes/Switch.html +318 -0
- data/public/javascripts/classes/TBGForm.html +373 -0
- data/public/javascripts/extra_list.html +36 -0
- data/public/javascripts/file_list.html +74 -0
- data/public/javascripts/files/styleguide/plugins/tbg-close.js.coffee.html +160 -0
- data/public/javascripts/files/styleguide/plugins/tbg-forms.js.coffee.html +160 -0
- data/public/javascripts/files/styleguide/plugins/tbg-ga-events.js.coffee.html +160 -0
- data/public/javascripts/files/styleguide/plugins/tbg-respinsiveresize.js.coffee.html +160 -0
- data/public/javascripts/files/styleguide/plugins/tbg-switch.js.coffee.html +160 -0
- data/public/javascripts/index.html +14 -0
- data/public/javascripts/method_list.html +187 -0
- data/public/javascripts/mixin_list.html +28 -0
- data/public/robots.txt +5 -0
- data/script/rails +6 -0
- data/spec/javascripts/fixtures/plugins/tbg-close_fixture.html.haml +4 -0
- data/spec/javascripts/fixtures/plugins/tbg-forms_fixture.html.haml +12 -0
- data/spec/javascripts/fixtures/plugins/tbg-ga-events_fixture.html.haml +9 -0
- data/spec/javascripts/fixtures/plugins/tbg-switch_fixture.html.haml +11 -0
- data/spec/javascripts/plugins/tbg-close_spec.js.coffee +54 -0
- data/spec/javascripts/plugins/tbg-forms_spec.js.coffee +87 -0
- data/spec/javascripts/plugins/tbg-ga-events_spec.js.coffee +83 -0
- data/spec/javascripts/plugins/tbg-switch_spec.js.coffee +96 -0
- data/spec/javascripts/spec.js.coffee +2 -0
- data/vendor/assets/fonts/ss-social-circle.eot +0 -0
- data/vendor/assets/fonts/ss-social-circle.svg +139 -0
- data/vendor/assets/fonts/ss-social-circle.ttf +0 -0
- data/vendor/assets/fonts/ss-social-circle.woff +0 -0
- data/vendor/assets/fonts/ss-social-regular.eot +0 -0
- data/vendor/assets/fonts/ss-social-regular.svg +133 -0
- data/vendor/assets/fonts/ss-social-regular.ttf +0 -0
- data/vendor/assets/fonts/ss-social-regular.woff +0 -0
- data/vendor/assets/fonts/ss-social.js +75 -0
- data/vendor/assets/fonts/ss-standard.eot +0 -0
- data/vendor/assets/fonts/ss-standard.js +75 -0
- data/vendor/assets/fonts/ss-standard.svg +207 -0
- data/vendor/assets/fonts/ss-standard.ttf +0 -0
- data/vendor/assets/fonts/ss-standard.woff +0 -0
- data/vendor/assets/images/background.png +0 -0
- data/vendor/assets/images/logos/sb-logo-white.png +0 -0
- data/vendor/assets/images/logos/sb-logo-white.svg +5 -0
- data/vendor/assets/images/middleman.png +0 -0
- data/vendor/assets/index.html.haml +8 -0
- data/vendor/assets/javascripts/.gitkeep +0 -0
- data/vendor/assets/javascripts/plinth/lib/handlebars.js +3 -0
- data/vendor/assets/javascripts/plinth/lib/jquery.fitvids.js +81 -0
- data/vendor/assets/javascripts/plinth/lib/ss-social.js +75 -0
- data/vendor/assets/javascripts/plinth/lib/ss-standard.js +78 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.css +1 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.js +21 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/assets/search_data.js +1 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/class_index.html +194 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/class_list.html +58 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/Close.html +215 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/GAEvent.html +235 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/ResizeHandler.html +192 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/Switch.html +233 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/TBGForm.html +318 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/extra_list.html +30 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/file_list.html +58 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-close.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-forms.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-ga-events.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-respinsiveresize.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-switch.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/index.html +14 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/method_list.html +163 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/mixin_list.html +28 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-close.js.coffee +97 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-forms.js.coffee +156 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-ga-events.js.coffee +107 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-respinsiveresize.js.coffee +73 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-switch.js.coffee +121 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/assets/stylesheets/_functions.scss +28 -0
- data/vendor/assets/stylesheets/_mixins.css.scss +273 -0
- data/vendor/assets/stylesheets/_settings.css.scss +120 -0
- data/vendor/assets/stylesheets/plinth/base/_all.css.scss +7 -0
- data/vendor/assets/stylesheets/plinth/base/_buttons.css.scss +166 -0
- data/vendor/assets/stylesheets/plinth/base/_form.css.scss +196 -0
- data/vendor/assets/stylesheets/plinth/base/_labels.css.scss +58 -0
- data/vendor/assets/stylesheets/plinth/base/_lists.css.scss +57 -0
- data/vendor/assets/stylesheets/plinth/base/_reset.css.scss +284 -0
- data/vendor/assets/stylesheets/plinth/base/_type.css.scss +328 -0
- data/vendor/assets/stylesheets/plinth/base/webfonts/_all.css.scss +2 -0
- data/vendor/assets/stylesheets/plinth/base/webfonts/ss-social.css.scss +57 -0
- data/vendor/assets/stylesheets/plinth/base/webfonts/ss-standard.css.scss +48 -0
- data/vendor/assets/stylesheets/plinth/grid/_grid.css.scss +127 -0
- data/vendor/assets/stylesheets/plinth/modules/_alert.css.scss +71 -0
- data/vendor/assets/stylesheets/plinth/modules/_all-grid.css.scss +1 -0
- data/vendor/assets/stylesheets/plinth/modules/_all-no-grid.css.scss +4 -0
- data/vendor/assets/stylesheets/plinth/modules/_footer.css.scss +93 -0
- data/vendor/assets/stylesheets/plinth/modules/_nav.css.scss +106 -0
- data/vendor/assets/stylesheets/plinth/modules/_panel.css.scss +28 -0
- data/vendor/assets/stylesheets/plinth/modules/_switch.css.scss +88 -0
- data/vendor/assets/stylesheets/plinth.css.scss +15 -0
- data/vendor/assets/views/buttons/_buttons.haml +9 -0
- data/vendor/assets/views/forms/_vertical_form.haml +7 -0
- data/vendor/assets/views/type/_headings.haml +6 -0
- data/vendor/assets/views/type/_paragraphs.haml +4 -0
- 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
|
+
.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,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,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,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 © #{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 © #{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,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
|
+
|