ZURB-foundation 2.1.3.3 → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.mkdn CHANGED
@@ -18,7 +18,7 @@ In Terminal:
18
18
  * `git clone git://github.com/zurb/foundation-sass.git`
19
19
  * `cd foundation-sass`
20
20
  * `sudo gem build ZURB-foundation.gemspec`
21
- * `sudo gem install ZURB-foundation-2.1.3.3.gem`
21
+ * `sudo gem install ZURB-foundation-2.1.4.gem`
22
22
 
23
23
  To create your first project
24
24
  ----------------------------
@@ -44,8 +44,9 @@ Foundation is a rock-solid, responsive framework for rapidly prototyping and ite
44
44
 
45
45
  Homepage: http://foundation.zurb.com
46
46
  Documentation: http://foundation.zurb.com/docs
47
- Download: http://foundation.zurb.com/files/foundation-download.zip
47
+ Download: http://foundation.zurb.com/files/foundation-download-2.1.4.zip
48
48
 
49
+ Foundation is MIT-licensed and absolutely free to use. Foundation wouldn't be possible without the support of the entire ZURB team, our friends and colleagues who gave feedback, and some luminaries who did some heavy lifting that we took advantage of (thanks guys).
49
50
 
50
51
  ZURB
51
52
  ====
@@ -54,6 +55,19 @@ Foundation was made by [ZURB](http://www.zurb.com), an interaction design and de
54
55
 
55
56
  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
+ Community
59
+ =========
60
+
61
+ Many thanks to all the people working on Foundation either to improve the base code or to support specific frameworks. If you want to get on this readme send an email to foundation@zurb.com, and if you have questions you can join the Unofficial Foundation Google Group here: http://groups.google.com/group/foundation-framework-
62
+
63
+ WordPress
64
+
65
+ * [Starter Theme](https://github.com/drewsymo/Foundation) by Drew Morris
66
+ * [Optional install for roots](https://github.com/retlehs/roots) by Corey Wagehoft
67
+
68
+ .NET
69
+
70
+ * [NuGet Package for ASP.Net MVC](http://nuget.org/List/Packages/Zurb_Foundation_MPC3) by Edward Charbeneau
57
71
 
58
72
  MIT Open Source License
59
73
  =======================
@@ -3,7 +3,7 @@ Compass::Frameworks.register("ZURB-foundation", :path => File.join(File.dirname(
3
3
 
4
4
  module ZURBfoundation
5
5
 
6
- VERSION = "2.1.3.3"
7
- DATE = "2011-12-21"
6
+ VERSION = "2.1.4"
7
+ DATE = "2012-01-07"
8
8
 
9
9
  end
@@ -0,0 +1,101 @@
1
+ // Buttons
2
+ //-------------------------------------------------
3
+
4
+ .button
5
+ background: $default-color
6
+ border: none
7
+ color: $white
8
+ cursor: pointer
9
+ display: inline-block
10
+ font-weight: bold
11
+ line-height: 1
12
+ padding: 9px 34px 11px
13
+ position: relative
14
+ text-align: center
15
+ text-decoration: none
16
+
17
+ // Nice button
18
+ &.nice
19
+ background-color: $default-color
20
+ +background-image(linear-gradient(rgba(#fff, 0.2) 0%, rgba(#fff, 0.2) 50%, rgba(#000, 0) 51%, rgba(#000, 0) 100%))
21
+ +box-shadow(inset rgba(#fff, 0.5) 0 1px 0)
22
+ text-shadow: rgba(#000, 0.28) 0 -1px 1px
23
+ border: 1px solid darken($default-color, 7%)
24
+ +transition-property(background-color)
25
+ +transition-duration($button-transition-duration)
26
+ +transition-timing-function(ease-in-out)
27
+
28
+ // Nice button borders
29
+ &.red
30
+ border: solid 1px darken($red, 7%)
31
+ &.blue
32
+ border: solid 1px darken($blue, 7%)
33
+ &.white
34
+ border: solid 1px darken($white, 20%)
35
+ text-shadow: none !important
36
+ &.black
37
+ border: solid 1px darken($black, 7%)
38
+
39
+ // Button colors and hover states
40
+ // Base hover state
41
+ &:hover, &:focus
42
+ background-color: darken($default-color, 5%)
43
+ color: #fff
44
+ &.red
45
+ background-color: $red
46
+ &:hover, &:focus
47
+ background-color: darken($red, 5%)
48
+ &.blue
49
+ background-color: $blue
50
+ &:hover, &:focus
51
+ background-color: darken($blue, 5%)
52
+ &.white
53
+ background-color: darken($white, 15%)
54
+ color: #333
55
+ &:hover, &:focus
56
+ background-color: darken($white, 30%)
57
+ color: #333
58
+ &.black
59
+ background-color: $black
60
+ &:hover, &:focus
61
+ background-color: darken($black, 5%)
62
+
63
+ // Button shapes
64
+ &.radius
65
+ +border-radius(3px)
66
+ &.round
67
+ +border-radius(1000px)
68
+
69
+ // Button layout
70
+ &.full-width
71
+ width: 100%
72
+ padding-left: 0 !important
73
+ padding-right: 0 !important
74
+ text-align: center
75
+ &.left-align
76
+ text-align: left
77
+ text-indent: 12px
78
+
79
+ // Button sizes
80
+ &.small
81
+ +font-size(11)
82
+ padding: 8px 20px 10px
83
+ width: auto
84
+ &.medium
85
+ +font-size(13)
86
+ width: auto
87
+ &.large
88
+ +font-size(18)
89
+ padding: 11px 48px 13px
90
+ width: auto
91
+
92
+ // Button disabled states
93
+ &.disabled, &[disabled]
94
+ opacity: 0.6
95
+ cursor: default
96
+
97
+ //----------------------------------------------------
98
+
99
+ // Don't use native buttons on iOS
100
+ input[type=submit].button
101
+ -webkit-appearance: none
@@ -1,8 +1,6 @@
1
- @import includes
1
+ // Standard Forms
2
+ //-----------------------------------------
2
3
 
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
4
  form
7
5
  margin: 0 0 18px
8
6
  label
@@ -21,7 +19,9 @@ input.input-text, textarea, select
21
19
  label + input.input-text, label + textarea, label + select, label + div.dropdown, select + div.dropdown
22
20
  margin-top: -9px
23
21
 
24
- /* Text input and textarea font and padding */
22
+ // Text input and textarea font and padding
23
+ //-----------------------------------------
24
+
25
25
  input.input-text, textarea
26
26
  +font-size(13)
27
27
  padding: 4px 3px 2px
@@ -32,12 +32,16 @@ input.input-text, textarea
32
32
  &:focus
33
33
  outline: none !important
34
34
 
35
- /* Inlined Label Style */
35
+ // Inlined Label Style
36
+ //-----------------------------------------
37
+
36
38
  input, textarea
37
39
  .placeholder
38
40
  color: #888
39
41
 
40
- /* Text input and textarea sizes */
42
+ // Text input and textarea sizes
43
+ //-----------------------------------------
44
+
41
45
  input
42
46
  &.input-text
43
47
  width: 254px
@@ -51,20 +55,26 @@ input, textarea
51
55
  &.large
52
56
  width: 434px
53
57
 
54
- /* Fieldsets */
58
+ // Fieldsets
59
+ //-----------------------------------------
60
+
55
61
  form
56
62
  fieldset
57
63
  padding: 9px 9px 2px 9px
58
64
  border: solid 1px #ddd
59
65
  margin: 18px 0
60
66
 
61
- /* Inlined Radio & Checkbox */
67
+ // Inlined Radio & Checkbox
68
+ //-----------------------------------------
69
+
62
70
  .form-field input[type=radio], .form-field input[type=checkbox]
63
71
  display: inline
64
72
  width: auto
65
73
  margin-bottom: 0
66
74
 
67
- /* Errors */
75
+ // Errors
76
+ //-----------------------------------------
77
+
68
78
  .form-field.error input, input.input-text.red
69
79
  border-color: #c00000
70
80
  background-color: rgba(255,0,0,0.15)
@@ -84,7 +94,9 @@ form
84
94
  .large+.error
85
95
  width: 440px
86
96
 
87
- /* Nicer Forms */
97
+ // Nicer Forms
98
+ //-----------------------------------------
99
+
88
100
  form.nice
89
101
  input.input-text, textarea
90
102
  border: solid 1px #bbb
@@ -115,7 +127,9 @@ form.nice
115
127
  .large+.error
116
128
  width: 432px
117
129
 
118
- /* Custom Forms */
130
+ // Custom Forms
131
+ //-------------------------------------------------
132
+
119
133
  form.custom
120
134
  span.custom
121
135
  display: inline-block
@@ -1,15 +1,16 @@
1
- @import includes
2
-
3
- /* Artfully masterminded by ZURB */
4
- /* Table of Contents */
5
- /* :: Reset & Standards */
6
- /* :: Links */
7
- /* :: Lists */
8
- /* :: Tables */
9
- /* :: Misc */
1
+ // Table of Contents:
2
+ //
3
+ // Eric Meyer's CSS reset
4
+ // Body
5
+ // Links
6
+ // Lists
7
+ // Tables
8
+ // Misc
9
+ //
10
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) */
11
+ // Eric Meyer's CSS Reset :: http://meyerweb.com/eric/tools/css/reset/
12
+ //-------------------------------------------------------------------------------
13
+
13
14
 
14
15
  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
16
  margin: 0
@@ -20,7 +21,9 @@ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockq
20
21
  html
21
22
  font-size: 62.5%
22
23
 
23
- /* HTML 5 display-role reset for older browsers */
24
+ // HTML 5 reset for older browsers
25
+ //-----------------------------------------
26
+
24
27
  article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section
25
28
  display: block
26
29
  body
@@ -35,17 +38,37 @@ blockquote, q
35
38
  table
36
39
  border-collapse: collapse
37
40
  border-spacing: 0
41
+
42
+ // Nicolas Gallagher's micro clearfix - http://nicolasgallagher.com/micro-clearfix-hack/
43
+ //----------------------------------------------------------------------------------------------------
44
+
45
+ // For modern browsers
46
+ .clearfix
47
+ &:before, &:after
48
+ content: ""
49
+ display: table
50
+ &:after
51
+ clear: both
52
+
53
+ // For IE 6/7 (triggers hasLayout)
54
+ .clearfix
55
+ zoom: 1
38
56
 
57
+ // Base Cascade
58
+ //----------------------------------------------
59
+
39
60
  body
40
- background: #fff
41
- +HelveticaFontStack
42
- +font-size(13)
61
+ background: $body-background
62
+ font-family: $body-font-family
63
+ +font-size($body-font-size)
43
64
  +font-smoothing(antialiased)
44
- line-height: 18px
45
- color: #555
65
+ line-height: $body-line-height
66
+ color: $body-color
46
67
  position: relative
47
68
 
48
- /* Links */
69
+ // Links
70
+ //-----------------------------------------
71
+
49
72
  a
50
73
  color: $blue
51
74
  text-decoration: none
@@ -53,14 +76,16 @@ a
53
76
  &:hover
54
77
  color: lighten($blue, 10%)
55
78
  &:focus
56
- color: #cc4714
79
+ color: $orange
57
80
  outline: none
58
81
 
59
82
  p
60
83
  a, a:visited
61
84
  line-height: inherit
62
85
 
63
- /* Lists */
86
+ // Lists
87
+ //-----------------------------------------
88
+
64
89
  ul, ol
65
90
  margin-bottom: 18px
66
91
  ul
@@ -80,7 +105,9 @@ li
80
105
  ul.large li
81
106
  line-height: 21px
82
107
 
83
- /* Tables */
108
+ // Tables
109
+ //-----------------------------------------
110
+
84
111
  table
85
112
  background: $white
86
113
  +border-radius(3px)
@@ -96,7 +123,7 @@ table
96
123
  thead
97
124
  tr
98
125
  th
99
- padding: 8px 10 9px
126
+ padding: 8px 10px 9px
100
127
  +font-size(14)
101
128
  font-weight: bold
102
129
  color: #222
@@ -121,7 +148,9 @@ table
121
148
  &:last-child
122
149
  border-right: none
123
150
 
124
- /* Misc */
151
+ // Misc
152
+ //-----------------------------------------
153
+
125
154
  .left
126
155
  float: left
127
156
  .right
@@ -129,4 +158,4 @@ table
129
158
  .hide
130
159
  display: none
131
160
  .highlight
132
- background: #ff0
161
+ background: $yellow
@@ -1,16 +1,16 @@
1
- /* Arfully Masterminded by ZURB */
2
- /* Grid :: This is the mobile-friendly, responsive grid that lets Foundation work much of its magic. */
3
-
4
1
  .container
5
2
  padding: 0 20px
6
- // To set the grid to a certain size, set max-width to width
3
+
7
4
  .row
5
+ @extend .clearfix
8
6
  width: 100%
9
- max-width: 980px
10
- min-width: 727px
7
+ max-width: $grid-max-width
8
+ min-width: $grid-min-width
11
9
  margin: 0 auto
10
+ // .row .row
12
11
  .row
13
12
  min-width: 0
13
+
14
14
  .column, .columns
15
15
  margin-left: 4.4%
16
16
  float: left
@@ -19,77 +19,76 @@
19
19
  &:first-child
20
20
  margin-left: 0
21
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%
22
+ .one.columns
23
+ width: 4.3%
24
+ .two.columns
25
+ width: 13%
26
+ .three.columns
27
+ width: 21.7%
28
+ .four.columns
29
+ width: 30.37%
30
+ .five.columns
31
+ width: 39.1%
32
+ .six.columns
33
+ width: 47.8%
34
+ .seven.columns
35
+ width: 56.5%
36
+ .eight.columns
37
+ width: 65.2%
38
+ .nine.columns
39
+ width: 73.9%
40
+ .ten.columns
41
+ width: 82.6%
42
+ .eleven.columns
43
+ width: 91.3%
44
+ .twelve.columns
45
+ width: 100%
46
+
47
+ .offset-by-one
48
+ margin-left: 13.1%
49
+ &:first-child
50
+ margin-left: 8.7%
51
+ .offset-by-two
52
+ margin-left: 21.8%
53
+ &:first-child
54
+ margin-left: 17.4%
55
+ .offset-by-three
56
+ margin-left: 30.5%
57
+ &:first-child
58
+ margin-left: 26.1%
59
+ .offset-by-four
60
+ margin-left: 39.2%
61
+ &:first-child
62
+ margin-left: 34.8%
63
+ .offset-by-five
64
+ margin-left: 47.9%
65
+ &:first-child
66
+ margin-left: 43.5%
67
+ .offset-by-six
68
+ margin-left: 56.6%
69
+ &:first-child
70
+ margin-left: 52.2%
71
+ .offset-by-seven
72
+ margin-left: 65.3%
73
+ &:first-child
74
+ margin-left: 60.9%
75
+ .offset-by-eight
76
+ margin-left: 74.0%
77
+ &:first-child
78
+ margin-left: 69.6%
79
+ .offset-by-nine
80
+ margin-left: 82.7%
81
+ &:first-child
82
+ margin-left: 78.3%
83
+ .offset-by-ten
84
+ margin-left: 91.4%
85
+ &:first-child
86
+ margin-left: 87.0%
87
+ .offset-by-eleven
88
+ &:first-child
89
+ margin-left: 95.7%
91
90
 
92
- /* Source Ordering */
91
+ // Source Ordering
93
92
  .push-two
94
93
  left: 17.4%
95
94
  .push-three
@@ -134,53 +133,57 @@ img, object, embed
134
133
  height: auto
135
134
  img
136
135
  -ms-interpolation-mode: bicubic
136
+ #map_canvas img, .map_canvas img
137
+ max-width: none !important
137
138
 
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 */
139
+ // Blockgrids
140
+ //----------------------------------------------------------------------------------------------------
141
+
142
+ // Notes:
143
+ //
144
+ // These are 2-up, 3-up, 4-up and 5-up ULs suited for repeating blocks of content.
145
+ // Add 'mobile' to them to switch them just like the layout grid (one item per line) on phones
146
+ //
147
+ // For IE7/8 compatibility, block-grid items need to be the same height.
148
+ // To support arbitrary height, set $support-block-grid-nth-child to true
149
+ // Just know that IE7/8 do not support :nth-child
149
150
 
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
151
  .block-grid
152
152
  display: block
153
153
  overflow: hidden
154
- &>li
154
+ & > li
155
155
  display: block
156
156
  height: auto
157
157
  float: left
158
158
  &.two-up
159
159
  margin-left: -4%
160
- &>li
160
+ & > li
161
161
  margin-left: 4%
162
162
  width: 46%
163
- //&:nth-child(2n+1)
164
- // clear: left
163
+ @if $support-block-grid-nth-child
164
+ &:nth-child(2n+1)
165
+ clear: left
165
166
  &.three-up
166
167
  margin-left: -2%
167
- &>li
168
+ & > li
168
169
  margin-left: 2%
169
170
  width: 31.3%
170
- //&:nth-child(3n+1)
171
- // clear: left
171
+ @if $support-block-grid-nth-child
172
+ &:nth-child(3n+1)
173
+ clear: left
172
174
  &.four-up
173
175
  margin-left: -4%
174
- &>li
176
+ & > li
175
177
  margin-left: 4%
176
178
  width: 23%
177
- //&:nth-child(4n+1)
178
- // clear: left
179
+ @if $support-block-grid-nth-child
180
+ &:nth-child(4n+1)
181
+ clear: left
179
182
  &.five-up
180
183
  margin-left: -1.5%
181
- &>li
184
+ & > li
182
185
  margin-left: 1.5%
183
186
  width: 18.5%
184
- //&:nth-child(5n+1)
185
- // clear: left
186
-
187
+ @if $support-block-grid-nth-child
188
+ &:nth-child(5n+1)
189
+ clear: left