sb-styleguide 0.0.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. data/.codoopts +10 -0
  2. data/.env +1 -0
  3. data/.gitignore +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +10 -3
  6. data/Gemfile.lock +134 -94
  7. data/Procfile +1 -0
  8. data/README.md +3 -5
  9. data/Rakefile +3 -0
  10. data/app/assets/images/layouts/basic-marketing-site.png +0 -0
  11. data/app/assets/images/layouts/jumbotron-site.png +0 -0
  12. data/app/assets/javascripts/base.js.coffee +3 -0
  13. data/app/assets/javascripts/grids.js.coffee +3 -0
  14. data/app/assets/javascripts/javascript.js.coffee +3 -0
  15. data/app/assets/javascripts/modules.js.coffee +3 -0
  16. data/app/assets/stylesheets/application-old-ie.css.scss +11 -0
  17. data/app/assets/stylesheets/application.css.scss +33 -30
  18. data/app/assets/stylesheets/base/_all.scss +6 -0
  19. data/app/assets/stylesheets/base/_reset.css.scss +16 -0
  20. data/app/assets/stylesheets/base/_type.scss +16 -0
  21. data/app/assets/stylesheets/{coderay_githubish.css.scss → modules/_coderay.css.scss} +40 -0
  22. data/app/assets/stylesheets/modules/_layout_examples.css.scss +13 -0
  23. data/app/assets/stylesheets/modules/_webfont_table.css.scss +47 -0
  24. data/app/assets/stylesheets/vanilla-normal-old-ie.css.scss +11 -0
  25. data/app/assets/stylesheets/vanilla-normal.css.scss +33 -0
  26. data/app/controllers/application_controller.rb +2 -0
  27. data/app/controllers/base_controller.rb +52 -0
  28. data/app/controllers/grids_controller.rb +48 -0
  29. data/app/controllers/javascript_controller.rb +20 -0
  30. data/app/controllers/modules_controller.rb +43 -0
  31. data/app/helpers/styleguide_helper.rb +33 -0
  32. data/app/views/base/_webfonts_social_standard.html +429 -0
  33. data/app/views/base/_webfonts_ss_standard.html +2413 -0
  34. data/app/views/base/buttons.html.haml +20 -0
  35. data/app/views/base/forms.html.haml +40 -0
  36. data/app/views/base/images.html.haml +1 -0
  37. data/app/views/base/index.html.haml +68 -0
  38. data/app/views/base/labels.html.haml +22 -0
  39. data/app/views/base/lists.html.haml +20 -0
  40. data/app/views/base/webfonts.html.haml +17 -0
  41. data/app/views/grids/index.html.haml +73 -0
  42. data/app/views/grids/layouts.html.haml +9 -0
  43. data/app/views/grids/layouts/basic-marketing-site.haml +69 -0
  44. data/app/views/grids/layouts/jumbotron-site.haml +92 -0
  45. data/app/views/layouts/_main_nav.html.haml +6 -6
  46. data/app/views/layouts/application.html.haml +6 -32
  47. data/app/views/modules/alerts.html.haml +12 -0
  48. data/app/views/modules/footer.html.haml +2 -0
  49. data/app/views/modules/index.html.haml +5 -0
  50. data/app/views/modules/nav.html.haml +12 -0
  51. data/app/views/modules/panels.html.haml +3 -0
  52. data/app/views/modules/tabs.html.haml +58 -0
  53. data/app/views/old_javascript/close.html.haml +2 -0
  54. data/app/views/old_javascript/forms.html.haml +2 -0
  55. data/app/views/old_javascript/ga_events.html.haml +2 -0
  56. data/app/views/old_javascript/index.html.haml +2 -0
  57. data/app/views/old_javascript/responsive_resize.html.haml +2 -0
  58. data/app/views/old_javascript/switch.html.haml +2 -0
  59. data/app/views/parts/base/_button.haml +3 -0
  60. data/app/views/parts/base/_button_colours.haml +4 -0
  61. data/app/views/parts/base/_button_group.haml +4 -0
  62. data/app/views/parts/base/_button_sizing.haml +3 -0
  63. data/app/views/parts/base/_button_states.haml +3 -0
  64. data/app/views/parts/base/_form_example.haml +26 -0
  65. data/app/views/parts/base/_form_example_horizontal.haml +26 -0
  66. data/app/views/parts/base/_form_group.haml +10 -0
  67. data/app/views/parts/base/_form_location.haml +3 -0
  68. data/app/views/parts/base/_labels.haml +5 -0
  69. data/app/views/parts/base/_labels_sizing.haml +3 -0
  70. data/app/views/parts/base/_list.haml +10 -0
  71. data/app/views/parts/base/_list_action.haml +5 -0
  72. data/app/views/parts/base/_list_nav.haml +12 -0
  73. data/app/views/parts/base/_list_unset.haml +10 -0
  74. data/app/views/parts/base/_type_body.haml +2 -0
  75. data/app/views/parts/base/_type_headings.haml +5 -0
  76. data/app/views/parts/base/_type_helpers.haml +3 -0
  77. data/app/views/parts/base/_type_links.haml +9 -0
  78. data/app/views/parts/base/_type_shouts.haml +4 -0
  79. data/app/views/parts/grids/_example_layout_1.haml +10 -0
  80. data/app/views/parts/grids/_live_grid.haml +29 -0
  81. data/app/views/parts/modules/_alerts.haml +11 -0
  82. data/app/views/parts/modules/_nav_footer.haml +34 -0
  83. data/app/views/parts/modules/_nav_header.haml +18 -0
  84. data/app/views/parts/modules/_panels.haml +9 -0
  85. data/app/views/parts/modules/_tabs_minimal.haml +11 -0
  86. data/app/views/parts/modules/_tabs_simple_group.haml +11 -0
  87. data/app/views/parts/modules/_tabs_simple_group_toggle.haml +11 -0
  88. data/app/views/parts/modules/_tabs_toggle.haml +5 -0
  89. data/app/views/parts/modules/_tabs_traditional.haml +11 -0
  90. data/app/views/shared/_title.html.haml +8 -0
  91. data/app/views/shared/_ui_nav.html.haml +5 -0
  92. data/app/views/ui/typography.html.haml +86 -96
  93. data/lib/sb-styleguide.rb +1 -1
  94. data/lib/sb-styleguide/version.rb +1 -1
  95. data/lib/templates/haml/scaffold/_form.html.haml +8 -0
  96. data/public/javascripts/LICENSE.html +158 -0
  97. data/public/javascripts/README.md.html +164 -0
  98. data/public/javascripts/assets/codo.css +1 -0
  99. data/public/javascripts/assets/codo.js +21 -0
  100. data/public/javascripts/assets/search_data.js +1 -0
  101. data/public/javascripts/class_index.html +215 -0
  102. data/public/javascripts/class_list.html +58 -0
  103. data/public/javascripts/classes/Close.html +259 -0
  104. data/public/javascripts/classes/GAEvent.html +231 -0
  105. data/public/javascripts/classes/ResizeHandler.html +225 -0
  106. data/public/javascripts/classes/Switch.html +318 -0
  107. data/public/javascripts/classes/TBGForm.html +373 -0
  108. data/public/javascripts/extra_list.html +36 -0
  109. data/public/javascripts/file_list.html +74 -0
  110. data/public/javascripts/files/styleguide/plugins/tbg-close.js.coffee.html +160 -0
  111. data/public/javascripts/files/styleguide/plugins/tbg-forms.js.coffee.html +160 -0
  112. data/public/javascripts/files/styleguide/plugins/tbg-ga-events.js.coffee.html +160 -0
  113. data/public/javascripts/files/styleguide/plugins/tbg-respinsiveresize.js.coffee.html +160 -0
  114. data/public/javascripts/files/styleguide/plugins/tbg-switch.js.coffee.html +160 -0
  115. data/public/javascripts/index.html +14 -0
  116. data/public/javascripts/method_list.html +187 -0
  117. data/public/javascripts/mixin_list.html +28 -0
  118. data/vendor/assets/javascripts/styleguide/plugins/doc/assets/codo.css +1 -0
  119. data/vendor/assets/javascripts/styleguide/plugins/doc/assets/codo.js +21 -0
  120. data/vendor/assets/javascripts/styleguide/plugins/doc/assets/search_data.js +1 -0
  121. data/vendor/assets/javascripts/styleguide/plugins/doc/class_index.html +194 -0
  122. data/vendor/assets/javascripts/styleguide/plugins/doc/class_list.html +58 -0
  123. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/Close.html +215 -0
  124. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/GAEvent.html +235 -0
  125. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/ResizeHandler.html +192 -0
  126. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/Switch.html +233 -0
  127. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/TBGForm.html +318 -0
  128. data/vendor/assets/javascripts/styleguide/plugins/doc/extra_list.html +30 -0
  129. data/vendor/assets/javascripts/styleguide/plugins/doc/file_list.html +58 -0
  130. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-close.js.coffee.html +154 -0
  131. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-forms.js.coffee.html +154 -0
  132. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-ga-events.js.coffee.html +154 -0
  133. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-respinsiveresize.js.coffee.html +154 -0
  134. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-switch.js.coffee.html +154 -0
  135. data/vendor/assets/javascripts/styleguide/plugins/doc/index.html +14 -0
  136. data/vendor/assets/javascripts/styleguide/plugins/doc/method_list.html +163 -0
  137. data/vendor/assets/javascripts/styleguide/plugins/doc/mixin_list.html +28 -0
  138. data/vendor/assets/javascripts/styleguide/plugins/tbg-close.js.coffee +28 -4
  139. data/vendor/assets/javascripts/styleguide/plugins/tbg-forms.js.coffee +52 -5
  140. data/vendor/assets/javascripts/styleguide/plugins/tbg-ga-events.js.coffee +28 -8
  141. data/vendor/assets/javascripts/styleguide/plugins/tbg-respinsiveresize.js.coffee +21 -2
  142. data/vendor/assets/javascripts/styleguide/plugins/tbg-switch.js.coffee +37 -2
  143. data/vendor/assets/stylesheets/_mixins.css.scss +128 -35
  144. data/vendor/assets/stylesheets/_settings.css.scss +7 -4
  145. data/vendor/assets/stylesheets/styleguide/base/_labels.css.scss +22 -6
  146. data/vendor/assets/stylesheets/styleguide/base/_lists.css.scss +23 -18
  147. data/vendor/assets/stylesheets/styleguide/base/_type.css.scss +11 -5
  148. data/vendor/assets/stylesheets/styleguide/grid/_grid.css.scss +9 -9
  149. data/vendor/assets/stylesheets/styleguide/modules/_switch.css.scss +32 -16
  150. metadata +134 -18
  151. data/.rvmrc +0 -1
  152. data/app/helpers/application_helper.rb +0 -13
  153. data/app/helpers/javascripts_helper.rb +0 -2
  154. data/app/helpers/ui_helper.rb +0 -2
  155. data/app/mailers/.gitkeep +0 -0
  156. data/app/models/.gitkeep +0 -0
  157. data/app/views/javascripts/_js_nav.html.haml +0 -5
  158. data/app/views/javascripts/index.html.haml +0 -45
  159. data/app/views/type/_headings.haml +0 -6
  160. data/app/views/type/_paragraphs.haml +0 -4
  161. data/app/views/ui/_ui_nav.html.haml +0 -13
  162. data/vendor/assets/stylesheets/styleguide/layout/_all.css.scss +0 -5
  163. data/vendor/plugins/.gitkeep +0 -0
@@ -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,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
@@ -1,128 +1,118 @@
1
- .row
2
- .mother-three.mother-push-one.column= render "ui_nav"
3
- .mother-seven.mother-pull-one.column
4
1
 
5
- %h2 Basic Typography
2
+ %h2 Basic Typography
6
3
 
7
- = render :partial => "shared/placeholder_text"
4
+ = render :partial => "shared/placeholder_text"
8
5
 
9
- %hr
6
+ %hr
10
7
 
11
- %h3.h5 Headings
8
+ %h3.h5 Headings
12
9
 
13
- = example do
14
- .h1 Heading 1
15
- .h2 Heading 2
16
- .h3 Heading 3
17
- .h4 Heading 4
18
- .h5 Heading 5
19
- :coderay
20
- #!haml
21
-
22
- %h1 Heading 1
23
- %h2 Heading 2
24
- %h3 Heading 3
25
- %h4 Heading 4
26
- %h5 Heading 5
10
+ .h1 Heading 1
11
+ .h2 Heading 2
12
+ .h3 Heading 3
13
+ .h4 Heading 4
14
+ .h5 Heading 5
15
+ :coderay
16
+ #!haml
27
17
 
28
- // All heading styles can also be reproduced using .h{n}
29
- %hr
18
+ %h1 Heading 1
19
+ %h2 Heading 2
20
+ %h3 Heading 3
21
+ %h4 Heading 4
22
+ %h5 Heading 5
30
23
 
31
- %h3.h5 Body text
24
+ // All heading styles can also be reproduced using .h{n}
25
+ %hr
32
26
 
33
- = example do
34
- %p Normal 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.
27
+ %h3.h5 Body text
35
28
 
36
- :coderay
37
- #!haml
29
+ %p Normal 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.
38
30
 
39
- %p Lebowski ipsum I didn't…
40
- // end
31
+ :coderay
32
+ #!haml
41
33
 
42
- %h3.h5 Standout
34
+ %p Lebowski ipsum I didn't…
35
+ // end
43
36
 
44
- = example do
45
- %p.standout Standout 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.
37
+ %h3.h5 Standout
46
38
 
47
- :coderay
48
- #!haml
39
+ %p.standout Standout 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.
49
40
 
50
- %p.standout Lebowski ipsum I didn't…
51
- // end
41
+ :coderay
42
+ #!haml
52
43
 
53
- %h3.h5 Body text helper classes
44
+ %p.standout Lebowski ipsum I didn't…
45
+ // end
54
46
 
55
- = example do
56
- %p.support Support text - 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.
57
- %p.secondary Secondary text - 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. Pellentesque ac lectus quis elit blandit fringilla a ut turpis.
47
+ %h3.h5 Body text helper classes
58
48
 
59
- :coderay
60
- #!haml
49
+ %p.support Support text - 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.
50
+ %p.secondary Secondary text - 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. Pellentesque ac lectus quis elit blandit fringilla a ut turpis.
61
51
 
62
- %p.support Lebowski ipsum I didn't…
63
- %p.secondary Lebowski ipsum I didn't…
64
- // end
52
+ :coderay
53
+ #!haml
65
54
 
66
- %hr
55
+ %p.support Lebowski ipsum I didn't…
56
+ %p.secondary Lebowski ipsum I didn't…
57
+ // end
67
58
 
68
- %h3.h5 Links
69
-
70
- = example do
71
- %a{:href=>"#my_link"} Text link
72
- %br
73
- %a.is-active{:href=>"#my_link"} Text link hover/active
74
- %br
75
- %a.prominent{:href=>"#my_link"} Prominent text link
76
- %br
77
- %a.prominent.is-active{:href=>"#my_link"} Prominent text link hover/active
59
+ %hr
78
60
 
79
- :coderay
80
- #!haml
61
+ %h3.h5 Links
81
62
 
82
- %a{:href=>"#my_link"} Text link
83
- %a.is-active{:href=>"#my_link"} Text link hover/active
84
- %a.prominent{:href=>"#my_link"} Prominent text link
85
- %a.prominent.is-active{:href=>"#my_link"} Prominent text link hover/active
86
- // end
63
+ %a{:href=>"#my_link"} Text link
64
+ %br
65
+ %a.is-active{:href=>"#my_link"} Text link hover/active
66
+ %br
67
+ %a.prominent{:href=>"#my_link"} Prominent text link
68
+ %br
69
+ %a.prominent.is-active{:href=>"#my_link"} Prominent text link hover/active
87
70
 
88
- %hr
71
+ :coderay
72
+ #!haml
89
73
 
90
- %h3.h5 Shouts
74
+ %a{:href=>"#my_link"} Text link
75
+ %a.is-active{:href=>"#my_link"} Text link hover/active
76
+ %a.prominent{:href=>"#my_link"} Prominent text link
77
+ %a.prominent.is-active{:href=>"#my_link"} Prominent text link hover/active
78
+ // end
91
79
 
92
- = example do
93
- .shout Shout Text
94
- .small.shout Small shout text
95
- .medium.shout Medium shout text
96
- .large.shout Large shout text
97
- :coderay
98
- #!haml
80
+ %hr
99
81
 
100
- .shout Shout Text
101
- .small.shout Small shout text
102
- .medium.shout Medium shout text
103
- .large.shout Large shout text
104
- // end
82
+ %h3.h5 Shouts
105
83
 
84
+ .shout Shout Text
85
+ .small.shout Small shout text
86
+ .medium.shout Medium shout text
87
+ .large.shout Large shout text
88
+ :coderay
89
+ #!haml
106
90
 
107
- %hr
91
+ .shout Shout Text
92
+ .small.shout Small shout text
93
+ .medium.shout Medium shout text
94
+ .large.shout Large shout text
95
+ // end
108
96
 
109
- %h2 Lists
110
97
 
111
- %h3.h5 Action lists
112
-
113
- = example do
114
- %ul.action-list
115
- %li
116
- %a{:href=>"my_url"} Item 1
117
- %li
118
- %a{:href=>"my_url"} item 2
119
- :coderay
120
- #!haml
98
+ %hr
121
99
 
122
- %ul.action-list
123
- %li
124
- %a{:href=>"my_url"} Item 1
125
- %li
126
- %a{:href=>"my_url"} Item 2
127
- // end
100
+ %h2 Lists
101
+
102
+ %h3.h5 Action lists
103
+
104
+ %ul.action-list
105
+ %li
106
+ %a{:href=>"my_url"} Item 1
107
+ %li
108
+ %a{:href=>"my_url"} item 2
109
+ :coderay
110
+ #!haml
111
+
112
+ %ul.action-list
113
+ %li
114
+ %a{:href=>"my_url"} Item 1
115
+ %li
116
+ %a{:href=>"my_url"} Item 2
117
+ // end
128
118
 
data/lib/sb-styleguide.rb CHANGED
@@ -4,7 +4,7 @@ require "rails"
4
4
 
5
5
  module Sb
6
6
  module Styleguide
7
- class Engine < ::Rails::Engine
7
+ class Engine < Rails::Engine
8
8
  require "modular-scale"
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  module Sb
2
2
  module Styleguide
3
- VERSION = "0.0.9"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -0,0 +1,8 @@
1
+ = semantic_form_for @<%= singular_name %> do |f|
2
+ = f.inputs do
3
+ <%- attributes.each do |attribute| -%>
4
+ = f.input :<%= attribute.name %>
5
+ <%- end -%>
6
+
7
+ = f.actions do
8
+ = f.action :submit, :as => :input
@@ -0,0 +1,158 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset='UTF-8'>
5
+ <title>Codo Documentation</title>
6
+ <link rel='stylesheet' href='assets/codo.css' type='text/css'>
7
+ <script src='assets/codo.js'></script>
8
+ <script src='assets/search_data.js'></script>
9
+ </head>
10
+ <body>
11
+ <div id='base' data-path=''></div>
12
+ <div id='header'>
13
+ <div id='menu'>
14
+ <a href='README.md.html' title='Codo'>Codo</a>
15
+ &raquo;
16
+ <a href='class_index.html' title='Index'>Index</a>
17
+ &raquo;
18
+ <span class='title'>LICENSE</span>
19
+ <nav>
20
+ <ul>
21
+ <li class='noframes'>
22
+ (<a class='noframes' href='#'>no frames</a>)
23
+ </li>
24
+ </ul>
25
+ </nav>
26
+ <div id='search'>
27
+ <a id='class_list_link' href='class_list.html'>Classes</a>
28
+ <a id='file_list_link' href='file_list.html'>Files</a>
29
+ <a id='method_list_link' href='method_list.html'>Methods</a>
30
+ <a id='extra_list_link' href='extra_list.html'>Extras</a>
31
+ </div>
32
+ </div>
33
+ <iframe id='search_frame'></iframe>
34
+ <div id='fuzzySearch'>
35
+ <input type='text'>
36
+ <ol></ol>
37
+ </div>
38
+ <div id='help'>
39
+ <p>
40
+ Quickly fuzzy find classes, mixins, methods, file:
41
+ </p>
42
+ <ul>
43
+ <li>
44
+ <span>Ctrl-T</span>
45
+ Open fuzzy finder dialog
46
+ </li>
47
+ </ul>
48
+ <p>
49
+ In frame mode you can toggle the list naviation frame on the left side:
50
+ </p>
51
+ <ul>
52
+ <li>
53
+ <span>Ctrl-L</span>
54
+ Toggle list view
55
+ </li>
56
+ </ul>
57
+ <p>
58
+ You can focus a list in frame mode or toggle a tab in frameless mode:
59
+ </p>
60
+ <ul>
61
+ <li>
62
+ <span>Ctrl-C</span>
63
+ Class list
64
+ </li>
65
+ <li>
66
+ <span>Ctrl-I</span>
67
+ Mixin list
68
+ </li>
69
+ <li>
70
+ <span>Ctrl-F</span>
71
+ File list
72
+ </li>
73
+ <li>
74
+ <span>Ctrl-M</span>
75
+ Method list
76
+ </li>
77
+ <li>
78
+ <span>Ctrl-E</span>
79
+ Extras list
80
+ </li>
81
+ </ul>
82
+ <p>
83
+ You can focus and blur the search input:
84
+ </p>
85
+ <ul>
86
+ <li>
87
+ <span>Ctrl-S</span>
88
+ Focus search input
89
+ </li>
90
+ <li>
91
+ <span>Esc</span>
92
+ Blur search input
93
+ </li>
94
+ </ul>
95
+ <p>
96
+ In frameless mode you can close the list tab:
97
+ </p>
98
+ <ul>
99
+ <li>
100
+ <span>Esc</span>
101
+ Close list tab
102
+ </li>
103
+ </ul>
104
+ </div>
105
+ </div>
106
+ <div id='content'>
107
+ <nav class='toc'>
108
+ <p class='title'>
109
+ <a class='hide_toc' href='#'>
110
+ <strong>Table of Contents</strong>
111
+ </a>
112
+ <small>
113
+ (<a class='float_toc' href='#'>left</a>)
114
+ </small>
115
+ </p>
116
+ </nav>
117
+ <div id='filecontents'>
118
+ Copyright (c) 2012 TODO: The Beans Group LTD
119
+
120
+ MIT License
121
+
122
+ Permission is hereby granted, free of charge, to any person obtaining
123
+ a copy of this software and associated documentation files (the
124
+ "Software"), to deal in the Software without restriction, including
125
+ without limitation the rights to use, copy, modify, merge, publish,
126
+ distribute, sublicense, and/or sell copies of the Software, and to
127
+ permit persons to whom the Software is furnished to do so, subject to
128
+ the following conditions:
129
+
130
+ The above copyright notice and this permission notice shall be
131
+ included in all copies or substantial portions of the Software.
132
+
133
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
134
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
135
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
136
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
137
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
138
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
139
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
140
+
141
+ </div>
142
+ </div>
143
+ <div id='footer'>
144
+ Generated on
145
+ Thu Mar 14 2013 13:49:05 GMT+0000 (GMT)
146
+ by
147
+ <a href='https://github.com/netzpirat/codo' title='CoffeeScript API documentation generator'>Codo</a>
148
+ v1.5.6
149
+ (Node.js v0.8.8).
150
+ &#10034;
151
+ Press Ctrl-h to see the keyboard shortcuts
152
+ &#10034;
153
+ <a href='http://twitter.com/#!/netzpirat'>@netzpirat</a>
154
+ &#10034;
155
+ <a href='https://mksoft.ch'>mksoft.ch</a>
156
+ </div>
157
+ </body>
158
+ </html>