foundation-sass 2.1

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 (54) hide show
  1. data/README.mkdn +70 -0
  2. data/lib/foundation-sass.rb +9 -0
  3. data/stylesheets/_foundation-sass.sass +1 -0
  4. data/templates/project/MIT-LICENSE.txt +20 -0
  5. data/templates/project/config.rb +33 -0
  6. data/templates/project/humans.txt +8 -0
  7. data/templates/project/images/misc/button-gloss.png +0 -0
  8. data/templates/project/images/misc/button-overlay.png +0 -0
  9. data/templates/project/images/misc/custom-form-sprites.png +0 -0
  10. data/templates/project/images/misc/input-bg.png +0 -0
  11. data/templates/project/images/misc/modal-gloss.png +0 -0
  12. data/templates/project/images/misc/table-sorter.png +0 -0
  13. data/templates/project/images/orbit/bullets.jpg +0 -0
  14. data/templates/project/images/orbit/left-arrow.png +0 -0
  15. data/templates/project/images/orbit/loading.gif +0 -0
  16. data/templates/project/images/orbit/mask-black.png +0 -0
  17. data/templates/project/images/orbit/pause-black.png +0 -0
  18. data/templates/project/images/orbit/right-arrow.png +0 -0
  19. data/templates/project/images/orbit/rotator-black.png +0 -0
  20. data/templates/project/images/orbit/timer-black.png +0 -0
  21. data/templates/project/index.html +151 -0
  22. data/templates/project/javascripts/app.js +43 -0
  23. data/templates/project/javascripts/forms.jquery.js +58 -0
  24. data/templates/project/javascripts/jquery.customforms.js +168 -0
  25. data/templates/project/javascripts/jquery.min.js +4 -0
  26. data/templates/project/javascripts/jquery.orbit-1.3.0.js +597 -0
  27. data/templates/project/javascripts/jquery.placeholder.min.js +2 -0
  28. data/templates/project/javascripts/jquery.reveal.js +126 -0
  29. data/templates/project/manifest.rb +75 -0
  30. data/templates/project/robots.txt +4 -0
  31. data/templates/project/sass/app.sass +6 -0
  32. data/templates/project/sass/forms.sass +189 -0
  33. data/templates/project/sass/globals.sass +128 -0
  34. data/templates/project/sass/grid.sass +159 -0
  35. data/templates/project/sass/ie.sass +11 -0
  36. data/templates/project/sass/includes/_colors.sass +8 -0
  37. data/templates/project/sass/includes/_mixins.sass +32 -0
  38. data/templates/project/sass/includes/_settings.sass +5 -0
  39. data/templates/project/sass/mobile.sass +215 -0
  40. data/templates/project/sass/orbit.sass +156 -0
  41. data/templates/project/sass/reveal.sass +86 -0
  42. data/templates/project/sass/typography.sass +130 -0
  43. data/templates/project/sass/ui.sass +331 -0
  44. data/templates/project/stylesheets/app.css +1 -0
  45. data/templates/project/stylesheets/forms.css +70 -0
  46. data/templates/project/stylesheets/globals.css +69 -0
  47. data/templates/project/stylesheets/grid.css +66 -0
  48. data/templates/project/stylesheets/ie.css +2 -0
  49. data/templates/project/stylesheets/mobile.css +76 -0
  50. data/templates/project/stylesheets/orbit.css +45 -0
  51. data/templates/project/stylesheets/reveal.css +24 -0
  52. data/templates/project/stylesheets/typography.css +57 -0
  53. data/templates/project/stylesheets/ui.css +110 -0
  54. metadata +109 -0
@@ -0,0 +1,159 @@
1
+ @import includes/settings
2
+ @import includes/mixins
3
+ @import includes/colors
4
+ /* Arfully Masterminded by ZURB */
5
+ /* Grid :: This is the mobile-friendly, responsive grid that lets Foundation work much of its magic. */
6
+
7
+ .container
8
+ padding: 0 20px
9
+ // To set the grid to a certain size, set max-width to width
10
+ .row
11
+ width: 100%
12
+ max-width: 980px
13
+ min-width: 727px
14
+ margin: 0 auto
15
+ .row
16
+ min-width: 0px
17
+ .column, .columns
18
+ margin-left: 4.4%
19
+ float: left
20
+ min-height: 1px
21
+ position: relative
22
+ &:first-child
23
+ margin-left: 0
24
+
25
+ .row
26
+ .one.columns
27
+ width: 4.3%
28
+ .two.columns
29
+ width: 13%
30
+ .three.columns
31
+ width: 21.7%
32
+ .four.columns
33
+ width: 30.4%
34
+ .five.columns
35
+ width: 39.1%
36
+ .six.columns
37
+ width: 47.8%
38
+ .seven.columns
39
+ width: 56.5%
40
+ .eight.columns
41
+ width: 65.2%
42
+ .nine.columns
43
+ width: 73.9%
44
+ .ten.columns
45
+ width: 82.6%
46
+ .eleven.columns
47
+ width: 91.3%
48
+ .twelve.columns
49
+ width: 100%
50
+
51
+ .offset-by-one
52
+ margin-left: 13.1%
53
+ &:first-child
54
+ margin-left: 8.7%
55
+ .offset-by-two
56
+ margin-left: 21.8%
57
+ &:first-child
58
+ margin-left: 17.4%
59
+ .offset-by-three
60
+ margin-left: 30.5%
61
+ &:first-child
62
+ margin-left: 26.1%
63
+ .offset-by-four
64
+ margin-left: 39.2%
65
+ &:first-child
66
+ margin-left: 34.8%
67
+ .offset-by-five
68
+ margin-left: 47.9%
69
+ &:first-child
70
+ margin-left: 43.5%
71
+ .offset-by-six
72
+ margin-left: 56.6%
73
+ &:first-child
74
+ margin-left: 52.2%
75
+ .offset-by-seven
76
+ margin-left: 65.3%
77
+ &:first-child
78
+ margin-left: 60.9%
79
+ .offset-by-eight
80
+ margin-left: 74.0%
81
+ &:first-child
82
+ margin-left: 69.6%
83
+ .offset-by-nine
84
+ margin-left: 82.7%
85
+ &:first-child
86
+ margin-left: 78.3%
87
+ .offset-by-ten
88
+ margin-left: 91.4%
89
+ &:first-child
90
+ margin-left: 87.0%
91
+
92
+ //.one.centered
93
+ // margin-left: 47.9%
94
+ //.two.centered
95
+ // margin-left: 43.5%
96
+ //.three.centered
97
+ // margin-left: 39.2%
98
+ //.four.centered
99
+ // margin-left: 34.8%
100
+ //.five.centered
101
+ // margin-left: 30.5%
102
+ //.six.centered
103
+ // margin-left: 26.1%
104
+ //.seven.centered
105
+ // margin-left: 21.8%
106
+ //.eight.centered
107
+ // margin-left: 17.4%
108
+ //.nine.centered
109
+ // margin-left: 13.1%
110
+ //.ten.centered
111
+ // margin-left: 8.7%
112
+ //.eleven.centered
113
+ // margin-left: 4.3%
114
+
115
+ img, object, embed
116
+ max-width: 100%
117
+ height: auto
118
+ img
119
+ -ms-interpolation-mode: bicubic
120
+
121
+ /* Nicolas Gallagher's micro clearfix */
122
+ .row:before, .row:after, .clearfix:before, .clearfix:after
123
+ content: ""
124
+ display: table
125
+ .row:after, .clearfix:after
126
+ clear: both
127
+ .row, .clearfix
128
+ zoom: 1
129
+
130
+ /* Blockgrids */
131
+ /* 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 */
132
+ .block-grid
133
+ display: block
134
+ overflow: hidden
135
+ &>li
136
+ display: block
137
+ height: auto
138
+ float: left
139
+ &.two-up
140
+ margin-left: -4%
141
+ &>li
142
+ margin-left: 4%
143
+ width: 46%
144
+ &.three-up
145
+ margin-left: -2%
146
+ &>li
147
+ margin-left: 2%
148
+ width: 31.3%
149
+ &.four-up
150
+ margin-left: -4%
151
+ &>li
152
+ margin-left: 4%
153
+ width: 23%
154
+ &.five-up
155
+ margin-left: -1.5%
156
+ &>li
157
+ margin-left: 1.5%
158
+ width: 18.5%
159
+
@@ -0,0 +1,11 @@
1
+ @import includes/settings
2
+ @import includes/mixins
3
+ @import includes/colors
4
+
5
+ /* This is for all IE specfific style less than IE9. We hate IE. */
6
+
7
+ // `IE styles
8
+ //----------------------------------------------------------------------------------------------------
9
+
10
+ div.panel
11
+ border: 1px solid #ccc
@@ -0,0 +1,8 @@
1
+ // Colors
2
+ //----------------------------------------------------------------------------------------------------
3
+
4
+ $blue: #00a6fc
5
+ $white: #fff
6
+ $black: #000
7
+ $red: #e91c21
8
+ $black: #141414
@@ -0,0 +1,32 @@
1
+ // Compass, importing CSS3 mixins and it's utilities
2
+ //----------------------------------------------------------------------------------------------------
3
+
4
+ @import compass/css3
5
+ @import compass/utilities
6
+
7
+ // Font stacks
8
+ //----------------------------------------------------------------------------------------------------
9
+
10
+ @mixin HelveticaFontStack
11
+ font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif
12
+
13
+ // Font size mixin to include px and rem
14
+
15
+ @mixin font-size($size, $important: false)
16
+ @if $important
17
+ font-size: $size + px !important
18
+ font-size: ($size / 10) + rem !important
19
+ @else
20
+ font-size: $size + px
21
+ font-size: ($size / 10) + rem
22
+
23
+ // WebKit: font-smoothing
24
+ // Values: none, antialiased (default), subpixel-antialiased
25
+ //
26
+ // References:
27
+ //
28
+ // 1. http://maxvoltar.com/sandbox/fontsmoothing/
29
+ // 2. http://maxvoltar.com/archive/-webkit-font-smoothing
30
+
31
+ @mixin font-smoothing($value: antialiased)
32
+ -webkit-font-smoothing: $value
@@ -0,0 +1,5 @@
1
+ // Setttings to configure any needed vars that are global to Foundation
2
+ //----------------------------------------------------------------------------------------------------
3
+
4
+ $experimental-support-for-khtml: false
5
+ $experimental-support-for-microsoft: false
@@ -0,0 +1,215 @@
1
+ @import includes/settings
2
+ @import includes/mixins
3
+ @import includes/colors
4
+ /* Mobile Grid Fixes */
5
+
6
+ /* Tablet screens */
7
+ @media only screen and (device-width: 768px), (device-width: 800px)
8
+ /* Currently unused */
9
+
10
+ @media only screen and (max-width: 767px)
11
+ body
12
+ -webkit-text-size-adjust: none
13
+
14
+ .row, body, .container
15
+ width: 100%
16
+ min-width: 0
17
+ margin-left: 0
18
+ margin-right: 0
19
+ padding-left: 0
20
+ padding-right: 0
21
+ .row .row .column, .row .row .columns
22
+ padding: 0
23
+ .column, .columns
24
+ width: auto !important
25
+ float: none
26
+ margin-left: 0
27
+ margin-right: 0
28
+ padding-left: 20px
29
+ padding-right: 20px
30
+ .column:last-child, .columns:last-child
31
+ margin-right: 0
32
+ .offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, .offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten, .offset-by-eleven, .centered
33
+ margin-left: 0% !important
34
+
35
+ /* Mobile 4-column Grid */
36
+ .row
37
+ .phone-one.column:first-child, .phone-two.column:first-child, .phone-three.column:first-child, .phone-four.column:first-child, .phone-one.columns:first-child, .phone-two.columns:first-child, .phone-three.columns:first-child, .phone-four.columns:first-child
38
+ margin-left: 0px
39
+ .phone-one.column, .phone-two.column, .phone-three.column, .phone-four.column, .phone-one.columns, .phone-two.columns, .phone-three.columns, .phone-four.columns
40
+ margin-left: 4.4%
41
+ float: left
42
+ min-height: 1px
43
+ position: relative
44
+ padding: 0
45
+ .phone-one.columns
46
+ width: 21.68% !important
47
+ .phone-two.columns
48
+ width: 47.8% !important
49
+ .phone-three.columns
50
+ width: 73.9% !important
51
+ .phone-four.columns
52
+ width: 100% !important
53
+
54
+
55
+
56
+ /* Block Grid */
57
+ @media only screen and (max-width: 767px)
58
+ .block-grid.mobile
59
+ margin-left: 0%
60
+ li
61
+ float: none
62
+ width: 100%
63
+ margin-left: 0%
64
+
65
+ /* Mobile Visibility Affordances */
66
+ .show-on-phones
67
+ display: none !important
68
+ .show-on-tablets
69
+ display: none !important
70
+ .show-on-desktops
71
+ display: block
72
+
73
+ .hide-on-phones
74
+ display: block !important
75
+ .hide-on-tablets
76
+ display: block !important
77
+ .hide-on-desktops
78
+ display: none
79
+
80
+ @media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-width: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px)
81
+ .show-on-phones
82
+ display: block !important
83
+ .show-on-tablets
84
+ display: none !important
85
+ .show-on-desktops
86
+ display: block !important
87
+
88
+ .hide-on-phones
89
+ display: none !important
90
+ .hide-on-tablets
91
+ display: block !important
92
+ .hide-on-desktops
93
+ display: none !important
94
+
95
+ @media only screen and (max-width: 767px)
96
+ .show-on-phones
97
+ display: none !important
98
+ .show-on-tablets
99
+ display: block !important
100
+ .show-on-desktops
101
+ display: block !important
102
+
103
+ .hide-on-phones
104
+ display: block !important
105
+ .hide-on-tablets
106
+ display: none !important
107
+ .hide-on-desktops
108
+ display: none !important
109
+
110
+ /* Specific overrides for elements that require something other than display: block */
111
+
112
+ table
113
+ &.show-on-desktops
114
+ display: table !important
115
+ &.hide-on-phones
116
+ display: table !important
117
+ &.hide-on-tablets
118
+ display: table !important
119
+
120
+ @media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px)
121
+ table
122
+ &.hide-on-phones
123
+ display: block !important
124
+ &.hide-on-desktops
125
+ display: block !important
126
+ &.show-on-tablets
127
+ display: block !important
128
+
129
+ @media only screen and (max-width: 767px)
130
+ table
131
+ &.hide-on-tablets
132
+ display: block !important
133
+ &.hide-on-desktops
134
+ display: block !important
135
+ &.show-on-phones
136
+ display: block !important
137
+
138
+ /* Forms */
139
+ @media only screen and (max-width: 767px)
140
+ input.input-text, input.input-text.oversize, textarea, form.nice input.input-text, form.nice input.input-text.oversize, form.nice textarea
141
+ display: block
142
+ width: 96%
143
+ padding: 6px 2% 4px
144
+ +font-size(18)
145
+ form.nice input.input-text, form.nice input.input-text.oversize, form.nice textarea
146
+ +border-radius(2px)
147
+ form.nice small.error
148
+ padding: 6px 2%
149
+ display: block
150
+ form.nice .small+.error, form.nice .medium+.error, form.nice .large+.error
151
+ width: auto
152
+
153
+ /* Buttons */
154
+ @media only screen and (max-width: 767px)
155
+ .button
156
+ display: block
157
+ button.button
158
+ width: 100%
159
+ padding-left: 0px
160
+ padding-right: 0px
161
+
162
+ /* Tabs */
163
+ @media only screen and (max-width: 767px)
164
+ dl.tabs.mobile, dl.nice.tabs.mobile
165
+ width: auto
166
+ margin: 20px -20px 40px
167
+ height: auto
168
+ dl.tabs.mobile dt, dl.tabs.mobile dd, dl.nice.tabs.mobile dt, dl.nice.tabs.mobile dd
169
+ float: none
170
+ height: auto
171
+
172
+ dl.tabs.mobile dd a
173
+ display: block
174
+ width: auto
175
+ height: auto
176
+ padding: 18px 20px
177
+ line-height: 1
178
+ border: solid 0px #ccc
179
+ border-width: 1px 0px 0px
180
+ margin: 0
181
+ color: #555
182
+ background: #eee
183
+ +font-size(15)
184
+ dl.tabs.mobile dd a.active
185
+ height: auto
186
+ margin: 0
187
+ border-width: 1px 0px 0px
188
+
189
+ .nice.tabs.mobile
190
+ border-bottom: solid 1px #ccc
191
+ height: auto
192
+ .nice.tabs.mobile dd a
193
+ padding: 18px 20px
194
+ border: none
195
+ border-left: none
196
+ border-right: none
197
+ border-top: solid 1px #ccc
198
+ background: #fff
199
+ &.active
200
+ border: none
201
+ background: #00a6fc
202
+ color: #fff
203
+ margin: 0
204
+ position: static
205
+ top: 0px
206
+ height: auto
207
+ .nice.tabs.mobile dd:first-child a.active
208
+ margin-bottom: 0px
209
+
210
+ dl.contained.mobile, dl.nice.contained.mobile
211
+ margin-bottom: 0
212
+ dl.contained.tabs.mobile dd a
213
+ padding: 18px 20px
214
+ dl.nice.contained.tabs.mobile dd a
215
+ padding: 18px 20px
@@ -0,0 +1,156 @@
1
+ @import includes/settings
2
+ @import includes/mixins
3
+ @import includes/colors
4
+ /* CSS for jQuery Orbit Plugin 1.2.3 :: www.ZURB.com/playground :: Copyright 2010, ZURB :: Free to use under the MIT license. :: http://www.opensource.org/licenses/mit-license.php */
5
+
6
+ /* PUT IN YOUR SLIDER ID AND SIZE TO MAKE LOAD BEAUTIFULLY */
7
+ #featured
8
+ width: 940px
9
+ height: 450px
10
+ background: #000 image-url('orbit/loading.gif') no-repeat center center
11
+ overflow: hidden
12
+ &>img, &>div, &>a
13
+ display: none
14
+
15
+ /* Container */
16
+ div.orbit-wrapper
17
+ width: 1px
18
+ height: 1px
19
+ position: relative
20
+ div.orbit
21
+ width: 1px
22
+ height: 1px
23
+ position: relative
24
+ overflow: hidden
25
+ &.with-bullets
26
+ margin-bottom: 40px
27
+ &>img
28
+ position: absolute
29
+ top: 0
30
+ left: 0
31
+ &>a
32
+ border: none
33
+ position: absolute
34
+ top: 0
35
+ left: 0
36
+ line-height: 0
37
+ display: none
38
+
39
+ /* Note: If your slider only uses content or anchors, you're going to want to put the width and height declarations on the ".orbit>div" and "div.orbit>a" tags in addition to just the .orbit-wrapper */
40
+ /* Timer */
41
+ div.timer
42
+ width: 40px
43
+ height: 40px
44
+ overflow: hidden
45
+ position: absolute
46
+ top: 10px
47
+ right: 10px
48
+ +opacity(0.6)
49
+ cursor: pointer
50
+ z-index: 1001
51
+ span.rotator
52
+ display: block
53
+ width: 40px
54
+ height: 40px
55
+ position: absolute
56
+ top: 0
57
+ left: -20px
58
+ background: image-url('orbit/rotator-black.png') no-repeat
59
+ z-index: 3
60
+ &.move
61
+ left: 0
62
+ span.mask
63
+ display: block
64
+ width: 20px
65
+ height: 40px
66
+ position: absolute
67
+ top: 0
68
+ right: 0
69
+ z-index: 2
70
+ overflow: hidden
71
+ &.move
72
+ width: 40px
73
+ left: 0
74
+ background: image-url('orbit/timer-black.png') repeat 0 0
75
+ span.pause
76
+ display: block
77
+ width: 40px
78
+ height: 40px
79
+ position: absolute
80
+ top: 0
81
+ left: 0
82
+ background: image-url('orbit/pause-black.png') no-repeat
83
+ z-index: 4
84
+ +opacity(0)
85
+ &.active
86
+ background: image-url('orbit/pause-black.png') no-repeat 0 -40px
87
+ div.timer:hover span.pause, span.pause.active
88
+ +opacity(1)
89
+
90
+ /* Captions */
91
+ .orbit-caption
92
+ display: none
93
+ +HelveticaFontStack
94
+ .orbit-wrapper .orbit-caption
95
+ background: #000
96
+ background: rgba(0,0,0,0.6)
97
+ z-index: 1000
98
+ color: #fff
99
+ text-align: center
100
+ padding: 7px 0
101
+ +font-size(13)
102
+ position: absolute
103
+ right: 0
104
+ bottom: 0
105
+ width: 100%
106
+
107
+ /* Directional Nav */
108
+ div.slider-nav
109
+ display: block
110
+ span
111
+ width: 78px
112
+ height: 100px
113
+ text-indent: -99999px
114
+ position: absolute
115
+ z-index: 1000
116
+ top: 50%
117
+ margin-top: -50px
118
+ cursor: pointer
119
+ &.right
120
+ background: image-url('orbit/right-arrow.png')
121
+ right: 0
122
+ &.left
123
+ background: image-url('orbit/left-arrow.png')
124
+ left: 0
125
+
126
+ /* Bullet Nav */
127
+ .orbit-bullets
128
+ position: absolute
129
+ z-index: 1000
130
+ list-style: none
131
+ bottom: -40px
132
+ left: 50%
133
+ margin-left: -50px
134
+ padding: 0
135
+ li
136
+ float: left
137
+ margin-left: 5px
138
+ cursor: pointer
139
+ color: #999
140
+ text-indent: -99999px
141
+ background: image-url('orbit/bullets.jpg') no-repeat 4px 0
142
+ width: 13px
143
+ height: 12px
144
+ overflow: hidden
145
+ &.active
146
+ color: #222
147
+ background-position: -8px 0
148
+ &.has-thumb
149
+ background: none
150
+ width: 100px
151
+ height: 75px
152
+ &.active
153
+ &.has-thumb
154
+ background-position: 0 0
155
+ border-top: solid 2px $black
156
+