fones 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/CHANGELOG.md +8 -0
  4. data/Gemfile +28 -0
  5. data/Gemfile.lock +108 -0
  6. data/LICENSE +20 -0
  7. data/README.md +61 -0
  8. data/Rakefile +54 -0
  9. data/VERSION +1 -0
  10. data/bin/fones +12 -0
  11. data/features/step_definitions/fones_steps.rb +38 -0
  12. data/features/support/env.rb +17 -0
  13. data/fones.gemspec +187 -0
  14. data/layouts/config/config.tt +19 -0
  15. data/layouts/default/css/_1030up.scss.erb +8 -0
  16. data/layouts/default/css/_1240up.scss.erb +8 -0
  17. data/layouts/default/css/_2x.scss.erb +40 -0
  18. data/layouts/default/css/_481up.scss.erb +109 -0
  19. data/layouts/default/css/_768up.scss.erb +280 -0
  20. data/layouts/default/css/_base.scss.erb +836 -0
  21. data/layouts/default/css/_grid.scss.erb +48 -0
  22. data/layouts/default/css/_header.scss.erb +18 -0
  23. data/layouts/default/css/_mixins.scss.erb +248 -0
  24. data/layouts/default/css/_normalize.scss.erb +536 -0
  25. data/layouts/default/css/_print.scss.erb +80 -0
  26. data/layouts/default/css/ie.scss.erb +52 -0
  27. data/layouts/default/css/login.scss.erb +65 -0
  28. data/layouts/default/css/style.css.scss.erb +111 -0
  29. data/layouts/default/functions/functions.php.erb +166 -0
  30. data/layouts/default/functions/library/admin.php.erb +131 -0
  31. data/layouts/default/functions/library/bones.php.erb +397 -0
  32. data/layouts/default/functions/library/custom-post-type.php.erb +122 -0
  33. data/layouts/default/functions/library/translation/README +18 -0
  34. data/layouts/default/functions/library/translation/da_DK.po +374 -0
  35. data/layouts/default/functions/library/translation/de_DE.po +385 -0
  36. data/layouts/default/functions/library/translation/default.po +372 -0
  37. data/layouts/default/functions/library/translation/es_ES.po +380 -0
  38. data/layouts/default/functions/library/translation/fr_FR.po +579 -0
  39. data/layouts/default/functions/library/translation/he_IL.po +382 -0
  40. data/layouts/default/functions/library/translation/hr.po +548 -0
  41. data/layouts/default/functions/library/translation/it_IT.po +376 -0
  42. data/layouts/default/functions/library/translation/ja.po +492 -0
  43. data/layouts/default/functions/library/translation/nb_NO.po +380 -0
  44. data/layouts/default/functions/library/translation/nl_NL.po +376 -0
  45. data/layouts/default/functions/library/translation/pl_PL.po +371 -0
  46. data/layouts/default/functions/library/translation/pt_PT.po +376 -0
  47. data/layouts/default/functions/library/translation/ru_RU.po +358 -0
  48. data/layouts/default/functions/library/translation/sv_SE.po +380 -0
  49. data/layouts/default/functions/library/translation/translation.php.erb +18 -0
  50. data/layouts/default/functions/library/translation/zh_CN.po +382 -0
  51. data/layouts/default/img/apple-icon-touch.png +0 -0
  52. data/layouts/default/img/custom-post-icon.png +0 -0
  53. data/layouts/default/img/favicon.ico +0 -0
  54. data/layouts/default/img/favicon.png +0 -0
  55. data/layouts/default/img/login-logo.png +0 -0
  56. data/layouts/default/img/nothing.gif +0 -0
  57. data/layouts/default/img/nothumb.gif +0 -0
  58. data/layouts/default/img/screenshot.png +0 -0
  59. data/layouts/default/img/win8-tile-icon.png +0 -0
  60. data/layouts/default/js/admin.js +1 -0
  61. data/layouts/default/js/libs/modernizr.custom.min.js +4 -0
  62. data/layouts/default/js/scripts.js +108 -0
  63. data/layouts/default/js/theme.js +2 -0
  64. data/layouts/default/templates/404.php.erb +43 -0
  65. data/layouts/default/templates/archive-custom_type.php.erb +73 -0
  66. data/layouts/default/templates/archive.php.erb +108 -0
  67. data/layouts/default/templates/attachment.php.erb +32 -0
  68. data/layouts/default/templates/comments.php.erb +121 -0
  69. data/layouts/default/templates/footer.php.erb +22 -0
  70. data/layouts/default/templates/header.php.erb +63 -0
  71. data/layouts/default/templates/index.php.erb +72 -0
  72. data/layouts/default/templates/page-custom.php.erb +66 -0
  73. data/layouts/default/templates/page.php.erb +60 -0
  74. data/layouts/default/templates/search.php.erb +71 -0
  75. data/layouts/default/templates/sidebar.php.erb +17 -0
  76. data/layouts/default/templates/single-custom_type.php.erb +78 -0
  77. data/layouts/default/templates/single.php.erb +61 -0
  78. data/layouts/default/templates/taxonomy-custom_cat.php.erb +87 -0
  79. data/lib/fones.rb +11 -0
  80. data/lib/forge/builder.rb +269 -0
  81. data/lib/forge/cli.rb +86 -0
  82. data/lib/forge/config.rb +61 -0
  83. data/lib/forge/engines.rb +12 -0
  84. data/lib/forge/error.rb +8 -0
  85. data/lib/forge/generator.rb +144 -0
  86. data/lib/forge/guard.rb +65 -0
  87. data/lib/forge/project.rb +162 -0
  88. data/lib/forge/version.rb +3 -0
  89. data/lib/guard/forge/assets.rb +31 -0
  90. data/lib/guard/forge/config.rb +34 -0
  91. data/lib/guard/forge/functions.rb +33 -0
  92. data/lib/guard/forge/templates.rb +28 -0
  93. data/pkg/fones-0.1.0.gem +0 -0
  94. data/spec/lib/forge/config_spec.rb +79 -0
  95. data/spec/lib/forge/project_spec.rb +34 -0
  96. data/spec/spec_helper.rb +13 -0
  97. metadata +437 -0
@@ -0,0 +1,19 @@
1
+ # WordPress theme information is stored in source/assets/css/_header.scss as of Forge version 0.5
2
+
3
+ # JavaScript compression
4
+ # config[:compress_js] = false
5
+
6
+ # Enable livereload
7
+ # config[:livereload] = false
8
+
9
+ # Compass configuration can also go here.
10
+ # See http://compass-style.org/help/tutorials/configuration-reference/ for some of the options
11
+ # Note: Most options (especially path-related options) will have no effect on Forge
12
+
13
+ # Compass.configuration do |compass|
14
+ # compass.line_comments = true
15
+ # compass.output_style = :expanded # use :compressed for minified version
16
+ # end
17
+
18
+ # You can also include additional Compass frameworks by requiring them:
19
+ # require 'stitch'
@@ -0,0 +1,8 @@
1
+ /******************************************************************
2
+
3
+ Stylesheet: Desktop Stylsheet
4
+
5
+ This is the desktop size. It's larger than an iPad so it will only
6
+ be seen on the Desktop.
7
+
8
+ ******************************************************************/
@@ -0,0 +1,8 @@
1
+ /******************************************************************
2
+
3
+ Stylesheet: Super Large Monitor Stylesheet
4
+
5
+ You can add some advanced styles here if you like. This kicks in
6
+ on larger screens.
7
+
8
+ ******************************************************************/
@@ -0,0 +1,40 @@
1
+ /******************************************************************
2
+
3
+ Stylesheet: Retina Screens & Devices Stylesheet
4
+
5
+ When handling retina screens you need to make adjustments, especially
6
+ if you're not using font icons. Here you can add them in one neat
7
+ place.
8
+
9
+ ******************************************************************/
10
+
11
+ /*
12
+
13
+ EXAMPLE
14
+ Let's say you have an image and you need to make sure it looks ok
15
+ on retina screens. Let's say we have an icon which dimension are
16
+ 24px x 24px. In your regular stylesheets, it would look something
17
+ like this:
18
+
19
+ .icon {
20
+ width: 24px;
21
+ height: 24px;
22
+ background: url(img/test.png) no-repeat;
23
+ }
24
+
25
+ For retina screens, we have to make some adjustments, so that image
26
+ doesn't look blurry. So, taking into account the image above and the
27
+ dimensions, this is what we would put in our retina stylesheet:
28
+
29
+ .icon {
30
+ background: url(img/test@2x.png) no-repeat;
31
+ background-size: 24px 24px;
32
+ }
33
+
34
+ So, you would create the same icon, but at double the resolution, meaning
35
+ it would be 48px x 48px. You'd name it the same, but with a @2x at the end
36
+ (this is pretty standard practice). Set the background image so it matches
37
+ the original dimensions and you are good to go.
38
+
39
+ */
40
+
@@ -0,0 +1,109 @@
1
+ /******************************************************************
2
+
3
+ Stylesheet: 481px and Up Stylesheet
4
+
5
+ This stylesheet is loaded for larger devices. It's set to
6
+ 481px because at 480px it would load on a landscaped iPhone.
7
+ This isn't ideal because then you would be loading all those
8
+ extra styles on that same mobile connection.
9
+
10
+ A word of warning. This size COULD be a larger mobile device,
11
+ so you still want to keep it pretty light and simply expand
12
+ upon your base.scss styles.
13
+
14
+ ******************************************************************/
15
+
16
+
17
+
18
+ /*********************
19
+ NAVIGATION STYLES
20
+ *********************/
21
+
22
+ .nav {}
23
+
24
+ /* .menu is clearfixed inside mixins.scss */
25
+ .menu {
26
+ ul {
27
+ li {
28
+ a {
29
+
30
+ /*
31
+ you can use hover styles here even though this size
32
+ has the possibility of being a mobile device.
33
+ */
34
+ &:hover, &:focus {
35
+
36
+ }
37
+ }
38
+
39
+ &:first-child {}
40
+ &:last-child {}
41
+
42
+ /*
43
+ plan your menus and drop-downs wisely.
44
+ */
45
+ ul.sub-menu,
46
+ ul.children {
47
+ li {
48
+ a {
49
+ &:hover,
50
+ &:focus {}
51
+ &:link {}
52
+ }
53
+ &:first-child {}
54
+ &:last-child {}
55
+ }
56
+ }
57
+ } /* end .menu ul li */
58
+
59
+ /* highlight current page */
60
+ li.current-menu-item,
61
+ li.current_page_item,
62
+ li.current-page-ancestor {
63
+ a {}
64
+ } /* end current highlighters */
65
+ } /* end .menu ul */
66
+ } /* end .menu */
67
+
68
+ /*********************
69
+ POSTS & CONTENT STYLES
70
+ *********************/
71
+
72
+ /* entry content */
73
+ .entry-content {
74
+
75
+
76
+ /* at this larger size, we can start to align images */
77
+ .alignleft, img.alignleft {
78
+ margin-right: 1.5em;
79
+ display: inline;
80
+ float: left;
81
+ }
82
+ .alignright, img.alignright {
83
+ margin-left: 1.5em;
84
+ display: inline;
85
+ float: right;
86
+ }
87
+ .aligncenter, img.aligncenter {
88
+ margin-right: auto;
89
+ margin-left: auto;
90
+ display: block;
91
+ clear: both;
92
+ }
93
+
94
+ } /* end .entry-content */
95
+
96
+ /*********************
97
+ FOOTER STYLES
98
+ *********************/
99
+
100
+ /*
101
+ check your menus here. do they look good?
102
+ do they need tweaking?
103
+ */
104
+ .footer-links {
105
+ ul {
106
+ li {}
107
+ }
108
+ } /* end .footer-links */
109
+
@@ -0,0 +1,280 @@
1
+ /******************************************************************
2
+
3
+ Stylesheet: Tablet & Small Desktop Stylesheet
4
+
5
+ Here's where you can start getting into the good stuff.
6
+ This size will work on iPads, other tablets, and desktops.
7
+ So you can start working with more styles, background images,
8
+ and other resources. You'll also notice the grid starts to
9
+ come into play. Have fun!
10
+
11
+ ******************************************************************/
12
+
13
+
14
+ /*********************
15
+ GENERAL STYLES
16
+ *********************/
17
+
18
+ body {}
19
+
20
+ /*********************
21
+ LAYOUT & GRID STYLES
22
+ *********************/
23
+
24
+ .wrap {
25
+ max-width: 1140px;
26
+ }
27
+
28
+ /*********************
29
+ HEADER STYLES
30
+ *********************/
31
+
32
+ .header {}
33
+
34
+ #logo {}
35
+
36
+ /*********************
37
+ NAVIGATION STYLES
38
+ *********************/
39
+
40
+ .nav {
41
+ background: #eee;
42
+ border: 0;
43
+
44
+ li {
45
+ float: left;
46
+ position: relative;
47
+
48
+ a {
49
+ border-bottom: 0;
50
+
51
+ /*
52
+ you can use hover styles here even though this size
53
+ has the possibility of being a mobile device.
54
+ */
55
+ &:hover, &:focus {
56
+ background-color: #dedede;
57
+
58
+ }
59
+ }
60
+
61
+ &:first-child {}
62
+ &:last-child {}
63
+
64
+ /*
65
+ plan your menus and drop-downs wisely.
66
+ */
67
+ ul.sub-menu,
68
+ ul.children {
69
+ margin-top: 0;
70
+ border: 1px solid #ccc;
71
+ border-top: 0;
72
+ position: absolute;
73
+ display: none;
74
+ z-index: 8999;
75
+
76
+ li {
77
+
78
+ a {
79
+ padding-left: 10px;
80
+ border-right: 0;
81
+ display: block;
82
+ width: 180px;
83
+ border-bottom: 1px solid #ccc;
84
+
85
+ &:hover,
86
+ &:focus {}
87
+
88
+ &:link {}
89
+ }
90
+
91
+ &:first-child {}
92
+
93
+ &:last-child {
94
+
95
+ a {
96
+ border-bottom: 0;
97
+ }
98
+ }
99
+
100
+ /*
101
+ if you need to go deeper, go nuts
102
+ just remember deeper menus suck
103
+ for usability. k, bai.
104
+ */
105
+ ul {}
106
+ }
107
+
108
+ /* highlight sub-menu current page */
109
+ li.current-menu-item,
110
+ li.current_page_item,
111
+ li.current-page-ancestor {
112
+ a {}
113
+ }
114
+ }
115
+
116
+ /* showing sub-menus */
117
+ &:hover ul {
118
+ top: auto;
119
+ display: block;
120
+ }
121
+
122
+ } /* end .menu ul li */
123
+
124
+ /* highlight current page */
125
+ li.current-menu-item,
126
+ li.current_page_item,
127
+ li.current-page-ancestor {
128
+ a {}
129
+ } /* end current highlighters */
130
+
131
+ } /* end .nav */
132
+
133
+ /*********************
134
+ SIDEBARS & ASIDES
135
+ *********************/
136
+
137
+ .sidebar {
138
+ margin-top: 2.2em;
139
+ }
140
+
141
+ .widgettitle {
142
+ border-bottom: 2px solid #444;
143
+ margin-bottom: 0.75em;
144
+ }
145
+
146
+ .widget {
147
+ padding: 0 10px;
148
+ margin: 2.2em 0;
149
+
150
+ ul {
151
+ li {
152
+ margin-bottom: 0.75em;
153
+
154
+ &:first-child {}
155
+ &:last-child {}
156
+ a {}
157
+ /* deep nesting */
158
+
159
+ ul {
160
+ margin-top: 0.75em;
161
+ padding-left: 1em;
162
+ }
163
+ }
164
+ }
165
+ }
166
+
167
+
168
+ /* links widget */
169
+ .widget_links {}
170
+ .widget_links ul {}
171
+ .widget_links ul li {}
172
+ .widget_links ul li a {}
173
+
174
+ /* meta widget */
175
+ .widget_meta {}
176
+ .widget_meta ul {}
177
+ .widget_meta ul li {}
178
+ .widget_meta ul li a {}
179
+
180
+ /* pages widget */
181
+ .widget_pages {}
182
+ .widget_pages ul {}
183
+ .widget_pages ul li {}
184
+ .widget_pages ul li a {}
185
+
186
+ /* recent-posts widget */
187
+ .widget_recent_entries {}
188
+ .widget_recent_entries ul {}
189
+ .widget_recent_entries ul li {}
190
+ .widget_recent_entries ul li a {}
191
+
192
+ /* archives widget */
193
+ .widget_archive {}
194
+ .widget_archive ul {}
195
+ .widget_archive ul li {}
196
+ .widget_archive ul li a {}
197
+ .widget_archive select {}
198
+ .widget_archive option {}
199
+
200
+ /* tag-cloud widget */
201
+ .widget_links {}
202
+ .widget_links li:after {}
203
+ .widget_links li:before {}
204
+ .widget_tag_cloud {}
205
+ .widget_tag_cloud a {}
206
+ .widget_tag_cloud a:after {}
207
+ .widget_tag_cloud a:before {}
208
+
209
+ /* calendar widget */
210
+ .widget_calendar {}
211
+ #calendar_wrap {}
212
+ #calendar_wrap th {}
213
+ #calendar_wrap td {}
214
+ #wp-calendar tr td {}
215
+ #wp-calendar caption {}
216
+ #wp-calendar a {}
217
+ #wp-calendar #today {}
218
+ #wp-calendar #prev {}
219
+ #wp-calendar #next {}
220
+ #wp-calendar #next a {}
221
+ #wp-calendar #prev a {}
222
+
223
+ /* category widget */
224
+ .widget_categories {}
225
+ .widget_categories ul {}
226
+ .widget_categories ul li {}
227
+ .widget_categories ul ul.children {}
228
+ .widget_categories a {}
229
+ .widget_categories select{}
230
+ .widget_categories select#cat {}
231
+ .widget_categories select.postform {}
232
+ .widget_categories option {}
233
+ .widget_categories .level-0 {}
234
+ .widget_categories .level-1 {}
235
+ .widget_categories .level-2 {}
236
+ .widget_categories .level-3 {}
237
+
238
+ /* recent-comments widget */
239
+ .recentcomments {}
240
+ #recentcomments {}
241
+ #recentcomments li {}
242
+ #recentcomments li a {}
243
+ .widget_recent_comments {}
244
+
245
+ /* search widget */
246
+ #searchform {}
247
+ .widget_search {}
248
+ .screen-reader-text {}
249
+
250
+ /* text widget */
251
+ .textwidget {}
252
+ .widget_text {}
253
+ .textwidget p {}
254
+
255
+
256
+ /*********************
257
+ FOOTER STYLES
258
+ *********************/
259
+
260
+ /*
261
+ you'll probably need to do quite a bit
262
+ of overriding here if you styled them for
263
+ mobile. Make sure to double check these!
264
+ */
265
+ .footer-links {
266
+ ul {
267
+ li {
268
+ a {
269
+ &:hover {}
270
+ }
271
+ /*
272
+ be careful with the depth of your menus.
273
+ it's very rare to have multi-depth menus in
274
+ the footer.
275
+ */
276
+ ul {}
277
+ }
278
+ }
279
+ } /* end .footer-links */
280
+