ZURB-foundation 2.1.3b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.mkdn +65 -0
  2. data/lib/ZURB-foundation.rb +9 -0
  3. data/stylesheets/ZURB/_forms.sass +192 -0
  4. data/stylesheets/ZURB/_foundation.sass +9 -0
  5. data/stylesheets/ZURB/_globals.sass +132 -0
  6. data/stylesheets/ZURB/_grid.sass +186 -0
  7. data/stylesheets/ZURB/_includes.sass +3 -0
  8. data/stylesheets/ZURB/_mobile.sass +292 -0
  9. data/stylesheets/ZURB/_orbit.sass +156 -0
  10. data/stylesheets/ZURB/_reveal.sass +88 -0
  11. data/stylesheets/ZURB/_typography.sass +129 -0
  12. data/stylesheets/ZURB/_ui.sass +447 -0
  13. data/stylesheets/ZURB/includes/_colors.sass +8 -0
  14. data/stylesheets/ZURB/includes/_mixins.sass +32 -0
  15. data/stylesheets/ZURB/includes/_settings.sass +5 -0
  16. data/templates/project/MIT-LICENSE.txt +20 -0
  17. data/templates/project/humans.txt +8 -0
  18. data/templates/project/images/misc/button-gloss.png +0 -0
  19. data/templates/project/images/misc/button-overlay.png +0 -0
  20. data/templates/project/images/misc/custom-form-sprites.png +0 -0
  21. data/templates/project/images/misc/input-bg.png +0 -0
  22. data/templates/project/images/misc/modal-gloss.png +0 -0
  23. data/templates/project/images/misc/table-sorter.png +0 -0
  24. data/templates/project/images/orbit/bullets.jpg +0 -0
  25. data/templates/project/images/orbit/left-arrow.png +0 -0
  26. data/templates/project/images/orbit/loading.gif +0 -0
  27. data/templates/project/images/orbit/mask-black.png +0 -0
  28. data/templates/project/images/orbit/pause-black.png +0 -0
  29. data/templates/project/images/orbit/right-arrow.png +0 -0
  30. data/templates/project/images/orbit/rotator-black.png +0 -0
  31. data/templates/project/images/orbit/timer-black.png +0 -0
  32. data/templates/project/index.html +151 -0
  33. data/templates/project/javascripts/app.js +94 -0
  34. data/templates/project/javascripts/forms.jquery.js +58 -0
  35. data/templates/project/javascripts/jquery.customforms.js +168 -0
  36. data/templates/project/javascripts/jquery.min.js +4 -0
  37. data/templates/project/javascripts/jquery.orbit-1.3.0.js +597 -0
  38. data/templates/project/javascripts/jquery.placeholder.min.js +2 -0
  39. data/templates/project/javascripts/jquery.reveal.js +126 -0
  40. data/templates/project/manifest.rb +49 -0
  41. data/templates/project/robots.txt +4 -0
  42. data/templates/project/sass/app.sass +26 -0
  43. data/templates/project/sass/ie.sass +14 -0
  44. metadata +98 -0
@@ -0,0 +1,65 @@
1
+ ZURB Foundation for Compass
2
+ ===========================
3
+
4
+ To create your first project, you'll need to have the ZURB-foundation gem installed, this will include all the necessary dependencies.
5
+
6
+ To install from Ruby Gems
7
+ -------------------------
8
+
9
+ In Terminal:
10
+
11
+ * `(sudo) gem install ZURB-foundation`
12
+
13
+ To install locally
14
+ ------------------
15
+
16
+ In Terminal:
17
+
18
+ * `git clone git://github.com/zurb/foundation-sass.git`
19
+ * `cd foundation-sass`
20
+ * `sudo gem build ZURB-foundation.gemspec`
21
+ * `sudo gem install ZURB-foundation-2.1.3.gem`
22
+
23
+ To create your first project
24
+ ----------------------------
25
+
26
+ * `cd path/to/where-you-want-new-project`
27
+ * .scss syntax: `compass create <my_project> -r ZURB-foundation --using ZURB-foundation --force`
28
+ * .sass syntax: `compass create <my_project> -r ZURB-foundation --using ZURB-foundation --syntax sass --force`
29
+
30
+ Now you should have a new project folder created with the foundation file structure, but with the awesome advantages of having all the css pre-processed with Sass.
31
+
32
+ To Add ZURB-foundation to an existing project
33
+ ---------------------------------------------
34
+ * Add `require "ZURB-foundation"`
35
+ * `cd path/to/your-project`
36
+ * run: `compass install ZURB-foundation`
37
+
38
+
39
+
40
+ Welcome to Foundation
41
+ =====================
42
+
43
+ Foundation is a rock-solid, responsive framework for rapidly prototyping and iterating into production code. It includes a 12-column, future-friendly grid and tons of great tools and elements that'll get you up and running in no time. Clone the repo to get the marketing site, docs, and base source. You can also visit http://foundation.zurb.com to download just the base source as a starting boilerplate.
44
+
45
+ Homepage: http://foundation.zurb.com
46
+ Documentation: http://foundation.zurb.com/docs
47
+ Download: http://foundation.zurb.com/files/foundation-download.zip
48
+
49
+
50
+ ZURB
51
+ ====
52
+
53
+ Foundation was made by [ZURB](http://www.zurb.com), an interaction design and design strategy firm in Campbell, CA.
54
+
55
+ If Foundation knocks your socks off the way we hope it does and you want more, why not check out [our jobs](http://www.zurb.com/talent/jobs)?
56
+
57
+
58
+ MIT Open Source License
59
+ =======================
60
+
61
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
62
+
63
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
64
+
65
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,9 @@
1
+ require 'compass'
2
+ Compass::Frameworks.register("ZURB-foundation", :path => File.join(File.dirname(__FILE__), ".."))
3
+
4
+ module ZURBfoundation
5
+
6
+ VERSION = "2.1.3b"
7
+ DATE = "2011-12-21"
8
+
9
+ end
@@ -0,0 +1,192 @@
1
+ @import includes
2
+
3
+ /* Artfully masterminded by ZURB :: Make sure to include app.js / foundation.js if you are going to use inline label inputs */
4
+
5
+ /* Standard Forms */
6
+ form
7
+ margin: 0 0 18px
8
+ label
9
+ display: block
10
+ +font-size(13)
11
+ line-height: 18px
12
+ cursor: pointer
13
+ margin-bottom: 9px
14
+
15
+ input.input-text, textarea
16
+ border-right: 1px solid #bbb
17
+ border-bottom: 1px solid #bbb
18
+ input.input-text, textarea, select
19
+ display: block
20
+ margin-bottom: 9px
21
+ label + input.input-text, label + textarea, label + select, label + div.dropdown, select + div.dropdown
22
+ margin-top: -9px
23
+
24
+ /* Text input and textarea font and padding */
25
+ input.input-text, textarea
26
+ +font-size(13)
27
+ padding: 4px 3px 2px
28
+ background: #fff
29
+ &.oversize
30
+ +font-size(18, $is-important: true)
31
+ padding: 4px 5px !important
32
+ &:focus
33
+ outline: none !important
34
+
35
+ /* Inlined Label Style */
36
+ input, textarea
37
+ .placeholder
38
+ color: #888
39
+
40
+ /* Text input and textarea sizes */
41
+ input
42
+ &.input-text
43
+ width: 254px
44
+ textarea
45
+ width: 254px
46
+ input, textarea
47
+ &.small
48
+ width: 134px
49
+ &.medium
50
+ width: 254px
51
+ &.large
52
+ width: 434px
53
+
54
+ /* Fieldsets */
55
+ form
56
+ fieldset
57
+ padding: 9px 9px 2px 9px
58
+ border: solid 1px #ddd
59
+ margin: 18px 0
60
+
61
+ /* Inlined Radio & Checkbox */
62
+ .form-field input[type=radio], .form-field input[type=checkbox]
63
+ display: inline
64
+ width: auto
65
+ margin-bottom: 0
66
+
67
+ /* Errors */
68
+ .form-field.error input, input.input-text.red
69
+ border-color: #c00000
70
+ background-color: rgba(255,0,0,0.15)
71
+ .form-field.error label, label.red
72
+ color: #c00000
73
+ .form-field.error small, small.error
74
+ margin-top: -6px
75
+ display: block
76
+ margin-bottom: 9px
77
+ +font-size(11)
78
+ color: red
79
+ width: 260px
80
+ .small+.error
81
+ width: 140px
82
+ .medium+.error
83
+ width: 260px
84
+ .large+.error
85
+ width: 440px
86
+
87
+ /* Nicer Forms */
88
+ form.nice
89
+ input.input-text, textarea
90
+ border: solid 1px #bbb
91
+ +border-radius(2px)
92
+ +font-size(13)
93
+ padding: 6px 3px 4px
94
+ outline: none !important
95
+ background: image-url('misc/input-bg.png') #fff
96
+ &:focus
97
+ background-color: #f9f9f9
98
+ fieldset
99
+ +border-radius(3px)
100
+ small.error
101
+ padding: 6px 4px
102
+ border: solid 0 #c00000
103
+ border-width: 0 1px 1px 1px
104
+ margin-top: -10px
105
+ background: #c00000
106
+ color: #fff
107
+ +font-size(12)
108
+ font-weight: bold
109
+ +border-bottom-left-radius(2px)
110
+ +border-bottom-right-radius(2px)
111
+ .small+.error
112
+ width: 132px
113
+ .medium+.error
114
+ width: 252px
115
+ .large+.error
116
+ width: 432px
117
+
118
+ /* Custom Forms */
119
+ form.custom
120
+ span.custom
121
+ display: inline-block
122
+ width: 14px
123
+ height: 14px
124
+ position: relative
125
+ top: 2px
126
+ border: solid 1px #ccc
127
+ background: image-url('misc/custom-form-sprites.png') 0 0 no-repeat
128
+ &.radio
129
+ +border-radius(7px)
130
+ &.checked
131
+ background-position: 0 -14px
132
+ &.checkbox
133
+ &.checked
134
+ background-position: 0 -28px
135
+ div.custom
136
+ &.dropdown
137
+ position: relative
138
+ display: inline-block
139
+ width: auto
140
+ height: 28px
141
+ margin-bottom: 9px
142
+ a.current
143
+ display: block
144
+ width: auto
145
+ line-height: 26px
146
+ padding: 0 38px 0 6px
147
+ border: solid 1px #ddd
148
+ color: #141414
149
+ a.selector
150
+ position: absolute
151
+ width: 26px
152
+ height: 26px
153
+ display: block
154
+ background: image-url('misc/custom-form-sprites.png') -14px 0 no-repeat
155
+ right: 0
156
+ top: 0
157
+ border: solid 1px #ddd
158
+ ul
159
+ position: absolute
160
+ width: auto
161
+ display: none
162
+ margin: 0
163
+ left: 0
164
+ top: 27px
165
+ margin: 0
166
+ padding: 0
167
+ background: rgba(255,255,255,0.9)
168
+ border: solid 1px #ddd
169
+ z-index: 10
170
+ &.show
171
+ display: block
172
+ li
173
+ cursor: pointer
174
+ padding: 3px 38px 3px 6px
175
+ margin: 0
176
+ white-space: nowrap
177
+ &.selected
178
+ background: image-url('misc/custom-form-sprites.png') right -52px no-repeat
179
+ &:hover
180
+ background: image-url('misc/custom-form-sprites.png') $blue right -78px no-repeat
181
+ &:hover
182
+ background-color: $blue
183
+ color: #fff
184
+ &:hover
185
+ a.selector
186
+ background-position: -14px -26px
187
+ &.open
188
+ ul
189
+ display: block
190
+ a.selector
191
+ background-position: -14px -26px
192
+
@@ -0,0 +1,9 @@
1
+ @import includes
2
+ @import globals
3
+ @import typography
4
+ @import grid
5
+ @import ui
6
+ @import forms
7
+ @import orbit
8
+ @import reveal
9
+ @import mobile
@@ -0,0 +1,132 @@
1
+ @import includes
2
+
3
+ /* Artfully masterminded by ZURB */
4
+ /* Table of Contents */
5
+ /* :: Reset & Standards */
6
+ /* :: Links */
7
+ /* :: Lists */
8
+ /* :: Tables */
9
+ /* :: Misc */
10
+
11
+ /* Global Reset & Standards */
12
+ /* Eric Meyer's CSS Reset :: http://meyerweb.com/eric/tools/css/reset/ :: v2.0 | 20110126 :: License: none (public domain) */
13
+
14
+ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video
15
+ margin: 0
16
+ padding: 0
17
+ border: 0
18
+ font: inherit
19
+ vertical-align: baseline
20
+ html
21
+ font-size: 62.5%
22
+
23
+ /* HTML 5 display-role reset for older browsers */
24
+ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section
25
+ display: block
26
+ body
27
+ line-height: 1
28
+ ol, ul
29
+ list-style: none
30
+ blockquote, q
31
+ quotes: none
32
+ &:before, &:after
33
+ content: ""
34
+ content: none
35
+ table
36
+ border-collapse: collapse
37
+ border-spacing: 0
38
+
39
+ body
40
+ background: #fff
41
+ +HelveticaFontStack
42
+ +font-size(13)
43
+ +font-smoothing(antialiased)
44
+ line-height: 18px
45
+ color: #555
46
+ position: relative
47
+
48
+ /* Links */
49
+ a
50
+ color: $blue
51
+ text-decoration: none
52
+ line-height: inherit
53
+ &:hover
54
+ color: lighten($blue, 10%)
55
+ &:focus
56
+ color: #cc4714
57
+ outline: none
58
+
59
+ p
60
+ a, a:visited
61
+ line-height: inherit
62
+
63
+ /* Lists */
64
+ ul, ol
65
+ margin-bottom: 18px
66
+ ul
67
+ list-style: none outside
68
+ &.square
69
+ list-style: square outside
70
+ &.circle
71
+ list-style: circle outside
72
+ &.disc
73
+ list-style: disc outside
74
+ ol
75
+ list-style: decimal
76
+ ol, ul.square, ul.circle, ul.disc
77
+ margin-left: 30px
78
+ li
79
+ margin-bottom: 12px
80
+ ul.large li
81
+ line-height: 21px
82
+
83
+ /* Tables */
84
+ table
85
+ background: $white
86
+ +border-radius(3px)
87
+ margin: 0 0 18px
88
+ border: solid 1px #ddd
89
+ thead, tfoot
90
+ background: #f5f5f5
91
+ tr
92
+ th
93
+ +font-size(12)
94
+ line-height: 18px
95
+ text-align: left
96
+ thead
97
+ tr
98
+ th
99
+ padding: 8px 10 9px
100
+ +font-size(14)
101
+ font-weight: bold
102
+ color: #222
103
+ &:first-child
104
+ border-left: none
105
+ &:last-child
106
+ border-right: none
107
+ tbody
108
+ tr
109
+ td
110
+ +font-size(12)
111
+ line-height: 18px
112
+ text-align: left
113
+ tfoot
114
+ tr
115
+ td
116
+ +font-size(12)
117
+ line-height: 18px
118
+ text-align: left
119
+ &:last-child
120
+ border-left: none
121
+ &:last-child
122
+ border-right: none
123
+
124
+ /* Misc */
125
+ .left
126
+ float: left
127
+ .right
128
+ float: right
129
+ .hide
130
+ display: none
131
+ .highlight
132
+ background: #ff0
@@ -0,0 +1,186 @@
1
+ /* Arfully Masterminded by ZURB */
2
+ /* Grid :: This is the mobile-friendly, responsive grid that lets Foundation work much of its magic. */
3
+
4
+ .container
5
+ padding: 0 20px
6
+ // To set the grid to a certain size, set max-width to width
7
+ .row
8
+ width: 100%
9
+ max-width: 980px
10
+ min-width: 727px
11
+ margin: 0 auto
12
+ .row
13
+ min-width: 0
14
+ .column, .columns
15
+ margin-left: 4.4%
16
+ float: left
17
+ min-height: 1px
18
+ position: relative
19
+ &:first-child
20
+ margin-left: 0
21
+
22
+ .row
23
+ .one.columns
24
+ width: 4.3%
25
+ .two.columns
26
+ width: 13%
27
+ .three.columns
28
+ width: 21.7%
29
+ .four.columns
30
+ width: 30.37%
31
+ .five.columns
32
+ width: 39.1%
33
+ .six.columns
34
+ width: 47.8%
35
+ .seven.columns
36
+ width: 56.5%
37
+ .eight.columns
38
+ width: 65.2%
39
+ .nine.columns
40
+ width: 73.9%
41
+ .ten.columns
42
+ width: 82.6%
43
+ .eleven.columns
44
+ width: 91.3%
45
+ .twelve.columns
46
+ width: 100%
47
+
48
+ .offset-by-one
49
+ margin-left: 13.1%
50
+ &:first-child
51
+ margin-left: 8.7%
52
+ .offset-by-two
53
+ margin-left: 21.8%
54
+ &:first-child
55
+ margin-left: 17.4%
56
+ .offset-by-three
57
+ margin-left: 30.5%
58
+ &:first-child
59
+ margin-left: 26.1%
60
+ .offset-by-four
61
+ margin-left: 39.2%
62
+ &:first-child
63
+ margin-left: 34.8%
64
+ .offset-by-five
65
+ margin-left: 47.9%
66
+ &:first-child
67
+ margin-left: 43.5%
68
+ .offset-by-six
69
+ margin-left: 56.6%
70
+ &:first-child
71
+ margin-left: 52.2%
72
+ .offset-by-seven
73
+ margin-left: 65.3%
74
+ &:first-child
75
+ margin-left: 60.9%
76
+ .offset-by-eight
77
+ margin-left: 74.0%
78
+ &:first-child
79
+ margin-left: 69.6%
80
+ .offset-by-nine
81
+ margin-left: 82.7%
82
+ &:first-child
83
+ margin-left: 78.3%
84
+ .offset-by-ten
85
+ margin-left: 91.4%
86
+ &:first-child
87
+ margin-left: 87.0%
88
+ .offset-by-eleven
89
+ &:first-child
90
+ margin-left: 95.7%
91
+
92
+ /* Source Ordering */
93
+ .push-two
94
+ left: 17.4%
95
+ .push-three
96
+ left: 26.1%
97
+ .push-four
98
+ left: 34.8%
99
+ .push-five
100
+ left: 43.5%
101
+ .push-six
102
+ left: 52.2%
103
+ .push-seven
104
+ left: 60.9%
105
+ .push-eight
106
+ left: 69.6%
107
+ .push-nine
108
+ left: 78.3%
109
+ .push-ten
110
+ left: 87%
111
+
112
+ .pull-two
113
+ right: 17.4%
114
+ .pull-three
115
+ right: 26.1%
116
+ .pull-four
117
+ right: 34.8%
118
+ .pull-five
119
+ right: 43.5%
120
+ .pull-six
121
+ right: 52.2%
122
+ .pull-seven
123
+ right: 60.9%
124
+ .pull-eight
125
+ right: 69.6%
126
+ .pull-nine
127
+ right: 78.3%
128
+ .pull-ten
129
+ right: 87%
130
+
131
+
132
+ img, object, embed
133
+ max-width: 100%
134
+ height: auto
135
+ img
136
+ -ms-interpolation-mode: bicubic
137
+
138
+ /* Nicolas Gallagher's micro clearfix */
139
+ .row:before, .row:after, .clearfix:before, .clearfix:after
140
+ content: ""
141
+ display: table
142
+ .row:after, .clearfix:after
143
+ clear: both
144
+ .row, .clearfix
145
+ zoom: 1
146
+
147
+ /* Blockgrids */
148
+ /* These are 2-up, 3-up, 4-up and 5-up ULs, suited for repeating block of content. Add 'mobile' to them to switch them just like the layout grid (one item per line) on phones */
149
+
150
+ /*For IE7/8 compatibility block-grid items need to be the same height. You can optionally uncomment the lines below to support arbitrary height, but know that IE7/8 do not support :nth-child. */
151
+ .block-grid
152
+ display: block
153
+ overflow: hidden
154
+ &>li
155
+ display: block
156
+ height: auto
157
+ float: left
158
+ &.two-up
159
+ margin-left: -4%
160
+ &>li
161
+ margin-left: 4%
162
+ width: 46%
163
+ //&:nth-child(2n+1)
164
+ // clear: left
165
+ &.three-up
166
+ margin-left: -2%
167
+ &>li
168
+ margin-left: 2%
169
+ width: 31.3%
170
+ //&:nth-child(3n+1)
171
+ // clear: left
172
+ &.four-up
173
+ margin-left: -4%
174
+ &>li
175
+ margin-left: 4%
176
+ width: 23%
177
+ //&:nth-child(4n+1)
178
+ // clear: left
179
+ &.five-up
180
+ margin-left: -1.5%
181
+ &>li
182
+ margin-left: 1.5%
183
+ width: 18.5%
184
+ //&:nth-child(5n+1)
185
+ // clear: left
186
+