foundation-css 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1 @@
1
+ http://beta.compass-style.org/help/tutorials/extensions/
@@ -0,0 +1,3 @@
1
+ require 'compass'
2
+ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
3
+ Compass::Frameworks.register('foundation-css', :path => extension_path)
File without changes
@@ -0,0 +1,29 @@
1
+ @media screen and (max-width: 319px) {.unit{float: none !important; width: auto !important;}}
2
+ .line:after,.lastUnit:after{clear:both;display:block;visibility:hidden;overflow:hidden;height:0 !important;line-height:0;font-size:xx-large;content:" x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ";}
3
+ .line{*zoom:1;}
4
+ .unit{float:left;}
5
+ .size1of1{float:none;}
6
+ .size1of2{width:50%;}
7
+ .size1of3{width:33.33333%;}
8
+ .size2of3{width:66.66666%;}
9
+ .size1of4{width:25%;}
10
+ .size3of4{width:75%;}
11
+ .size1of5{width:20%;}
12
+ .size2of5{width:40%;}
13
+ .size3of5{width:60%;}
14
+ .size4of5{width:80%;}
15
+ .lastUnit{display:table-cell;float:none;width:auto;*display:block;*zoom:1;_position:relative;_left:-3px;_margin-right:-3px;}
16
+
17
+ @if $debug === true {
18
+ .line{background-color:#e2e2e2;}
19
+ .size1of1{background-color:pink;}
20
+ .size1of2{background-color:red;}
21
+ .size1of3{background-color:orange;}
22
+ .size2of3{background-color: yellow;}
23
+ .size1of4{background-color:lime;}
24
+ .size3of4{background-color:green;}
25
+ .size1of5{background-color:aqua;}
26
+ .size2of5{background-color:blue;}
27
+ .size3of5{background-color:purple;}
28
+ .size4of5{background-color:magenta;}
29
+ }
@@ -0,0 +1,142 @@
1
+ .clearfix {
2
+
3
+ & .ie {
4
+ zoom:1;
5
+ }
6
+
7
+ &:after
8
+ {
9
+ content:'\\0020';
10
+ display:block;
11
+ height:0;
12
+ clear:both;
13
+ visibility:hidden;
14
+ font-size:0;
15
+ }
16
+ }
17
+
18
+ @mixin clear_floated_children($after = false)
19
+ {
20
+ @if $after == false
21
+ {
22
+ overflow:hidden;
23
+ }
24
+ @else
25
+ {
26
+
27
+ }
28
+ }
29
+
30
+ .inline-block {
31
+ .ie & {
32
+ display : inline;
33
+ }
34
+
35
+ display : -moz-inline-box;
36
+ -moz-box-orient : vertical;
37
+ display : inline-block;
38
+ vertical-align : middle;
39
+
40
+ .ie & {
41
+ vertical-align : auto;
42
+ }
43
+ }
44
+
45
+ /* for image replacement */
46
+ .image-replace-base {
47
+ display: block;
48
+ text-indent: -9999em;
49
+ overflow: hidden;
50
+ background-repeat: no-repeat;
51
+ text-align: left;
52
+ direction: ltr;
53
+ }
54
+
55
+ @mixin image-replace($img) {
56
+ @extend .image-replace-base;
57
+ height:image_height($img);
58
+ width:image_width($img);
59
+ }
60
+
61
+ /* Hide for both screenreaders and browsers
62
+ css-discuss.incutio.com/wiki/Screenreader_Visibility */
63
+ .hidden {
64
+ display:none;
65
+ visibility: hidden;
66
+ }
67
+
68
+ /* Hide only visually, but have it available for screenreaders
69
+ www.webaim.org/techniques/css/invisiblecontent/
70
+ Solution from: j.mp/visuallyhidden - Thanks Jonathan Neal! */
71
+ .visuallyhidden {
72
+ position: absolute !important;
73
+ clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
74
+ clip: rect(1px, 1px, 1px, 1px);
75
+ }
76
+
77
+ /* Hide visually and from screenreaders, but maintain layout */
78
+ .invisible {
79
+ visibility: hidden;
80
+ }
81
+
82
+ /**
83
+ * Sharpen an image if it has become blurry due to upscaling or downscaling
84
+ * @see https://developer.mozilla.org/en/CSS/image-rendering
85
+ */
86
+ .image-sharpen {
87
+ image-rendering:-moz-crisp-edges;
88
+ -ms-interpolation-mode:nearest-neighbor; /* IE 7+ */
89
+ }
90
+
91
+ /**
92
+ * When photos are upscaled or downscaled, they often get blurry. Don't use
93
+ * this on flat color images, they will still appear blurry.
94
+ * @see https://developer.mozilla.org/en/CSS/image-rendering
95
+ */
96
+ .image-high-quality {
97
+ image-rendering:optimizeQuality;
98
+ -ms-interpolation-mode:bicubic; /* IE 7+ */
99
+ }
100
+
101
+ /**
102
+ * Optimizes the rendering on images so they
103
+ * appear faster, but at a lower quality. Useful for <video>
104
+ */
105
+ .image-low-quality {
106
+ image-rendering:optimizeSpeed;
107
+ }
108
+
109
+ /* Resets the box model on an element */
110
+ .reset_box {
111
+ margin:0;
112
+ padding:0;
113
+ border:0;
114
+ }
115
+
116
+ /* Makes a list block inline */
117
+ .inline-list {
118
+ @include clear_floated_children;
119
+ @extend .reset_box;
120
+
121
+ li
122
+ {
123
+ list-style-type:none;
124
+ margin-left:0;
125
+ float:left;
126
+ white-space:nowrap;
127
+ }
128
+ }
129
+
130
+ @mixin hasLayout
131
+ {
132
+ zoom:1;
133
+ }
134
+
135
+ @mixin inline-block
136
+ {
137
+ @include hasLayout;
138
+ display:inline;
139
+ display:-moz-inline-box;
140
+ display:inline-block;
141
+ vertical-align:top;
142
+ }
@@ -0,0 +1,264 @@
1
+ a,
2
+ abbr,
3
+ address,
4
+ article,
5
+ aside,
6
+ audio,
7
+ b,
8
+ blockquote,
9
+ body,
10
+ canvas,
11
+ caption,
12
+ cite,
13
+ code,
14
+ dd,
15
+ del,
16
+ details,
17
+ dfn,
18
+ div,
19
+ dl,
20
+ dt,
21
+ em,
22
+ fieldset,
23
+ figcaption,
24
+ figure,
25
+ footer,
26
+ form,
27
+ h1,
28
+ h2,
29
+ h3,
30
+ h4,
31
+ h5,
32
+ h6,
33
+ header,
34
+ hgroup,
35
+ html,
36
+ i,
37
+ iframe,
38
+ img,
39
+ ins,
40
+ kbd,
41
+ label,
42
+ legend,
43
+ li,
44
+ mark,
45
+ menu,
46
+ nav,
47
+ object,
48
+ ol,
49
+ p,
50
+ pre,
51
+ q,
52
+ samp,
53
+ section,
54
+ small,
55
+ span,
56
+ strong,
57
+ sub,
58
+ summary,
59
+ sup,
60
+ table,
61
+ tbody,
62
+ td,
63
+ tfoot,
64
+ th,
65
+ thead,
66
+ time,
67
+ tr,
68
+ ul,
69
+ var,
70
+ video {
71
+ text-decoration:none;
72
+ vertical-align:baseline;
73
+ margin:0;
74
+ outline:0;
75
+ padding:0;
76
+ border:0;
77
+ }
78
+
79
+ body {
80
+ font-size:100%;
81
+ font-family:sans-serif;
82
+ font-style:normal;
83
+ font-weight:normal;
84
+ font-variant:normal;
85
+ color:#000;
86
+ }
87
+
88
+ html {
89
+ /* always force a scrollbar in non-IE */
90
+ overflow-y: scroll;
91
+ }
92
+
93
+ /* HTML5 elements */
94
+ article, aside, details, figcaption, figure,
95
+ footer, header, hgroup, menu, nav, section {
96
+ display: block;
97
+ }
98
+
99
+ /* Nicer image sizing in IE */
100
+ img {
101
+ -ms-interpolation-mode: bicubic;
102
+ }
103
+
104
+ /* fluid images and objects */
105
+ img,object,embed {
106
+ max-width:100%;
107
+ }
108
+
109
+ h1,h2,h3,h4,h5,h6 {
110
+ /* http://www.aestheticallyloyal.com/public/optimize-legibility/ */
111
+ text-rendering:optimizeLegibility;
112
+ /* http://files.christophzillgens.com/webkit-font-smoothing.html */
113
+ -webkit-font-smoothing:subpixel-antialiased;
114
+ }
115
+
116
+ /* Reset all lists to nothingness */
117
+ li {
118
+ list-style:none;
119
+ display:block;
120
+ }
121
+
122
+ /* Remove quotation marks */
123
+ blockquote:before,blockquote:after,
124
+ q:before,q:after {
125
+ content:'';
126
+ content:none;
127
+ }
128
+
129
+ /* Set sub, sup without affecting line-height: gist.github.com/413930 */
130
+ sub, sup {
131
+ /* Specified in % so that the sup/sup is the
132
+ right size relative to the surrounding text */
133
+ font-size: 75%;
134
+ /* Zero out the line-height so that it doesn't
135
+ interfere with the positioning that follows */
136
+ line-height: 0;
137
+ /* Where the magic happens: makes all browsers position
138
+ the sup/sup properly, relative to the surrounding text */
139
+ position: relative;
140
+ }
141
+
142
+ /* Move the superscripted text up */
143
+ sup {
144
+ top: -0.5em;
145
+ }
146
+
147
+ /* Move the subscripted text down, but only
148
+ half as far down as the superscript moved up */
149
+ sub {
150
+ bottom: -0.25em;
151
+ }
152
+
153
+ pre,code,kbd,samp,tt {
154
+ font-family:monospace;
155
+ }
156
+
157
+ table {
158
+ border-collapse:collapse;
159
+ border-spacing:0;
160
+ }
161
+
162
+ caption,th {
163
+ text-align:left;
164
+ }
165
+
166
+ td,th {
167
+ vertical-align:top;
168
+ }
169
+
170
+ /* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
171
+ a:hover, a:active {
172
+ outline:none;
173
+ }
174
+
175
+ form,fieldset,legend,input,
176
+ label,select,button,textarea {
177
+ /* Webkit browsers add a 2px margin outside the chrome of form elements */
178
+ margin:0;
179
+ /* The default border sizes on text inputs in all UAs seem to be slightly different */
180
+ border:0;
181
+ /* IE8: If a text input doesn't have padding on all sides or none the text won't be centered */
182
+ padding:0;
183
+ }
184
+
185
+ /* Make all form element sit nicely */
186
+ input,
187
+ label,
188
+ select,
189
+ button,
190
+ textarea {
191
+ /* IE: You don't need to fake inline-block with labels and form controls in IE. They function as inline-block */
192
+ display:inline-block;
193
+ vertical-align:middle;
194
+ white-space:normal;
195
+ background:none;
196
+
197
+ /* You NEED to set the font-size and family on all form elements. They don't inherit by default */
198
+ font:inherit;
199
+ }
200
+
201
+ /* Remove the stupid outer glow in Webkit */
202
+ input:focus {
203
+ outline:0;
204
+ }
205
+
206
+ /* hand cursor on clickable input elements */
207
+ label,
208
+ input[type=button],
209
+ input[type=submit],
210
+ button {
211
+ cursor:pointer;
212
+ }
213
+
214
+ /* Form elements have different box-sizing models by default */
215
+ input,
216
+ textarea {
217
+ -webkit-box-sizing:content-box;
218
+ -moz-box-sizing:content-box;
219
+ box-sizing:content-box;
220
+ }
221
+
222
+ button,
223
+ input[type=reset],
224
+ input[type=button],
225
+ input[type=submit],
226
+ input[type=checkbox],
227
+ input[type=radio],
228
+ select {
229
+ -webkit-box-sizing:border-box;
230
+ -moz-box-sizing:border-box;
231
+ box-sizing:border-box;
232
+ }
233
+
234
+ /* Standardize them */
235
+ input[type=checkbox],
236
+ input[type=radio] {
237
+ width:13px;
238
+ height:13px;
239
+ }
240
+
241
+ /* Make webkit render the search input like a normal text field */
242
+ input[type=search] {
243
+ -webkit-appearance:textfield;
244
+ }
245
+
246
+ /* Turn off the recent search for webkit. It adds about 15px padding on the left */
247
+ ::-webkit-search-decoration {
248
+ display:none;
249
+ }
250
+
251
+ /* make buttons play nice in IE:
252
+ www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
253
+ button,
254
+ input[type="reset"],
255
+ input[type="button"],
256
+ input[type="submit"] {
257
+ overflow:visible;
258
+ width:auto;
259
+ }
260
+
261
+ /* Turn off scroll bars in IE unless needed */
262
+ textarea {
263
+ overflow:auto;
264
+ }
File without changes
File without changes
@@ -0,0 +1,8 @@
1
+ @import "compass/css3";
2
+ @import "framework/reset";
3
+ @import "framework/helper";
4
+ @import "core/fonts";
5
+ @import "core/forms";
6
+ @import "desktop/forms";
7
+ @import "desktop/type";
8
+ @import "desktop/layout";
@@ -0,0 +1,115 @@
1
+ .copy {
2
+
3
+ p {
4
+ margin:0 0 18px 0;
5
+ }
6
+
7
+ address {
8
+
9
+ }
10
+
11
+ ul {
12
+
13
+ }
14
+
15
+ ol {
16
+
17
+ }
18
+
19
+ li {
20
+
21
+ }
22
+
23
+ dl {
24
+
25
+ }
26
+
27
+ dt {
28
+
29
+ }
30
+
31
+ dd {
32
+
33
+ }
34
+
35
+ pre {
36
+
37
+ }
38
+
39
+ h1,h2,h3,h4,h5,h6
40
+ {
41
+
42
+ }
43
+
44
+ h1
45
+ {
46
+
47
+ }
48
+
49
+ h2
50
+ {
51
+
52
+ }
53
+
54
+ h3
55
+ {
56
+
57
+ }
58
+
59
+ h4
60
+ {
61
+
62
+ }
63
+
64
+ h5
65
+ {
66
+
67
+ }
68
+
69
+ h6
70
+ {
71
+
72
+ }
73
+
74
+ em
75
+ {
76
+
77
+ }
78
+
79
+ strong
80
+ {
81
+
82
+ }
83
+
84
+ mark
85
+ {
86
+
87
+ }
88
+
89
+ ins
90
+ {
91
+
92
+ }
93
+
94
+ del
95
+ {
96
+
97
+ }
98
+
99
+ abbr
100
+ {
101
+
102
+ }
103
+
104
+ a {
105
+
106
+ }
107
+
108
+ a:visited {
109
+
110
+ }
111
+
112
+ a:hover {
113
+
114
+ }
115
+ }
File without changes
@@ -0,0 +1,5 @@
1
+ @if $debug == true {
2
+ body {
3
+ background:red;
4
+ }
5
+ }
@@ -0,0 +1,28 @@
1
+ body,
2
+ input,
3
+ label,
4
+ select,
5
+ button,
6
+ textarea,
7
+ table {
8
+ font-size: 16px;
9
+ font-family: Georgia;
10
+ line-height: 21px;
11
+ color: #000;
12
+ }
13
+
14
+ /* Text Selection
15
+ -----------------------------------------------*/
16
+
17
+ /* These ::selection declarations have to be separate.
18
+ They cause the browsers to freak out. */
19
+
20
+ @mixin selection
21
+ {
22
+ background: #000;
23
+ color: #fff;
24
+ text-shadow: none;
25
+ }
26
+
27
+ ::-moz-selection { @include selection; }
28
+ ::selection { @include selection; }
@@ -0,0 +1,4 @@
1
+ @import "common";
2
+ @import "mobile/forms";
3
+ @import "mobile/type";
4
+ @import "mobile/layout";
File without changes
@@ -0,0 +1,3 @@
1
+ body {
2
+ background:blue;
3
+ }
@@ -0,0 +1,5 @@
1
+ html
2
+ {
3
+ -webkit-text-size-adjust:none;
4
+ -ms-text-size-adjust:none;
5
+ }
@@ -0,0 +1,54 @@
1
+ *
2
+ {
3
+ background:transparent !important;
4
+ color:#444 !important;
5
+ text-shadow:none !important;
6
+ }
7
+
8
+ a,
9
+ a:visited
10
+ {
11
+ color: #444 !important;
12
+ text-decoration: underline;
13
+ }
14
+
15
+ a:after
16
+ {
17
+ content:" (" attr(href) ")";
18
+ }
19
+
20
+ abbr:after
21
+ {
22
+ content: " (" attr(title) ")";
23
+ }
24
+
25
+ pre,
26
+ blockquote
27
+ {
28
+ border: 1px solid #999;
29
+ page-break-inside: avoid;
30
+ }
31
+
32
+ img
33
+ {
34
+ page-break-inside:avoid;
35
+ }
36
+
37
+ @page
38
+ {
39
+ margin: 0.5cm;
40
+ }
41
+
42
+ p,
43
+ h2,
44
+ h3
45
+ {
46
+ orphans:3;
47
+ widows:3;
48
+ }
49
+
50
+ h2,
51
+ h3
52
+ {
53
+ page-break-after:avoid;
54
+ }
@@ -0,0 +1,4 @@
1
+ @import "common";
2
+ @import "tablet/forms";
3
+ @import "tablet/type";
4
+ @import "tablet/layout";
File without changes
@@ -0,0 +1,3 @@
1
+ body {
2
+ background:yellow;
3
+ }
File without changes
@@ -0,0 +1 @@
1
+ @import "media/desktop.css";
@@ -0,0 +1,17 @@
1
+ description "Foundation CSS Framework"
2
+
3
+ stylesheet 'master.scss', :media => 'screen'
4
+ stylesheet 'legacy.scss', :media => 'screen', :condition => "IE"
5
+
6
+ #image 'grid.png'
7
+ #javascript 'script.js'
8
+ #html 'welcome.html.haml', :erb => true
9
+ file 'README'
10
+
11
+ help %Q{
12
+
13
+ }
14
+
15
+ welcome_message %Q{
16
+
17
+ }
@@ -0,0 +1,10 @@
1
+ @import "foundation";
2
+
3
+ /* Default Layout */
4
+ @import "media/desktop.css" screen and (min-width: 481px);
5
+
6
+ /* Adjusted default layout for smaller tablet screens */
7
+ @import "media/tablet.css" screen and (min-width: 481px) and (max-width: 1024px);
8
+
9
+ /* Adjusted layout for mobile devices */
10
+ @import "media/mobile.css" screen and (max-width: 480px);
File without changes
File without changes
@@ -0,0 +1,6 @@
1
+ <div class="thumbnailed">
2
+ <img class="thumbnail-image"/>
3
+ <div class="thumbnail-content">
4
+ Content
5
+ </div>
6
+ </div>
File without changes
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: foundation-css
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Anthony Short
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-04-10 00:00:00 +10:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: compass
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 62196237
30
+ segments:
31
+ - 0
32
+ - 11
33
+ - beta
34
+ - 3
35
+ version: 0.11.beta.3
36
+ type: :runtime
37
+ version_requirements: *id001
38
+ description: a css framework for Compass
39
+ email: ant@anthy.me
40
+ executables: []
41
+
42
+ extensions: []
43
+
44
+ extra_rdoc_files: []
45
+
46
+ files:
47
+ - README.md
48
+ - lib/foundation-css.rb
49
+ - stylesheets/foundation/_css3.scss
50
+ - stylesheets/foundation/_grid.scss
51
+ - stylesheets/foundation/_helper.scss
52
+ - stylesheets/foundation/_reset.scss
53
+ - templates/project/core/_fonts.scss
54
+ - templates/project/core/_forms.scss
55
+ - templates/project/layouts/desktop/_copy.scss
56
+ - templates/project/layouts/desktop/_forms.scss
57
+ - templates/project/layouts/desktop/_layout.scss
58
+ - templates/project/layouts/desktop/_type.scss
59
+ - templates/project/layouts/desktop.scss
60
+ - templates/project/layouts/mobile/_forms.scss
61
+ - templates/project/layouts/mobile/_layout.scss
62
+ - templates/project/layouts/mobile/_type.scss
63
+ - templates/project/layouts/mobile.scss
64
+ - templates/project/layouts/print.scss
65
+ - templates/project/layouts/tablet/_forms.scss
66
+ - templates/project/layouts/tablet/_layout.scss
67
+ - templates/project/layouts/tablet/_type.scss
68
+ - templates/project/layouts/tablet.scss
69
+ - templates/project/legacy.scss
70
+ - templates/project/manifest.rb
71
+ - templates/project/master.scss
72
+ - templates/project/tests/index.html
73
+ - templates/project/tests/styleguide.html
74
+ - templates/thumbnailed/_media.html
75
+ - templates/thumbnailed/_media.sass
76
+ has_rdoc: true
77
+ homepage: http://anthy.me/
78
+ licenses: []
79
+
80
+ post_install_message:
81
+ rdoc_options: []
82
+
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ hash: 3
91
+ segments:
92
+ - 0
93
+ version: "0"
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ hash: 3
100
+ segments:
101
+ - 0
102
+ version: "0"
103
+ requirements: []
104
+
105
+ rubyforge_project:
106
+ rubygems_version: 1.3.7
107
+ signing_key:
108
+ specification_version: 3
109
+ summary: a css framework for Compass
110
+ test_files: []
111
+