sb-styleguide 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. data/.gitignore +21 -16
  2. data/.rvmrc +1 -0
  3. data/Gemfile +45 -3
  4. data/Gemfile.lock +195 -0
  5. data/Guardfile +9 -0
  6. data/LICENSE +2 -2
  7. data/README.md +53 -3
  8. data/Rakefile +30 -0
  9. data/app/assets/images/rails.png +0 -0
  10. data/app/assets/javascripts/application.js +17 -0
  11. data/app/assets/javascripts/lib/modernizr.js +4 -0
  12. data/app/assets/stylesheets/application.css.scss +72 -0
  13. data/app/assets/stylesheets/coderay_githubish.css.scss +131 -0
  14. data/app/controllers/application_controller.rb +3 -0
  15. data/app/controllers/javascripts_controller.rb +4 -0
  16. data/app/controllers/ui_controller.rb +2 -0
  17. data/app/helpers/application_helper.rb +13 -0
  18. data/app/helpers/javascripts_helper.rb +2 -0
  19. data/app/helpers/ui_helper.rb +2 -0
  20. data/app/mailers/.gitkeep +0 -0
  21. data/app/models/.gitkeep +0 -0
  22. data/app/views/javascripts/_js_nav.html.haml +5 -0
  23. data/app/views/javascripts/index.html.haml +45 -0
  24. data/app/views/layouts/_main_nav.html.haml +15 -0
  25. data/app/views/layouts/application.html.haml +41 -0
  26. data/app/views/shared/_placeholder_text.html.haml +1 -0
  27. data/app/views/type/_headings.haml +6 -0
  28. data/app/views/type/_paragraphs.haml +4 -0
  29. data/app/views/ui/_ui_nav.html.haml +13 -0
  30. data/app/views/ui/alert.html.haml +35 -0
  31. data/app/views/ui/buttons.html.haml +116 -0
  32. data/app/views/ui/footer.html.haml +69 -0
  33. data/app/views/ui/forms.html.haml +59 -0
  34. data/app/views/ui/forms/_vertical_form.haml +7 -0
  35. data/app/views/ui/grids.html.haml +18 -0
  36. data/app/views/ui/index.html.haml +5 -0
  37. data/app/views/ui/labels.html.haml +15 -0
  38. data/app/views/ui/modules/panel.html.haml +3 -0
  39. data/app/views/ui/nav.html.haml +48 -0
  40. data/app/views/ui/tabs.html.haml +171 -0
  41. data/app/views/ui/typography.html.haml +128 -0
  42. data/db/development.sqlite3 +0 -0
  43. data/db/seeds.rb +7 -0
  44. data/doc/README_FOR_APP +2 -0
  45. data/lib/assets/.gitkeep +0 -0
  46. data/lib/sb-styleguide.rb +5 -1
  47. data/lib/sb-styleguide/version.rb +1 -1
  48. data/lib/tasks/.gitkeep +0 -0
  49. data/log/.gitkeep +0 -0
  50. data/public/404.html +26 -0
  51. data/public/422.html +26 -0
  52. data/public/500.html +25 -0
  53. data/public/favicon.ico +0 -0
  54. data/public/robots.txt +5 -0
  55. data/sb-styleguide.gemspec +15 -2
  56. data/script/rails +6 -0
  57. data/spec/javascripts/fixtures/plugins/tbg-close_fixture.html.haml +4 -0
  58. data/spec/javascripts/fixtures/plugins/tbg-forms_fixture.html.haml +12 -0
  59. data/spec/javascripts/fixtures/plugins/tbg-switch_fixture.html.haml +11 -0
  60. data/spec/javascripts/plugins/tbg-close_spec.js.coffee +54 -0
  61. data/spec/javascripts/plugins/tbg-forms_spec.js.coffee +61 -0
  62. data/spec/javascripts/plugins/tbg-switch_spec.js.coffee +96 -0
  63. data/spec/javascripts/spec.js.coffee +2 -0
  64. data/vendor/assets/fonts/ss-social-circle.eot +0 -0
  65. data/vendor/assets/fonts/ss-social-circle.svg +139 -0
  66. data/vendor/assets/fonts/ss-social-circle.ttf +0 -0
  67. data/vendor/assets/fonts/ss-social-circle.woff +0 -0
  68. data/vendor/assets/fonts/ss-social-regular.eot +0 -0
  69. data/vendor/assets/fonts/ss-social-regular.svg +133 -0
  70. data/vendor/assets/fonts/ss-social-regular.ttf +0 -0
  71. data/vendor/assets/fonts/ss-social-regular.woff +0 -0
  72. data/vendor/assets/fonts/ss-social.js +75 -0
  73. data/vendor/assets/fonts/ss-standard.eot +0 -0
  74. data/vendor/assets/fonts/ss-standard.js +75 -0
  75. data/vendor/assets/fonts/ss-standard.svg +316 -0
  76. data/vendor/assets/fonts/ss-standard.ttf +0 -0
  77. data/vendor/assets/fonts/ss-standard.woff +0 -0
  78. data/vendor/assets/images/background.png +0 -0
  79. data/vendor/assets/images/logos/sb-logo-white.png +0 -0
  80. data/vendor/assets/images/logos/sb-logo-white.svg +5 -0
  81. data/vendor/assets/images/middleman.png +0 -0
  82. data/vendor/assets/index.html.haml +8 -0
  83. data/vendor/assets/javascripts/.gitkeep +0 -0
  84. data/vendor/assets/javascripts/styleguide/plugins/tbg-close.js.coffee +73 -0
  85. data/vendor/assets/javascripts/styleguide/plugins/tbg-forms.js.coffee +96 -0
  86. data/vendor/assets/javascripts/styleguide/plugins/tbg-switch.js.coffee +85 -0
  87. data/vendor/assets/stylesheets/.gitkeep +0 -0
  88. data/vendor/assets/stylesheets/_functions.scss +28 -0
  89. data/vendor/assets/stylesheets/_mixins.css.scss +163 -0
  90. data/vendor/assets/stylesheets/_settings.css.scss +116 -0
  91. data/vendor/assets/stylesheets/styleguide.css.scss +15 -0
  92. data/vendor/assets/stylesheets/styleguide/base/_all.css.scss +7 -0
  93. data/vendor/assets/stylesheets/styleguide/base/_buttons.css.scss +166 -0
  94. data/vendor/assets/stylesheets/styleguide/base/_form.css.scss +152 -0
  95. data/vendor/assets/stylesheets/styleguide/base/_labels.css.scss +42 -0
  96. data/vendor/assets/stylesheets/styleguide/base/_lists.css.scss +52 -0
  97. data/vendor/assets/stylesheets/styleguide/base/_reset.css.scss +258 -0
  98. data/vendor/assets/stylesheets/styleguide/base/_type.css.scss +306 -0
  99. data/vendor/assets/stylesheets/styleguide/base/webfonts/_all.css.scss +2 -0
  100. data/vendor/assets/stylesheets/styleguide/base/webfonts/ss-social.scss.css +56 -0
  101. data/vendor/assets/stylesheets/styleguide/base/webfonts/ss-standard.css.scss +47 -0
  102. data/vendor/assets/stylesheets/styleguide/grid/_grid.css.scss +106 -0
  103. data/vendor/assets/stylesheets/styleguide/layout/_all.css.scss +5 -0
  104. data/vendor/assets/stylesheets/styleguide/modules/_alert.css.scss +71 -0
  105. data/vendor/assets/stylesheets/styleguide/modules/_all-grid.css.scss +1 -0
  106. data/vendor/assets/stylesheets/styleguide/modules/_all-no-grid.css.scss +4 -0
  107. data/vendor/assets/stylesheets/styleguide/modules/_footer.css.scss +93 -0
  108. data/vendor/assets/stylesheets/styleguide/modules/_nav.css.scss +106 -0
  109. data/vendor/assets/stylesheets/styleguide/modules/_panel.css.scss +28 -0
  110. data/vendor/assets/stylesheets/styleguide/modules/_switch.css.scss +72 -0
  111. data/vendor/assets/views/buttons/_buttons.haml +9 -0
  112. data/vendor/assets/views/forms/_vertical_form.haml +7 -0
  113. data/vendor/assets/views/type/_headings.haml +6 -0
  114. data/vendor/assets/views/type/_paragraphs.haml +4 -0
  115. data/vendor/plugins/.gitkeep +0 -0
  116. metadata +280 -5
@@ -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
+
@@ -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,18 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+
5
+ %h1 Base#grids
6
+ %p Find me in app/views/base/grids.html.haml
7
+
8
+ %h2 Grid Settings
9
+ %p Setting the breakpoints...
10
+
11
+
12
+ %pre
13
+ %code
14
+ $mob: 'mobile-', 1, 20px, "max-width: 780px" ;
15
+ $desk: '', $columns, $column-gutter;
16
+ \// Add breakpoints to grid
17
+ $grids : $desk, $mob !default;
18
+
@@ -0,0 +1,5 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+ %h1 Ui#index
5
+ %p Find me in app/views/ui/index.html.haml
@@ -0,0 +1,15 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+ %h2 Labels
5
+
6
+ %hr
7
+
8
+ = example do
9
+ - ['','orange','green', 'blue'].each do |color|
10
+ %span{:class=>"label #{color}"}= (color.length > 0) ? ".#{color}.label" : ".label"
11
+ :coderay
12
+ #!haml
13
+
14
+ %span{:class=>"label [color]"} .[color].label
15
+ // end
@@ -0,0 +1,3 @@
1
+ %section.panel
2
+ %h1 Modules#panel
3
+ %p Find me in app/views/modules/panel.html.haml
@@ -0,0 +1,48 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+
5
+ %h2 Navigation
6
+
7
+ %hr
8
+
9
+ %h3.h5 Global Nav
10
+
11
+ %p Simplest form of the switch. In this version the switch is a simple reveal plugin with no off state.
12
+
13
+ = example do
14
+ %nav.nav-global
15
+ #nav-global-2.nav-collapse.baby-switch-content<
16
+ %ul.nav-items.collapse><
17
+ %li.is-active><
18
+ = link_to "stuff", "stuff"
19
+ %li><
20
+ = link_to "things", "things"
21
+ %li><
22
+ = link_to "bits", "bits"
23
+ .nav-mobile-switch.baby-only
24
+ %a{ :href => "#nav-global-2", :data => {:switch => true, :"switch-toggle" => true} }><
25
+ %span>< Show navigation
26
+ %i><
27
+ %i><
28
+ %i><
29
+
30
+ :coderay
31
+ #!haml
32
+ %nav.nav-global
33
+ #nav-global.nav-collapse.baby-switch-content<
34
+ %ul.nav-items.collapse><
35
+ %li.is-active><
36
+ = link_to "stuff", "stuff"
37
+ %li><
38
+ = link_to "things", "things"
39
+ %li><
40
+ = link_to "bits", "bits"
41
+ .nav-mobile-switch.baby-only
42
+ %a{ :href => "#nav-global", :data => {:switch => true, :"switch-toggle" => true} }><
43
+ %span>< Show navigation
44
+ %i><
45
+ %i><
46
+ %i><
47
+ // end
48
+
@@ -0,0 +1,171 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+
5
+ %h2 Tabs
6
+
7
+ %p.standout
8
+ Tabs use the
9
+ %code switch
10
+ plugin to manage active state.
11
+
12
+ %h3.h5 data-switch options
13
+
14
+ %dl
15
+ %dt
16
+ %code data-switch="true"
17
+ %dd An event listener will initalise the switch plugin when an element with this attribute is clicked.
18
+ %dt
19
+ %code data-switch-group="[group name]"
20
+ %dd By giving an element a group name then the plugin can change the state of other switches within the same group.
21
+ %dt
22
+ %code data-switch-toggle
23
+ %dd This option enables a switch to toggle it's state upon click.
24
+
25
+ %p= link_to "View Switch Plugin Tests", "/jasmine?spec=Switch%3A"
26
+
27
+ %hr
28
+
29
+ %h3.h5 Minimal switch
30
+
31
+ %p Simplest form of the switch. In this version the switch is a simple reveal plugin with no off state.
32
+
33
+ = example do
34
+ %ul
35
+ %li= link_to "Link 1", "#target1-1", :data => { :switch => true }
36
+ %li= link_to "Link 2", "#target2-1", :data => { :switch => true }
37
+ %li= link_to "Link 3", "#target3-1", :data => { :switch => true }
38
+ %div.switch-content{:id => "target1-1"} switch content 1
39
+ %div.switch-content{:id => "target2-1"} switch content 2
40
+ %div.switch-content{:id => "target3-1<D-s>"} switch content 3
41
+
42
+ :coderay
43
+ #!haml
44
+
45
+ %ul
46
+ %li
47
+ = link_to "Link 1", "#target1", :data => { :switch => true }
48
+ %li
49
+ = link_to "Link 2", "#target2", :data => { :switch => true }
50
+ %li
51
+ = link_to "Link 3", "#target3", :data => { :switch => true }
52
+ %div.switch-content{:id => "target1"} switch content 1
53
+ %div.switch-content{:id => "target2"} switch content 2
54
+ %div.switch-content{:id => "target3"} switch content 3
55
+ // end
56
+
57
+ %hr
58
+
59
+
60
+ %h3.h5 Toggle switch
61
+
62
+ %p Content can be toggled and it's state has no effect on other elements.
63
+
64
+ = example do
65
+ %ul
66
+ %li= link_to "Link 1", "#target1-2", :data => { :switch => true, :"switch-toggle" => true }
67
+ %li= link_to "Link 2", "#target2-2", :data => { :switch => true, :"switch-toggle" => true }
68
+ %li= link_to "Link 3", "#target3-2", :data => { :switch => true, :"switch-toggle" => true }
69
+ %div.switch-content{:id => "target1-2"} switch content 1
70
+ %div.switch-content{:id => "target2-2"} switch content 2
71
+ %div.switch-content{:id => "target3-2"} switch content 3
72
+
73
+ :coderay
74
+ #!haml
75
+
76
+ %ul
77
+ %li
78
+ = link_to "Link 1", "#target1", :data => { :switch => true, :"switch-toggle" => true }
79
+ %li
80
+ = link_to "Link 2", "#target2", :data => { :switch => true, :"switch-toggle" => true }
81
+ %li
82
+ = link_to "Link 3", "#target3", :data => { :switch => true, :"switch-toggle" => true }
83
+ %div.switch-content{:id => "target1"} switch content 1
84
+ %div.switch-content{:id => "target2"} switch content 2
85
+ %div.switch-content{:id => "target3"} switch content 3
86
+ // end
87
+
88
+ %hr
89
+
90
+ %h3.h5 Simple Groups
91
+
92
+ %p
93
+ By adding the
94
+ %code switch-group
95
+ data element we can make groups of switches reactive to each others state.
96
+
97
+ = example do
98
+ %ul
99
+ %li.is-active= link_to "Drop down link 1", "#target1-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg1-2"
100
+ %li= link_to "Drop down link 2", "#target2-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg2-2"
101
+ %li= link_to "Drop down link 3", "#target3-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg3-2"
102
+ %div.switch-content.is-active{:id => "target1-3"}= "switch content 1"
103
+ %div.switch-content{:id => "target2-3"}= "switch content 2"
104
+ %div.switch-content{:id => "target3-3"}= "switch content 3"
105
+
106
+ :coderay
107
+ #!haml
108
+
109
+ %ul.tabs
110
+ %li.is-active= link_to "Drop down link 1", "#target1-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg1-2"
111
+ %li= link_to "Drop down link 2", "#target2-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg2-2"
112
+ %li= link_to "Drop down link 3", "#target3-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg3-2"
113
+ %div.switch-content.is-active{:id => "target1-3"}= "switch content 1"
114
+ %div.switch-content{:id => "target2-3"}= "switch content 2"
115
+ %div.switch-content{:id => "target3-3"}= "switch content 3"
116
+ // end
117
+
118
+
119
+
120
+ %hr
121
+
122
+ %h3.h5 Simple Groups with toggle
123
+
124
+ = example do
125
+ %ul
126
+ %li= link_to "Link 1", "#target1-5", :data => { :switch => true, :"switch-toggle" => true , :"switch-group" => "group-1" }
127
+ %li= link_to "Link 2", "#target2-5", :data => { :switch => true, :"switch-toggle" => true, :"switch-group" => "group-1" }
128
+ %li= link_to "Link 3", "#target3-5", :data => { :switch => true, :"switch-toggle" => true, :"switch-group" => "group-1" }
129
+ %div.switch-content{:id => "target1-5"} switch content 1
130
+ %div.switch-content{:id => "target2-5"} switch content 2
131
+ %div.switch-content{:id => "target3-5"} switch content 3
132
+
133
+ :coderay
134
+ #!haml
135
+
136
+ %ul.tabs
137
+ %li.is-active= link_to "Drop down link 1", "#target1-3", :data => { :switch => true, :"switch-group" => "group-1", :"switch-toggle" => true }, :id => "eg1-2"
138
+ %li= link_to "Drop down link 2", "#target2-3", :data => { :switch => true, :"switch-group" => "group-1", :"switch-toggle" => true }, :id => "eg2-2"
139
+ %li= link_to "Drop down link 3", "#target3-3", :data => { :switch => true, :"switch-group" => "group-1", :"switch-toggle" => true }, :id => "eg3-2"
140
+ %div.switch-content.is-active{:id => "target1-3"}= "switch content 1"
141
+ %div.switch-content{:id => "target2-3"}= "switch content 2"
142
+ %div.switch-content{:id => "target3-3"}= "switch content 3"
143
+ // end
144
+
145
+
146
+
147
+
148
+ %hr
149
+
150
+ %h3.h5 Groups (with tabs)
151
+
152
+ = example do
153
+ %ul.tabs
154
+ %li.is-active= link_to "Drop down link 1", "#target1-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg1-2"
155
+ %li= link_to "Drop down link 2", "#target2-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg2-2"
156
+ %li= link_to "Drop down link 3", "#target3-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg3-2"
157
+ %div.switch-content.is-active{:id => "target1-3"}= "switch content 1"
158
+ %div.switch-content{:id => "target2-3"}= "switch content 2"
159
+ %div.switch-content{:id => "target3-3"}= "switch content 3"
160
+
161
+ :coderay
162
+ #!haml
163
+
164
+ %ul.tabs
165
+ %li.is-active= link_to "Drop down link 1", "#target1-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg1-2"
166
+ %li= link_to "Drop down link 2", "#target2-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg2-2"
167
+ %li= link_to "Drop down link 3", "#target3-3", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg3-2"
168
+ %div.switch-content.is-active{:id => "target1-3"}= "switch content 1"
169
+ %div.switch-content{:id => "target2-3"}= "switch content 2"
170
+ %div.switch-content{:id => "target3-3"}= "switch content 3"
171
+ // end
@@ -0,0 +1,128 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "ui_nav"
3
+ .mother-seven.mother-pull-one.column
4
+
5
+ %h2 Basic Typography
6
+
7
+ = render :partial => "shared/placeholder_text"
8
+
9
+ %hr
10
+
11
+ %h3.h5 Headings
12
+
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
27
+
28
+ // All heading styles can also be reproduced using .h{n}
29
+ %hr
30
+
31
+ %h3.h5 Body text
32
+
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.
35
+
36
+ :coderay
37
+ #!haml
38
+
39
+ %p Lebowski ipsum I didn't…
40
+ // end
41
+
42
+ %h3.h5 Standout
43
+
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.
46
+
47
+ :coderay
48
+ #!haml
49
+
50
+ %p.standout Lebowski ipsum I didn't…
51
+ // end
52
+
53
+ %h3.h5 Body text helper classes
54
+
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.
58
+
59
+ :coderay
60
+ #!haml
61
+
62
+ %p.support Lebowski ipsum I didn't…
63
+ %p.secondary Lebowski ipsum I didn't…
64
+ // end
65
+
66
+ %hr
67
+
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
78
+
79
+ :coderay
80
+ #!haml
81
+
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
87
+
88
+ %hr
89
+
90
+ %h3.h5 Shouts
91
+
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
99
+
100
+ .shout Shout Text
101
+ .small.shout Small shout text
102
+ .medium.shout Medium shout text
103
+ .large.shout Large shout text
104
+ // end
105
+
106
+
107
+ %hr
108
+
109
+ %h2 Lists
110
+
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
121
+
122
+ %ul.action-list
123
+ %li
124
+ %a{:href=>"my_url"} Item 1
125
+ %li
126
+ %a{:href=>"my_url"} Item 2
127
+ // end
128
+