speedo 0.2.0 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/app/assets/javascripts/speedo.js +1 -2
  2. data/app/assets/javascripts/swim.js.coffee +34 -61
  3. data/app/assets/stylesheets/application.css.scss +1 -1
  4. data/app/assets/stylesheets/speedo/base.css.scss +72 -0
  5. data/app/assets/stylesheets/speedo/helpers.css.scss +34 -0
  6. data/app/assets/stylesheets/speedo/layout.css.scss +220 -0
  7. data/app/assets/stylesheets/speedo/plugins.css.scss +110 -0
  8. data/app/assets/stylesheets/speedo/speedo.css.scss +35 -0
  9. data/app/assets/stylesheets/speedo/theme.css.scss +62 -0
  10. data/app/views/layouts/speedo/application.html.haml +4 -1
  11. data/app/views/speedo/home/examples.html.haml +59 -34
  12. data/lib/generators/speedo/install_generator.rb +6 -3
  13. data/lib/speedo/version.rb +1 -1
  14. data/vendor/assets/javascripts/speedo/bootstrap.js +1825 -0
  15. data/vendor/assets/stylesheets/speedo/bootstrap/glyphicons-halflings-white.png +0 -0
  16. data/vendor/assets/stylesheets/speedo/bootstrap/glyphicons-halflings.png +0 -0
  17. data/vendor/assets/stylesheets/speedo/bootstrap-responsive.css +815 -0
  18. data/vendor/assets/stylesheets/speedo/bootstrap.css +4983 -0
  19. data/vendor/assets/stylesheets/speedo/chosen.css +19 -19
  20. data/vendor/assets/stylesheets/speedo/jquery-ui-1.8.18.custom.css +17 -17
  21. data/vendor/assets/stylesheets/speedo/jquery.dataTables.css +11 -11
  22. data/vendor/assets/stylesheets/speedo/uniform.default.css +4 -4
  23. metadata +32 -67
  24. data/app/assets/stylesheets/speedo.css.scss +0 -596
  25. data/vendor/assets/javascripts/speedo/jquery.mousewheel-3.0.4.pack.js +0 -14
  26. data/vendor/assets/javascripts/speedo/jquery.tools.min.js +0 -35
  27. data/vendor/assets/stylesheets/speedo/gh-buttons.css +0 -393
  28. data/vendor/assets/stylesheets/speedo/gh-icons.png +0 -0
  29. data/vendor/assets/stylesheets/speedo/normalize.css +0 -504
@@ -5,20 +5,30 @@
5
5
  = f.inputs do
6
6
  = f.input 'Title', placeholder: 'Type your title'
7
7
  = f.input 'Singer', input_html: { class: 'autoSuggest' }
8
- = f.input 'Description', as: :text, input_html: { placeholder: 'AutoGrowing', class: 'autoGrow tip', :rows => 2, title: 'Tip: you can type what you like, and this will get bigger to fit!' }
8
+ = f.input 'Description', as: :text, input_html: { placeholder: 'AutoGrowing', class: 'autogrow tip', :rows => 2, title: 'Tip: you can type what you like, and this will get bigger to fit!', data: {placement: 'bottom'} }
9
9
  = f.input 'Attachment', as: :file, required: false
10
10
  = f.input 'Select', as: :select, include_blank: false
11
11
  = f.input 'Are you real?', as: :radio, wrapper_html: { class: 'inline_choices' }
12
- = f.input 'Which do you own?', as: :check_boxes, collection: ['Speedo','Swim Short','Bikini'], wrapper_html: { class: 'inline_choices' }
13
-
14
- %h2 Buttons and button-groups - h2
15
- .button-group
16
- = f.actions do
17
- = f.action :submit, label: 'Submit', as: :button, button_html: { class: 'button' }
18
- = f.action :cancel, label: 'Cancel', as: :link, button_html: { class: 'button danger' }
19
- %button.button.icon.add Add icon
20
-
21
-
12
+ = f.input 'Which do you own?', as: :check_boxes, collection: ['Speedo','Swim Short','Bikini']
13
+
14
+ %hr
15
+ %h2 Buttons - h2
16
+ = f.actions do
17
+ = f.action :submit, label: 'Submit', as: :button, button_html: { class: 'btn left' }
18
+ = f.action :cancel, label: 'Cancel', as: :link, button_html: { class: 'btn btn-danger left' }
19
+ .btn-group
20
+ %button.btn.btn-success
21
+ %i.icon-plus.icon-white
22
+ Plus icon
23
+ %button.btn
24
+ %i.icon-cog
25
+ Cog icon
26
+ %button.btn.btn-danger
27
+ %i.icon-remove.icon-white
28
+ Remove icon
29
+ = link_to 'Bootstrap buttons docs', 'http://twitter.github.com/bootstrap/base-css.html#buttons', target: '_blank'
30
+
31
+ %hr
22
32
  %h3 Sortable dataTable - h3
23
33
  %table.dataTable
24
34
  %thead
@@ -36,7 +46,7 @@
36
46
  %td Hilary
37
47
  %td hermahili
38
48
 
39
-
49
+ %hr
40
50
  %h4 Inputs with bonuses - h4
41
51
  %select.chzn{style: 'width:200px'}
42
52
  %option Canada
@@ -46,7 +56,7 @@
46
56
  %br
47
57
  %input{type: :date, placeholder: 'yy-mm-dd'}
48
58
 
49
-
59
+ %hr
50
60
  %h5 Lists - h5
51
61
  %ul
52
62
  %li This is a list:
@@ -55,7 +65,7 @@
55
65
  %li or bullets
56
66
  %li (you'll need to add them back when you need 'em)
57
67
 
58
-
68
+ %hr
59
69
  %h6 Time - h6
60
70
  %pre.ib %time.ago{datetime: Time.now.iso8601}
61
71
  results in telling us when this page was loaded:
@@ -69,7 +79,7 @@ results in telling us when this page was loaded:
69
79
 
70
80
  = content_for :left_col do
71
81
  %h2 Left Col
72
- %button.button.spin_me Start spinner
82
+ %button.btn.spin_me Start spinner
73
83
  %script
74
84
  $('.spin_me').toggle(function() {
75
85
  $(this).spin('large','#0090D5');
@@ -79,27 +89,42 @@ results in telling us when this page was loaded:
79
89
 
80
90
  = content_for :right_col do
81
91
  %h3 Right Col
82
- .modal.button.icon.comment{rel: '#modal'} Modal
92
+ %a.btn{href: '#modal', data: {toggle: 'modal', backdrop: 'static'}} Modal
83
93
  %br
84
- .popup.button.icon.comment{rel: '#popup'} Popup Help!
94
+ %button.btn{data: {toggle: 'modal', target: '#popup'}} Popup Help!
85
95
  %br
86
- = link_to 'External Modal', '/', class: 'modal button icon comment', rel: '#external'
87
- %br
88
- = link_to 'External Popup', '/', class: 'popup button icon comment', rel: '#external'
96
+ = link_to 'External Popup', '/', class: 'btn', data: {toggle: 'modal', target: '#external'}
89
97
 
90
98
 
91
99
  = content_for :popups do
92
- #popup.popup_content
93
- %h2.title Helpful Popup
94
- %p For popups and modals, all <a> tags will be assumed to be external links that load in content (they still require a placeholder div). Other .popup's assume the content is already on the page. Use "= content_for :popups do".
95
- %p Use .popup with rel="#id" on the button (or whatever opens the popup), and #id.popup_content for the content. Within popups, .title receives special styling.
96
- %p Modals are for when user input is required before continuing. Make sure to provide a .close element, or the X will be visible in the top-right.
97
- #modal.popup_content
98
- %h2.title Modal
99
- %p Modals needs .close to close them. Use them when user input is required.
100
- %p For example: Which are you?
101
- %button.button.close Right handed
102
- %button.button.close Left handed
103
- %button.button.close Ambidextrous
104
- #external.popup_content
105
- .wrap
100
+ #modal.modal.hide
101
+ .modal-header
102
+ %h2 Modal
103
+ .modal-body
104
+ %p When you need user input, set data-backdrop to 'static' and clicking the overlay will have no effect.
105
+ .modal-footer
106
+ %p For example: Which are you?
107
+ %button.btn{data:{dismiss:'modal'}} Right handed
108
+ %button.btn{data:{dismiss:'modal'}} Left handed
109
+ %button.btn{data:{dismiss:'modal'}} Ambidextrous
110
+ #popup.modal.hide
111
+ .modal-header
112
+ %button.close{data:{dismiss:"modal"}} ×
113
+ %h2 Helpful Popup
114
+ .modal-body
115
+ %p Put your popup content in "= content_for :popups do".
116
+ %p Popups should have an #ID and .modal.hide. You can have .modal-header, -body and -footer within modals.
117
+ %p External content can be loaded by specifying both href="external-link" and data-target="#id-of-modal". Make sure to include a .modal-body for the content to be loaded into.
118
+ %pre
119
+ \#external.modal.hide
120
+ \ .modal-body
121
+ .modal-footer
122
+ = link_to 'View bootstrap docs', 'http://twitter.github.com/bootstrap/javascript.html#modals', target: '_blank'
123
+ #external.modal.hide
124
+ .modal-header
125
+ %button.close{data:{dismiss:"modal"}} ×
126
+ %h1 The heading isn't external
127
+ .modal-body
128
+ .modal-footer
129
+ Neither is the footer
130
+
@@ -25,9 +25,12 @@ module Speedo
25
25
  end
26
26
 
27
27
  # app/assets/stylesheets/speedo.css.scss
28
- def copy_stylesheet
29
- copy_file 'app/assets/stylesheets/speedo.css.scss',
30
- 'app/assets/stylesheets/speedo.css.scss'
28
+ def copy_stylesheets
29
+ css = ['speedo','base','layout','plugins','theme','helpers']
30
+ css.each do |file|
31
+ copy_file "app/assets/stylesheets/speedo/#{file}.css.scss",
32
+ "app/assets/stylesheets/speedo/#{file}.css.scss"
33
+ end
31
34
  end
32
35
 
33
36
 
@@ -1,3 +1,3 @@
1
1
  module Speedo
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.5"
3
3
  end