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.
- data/.codoopts +10 -0
- data/.env +1 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +10 -3
- data/Gemfile.lock +134 -94
- data/Procfile +1 -0
- data/README.md +3 -5
- data/Rakefile +3 -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/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/modules.js.coffee +3 -0
- data/app/assets/stylesheets/application-old-ie.css.scss +11 -0
- data/app/assets/stylesheets/application.css.scss +33 -30
- 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/{coderay_githubish.css.scss → modules/_coderay.css.scss} +40 -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 +2 -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/modules_controller.rb +43 -0
- data/app/helpers/styleguide_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 +1 -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.html.haml +9 -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/layouts/_main_nav.html.haml +6 -6
- data/app/views/layouts/application.html.haml +6 -32
- 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/_title.html.haml +8 -0
- data/app/views/shared/_ui_nav.html.haml +5 -0
- data/app/views/ui/typography.html.haml +86 -96
- data/lib/sb-styleguide.rb +1 -1
- data/lib/sb-styleguide/version.rb +1 -1
- data/lib/templates/haml/scaffold/_form.html.haml +8 -0
- data/public/javascripts/LICENSE.html +158 -0
- data/public/javascripts/README.md.html +164 -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/vendor/assets/javascripts/styleguide/plugins/doc/assets/codo.css +1 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/assets/codo.js +21 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/assets/search_data.js +1 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/class_index.html +194 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/class_list.html +58 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/classes/Close.html +215 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/classes/GAEvent.html +235 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/classes/ResizeHandler.html +192 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/classes/Switch.html +233 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/classes/TBGForm.html +318 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/extra_list.html +30 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/file_list.html +58 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-close.js.coffee.html +154 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-forms.js.coffee.html +154 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-ga-events.js.coffee.html +154 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-respinsiveresize.js.coffee.html +154 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-switch.js.coffee.html +154 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/index.html +14 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/method_list.html +163 -0
- data/vendor/assets/javascripts/styleguide/plugins/doc/mixin_list.html +28 -0
- data/vendor/assets/javascripts/styleguide/plugins/tbg-close.js.coffee +28 -4
- data/vendor/assets/javascripts/styleguide/plugins/tbg-forms.js.coffee +52 -5
- data/vendor/assets/javascripts/styleguide/plugins/tbg-ga-events.js.coffee +28 -8
- data/vendor/assets/javascripts/styleguide/plugins/tbg-respinsiveresize.js.coffee +21 -2
- data/vendor/assets/javascripts/styleguide/plugins/tbg-switch.js.coffee +37 -2
- data/vendor/assets/stylesheets/_mixins.css.scss +128 -35
- data/vendor/assets/stylesheets/_settings.css.scss +7 -4
- data/vendor/assets/stylesheets/styleguide/base/_labels.css.scss +22 -6
- data/vendor/assets/stylesheets/styleguide/base/_lists.css.scss +23 -18
- data/vendor/assets/stylesheets/styleguide/base/_type.css.scss +11 -5
- data/vendor/assets/stylesheets/styleguide/grid/_grid.css.scss +9 -9
- data/vendor/assets/stylesheets/styleguide/modules/_switch.css.scss +32 -16
- metadata +134 -18
- data/.rvmrc +0 -1
- data/app/helpers/application_helper.rb +0 -13
- data/app/helpers/javascripts_helper.rb +0 -2
- data/app/helpers/ui_helper.rb +0 -2
- data/app/mailers/.gitkeep +0 -0
- data/app/models/.gitkeep +0 -0
- data/app/views/javascripts/_js_nav.html.haml +0 -5
- data/app/views/javascripts/index.html.haml +0 -45
- data/app/views/type/_headings.haml +0 -6
- data/app/views/type/_paragraphs.haml +0 -4
- data/app/views/ui/_ui_nav.html.haml +0 -13
- data/vendor/assets/stylesheets/styleguide/layout/_all.css.scss +0 -5
- 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,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
|
+
|
@@ -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
|
-
|
2
|
+
%h2 Basic Typography
|
6
3
|
|
7
|
-
|
4
|
+
= render :partial => "shared/placeholder_text"
|
8
5
|
|
9
|
-
|
6
|
+
%hr
|
10
7
|
|
11
|
-
|
8
|
+
%h3.h5 Headings
|
12
9
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
-
|
29
|
-
|
18
|
+
%h1 Heading 1
|
19
|
+
%h2 Heading 2
|
20
|
+
%h3 Heading 3
|
21
|
+
%h4 Heading 4
|
22
|
+
%h5 Heading 5
|
30
23
|
|
31
|
-
|
24
|
+
// All heading styles can also be reproduced using .h{n}
|
25
|
+
%hr
|
32
26
|
|
33
|
-
|
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
|
-
|
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
|
-
|
40
|
-
|
31
|
+
:coderay
|
32
|
+
#!haml
|
41
33
|
|
42
|
-
|
34
|
+
%p Lebowski ipsum I didn't…
|
35
|
+
// end
|
43
36
|
|
44
|
-
|
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
|
-
|
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
|
-
|
51
|
-
|
41
|
+
:coderay
|
42
|
+
#!haml
|
52
43
|
|
53
|
-
|
44
|
+
%p.standout Lebowski ipsum I didn't…
|
45
|
+
// end
|
54
46
|
|
55
|
-
|
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
|
-
|
60
|
-
|
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
|
-
|
63
|
-
|
64
|
-
// end
|
52
|
+
:coderay
|
53
|
+
#!haml
|
65
54
|
|
66
|
-
|
55
|
+
%p.support Lebowski ipsum I didn't…
|
56
|
+
%p.secondary Lebowski ipsum I didn't…
|
57
|
+
// end
|
67
58
|
|
68
|
-
|
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
|
-
|
80
|
-
#!haml
|
61
|
+
%h3.h5 Links
|
81
62
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
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
|
-
|
71
|
+
:coderay
|
72
|
+
#!haml
|
89
73
|
|
90
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
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
@@ -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
|
+
»
|
16
|
+
<a href='class_index.html' title='Index'>Index</a>
|
17
|
+
»
|
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
|
+
✲
|
151
|
+
Press Ctrl-h to see the keyboard shortcuts
|
152
|
+
✲
|
153
|
+
<a href='http://twitter.com/#!/netzpirat'>@netzpirat</a>
|
154
|
+
✲
|
155
|
+
<a href='https://mksoft.ch'>mksoft.ch</a>
|
156
|
+
</div>
|
157
|
+
</body>
|
158
|
+
</html>
|