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,131 @@
1
+ .CodeRay {
2
+ font-family: Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
3
+ color: #000;
4
+ padding: 1em 0px 1em 1em;
5
+ }
6
+
7
+ .CodeRay pre {
8
+ margin: 0px;
9
+ }
10
+
11
+ div.CodeRay { }
12
+ span.CodeRay { white-space: pre; border: 0px; padding: 2px }
13
+
14
+ table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px }
15
+ table.CodeRay td {
16
+ padding: 1em 0.5em;
17
+ vertical-align: top;
18
+ }
19
+
20
+ .CodeRay .line-numbers, .CodeRay .no {
21
+ background-color: #ECECEC;
22
+ color: #AAA;
23
+ text-align: right;
24
+ }
25
+
26
+ .CodeRay .line-numbers a {
27
+ color: #AAA;
28
+ border: none;
29
+ }
30
+
31
+ .CodeRay .line-numbers tt { font-weight: bold }
32
+ .CodeRay .line-numbers .highlighted { color: red }
33
+ .CodeRay .line { display: block; float: left; width: 100%; }
34
+ .CodeRay span.line-numbers { padding: 0px 4px }
35
+ .CodeRay .code { width: 100% }
36
+
37
+ ol.CodeRay { font-size: 10pt }
38
+ ol.CodeRay li { white-space: pre }
39
+
40
+ .CodeRay .code pre { overflow: auto }
41
+ .CodeRay .debug { color:white ! important; background:blue ! important; }
42
+
43
+ .CodeRay .annotation { color:#007 }
44
+ .CodeRay .attribute-name { color:#f08 }
45
+ .CodeRay .attribute-value { color:#700 }
46
+ .CodeRay .binary { color:#509; font-weight:bold }
47
+ .CodeRay .comment { color:#998; font-style: italic;}
48
+ .CodeRay .char { color:#04D }
49
+ .CodeRay .char .content { color:#04D }
50
+ .CodeRay .char .delimiter { color:#039 }
51
+ .CodeRay .class { color:#458; font-weight:bold }
52
+ .CodeRay .complex { color:#A08; font-weight:bold }
53
+ .CodeRay .constant { color:teal; }
54
+ .CodeRay .color { color:#0A0 }
55
+ .CodeRay .class-variable { color:#369 }
56
+ .CodeRay .decorator { color:#B0B; }
57
+ .CodeRay .definition { color:#099; font-weight:bold }
58
+ .CodeRay .directive { color:#088; font-weight:bold }
59
+ .CodeRay .delimiter { color:black }
60
+ .CodeRay .doc { color:#970 }
61
+ .CodeRay .doctype { color:#34b }
62
+ .CodeRay .doc-string { color:#D42; font-weight:bold }
63
+ .CodeRay .escape { color:#666; font-weight:bold }
64
+ .CodeRay .entity { color:#800; font-weight:bold }
65
+ .CodeRay .error { color:#F00; background-color:#FAA }
66
+ .CodeRay .exception { color:#C00; font-weight:bold }
67
+ .CodeRay .filename { color:#099; }
68
+ .CodeRay .function { color:#900; font-weight:bold }
69
+ .CodeRay .global-variable { color:teal; font-weight:bold }
70
+ .CodeRay .hex { color:#058; font-weight:bold }
71
+ .CodeRay .integer { color:#099; }
72
+ .CodeRay .include { color:#B44; font-weight:bold }
73
+ .CodeRay .inline { color: black }
74
+ .CodeRay .inline .inline { background: #ccc }
75
+ .CodeRay .inline .inline .inline { background: #bbb }
76
+ .CodeRay .inline .inline-delimiter { color: #D14; }
77
+ .CodeRay .inline-delimiter { color: #D14; }
78
+ .CodeRay .important { color:#f00; }
79
+ .CodeRay .interpreted { color:#B2B; font-weight:bold }
80
+ .CodeRay .instance-variable { color:teal }
81
+ .CodeRay .label { color:#970; font-weight:bold }
82
+ .CodeRay .local-variable { color:#963 }
83
+ .CodeRay .octal { color:#40E; font-weight:bold }
84
+ .CodeRay .operator { }
85
+ .CodeRay .predefined-constant { font-weight:bold }
86
+ .CodeRay .predefined { color:#369; font-weight:bold }
87
+ .CodeRay .preprocessor { color:#579; }
88
+ .CodeRay .pseudo-class { color:#00C; font-weight:bold }
89
+ .CodeRay .predefined-type { color:#074; font-weight:bold }
90
+ .CodeRay .reserved, .keyword { color:#000; font-weight:bold }
91
+
92
+ .CodeRay .key { color: #808; }
93
+ .CodeRay .key .delimiter { color: #606; }
94
+ .CodeRay .key .char { color: #80f; }
95
+ .CodeRay .value { color: #088; }
96
+
97
+ .CodeRay .regexp { background-color:#fff0ff }
98
+ .CodeRay .regexp .content { color:#808 }
99
+ .CodeRay .regexp .delimiter { color:#404 }
100
+ .CodeRay .regexp .modifier { color:#C2C }
101
+ .CodeRay .regexp .function { color:#404; font-weight: bold }
102
+
103
+ .CodeRay .string { color: #D20; }
104
+ .CodeRay .string .string { }
105
+ .CodeRay .string .string .string { background-color:#ffd0d0 }
106
+ .CodeRay .string .content { color: #D14; }
107
+ .CodeRay .string .char { color: #D14; }
108
+ .CodeRay .string .delimiter { color: #D14; }
109
+
110
+ .CodeRay .shell { color:#D14 }
111
+ .CodeRay .shell .content { }
112
+ .CodeRay .shell .delimiter { color:#D14 }
113
+
114
+ .CodeRay .symbol { color:#990073 }
115
+ .CodeRay .symbol .content { color:#A60 }
116
+ .CodeRay .symbol .delimiter { color:#630 }
117
+
118
+ .CodeRay .tag { color:#070 }
119
+ .CodeRay .tag-special { color:#D70; font-weight:bold }
120
+ .CodeRay .type { color:#339; font-weight:bold }
121
+ .CodeRay .variable { color:#036 }
122
+
123
+ .CodeRay .insert { background: #afa; }
124
+ .CodeRay .delete { background: #faa; }
125
+ .CodeRay .change { color: #aaf; background: #007; }
126
+ .CodeRay .head { color: #f8f; background: #505 }
127
+
128
+ .CodeRay .insert .insert { color: #080; font-weight:bold }
129
+ .CodeRay .delete .delete { color: #800; font-weight:bold }
130
+ .CodeRay .change .change { color: #66f; }
131
+ .CodeRay .head .head { color: #f4f; }
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,4 @@
1
+ class JavascriptsController < ApplicationController
2
+ def index
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ class UiController < ApplicationController
2
+ end
@@ -0,0 +1,13 @@
1
+ require 'coderay'
2
+
3
+ module ApplicationHelper
4
+
5
+ def example
6
+ capture_haml do
7
+ haml_tag :div, :class => "sg-example" do
8
+ yield
9
+ end
10
+ end
11
+ end
12
+
13
+ end
@@ -0,0 +1,2 @@
1
+ module JavascriptsHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module UiHelper
2
+ end
File without changes
File without changes
@@ -0,0 +1,5 @@
1
+ %nav
2
+ %ul
3
+ %li= link_to "Jasmine", "/jasmine"
4
+ -# Plugins
5
+ %li= link_to "Close Plugin", "#close-plugin"
@@ -0,0 +1,45 @@
1
+ .row
2
+ .mother-three.mother-push-one.column= render "js_nav"
3
+ .mother-seven.mother-pull-one.column
4
+
5
+ %h2 Javascript
6
+
7
+ %hr
8
+
9
+ %h3#close-plugin= link_to "Close plugin", "/jasmine?spec=Close%3A"
10
+
11
+ %p.standout Simple plugin to close (read: remove) anything on the page.
12
+
13
+ %h4 Usage
14
+
15
+ :markdown
16
+ The plugin is instantiated using the attribute `data-close` on the element that is used as the close button. The target is set by either passing a jQuery selector to the `data-attribute` or the ID of the target to the `href`.
17
+
18
+ %h5 data-close="selector"
19
+
20
+ :markdown
21
+ You can use the `data-close` attribute to set **any** jQuery selector to target the element you wish the button to close.
22
+
23
+ :coderay
24
+ #!haml
25
+ %a{:href => "#", :data => {:close => "[jquery selector]"} }
26
+ %a{:href => "#", :data => {:close => ".selector"} }
27
+ %a{:href => "#", :data => {:close => "#selector"} }
28
+
29
+ %h5 href="selector"
30
+
31
+ :markdown
32
+ You can use the `href` attribute to set a target element, by **ID only**, that you wish the button to close.
33
+
34
+ :coderay
35
+ #!haml
36
+
37
+ %a{:href => "#[target_id]", :data => {:close => true} }
38
+
39
+ %h4 Events emitted
40
+
41
+ :markdown
42
+ * `close` - emitted from target just before removal.
43
+
44
+ %hr
45
+
@@ -0,0 +1,15 @@
1
+ %nav.nav-global
2
+ #nav-global.nav-collapse.baby-switch-content<
3
+ %ul.nav-items.collapse><
4
+ %li><
5
+ = link_to "UI Elements", root_path
6
+ %li><
7
+ = link_to "Javascript", javascript_path
8
+ %li><
9
+ = link_to "Github", github_path
10
+ .nav-mobile-switch.baby-only
11
+ %a{ :href => "#nav-global", :data => {:switch => true, :"switch-toggle" => true} }><
12
+ %span>< Show navigation
13
+ %i><
14
+ %i><
15
+ %i><
@@ -0,0 +1,41 @@
1
+ !!!
2
+ %html
3
+ %head
4
+ %meta{:charset => "utf-8"}
5
+ %title= @page_title || "SB Style Guide"
6
+ = javascript_include_tag "lib/modernizr"
7
+ = stylesheet_link_tag "application"
8
+ %body.page_classes
9
+ = render :partial => "layouts/main_nav"
10
+ .container
11
+ = yield
12
+ = javascript_include_tag "application"
13
+ %footer.footer
14
+ .container
15
+ %a{ :href=> '#footer-content', :class => "footer-tab ss-icon footer-up", :data => { :switch => true, :"switch-toggle" => true}} navigateup
16
+ %a{ :href=> '#footer-content', :class => "footer-tab ss-icon footer-down", :data => { :switch => true, :"switch-toggle" => true}} navigatedown
17
+
18
+ #footer-content.container
19
+ .mother-seven.column
20
+ .row
21
+ .mother-two.sister-one.column.footer-logo-container
22
+ %a{:href=>root_path}
23
+ .footer-logo{ :role=>"img", :"aria-label"=>"Studentbeans.com"}
24
+ .row
25
+ %p.support &copy; #{Time.now.year.to_s} The Beans Group. All Rights reserved.
26
+ .mother-two.column
27
+ %ul.support
28
+ %li=link_to "footer link"
29
+ %li=link_to "footer link"
30
+ %li=link_to "footer link"
31
+ .mother-two.column
32
+ %ul.support
33
+ %li=link_to "footer link"
34
+ %li=link_to "footer link"
35
+ %li=link_to "footer link"
36
+ .mother-one.column
37
+ %ul.action-list.h5
38
+ %li=link_to "facebook", "http://facebook.com", :class => "ss-icon ss-social"
39
+ %li=link_to "twitter", "http://twitter.com", :class => "ss-icon ss-social"
40
+
41
+
@@ -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,6 @@
1
+ - heading_text = "Heading text"
2
+ %h1= heading_text
3
+ %h2= heading_text
4
+ %h3= heading_text
5
+ %h4= heading_text
6
+ %h5= heading_text
@@ -0,0 +1,4 @@
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. Quis elit blandit fringilla a ut turpis praesent felis ligula, malesuada suscipit malesuada. All right, Plan B. You might want to watch out the front window there, Larry. Non, ultrices non urna sed orci ipsum, placerat id condimentum rutrum, rhoncus ac.
2
+
3
+ %p 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. And thorough. Lorem aliquam placerat posuere neque, at dignissim magna ullamcorper in aliquam sagittis massa. Ac tortor ultrices faucibus curabitur eu mi sapien, ut ultricies ipsum morbi eget. …and even if he's a lazy man, and the Dude was certainly that—quite possibly the laziest in Los Angeles County. Risus nulla nullam vel nisi enim, vel auctor ante morbi. I, uh… money, yeah, I gotta respectfully, 69 you know, tender my resignation on that matter, 'cause it looks like your mother really was kidnapped after all. Id urna vel felis lacinia placerat vestibulum turpis nulla, viverra. You're just looking for a handout like every other. Are you employed, Mr. Lebowski? Nec volutpat ac, ornare id lectus cras pharetra faucibus tristique. Hey, relax man, I'm a brother shamus. Nullam non accumsan justo nulla facilisi integer interdum elementum. I—the royal we, man, you know, the editorial. Hardly Dude, a new 'vette? The kid's still got, oh, 96 to 97 thousand, depending on the options. Nulla, nec eleifend nisl euismod ac maecenas vitae eros. Wonderful woman. Very free-spirited. We're all very fond of her. Velit, eu suscipit erat integer purus lacus, pretium vel. My art has been commended as being strongly vaginal. Which bothers some men. The word itself makes some men uncomfortable. Vagina. Venenatis eu, volutpat non erat donec a metus ac. Eros dictum aliquet nulla. Yeah. Roadie for Metallica. Speed of Sound Tour. Consectetur egestas placerat maecenas. Ja, your viggly penis, Lebowski. Pulvinar nisl et nisl. Since you have failed to achieve, even in the modest task that was your charge, since you have stolen my money, and since you have unrepentantly betrayed my trust. Rhoncus at volutpat felis. Eight-year-olds, Dude. Blandit in libero turpis, I have no choice but to tell these bums that they should do whatever is necessary to recover their money from you, Jeffrey Lebowski.
4
+
@@ -0,0 +1,13 @@
1
+ %nav
2
+ %ul
3
+ %li= link_to "Grids", grids_path
4
+ %li= link_to "Typography", typography_path
5
+ %li= link_to "Buttons", buttons_path
6
+ %li= link_to "Labels", labels_path
7
+ -# modules
8
+ %li= link_to "Tabs", tabs_path
9
+ %li= link_to "Navigations", nav_path
10
+ %li= link_to "Alert", alert_path
11
+ %li= link_to "Forms", forms_path
12
+ %li= link_to "Footer", footer_path
13
+
@@ -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