speedo 0.2.0 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/speedo.js +1 -2
- data/app/assets/javascripts/swim.js.coffee +34 -61
- data/app/assets/stylesheets/application.css.scss +1 -1
- data/app/assets/stylesheets/speedo/base.css.scss +72 -0
- data/app/assets/stylesheets/speedo/helpers.css.scss +34 -0
- data/app/assets/stylesheets/speedo/layout.css.scss +220 -0
- data/app/assets/stylesheets/speedo/plugins.css.scss +110 -0
- data/app/assets/stylesheets/speedo/speedo.css.scss +35 -0
- data/app/assets/stylesheets/speedo/theme.css.scss +62 -0
- data/app/views/layouts/speedo/application.html.haml +4 -1
- data/app/views/speedo/home/examples.html.haml +59 -34
- data/lib/generators/speedo/install_generator.rb +6 -3
- data/lib/speedo/version.rb +1 -1
- data/vendor/assets/javascripts/speedo/bootstrap.js +1825 -0
- data/vendor/assets/stylesheets/speedo/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/stylesheets/speedo/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/stylesheets/speedo/bootstrap-responsive.css +815 -0
- data/vendor/assets/stylesheets/speedo/bootstrap.css +4983 -0
- data/vendor/assets/stylesheets/speedo/chosen.css +19 -19
- data/vendor/assets/stylesheets/speedo/jquery-ui-1.8.18.custom.css +17 -17
- data/vendor/assets/stylesheets/speedo/jquery.dataTables.css +11 -11
- data/vendor/assets/stylesheets/speedo/uniform.default.css +4 -4
- metadata +32 -67
- data/app/assets/stylesheets/speedo.css.scss +0 -596
- data/vendor/assets/javascripts/speedo/jquery.mousewheel-3.0.4.pack.js +0 -14
- data/vendor/assets/javascripts/speedo/jquery.tools.min.js +0 -35
- data/vendor/assets/stylesheets/speedo/gh-buttons.css +0 -393
- data/vendor/assets/stylesheets/speedo/gh-icons.png +0 -0
- 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: '
|
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']
|
13
|
-
|
14
|
-
%
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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.
|
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
|
-
.
|
92
|
+
%a.btn{href: '#modal', data: {toggle: 'modal', backdrop: 'static'}} Modal
|
83
93
|
%br
|
84
|
-
|
94
|
+
%button.btn{data: {toggle: 'modal', target: '#popup'}} Popup Help!
|
85
95
|
%br
|
86
|
-
= link_to '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
|
-
#
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
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
|
29
|
-
|
30
|
-
|
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
|
|
data/lib/speedo/version.rb
CHANGED