coolstrap-generator 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/.gitignore +4 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Rakefile +6 -0
- data/bin/coolstrap +5 -0
- data/coolstrap-generator.gemspec +42 -0
- data/lib/.DS_Store +0 -0
- data/lib/coolstrap-generator.rb +39 -0
- data/lib/coolstrap-generator/.DS_Store +0 -0
- data/lib/coolstrap-generator/builder/middleman.rb +0 -0
- data/lib/coolstrap-generator/cli.rb +71 -0
- data/lib/coolstrap-generator/generate/project.rb +96 -0
- data/lib/coolstrap-generator/generate/view.rb +54 -0
- data/lib/coolstrap-generator/logger.rb +13 -0
- data/lib/coolstrap-generator/middleman/helpers.rb +176 -0
- data/lib/coolstrap-generator/templates/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/lib/coolstrap-generator/templates/app/assets/fonts/fontawesome-webfont.svg +255 -0
- data/lib/coolstrap-generator/templates/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/lib/coolstrap-generator/templates/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/arrow-list.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/arrow.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/menu.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/smatphone.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/smatphone@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/tablet-landscape.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/tablet-landscape@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/tablet-portrait.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/coolstrap/startup/tablet-portrait@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/smatphone.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/smatphone@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/tablet-landscape.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/tablet-landscape@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/tablet-portrait.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/images/startup/tablet-portrait@2x.png +0 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/app.js +18 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/_Coolstrap.App.coffee +39 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/_Coolstrap.Console.coffee +49 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/_Coolstrap.Constants.coffee +89 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/_Coolstrap.js +13 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/build/_wrap-start.js +18 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/coolstrap-0.1.js +20 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/coolstrap-0.1.packed.js +23 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/fallback/_Coolstrap.Fallback.Android.coffee +53 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/fallback/_Coolstrap.Fallback.iOS.coffee +29 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/framework/_Coolstrap.Framework.Articles.coffee +34 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/framework/_Coolstrap.Framework.Dialogs.coffee +33 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/framework/_Coolstrap.Framework.Navigation.coffee +118 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/framework/_Coolstrap.Framework.Sections.coffee +60 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/lib/iscroll.js +1076 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/lib/modernizr-2.5.3.js +1265 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/lib/zepto-1.0rc1.js +1357 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/navigate/_Coolstrap.Navigate.History.coffee +164 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/navigate/_Coolstrap.Navigate.coffee +105 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/plugins/_Coolstrap.Plugins.coffee +157 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/util/_Coolstrap.Util.Core.coffee +54 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/util/_Coolstrap.Util.Platform.coffee +89 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/util/_Coolstrap.Util.UI.coffee +96 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/util/_Coolstrap.Util.coffee +41 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/view/_Coolstrap.View.Article.coffee +43 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/view/_Coolstrap.View.Aside.coffee +65 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/view/_Coolstrap.View.Dialog.coffee +129 -0
- data/lib/coolstrap-generator/templates/app/assets/javascripts/coolstrap/view/_Coolstrap.View.Scroll.coffee +191 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/_structure.scss +8 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/coolstrap.css.scss +2 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/_components.scss +5 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/_layout.scss +4 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/_utilities.scss +6 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_dialog.scss +122 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_formelements.scss +89 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_listview.scss +76 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_navigations.scss +192 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/components/_tools.scss +169 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/layout/_layers.scss +57 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/layout/_layout.scss +62 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/layout/_positions.scss +38 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/layout/_transitions.scss +35 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_animate.scss +63 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_helpers.scss +82 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_icons.scss +336 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_mixins.scss +45 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_reset.scss +367 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/structure/utilities/_variables.scss +176 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/themes/_default.scss +255 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/coolstrap/themes/coolstrap.css.scss +164 -0
- data/lib/coolstrap-generator/templates/app/assets/stylesheets/customtheme.css.scss +19 -0
- data/lib/coolstrap-generator/templates/app/components/_formelements.html.haml +130 -0
- data/lib/coolstrap-generator/templates/app/components/_tabbar.html.haml +343 -0
- data/lib/coolstrap-generator/templates/app/components/_toolbar.html.haml +463 -0
- data/lib/coolstrap-generator/templates/app/components/formelements.html.haml +196 -0
- data/lib/coolstrap-generator/templates/app/components/listview/_complexlistavatar.html.haml.erb +77 -0
- data/lib/coolstrap-generator/templates/app/components/listview/_simplelist.html.haml.erb +31 -0
- data/lib/coolstrap-generator/templates/app/components/tabbar.html.haml.erb +16 -0
- data/lib/coolstrap-generator/templates/app/components/toolbar.html.haml.erb +32 -0
- data/lib/coolstrap-generator/templates/app/index.html.haml.erb +21 -0
- data/lib/coolstrap-generator/templates/app/layout.haml.erb +79 -0
- data/lib/coolstrap-generator/templates/app/views/.DS_Store +0 -0
- data/lib/coolstrap-generator/templates/app/views/_home.haml.erb +31 -0
- data/lib/coolstrap-generator/templates/app/views/shared/_aside_onbottom.haml +2 -0
- data/lib/coolstrap-generator/templates/app/views/shared/_aside_onleft.haml +56 -0
- data/lib/coolstrap-generator/templates/app/views/shared/_aside_onright.haml +66 -0
- data/lib/coolstrap-generator/templates/app/views/shared/_aside_ontop.haml +19 -0
- data/lib/coolstrap-generator/templates/defaults/Gemfile.erb +3 -0
- data/lib/coolstrap-generator/templates/defaults/LICENSE.erb +1 -0
- data/lib/coolstrap-generator/templates/defaults/Readme.mkd.erb +1 -0
- data/lib/coolstrap-generator/templates/defaults/config.erb +42 -0
- data/lib/coolstrap-generator/templates/defaults/gitignore.erb +2 -0
- data/lib/coolstrap-generator/templates/rakefile +102 -0
- data/lib/coolstrap-generator/templates/specs/app_spec.coffee +3 -0
- data/lib/coolstrap-generator/utils.rb +82 -0
- data/lib/coolstrap-generator/version.rb +5 -0
- data/readme.md +107 -0
- data/spec/cli/command_spec.rb +88 -0
- data/spec/coolstrap-generator/generate/project_spec.rb +126 -0
- data/spec/coolstrap-generator/generate/view_spec.rb +26 -0
- data/spec/coolstrap-generator/logger_spec.rb +25 -0
- data/spec/coolstrap-generator/middleman/helpers_spec.rb +16 -0
- data/spec/coolstrap-generator/utils_spec.rb +120 -0
- data/spec/spec_helper.rb +39 -0
- metadata +321 -0
@@ -0,0 +1,196 @@
|
|
1
|
+
= content_for :title do
|
2
|
+
Form Elements Demo
|
3
|
+
|
4
|
+
= content_for :application_styles do
|
5
|
+
= stylesheet_link_tag "themes/coolstrap"
|
6
|
+
%link{:href => "assets/stylesheets/customtheme.css", :rel => "stylesheet", :type => "text/css"}
|
7
|
+
|
8
|
+
= content_for :principal do
|
9
|
+
%div.a{"role" => "main"}
|
10
|
+
|
11
|
+
%header
|
12
|
+
%a{:href => "listview.html"} Lists
|
13
|
+
%hgroup
|
14
|
+
%h1 COOLSTRAP
|
15
|
+
%h2 Form Elements Demo
|
16
|
+
%a Entrar
|
17
|
+
%footer
|
18
|
+
%a Button
|
19
|
+
%a Button
|
20
|
+
%a Button
|
21
|
+
%a Button
|
22
|
+
%a Button
|
23
|
+
|
24
|
+
%section.current
|
25
|
+
%nav{"data-type" => "toolbar"}
|
26
|
+
%input{:type => "text"}
|
27
|
+
%a search
|
28
|
+
|
29
|
+
|
30
|
+
%article.scrollable
|
31
|
+
|
32
|
+
%h1 Radio y checkbox
|
33
|
+
%form.inset
|
34
|
+
|
35
|
+
.content.horizontal
|
36
|
+
%p 0:00
|
37
|
+
.slider
|
38
|
+
.progress
|
39
|
+
.circle.mini
|
40
|
+
%p -30:35
|
41
|
+
.content.horizontal
|
42
|
+
.slider
|
43
|
+
.progress
|
44
|
+
.circle
|
45
|
+
.content
|
46
|
+
%label
|
47
|
+
%input{:type => "checkbox"}
|
48
|
+
Atun palta
|
49
|
+
.content
|
50
|
+
%label
|
51
|
+
%input{:type => "checkbox"}
|
52
|
+
Atun palta
|
53
|
+
|
54
|
+
.content
|
55
|
+
%label
|
56
|
+
%input{:type => "radio", :name => "radio"}
|
57
|
+
Atun palta
|
58
|
+
.content
|
59
|
+
%label
|
60
|
+
%input{:type => "radio", :name => "radio"}
|
61
|
+
Atun palta
|
62
|
+
|
63
|
+
%h1 horizontales
|
64
|
+
%form.inset
|
65
|
+
.content.horizontal
|
66
|
+
%label
|
67
|
+
%input{:type => "radio", :name => "radio"}
|
68
|
+
Atun palta
|
69
|
+
.content.horizontal
|
70
|
+
%label
|
71
|
+
%input{:type => "radio", :name => "radio"}
|
72
|
+
Riquitiqui
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
%form.inset
|
77
|
+
.content.horizontal
|
78
|
+
%label
|
79
|
+
%input{:type => "checkbox"}
|
80
|
+
Prueba
|
81
|
+
.content.horizontal
|
82
|
+
%label
|
83
|
+
%input{:type => "checkbox"}
|
84
|
+
Atun palta
|
85
|
+
.content.horizontal
|
86
|
+
%label
|
87
|
+
Marque si le gusta la gasolina
|
88
|
+
.toggle-content
|
89
|
+
%input.toggle-switch{:type => "checkbox"}
|
90
|
+
%label
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
%h1 Con porcentajes
|
95
|
+
%form.inset
|
96
|
+
.content.horizontal
|
97
|
+
.aside
|
98
|
+
%i.icon-phone-sign
|
99
|
+
%input{:type => "tel"}
|
100
|
+
.content.horizontal
|
101
|
+
.aside Name
|
102
|
+
%input{:type => "text"}
|
103
|
+
.content.horizontal
|
104
|
+
.aside Phone
|
105
|
+
%input{:type => "text"}
|
106
|
+
.content.horizontal
|
107
|
+
.aside Larger Adress
|
108
|
+
%input{:type => "text"}
|
109
|
+
.content.horizontal.start
|
110
|
+
.aside Tomatican con pollo y mermelada de palta
|
111
|
+
%input{:type => "text"}
|
112
|
+
.content.horizontal.start
|
113
|
+
.aside Tomatican
|
114
|
+
%textarea
|
115
|
+
.content.horizontal
|
116
|
+
.aside Phone
|
117
|
+
.slider
|
118
|
+
.progress
|
119
|
+
.circle
|
120
|
+
.content.horizontal
|
121
|
+
.aside Tomatican
|
122
|
+
%select
|
123
|
+
%option{:value => "option 1"} option 1
|
124
|
+
%option{:value => "option 2"} option 2
|
125
|
+
%option{:value => "option 3"} option 3
|
126
|
+
|
127
|
+
%h1 Label encima
|
128
|
+
%form.inset
|
129
|
+
.content.stack
|
130
|
+
%label
|
131
|
+
Name
|
132
|
+
%input{:type => "text"}
|
133
|
+
.content.stack
|
134
|
+
%label
|
135
|
+
Date
|
136
|
+
%input{:type => "date"}
|
137
|
+
.content.stack
|
138
|
+
%label
|
139
|
+
Datetime
|
140
|
+
%input{:type => "datetime"}
|
141
|
+
.content.stack
|
142
|
+
%label
|
143
|
+
Datetime-local
|
144
|
+
%input{:type => "datetime-local"}
|
145
|
+
.content.stack
|
146
|
+
%label
|
147
|
+
Time
|
148
|
+
%input{:type => "time"}
|
149
|
+
.content.stack
|
150
|
+
%label
|
151
|
+
Month
|
152
|
+
%input{:type => "month"}
|
153
|
+
.content.stack
|
154
|
+
%label
|
155
|
+
Number
|
156
|
+
%input{:type => "number"}
|
157
|
+
.content.stack
|
158
|
+
%label
|
159
|
+
Tel
|
160
|
+
%input{:type => "tel"}
|
161
|
+
.content.stack
|
162
|
+
%label
|
163
|
+
Url
|
164
|
+
%input{:type => "url"}
|
165
|
+
.content.stack
|
166
|
+
%label
|
167
|
+
Week
|
168
|
+
%input{:type => "week"}
|
169
|
+
.content.stack
|
170
|
+
%label
|
171
|
+
Minicomponente
|
172
|
+
%textarea
|
173
|
+
.content.stack
|
174
|
+
%label
|
175
|
+
Tomatican
|
176
|
+
%select
|
177
|
+
%option{:value => "option 1"} option 1
|
178
|
+
%option{:value => "option 2"} option 2
|
179
|
+
%option{:value => "option 3"} option 3
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
%aside{"data-type" => "onLeft"}
|
188
|
+
|
189
|
+
%aside{"data-type" => "onRight"}
|
190
|
+
|
191
|
+
%aside{"data-type" => "onTop"}
|
192
|
+
|
193
|
+
%aside{"data-type" => "onBottom"}
|
194
|
+
= content_for :application_js do
|
195
|
+
%script{:src => "app/app.js", :type=> "text/javascript"}
|
196
|
+
%script{:src => "app/events.js", :type=> "text/javascript"}
|
data/lib/coolstrap-generator/templates/app/components/listview/_complexlistavatar.html.haml.erb
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
-# more on lists in http://
|
2
|
+
|
3
|
+
= section({:id=>"<%= name %>"}) do
|
4
|
+
= header do
|
5
|
+
= link_to "volver", "#", "data-target" => "back"
|
6
|
+
|
7
|
+
= hgroup(:title=>"<%= name %>", :subtitle=>"subtitle")
|
8
|
+
|
9
|
+
= footer do
|
10
|
+
-#= render_toolbar("some/toolbar")
|
11
|
+
|
12
|
+
= article(:class=>"scrollable") do
|
13
|
+
|
14
|
+
= list_view(:class=>"inset") do
|
15
|
+
|
16
|
+
= divider do
|
17
|
+
1. Title and description widht avatar
|
18
|
+
|
19
|
+
= list_item do
|
20
|
+
.aside.up
|
21
|
+
.picture
|
22
|
+
.content
|
23
|
+
%h1 First Item
|
24
|
+
%p Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Sed posuere consectetur est at lobortis.
|
25
|
+
|
26
|
+
= divider do
|
27
|
+
2. Title and description with arrow and avatar
|
28
|
+
|
29
|
+
= list_item(:arrow=>"right") do
|
30
|
+
.aside.up
|
31
|
+
.picture
|
32
|
+
.content
|
33
|
+
%h1 First Item
|
34
|
+
%p Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Sed posuere consectetur est at lobortis.
|
35
|
+
|
36
|
+
|
37
|
+
= divider do
|
38
|
+
3. Title and description with meta and avatar
|
39
|
+
|
40
|
+
%li
|
41
|
+
.aside.up
|
42
|
+
.picture
|
43
|
+
.content
|
44
|
+
.nested
|
45
|
+
%h1 First Item
|
46
|
+
.aside 4 days ago
|
47
|
+
%p Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Sed posuere consectetur est at lobortis.
|
48
|
+
|
49
|
+
= divider do
|
50
|
+
4. Title and description with meta, arrow and avatar 1
|
51
|
+
|
52
|
+
= list_item(:arrow=>"right") do
|
53
|
+
.aside.up
|
54
|
+
.picture
|
55
|
+
.content
|
56
|
+
.nested
|
57
|
+
%h1 First Item
|
58
|
+
.aside 4 days ago
|
59
|
+
%p Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Sed posuere consectetur est at lobortis.
|
60
|
+
|
61
|
+
= list_item(:arrow=>"right") do
|
62
|
+
.aside.up
|
63
|
+
.picture
|
64
|
+
.content
|
65
|
+
.nested
|
66
|
+
%h1
|
67
|
+
Jason Newsted
|
68
|
+
.aside
|
69
|
+
Facebook friend
|
70
|
+
.nested
|
71
|
+
%p
|
72
|
+
Bass Guitar
|
73
|
+
.aside
|
74
|
+
1st/June/2012
|
75
|
+
.aside.vertical
|
76
|
+
%span.badge 24
|
77
|
+
%span.badge 213
|
@@ -0,0 +1,31 @@
|
|
1
|
+
-# more on lists in http://
|
2
|
+
|
3
|
+
= section({:id=>"<%= name %>"}) do
|
4
|
+
= header do
|
5
|
+
= link_to "Volver", "#", {"data-target" => "back"}
|
6
|
+
|
7
|
+
= hgroup({:title=>"<%= name %>", :subtitle=>"subtitle"})
|
8
|
+
|
9
|
+
= footer do
|
10
|
+
-#= render_toolbar("some/toolbar")
|
11
|
+
|
12
|
+
= article({:class=>"scrollable"}) do
|
13
|
+
|
14
|
+
= list_view do
|
15
|
+
|
16
|
+
= divider do
|
17
|
+
divider
|
18
|
+
|
19
|
+
= list_item() do
|
20
|
+
normal item
|
21
|
+
|
22
|
+
= divider(:id=>"divider1") do
|
23
|
+
2. Simple with id
|
24
|
+
|
25
|
+
= list_item(:arrow=>"left") do
|
26
|
+
.content
|
27
|
+
%p simple content with left arrow.
|
28
|
+
|
29
|
+
= list_item(:arrow=>"right") do
|
30
|
+
.content
|
31
|
+
%p simple content with right arrow.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
-# more on navs at http://...
|
3
|
+
-# usage partial = partial "views/developers/toolbars/<%= name %>"
|
4
|
+
|
5
|
+
-# example 1: simple tabbar
|
6
|
+
= tabbar do
|
7
|
+
= link_to "#" do
|
8
|
+
= icon(:facebook)
|
9
|
+
= link_to "#" do
|
10
|
+
= icon(:twitter)
|
11
|
+
= link_to "#" do
|
12
|
+
= icon(:comments)
|
13
|
+
= link_to "#" do
|
14
|
+
= icon(:linkedin)
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
-# more on navs at http://...
|
3
|
+
-# usage partial = partial "views/developers/toolbars/<%= name %>"
|
4
|
+
|
5
|
+
-# example 1: search input
|
6
|
+
= toolbar(:auto=>true) do
|
7
|
+
%input{:type => "search", :name => "txt"}
|
8
|
+
%a
|
9
|
+
%i.icon-search
|
10
|
+
|
11
|
+
-# example 2: normal toolbar without control
|
12
|
+
= toolbar do
|
13
|
+
%a boton 1
|
14
|
+
%a boton 2
|
15
|
+
%a boton 3
|
16
|
+
%a boton 4
|
17
|
+
|
18
|
+
-# example 3: control toolbar with autoWidth
|
19
|
+
= toolbar(:control=>true, :auto=>true) do
|
20
|
+
%a nombre 1
|
21
|
+
%a nombre 3
|
22
|
+
%a nombre 4
|
23
|
+
|
24
|
+
-# example 4: control only, autoWidth false
|
25
|
+
= toolbar(:control=>true) do
|
26
|
+
%a
|
27
|
+
= icon(:facebook)
|
28
|
+
%a
|
29
|
+
= icon(:facebook)
|
30
|
+
%a
|
31
|
+
= icon(:comments)
|
32
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
= content_for :title do
|
2
|
+
<%= app_name %>
|
3
|
+
|
4
|
+
= content_for :application_styles do
|
5
|
+
= stylesheet_link_tag "coolstrap/themes/coolstrap"
|
6
|
+
= stylesheet_link_tag "customtheme.css"
|
7
|
+
|
8
|
+
= content_for :principal do
|
9
|
+
%div{"role" => "main"}
|
10
|
+
|
11
|
+
= partial "views/home"
|
12
|
+
-# put collection partials here
|
13
|
+
-# = partial "views/users/repos"
|
14
|
+
|
15
|
+
= partial "views/shared/aside_onleft"
|
16
|
+
= partial "views/shared/aside_onright"
|
17
|
+
= partial "views/shared/aside_ontop"
|
18
|
+
= partial "views/shared/aside_onbottom"
|
19
|
+
|
20
|
+
= content_for :application_js do
|
21
|
+
= javascript_include_tag "app.js"
|
@@ -0,0 +1,79 @@
|
|
1
|
+
!!! 5
|
2
|
+
|
3
|
+
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
|
4
|
+
/[if lt IE 7]> <html lang="en" class="no-js lt-ie9 lt-ie8 lt-ie7">
|
5
|
+
/[if IE 7]> <html lang="en" class="no-js lt-ie9 lt-ie8">
|
6
|
+
/[if IE 8]> <html lang="en" class="no-js lt-ie9">
|
7
|
+
/[if IEMobile 7 ]> <html lang="en" class="no-js iem7">
|
8
|
+
|
9
|
+
-# Consider adding a manifest.appcache: h5bp.com/d/Offline
|
10
|
+
-# Conditional comment for mobile ie7 blogs.msdn.com/b/iemobile/
|
11
|
+
|
12
|
+
<!--[if (gt IEMobile 7)|!(IEMobile)|(gt IE 8)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
|
13
|
+
%head
|
14
|
+
%meta{:charset => "UTF-8"}
|
15
|
+
%meta{"http-equiv" => "X-UA-Compatible", :content => "IE=edge,chrome=1"}
|
16
|
+
|
17
|
+
%title= yield_content(:title)
|
18
|
+
|
19
|
+
%meta{:name => "description", :content => "<%= app_name %>"}
|
20
|
+
%meta{:name => "generator", :content => "Coolstrap Framework"}
|
21
|
+
|
22
|
+
%meta{:name => "author", :content=> "<%= app_name %>"}
|
23
|
+
|
24
|
+
-# Mobile viewport optimization:
|
25
|
+
%meta{:name => "HandheldFriendly", :content => "true"}
|
26
|
+
%meta{:name => "MobileOptimized", :content => "320"}
|
27
|
+
%meta{:name => "format-detection", :content => "telephone=no"}
|
28
|
+
%meta{:name => "viewport", :content => "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"}
|
29
|
+
|
30
|
+
-# iOS web app, delete if not needed:
|
31
|
+
%meta{:name => "apple-mobile-web-app-capable", :content => "yes"}
|
32
|
+
%meta{:name => "apple-mobile-web-app-status-bar-style", :content => "black"}
|
33
|
+
:javascript
|
34
|
+
(function () {
|
35
|
+
var p, l, r = window.devicePixelRatio;
|
36
|
+
if (navigator.platform === "iPad") {
|
37
|
+
p = r === 2 ? "startup/tablet-portrait@2x.png" : "startup/tablet-portrait.png";
|
38
|
+
l = r === 2 ? "startup/tablet-landscape@2x.png" : "startup/tablet-landscape.png";
|
39
|
+
document.write('');
|
40
|
+
} else {
|
41
|
+
p = r === 2 ? "startup/smatphone@2x.png" : "startup/smatphone.png";
|
42
|
+
document.write('');
|
43
|
+
}
|
44
|
+
})()
|
45
|
+
|
46
|
+
// The script prevents links from opening in mobile safari:
|
47
|
+
(function (a, b, c) {
|
48
|
+
if (c in b && b[c]) {
|
49
|
+
var d, e = a.location,
|
50
|
+
f = /^(a|html)$/i;
|
51
|
+
a.addEventListener("click", function (a) {
|
52
|
+
d = a.target;
|
53
|
+
while (!f.test(d.nodeName)) d = d.parentNode;
|
54
|
+
"href" in d && (d.href.indexOf("http") || ~d.href.indexOf(e.host)) && (a.preventDefault(), e.href = d.href)
|
55
|
+
}, !1)
|
56
|
+
}
|
57
|
+
})(document, window.navigator, "standalone")
|
58
|
+
|
59
|
+
-# Mobile IE allows us to activate ClearType technology for smoothing fonts for easy reading:
|
60
|
+
%meta{"http-equiv" => "cleartype", :content => "on"}
|
61
|
+
|
62
|
+
-# StyleSheets
|
63
|
+
= stylesheet_link_tag "coolstrap/coolstrap"
|
64
|
+
= yield_content(:application_styles)
|
65
|
+
-# All JavaScript at the bottom, except this Modernizr build.
|
66
|
+
-# Modernizr enables HTML5 elements & feature detects for optimal performance.
|
67
|
+
= javascript_include_tag "coolstrap/lib/modernizr-2.5.3"
|
68
|
+
|
69
|
+
%body
|
70
|
+
|
71
|
+
= yield_content(:principal)
|
72
|
+
|
73
|
+
/ Third parties dependencies
|
74
|
+
= javascript_include_tag "coolstrap/lib/zepto-1.0rc1"
|
75
|
+
= javascript_include_tag "coolstrap/lib/iscroll"
|
76
|
+
|
77
|
+
/ CoolStrapp Libraries (Development mode)
|
78
|
+
= javascript_include_tag "coolstrap/coolstrap-0.1"
|
79
|
+
= yield_content(:application_js)
|