compass-capucine 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,15 @@
1
+ source "http://rubygems.org"
2
+ gem 'compass'
3
+ # Add dependencies required to use your gem here.
4
+ # Example:
5
+ # gem "activesupport", ">= 2.3.5"
6
+
7
+ # Add dependencies to develop your gem here.
8
+ # Include everything needed to run rake, tests, features, etc.
9
+ group :development do
10
+ # gem "shoulda", ">= 0"
11
+ # gem "rdoc", "~> 3.12"
12
+ gem "bundler", "~> 1.0.0"
13
+ gem "jeweler", "~> 1.8.3"
14
+ # gem "rcov", ">= 0"
15
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,28 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ chunky_png (1.2.5)
5
+ compass (0.11.7)
6
+ chunky_png (~> 1.2)
7
+ fssm (>= 0.2.7)
8
+ sass (~> 3.1)
9
+ fssm (0.2.8.1)
10
+ git (1.2.5)
11
+ jeweler (1.8.3)
12
+ bundler (~> 1.0)
13
+ git (>= 1.2.5)
14
+ rake
15
+ rdoc
16
+ json (1.6.5)
17
+ rake (0.9.2.2)
18
+ rdoc (3.12)
19
+ json (~> 1.4)
20
+ sass (3.1.15)
21
+
22
+ PLATFORMS
23
+ ruby
24
+
25
+ DEPENDENCIES
26
+ bundler (~> 1.0.0)
27
+ compass
28
+ jeweler (~> 1.8.3)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Damian Le Nouaille
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ = compass-capucine
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to compass-capucine
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2012 Damian Le Nouaille. See LICENSE.txt for
18
+ further details.
19
+
data/Rakefile ADDED
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "compass-capucine"
18
+ gem.homepage = "http://github.com/damln/compass-capucine"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{Compass Plugin with helpers}
21
+ gem.description = %Q{Compass Plugin with helpers}
22
+ gem.email = "dam@dln.name"
23
+ gem.authors = ["Damian Le Nouaille"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ # require 'rake/testtask'
29
+ # Rake::TestTask.new(:test) do |test|
30
+ # test.libs << 'lib' << 'test'
31
+ # test.pattern = 'test/**/test_*.rb'
32
+ # test.verbose = true
33
+ # end
34
+
35
+ # require 'rcov/rcovtask'
36
+ # Rcov::RcovTask.new do |test|
37
+ # test.libs << 'test'
38
+ # test.pattern = 'test/**/test_*.rb'
39
+ # test.verbose = true
40
+ # test.rcov_opts << '--exclude "gems/*"'
41
+ # end
42
+
43
+ task :default => :test
44
+
45
+ # require 'rdoc/task'
46
+ # Rake::RDocTask.new do |rdoc|
47
+ # version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
+
49
+ # rdoc.rdoc_dir = 'rdoc'
50
+ # rdoc.title = "compass-capucine #{version}"
51
+ # rdoc.rdoc_files.include('README*')
52
+ # rdoc.rdoc_files.include('lib/**/*.rb')
53
+ # end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,59 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "compass-capucine"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Damian Le Nouaille"]
12
+ s.date = "2012-03-12"
13
+ s.description = "Compass Plugin with helpers"
14
+ s.email = "dam@dln.name"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE.txt",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "compass-capucine.gemspec",
27
+ "lib/compass-capucine.rb",
28
+ "stylesheets/_compass-capucine.scss",
29
+ "stylesheets/compass-capucine/_box.sass",
30
+ "stylesheets/compass-capucine/_helpers.sass",
31
+ "stylesheets/compass-capucine/_normalize.scss",
32
+ "stylesheets/compass-capucine/_print.sass",
33
+ "stylesheets/compass-capucine/_reset.sass"
34
+ ]
35
+ s.homepage = "http://github.com/damln/compass-capucine"
36
+ s.licenses = ["MIT"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = "1.8.15"
39
+ s.summary = "Compass Plugin with helpers"
40
+
41
+ if s.respond_to? :specification_version then
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<compass>, [">= 0"])
46
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
47
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
48
+ else
49
+ s.add_dependency(%q<compass>, [">= 0"])
50
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
51
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
52
+ end
53
+ else
54
+ s.add_dependency(%q<compass>, [">= 0"])
55
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
56
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
57
+ end
58
+ end
59
+
@@ -0,0 +1,5 @@
1
+ require 'compass'
2
+
3
+ name = 'compass-capucine'
4
+ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
5
+ Compass::Frameworks.register(name, :path => extension_path)
@@ -0,0 +1,4 @@
1
+ // @import "sass-capucine/reset"
2
+ @import "compass-capucine/print";
3
+ @import "compass-capucine/box";
4
+ @import "compass-capucine/helpers";
@@ -0,0 +1,52 @@
1
+ /*
2
+ +box
3
+ +circle
4
+ +square
5
+ +centerX
6
+ +centerXY
7
+ +min-max-width
8
+ +max-width
9
+
10
+ @import "compass/css3/border-radius"
11
+ @import "compass/utilities/general/min"
12
+
13
+ =box($width: 100px, $height: 50px, $display: false)
14
+ @if $display
15
+ display: $display
16
+
17
+ height: $height
18
+ width: $width
19
+
20
+ =circle($diam: 100px)
21
+ width: $diam
22
+ height: $diam
23
+ +border-radius($diam)
24
+
25
+ =square($size: 200px, $display: false)
26
+ @if $display
27
+ display: $display
28
+
29
+ width: $size
30
+ height: $size
31
+
32
+ =centerX()
33
+ margin: 0 auto
34
+ text-align: left
35
+
36
+ =centerXY($width: 100px,$height: 100px)
37
+ display: block
38
+ position: absolute
39
+ width: $width
40
+ height: $height
41
+ top: 50%
42
+ left: 50%
43
+ margin-top: -$height/2
44
+ margin-left: -$width/2
45
+
46
+ =max-width($max: 1100px)
47
+ max-width: $max
48
+ width: expression(document.body.clientWidth > parseInt("#{round($max)}") ? "#{$max}" : "auto")
49
+
50
+ =min-max-width($min: 400px, $max: 960px)
51
+ +min-width($min)
52
+ +max-width($max)
@@ -0,0 +1,108 @@
1
+ /*
2
+ +unselectable
3
+ +hidden
4
+ +visually-hidden
5
+ +clear-both
6
+ +scale
7
+ +selection
8
+ +pressed-effect
9
+ +vertical-gradient
10
+ +fake-helvetica
11
+ +smart-text-shadow
12
+
13
+ @import "compass/css3/images"
14
+ @import "compass/css3/text-shadow"
15
+
16
+ =unselectable()
17
+ -moz-user-select: -moz-none
18
+ -khtml-user-select: none
19
+ -webkit-user-select: none
20
+ user-select: none
21
+
22
+ =hidden()
23
+ display: none
24
+ visibility: hidden
25
+ overflow: hidden
26
+
27
+ =visually-hidden()
28
+ border: 0
29
+ padding: 0
30
+ clip: rect(0 0 0 0)
31
+ height: 1px
32
+ width: 1px
33
+ margin: -1px
34
+ overflow: hidden
35
+ position: absolute
36
+ &.focusable
37
+ &:active, &:focus
38
+ clip: auto
39
+ height: auto
40
+ padding: 0
41
+ margin: 0
42
+ overflow: visible
43
+ position: static
44
+ width: auto
45
+
46
+ =clear-both()
47
+ clear: both
48
+ display: block
49
+ zoom: 1
50
+ &:before, &:after
51
+ content: "\0020"
52
+ display: block
53
+ height: 0
54
+ overflow: hidden
55
+ &:after
56
+ clear: both
57
+
58
+ =scale()
59
+ max-width: 100%
60
+ height: auto
61
+
62
+ =selection($background: #111, $color: #fff)
63
+ ::-moz-selection
64
+ background: $background
65
+ color: $color
66
+
67
+ ::selection
68
+ background: $background
69
+ color: $color
70
+
71
+ =pressed-effect($top: 1px, $left: false, $right: false)
72
+ &:active
73
+ position: relative
74
+ top: $top
75
+
76
+ @if $left
77
+ left: $left
78
+ @if $right
79
+ right: $right
80
+
81
+ =vertical-gradient($top: #222, $bottom: #777)
82
+ +background-image(linear-gradient($top, $bottom))
83
+ +filter-gradient($top, $bottom)
84
+
85
+ =fake-helvetica($fonts: sans-serif)
86
+ font-family: Arial, $fonts
87
+ letter-spacing: -1px
88
+
89
+ =smart-text-shadow($color: #fff, $pixels: 1px)
90
+ +text-shadow($color 0 $pixels 0)
91
+
92
+ $capucine-helpers-classes: true !default
93
+ @if $capucine-helpers-classes == true
94
+
95
+ .unselectable
96
+ +unselectable
97
+
98
+ .hidden
99
+ +hidden
100
+
101
+ .visually-hidden
102
+ +visually-hidden
103
+
104
+ .cb
105
+ +clear-both
106
+
107
+ .scale
108
+ +scale
@@ -0,0 +1,504 @@
1
+ /*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
2
+
3
+ /* =============================================================================
4
+ HTML5 display definitions
5
+ ========================================================================== */
6
+
7
+ /*
8
+ * Corrects block display not defined in IE6/7/8/9 & FF3
9
+ */
10
+
11
+ article,
12
+ aside,
13
+ details,
14
+ figcaption,
15
+ figure,
16
+ footer,
17
+ header,
18
+ hgroup,
19
+ nav,
20
+ section,
21
+ summary {
22
+ display: block;
23
+ }
24
+
25
+ /*
26
+ * Corrects inline-block display not defined in IE6/7/8/9 & FF3
27
+ */
28
+
29
+ audio,
30
+ canvas,
31
+ video {
32
+ display: inline-block;
33
+ *display: inline;
34
+ *zoom: 1;
35
+ }
36
+
37
+ /*
38
+ * Prevents modern browsers from displaying 'audio' without controls
39
+ * Remove excess height in iOS5 devices
40
+ */
41
+
42
+ audio:not([controls]) {
43
+ display: none;
44
+ height: 0;
45
+ }
46
+
47
+ /*
48
+ * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
49
+ * Known issue: no IE6 support
50
+ */
51
+
52
+ [hidden] {
53
+ display: none;
54
+ }
55
+
56
+
57
+ /* =============================================================================
58
+ Base
59
+ ========================================================================== */
60
+
61
+ /*
62
+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
63
+ * http://clagnut.com/blog/348/#c790
64
+ * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
65
+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
66
+ */
67
+
68
+ html {
69
+ font-size: 100%; /* 1 */
70
+ -webkit-text-size-adjust: 100%; /* 2 */
71
+ -ms-text-size-adjust: 100%; /* 2 */
72
+ }
73
+
74
+ /*
75
+ * Addresses font-family inconsistency between 'textarea' and other form elements.
76
+ */
77
+
78
+ html,
79
+ button,
80
+ input,
81
+ select,
82
+ textarea {
83
+ font-family: sans-serif;
84
+ }
85
+
86
+ /*
87
+ * Addresses margins handled incorrectly in IE6/7
88
+ */
89
+
90
+ body {
91
+ margin: 0;
92
+ }
93
+
94
+
95
+ /* =============================================================================
96
+ Links
97
+ ========================================================================== */
98
+
99
+ /*
100
+ * Addresses outline displayed oddly in Chrome
101
+ */
102
+
103
+ a:focus {
104
+ outline: thin dotted;
105
+ }
106
+
107
+ /*
108
+ * Improves readability when focused and also mouse hovered in all browsers
109
+ * people.opera.com/patrickl/experiments/keyboard/test
110
+ */
111
+
112
+ a:hover,
113
+ a:active {
114
+ outline: 0;
115
+ }
116
+
117
+
118
+ /* =============================================================================
119
+ Typography
120
+ ========================================================================== */
121
+
122
+ /*
123
+ * Addresses font sizes and margins set differently in IE6/7
124
+ * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
125
+ */
126
+
127
+ h1 {
128
+ font-size: 2em;
129
+ margin: 0.67em 0;
130
+ }
131
+
132
+ h2 {
133
+ font-size: 1.5em;
134
+ margin: 0.83em 0;
135
+ }
136
+
137
+ h3 {
138
+ font-size: 1.17em;
139
+ margin: 1em 0;
140
+ }
141
+
142
+ h4 {
143
+ font-size: 1em;
144
+ margin: 1.33em 0;
145
+ }
146
+
147
+ h5 {
148
+ font-size: 0.83em;
149
+ margin: 1.67em 0;
150
+ }
151
+
152
+ h6 {
153
+ font-size: 0.75em;
154
+ margin: 2.33em 0;
155
+ }
156
+
157
+ /*
158
+ * Addresses styling not present in IE7/8/9, S5, Chrome
159
+ */
160
+
161
+ abbr[title] {
162
+ border-bottom: 1px dotted;
163
+ }
164
+
165
+ /*
166
+ * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
167
+ */
168
+
169
+ b,
170
+ strong {
171
+ font-weight: bold;
172
+ }
173
+
174
+ blockquote {
175
+ margin: 1em 40px;
176
+ }
177
+
178
+ /*
179
+ * Addresses styling not present in S5, Chrome
180
+ */
181
+
182
+ dfn {
183
+ font-style: italic;
184
+ }
185
+
186
+ /*
187
+ * Addresses styling not present in IE6/7/8/9
188
+ */
189
+
190
+ mark {
191
+ background: #ff0;
192
+ color: #000;
193
+ }
194
+
195
+ /*
196
+ * Addresses margins set differently in IE6/7
197
+ */
198
+
199
+ p,
200
+ pre {
201
+ margin: 1em 0;
202
+ }
203
+
204
+ /*
205
+ * Corrects font family set oddly in IE6, S4/5, Chrome
206
+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
207
+ */
208
+
209
+ pre,
210
+ code,
211
+ kbd,
212
+ samp {
213
+ font-family: monospace, serif;
214
+ _font-family: 'courier new', monospace;
215
+ font-size: 1em;
216
+ }
217
+
218
+ /*
219
+ * Improves readability of pre-formatted text in all browsers
220
+ */
221
+
222
+ pre {
223
+ white-space: pre;
224
+ white-space: pre-wrap;
225
+ word-wrap: break-word;
226
+ }
227
+
228
+ /*
229
+ * 1. Addresses CSS quotes not supported in IE6/7
230
+ * 2. Addresses quote property not supported in S4
231
+ */
232
+
233
+ /* 1 */
234
+
235
+ q {
236
+ quotes: none;
237
+ }
238
+
239
+ /* 2 */
240
+
241
+ q:before,
242
+ q:after {
243
+ content: '';
244
+ content: none;
245
+ }
246
+
247
+ small {
248
+ font-size: 75%;
249
+ }
250
+
251
+ /*
252
+ * Prevents sub and sup affecting line-height in all browsers
253
+ * gist.github.com/413930
254
+ */
255
+
256
+ sub,
257
+ sup {
258
+ font-size: 75%;
259
+ line-height: 0;
260
+ position: relative;
261
+ vertical-align: baseline;
262
+ }
263
+
264
+ sup {
265
+ top: -0.5em;
266
+ }
267
+
268
+ sub {
269
+ bottom: -0.25em;
270
+ }
271
+
272
+
273
+ /* =============================================================================
274
+ Lists
275
+ ========================================================================== */
276
+
277
+ /*
278
+ * Addresses margins set differently in IE6/7
279
+ */
280
+
281
+ dl,
282
+ menu,
283
+ ol,
284
+ ul {
285
+ margin: 1em 0;
286
+ }
287
+
288
+ dd {
289
+ margin: 0 0 0 40px;
290
+ }
291
+
292
+ /*
293
+ * Addresses paddings set differently in IE6/7
294
+ */
295
+
296
+ menu,
297
+ ol,
298
+ ul {
299
+ padding: 0 0 0 40px;
300
+ }
301
+
302
+ /*
303
+ * Corrects list images handled incorrectly in IE7
304
+ */
305
+
306
+ nav ul,
307
+ nav ol {
308
+ list-style: none;
309
+ list-style-image: none;
310
+ }
311
+
312
+
313
+ /* =============================================================================
314
+ Embedded content
315
+ ========================================================================== */
316
+
317
+ /*
318
+ * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
319
+ * 2. Improves image quality when scaled in IE7
320
+ * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
321
+ */
322
+
323
+ img {
324
+ border: 0; /* 1 */
325
+ -ms-interpolation-mode: bicubic; /* 2 */
326
+ }
327
+
328
+ /*
329
+ * Corrects overflow displayed oddly in IE9
330
+ */
331
+
332
+ svg:not(:root) {
333
+ overflow: hidden;
334
+ }
335
+
336
+
337
+ /* =============================================================================
338
+ Figures
339
+ ========================================================================== */
340
+
341
+ /*
342
+ * Addresses margin not present in IE6/7/8/9, S5, O11
343
+ */
344
+
345
+ figure {
346
+ margin: 0;
347
+ }
348
+
349
+
350
+ /* =============================================================================
351
+ Forms
352
+ ========================================================================== */
353
+
354
+ /*
355
+ * Corrects margin displayed oddly in IE6/7
356
+ */
357
+
358
+ form {
359
+ margin: 0;
360
+ }
361
+
362
+ /*
363
+ * Define consistent border, margin, and padding
364
+ */
365
+
366
+ fieldset {
367
+ border: 1px solid #c0c0c0;
368
+ margin: 0 2px;
369
+ padding: 0.35em 0.625em 0.75em;
370
+ }
371
+
372
+ /*
373
+ * 1. Corrects color not being inherited in IE6/7/8/9
374
+ * 2. Corrects text not wrapping in FF3
375
+ * 3. Corrects alignment displayed oddly in IE6/7
376
+ */
377
+
378
+ legend {
379
+ border: 0; /* 1 */
380
+ padding: 0;
381
+ white-space: normal; /* 2 */
382
+ *margin-left: -7px; /* 3 */
383
+ }
384
+
385
+ /*
386
+ * 1. Corrects font size not being inherited in all browsers
387
+ * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
388
+ * 3. Improves appearance and consistency in all browsers
389
+ */
390
+
391
+ button,
392
+ input,
393
+ select,
394
+ textarea {
395
+ font-size: 100%; /* 1 */
396
+ margin: 0; /* 2 */
397
+ vertical-align: baseline; /* 3 */
398
+ *vertical-align: middle; /* 3 */
399
+ }
400
+
401
+ /*
402
+ * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
403
+ */
404
+
405
+ button,
406
+ input {
407
+ line-height: normal; /* 1 */
408
+ }
409
+
410
+ /*
411
+ * 1. Improves usability and consistency of cursor style between image-type 'input' and others
412
+ * 2. Corrects inability to style clickable 'input' types in iOS
413
+ * 3. Removes inner spacing in IE7 without affecting normal text inputs
414
+ * Known issue: inner spacing remains in IE6
415
+ */
416
+
417
+ button,
418
+ input[type="button"],
419
+ input[type="reset"],
420
+ input[type="submit"] {
421
+ cursor: pointer; /* 1 */
422
+ -webkit-appearance: button; /* 2 */
423
+ *overflow: visible; /* 3 */
424
+ }
425
+
426
+ /*
427
+ * Re-set default cursor for disabled elements
428
+ */
429
+
430
+ button[disabled],
431
+ input[disabled] {
432
+ cursor: default;
433
+ }
434
+
435
+ /*
436
+ * 1. Addresses box sizing set to content-box in IE8/9
437
+ * 2. Removes excess padding in IE8/9
438
+ * 3. Removes excess padding in IE7
439
+ Known issue: excess padding remains in IE6
440
+ */
441
+
442
+ input[type="checkbox"],
443
+ input[type="radio"] {
444
+ box-sizing: border-box; /* 1 */
445
+ padding: 0; /* 2 */
446
+ *height: 13px; /* 3 */
447
+ *width: 13px; /* 3 */
448
+ }
449
+
450
+ /*
451
+ * 1. Addresses appearance set to searchfield in S5, Chrome
452
+ * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
453
+ */
454
+
455
+ input[type="search"] {
456
+ -webkit-appearance: textfield; /* 1 */
457
+ -moz-box-sizing: content-box;
458
+ -webkit-box-sizing: content-box; /* 2 */
459
+ box-sizing: content-box;
460
+ }
461
+
462
+ /*
463
+ * Removes inner padding and search cancel button in S5, Chrome on OS X
464
+ */
465
+
466
+ input[type="search"]::-webkit-search-decoration,
467
+ input[type="search"]::-webkit-search-cancel-button {
468
+ -webkit-appearance: none;
469
+ }
470
+
471
+ /*
472
+ * Removes inner padding and border in FF3+
473
+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
474
+ */
475
+
476
+ button::-moz-focus-inner,
477
+ input::-moz-focus-inner {
478
+ border: 0;
479
+ padding: 0;
480
+ }
481
+
482
+ /*
483
+ * 1. Removes default vertical scrollbar in IE6/7/8/9
484
+ * 2. Improves readability and alignment in all browsers
485
+ */
486
+
487
+ textarea {
488
+ overflow: auto; /* 1 */
489
+ vertical-align: top; /* 2 */
490
+ }
491
+
492
+
493
+ /* =============================================================================
494
+ Tables
495
+ ========================================================================== */
496
+
497
+ /*
498
+ * Remove most spacing between table cells
499
+ */
500
+
501
+ table {
502
+ border-collapse: collapse;
503
+ border-spacing: 0;
504
+ }
@@ -0,0 +1,39 @@
1
+ @media print
2
+ *
3
+ background: transparent !important
4
+ color: black !important
5
+ text-shadow: none !important
6
+ filter: none !important
7
+ -ms-filter: none !important
8
+ a
9
+ color: #444 !important
10
+ text-decoration: underline
11
+ &:visited
12
+ color: #444 !important
13
+ text-decoration: underline
14
+ &[href]:after
15
+ content: " (" attr(href) ")"
16
+ abbr[title]:after
17
+ content: " (" attr(title) ")"
18
+ .ir a:after
19
+ content: ""
20
+ a
21
+ &[href^="javascript:"]:after, &[href^="#"]:after
22
+ content: ""
23
+ pre, blockquote
24
+ border: 1px solid #999
25
+ page-break-inside: avoid
26
+ thead
27
+ display: table-header-group
28
+ tr, img
29
+ page-break-inside: avoid
30
+
31
+ @page
32
+ margin: 0.5cm
33
+
34
+ p, h2, h3
35
+ orphans: 3
36
+ widows: 3
37
+ h2, h3
38
+ page-break-after: avoid
39
+
@@ -0,0 +1,177 @@
1
+ // Based on HTML5 BOILERPLATE
2
+
3
+ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, hr, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, 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
4
+ margin: 0
5
+ padding: 0
6
+ border: 0
7
+ font-size: 100%
8
+ font-weight: normal
9
+ font-style: normal
10
+ font-family: inherit
11
+ line-height: 1
12
+ vertical-align: baseline
13
+ background: transparent
14
+
15
+ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, hr
16
+ display: block
17
+
18
+ audio, canvas, video
19
+ display: inline-block
20
+ *display: inline
21
+ *zoom: 1
22
+
23
+ audio:not([controls]), [hidden]
24
+ display: none
25
+
26
+ svg:not(:root)
27
+ overflow: hidden
28
+
29
+ html
30
+ overflow-y: scroll
31
+ -webkit-text-size-adjust: 100%
32
+ -ms-text-size-adjust: 100%
33
+
34
+ body
35
+ line-height: 1
36
+ font-size: 1em
37
+ -webkit-text-size-adjust: 100%
38
+
39
+ -moz-font-smoothing: antialiased
40
+ -o-font-smoothing: antialiased
41
+ -webkit-font-smoothing: antialiased
42
+ font-smoothing: always
43
+ // NOT antialiased but always http://www.w3.org/TR/WD-font/#font-smooth-prop
44
+
45
+ i, em
46
+ font-style: italic
47
+
48
+ h1, h2, h3, h4, h5, h6, p, a, i, td
49
+ font-weight: normal
50
+ font-size: 100%
51
+
52
+ blockquote, q
53
+ quotes: none
54
+ &:before, &:after
55
+ content: ""
56
+ content: none
57
+
58
+ ins, a, a:hover, a:active
59
+ text-decoration: none
60
+ outline: none
61
+
62
+ del
63
+ text-decoration: line-through
64
+
65
+ abbr[title], dfn[title]
66
+ border: 0
67
+ cursor: help
68
+
69
+ table
70
+ border-collapse: collapse
71
+ border-spacing: 0
72
+
73
+ figure
74
+ margin: 0
75
+
76
+ pre, code, kbd, samp
77
+ font-family: monospace, sans-serif
78
+ font-family: 'courier new', monospace
79
+ font-size: 1em
80
+
81
+ ul, li, ol
82
+ list-style: none
83
+ list-style-image: none
84
+
85
+ small
86
+ font-size: 0.85em
87
+
88
+ strong, th, b
89
+ font-weight: bold
90
+
91
+ td, th
92
+ vertical-align: top
93
+ text-align: left
94
+
95
+ sub, sup
96
+ font-size: 0.75em
97
+ line-height: 0
98
+ position: relative
99
+
100
+ sub
101
+ bottom: -0.25em
102
+
103
+ sup
104
+ top: -0.5em
105
+
106
+ img
107
+ border: 0
108
+ -ms-interpolation-mode: bicubic
109
+
110
+ pre
111
+ white-space: pre
112
+ white-space: pre-wrap
113
+ word-wrap: break-word
114
+
115
+ address
116
+ font-style: normal
117
+
118
+ // Firefox bug
119
+ caption
120
+ text-align: left
121
+
122
+ // ----------------------------
123
+ // Inputs :
124
+
125
+ button, input
126
+ line-height: 1
127
+ cursor: pointer
128
+ *overflow: visible
129
+
130
+ input, select
131
+ vertical-align: middle
132
+
133
+ input[type="search"]::-webkit-search-decoration
134
+ -webkit-appearance: none
135
+
136
+ input
137
+ &[type="radio"]
138
+ vertical-align: text-bottom
139
+ &[type="text"]
140
+ cursor: text
141
+ &[type="checkbox"]
142
+ vertical-align: bottom
143
+ &[type="search"]
144
+ -webkit-appearance: textfield
145
+ -webkit-box-sizing: content-box
146
+ -moz-box-sizing: content-box
147
+ box-sizing: content-box
148
+
149
+ textarea
150
+ vertical-align: top
151
+ overflow: auto
152
+ resize: none
153
+
154
+ input, textarea
155
+ padding: 0
156
+ border: 1px solid #A9A9A9
157
+ border: 0
158
+
159
+ // Chrome blue glow :
160
+ select, option, input, textarea, button
161
+ outline: none
162
+ font: inherit
163
+ font-size: 0.99em
164
+
165
+ // ----------[ IE WORLD ]-------------------
166
+ .ie6 hr, .ie7 hr
167
+ margin-top: -0.5em
168
+
169
+ .ie6 legend, .ie7 legend
170
+ margin-left: -7px
171
+
172
+ .ie7 input[type="checkbox"]
173
+ vertical-align: baseline
174
+
175
+ .ie6 input
176
+ vertical-align: text-bottom
177
+
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: compass-capucine
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Damian Le Nouaille
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: compass
16
+ requirement: &70319774797260 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70319774797260
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &70319774796460 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70319774796460
36
+ - !ruby/object:Gem::Dependency
37
+ name: jeweler
38
+ requirement: &70319774795760 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.8.3
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70319774795760
47
+ description: Compass Plugin with helpers
48
+ email: dam@dln.name
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files:
52
+ - LICENSE.txt
53
+ - README.rdoc
54
+ files:
55
+ - Gemfile
56
+ - Gemfile.lock
57
+ - LICENSE.txt
58
+ - README.rdoc
59
+ - Rakefile
60
+ - VERSION
61
+ - compass-capucine.gemspec
62
+ - lib/compass-capucine.rb
63
+ - stylesheets/_compass-capucine.scss
64
+ - stylesheets/compass-capucine/_box.sass
65
+ - stylesheets/compass-capucine/_helpers.sass
66
+ - stylesheets/compass-capucine/_normalize.scss
67
+ - stylesheets/compass-capucine/_print.sass
68
+ - stylesheets/compass-capucine/_reset.sass
69
+ homepage: http://github.com/damln/compass-capucine
70
+ licenses:
71
+ - MIT
72
+ post_install_message:
73
+ rdoc_options: []
74
+ require_paths:
75
+ - lib
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ segments:
83
+ - 0
84
+ hash: -3162231155092011644
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubyforge_project:
93
+ rubygems_version: 1.8.15
94
+ signing_key:
95
+ specification_version: 3
96
+ summary: Compass Plugin with helpers
97
+ test_files: []