ruby-clean-css 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. data/.gitmodules +3 -0
  2. data/EXAMPLE.md +25 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +30 -0
  5. data/LICENSE +19 -0
  6. data/README.md +106 -0
  7. data/lib/javascript/clean-css/.gitignore +4 -0
  8. data/lib/javascript/clean-css/.jshintignore +3 -0
  9. data/lib/javascript/clean-css/.jshintrc +14 -0
  10. data/lib/javascript/clean-css/.travis.yml +11 -0
  11. data/lib/javascript/clean-css/History.md +556 -0
  12. data/lib/javascript/clean-css/LICENSE +19 -0
  13. data/lib/javascript/clean-css/README.md +218 -0
  14. data/lib/javascript/clean-css/bin/cleancss +157 -0
  15. data/lib/javascript/clean-css/index.js +1 -0
  16. data/lib/javascript/clean-css/lib/clean.js +426 -0
  17. data/lib/javascript/clean-css/lib/colors/hsl-to-hex.js +64 -0
  18. data/lib/javascript/clean-css/lib/colors/long-to-short-hex.js +12 -0
  19. data/lib/javascript/clean-css/lib/colors/rgb-to-hex.js +14 -0
  20. data/lib/javascript/clean-css/lib/colors/shortener.js +174 -0
  21. data/lib/javascript/clean-css/lib/images/url-rebase.js +32 -0
  22. data/lib/javascript/clean-css/lib/images/url-rewriter.js +60 -0
  23. data/lib/javascript/clean-css/lib/imports/inliner.js +319 -0
  24. data/lib/javascript/clean-css/lib/properties/optimizer.js +276 -0
  25. data/lib/javascript/clean-css/lib/properties/override-compactor.js +116 -0
  26. data/lib/javascript/clean-css/lib/properties/processable.js +859 -0
  27. data/lib/javascript/clean-css/lib/properties/scanner.js +20 -0
  28. data/lib/javascript/clean-css/lib/properties/shorthand-compactor.js +244 -0
  29. data/lib/javascript/clean-css/lib/properties/token.js +184 -0
  30. data/lib/javascript/clean-css/lib/properties/validator.js +140 -0
  31. data/lib/javascript/clean-css/lib/selectors/empty-removal.js +30 -0
  32. data/lib/javascript/clean-css/lib/selectors/optimizer.js +341 -0
  33. data/lib/javascript/clean-css/lib/selectors/tokenizer.js +168 -0
  34. data/lib/javascript/clean-css/lib/text/comments.js +83 -0
  35. data/lib/javascript/clean-css/lib/text/escape-store.js +32 -0
  36. data/lib/javascript/clean-css/lib/text/expressions.js +73 -0
  37. data/lib/javascript/clean-css/lib/text/free.js +26 -0
  38. data/lib/javascript/clean-css/lib/text/name-quotes.js +37 -0
  39. data/lib/javascript/clean-css/lib/text/quote-scanner.js +91 -0
  40. data/lib/javascript/clean-css/lib/text/splitter.js +35 -0
  41. data/lib/javascript/clean-css/lib/text/urls.js +41 -0
  42. data/lib/javascript/clean-css/package.json +50 -0
  43. data/lib/javascript/clean-css/test/batch-test.js +56 -0
  44. data/lib/javascript/clean-css/test/bench.js +11 -0
  45. data/lib/javascript/clean-css/test/binary-test.js +323 -0
  46. data/lib/javascript/clean-css/test/data-bench/_partial.css +1 -0
  47. data/lib/javascript/clean-css/test/data-bench/complex.css +4 -0
  48. data/lib/javascript/clean-css/test/data/129-assets/assets/ui.css +2 -0
  49. data/lib/javascript/clean-css/test/data/129-assets/components/bootstrap/css/bootstrap.css +3 -0
  50. data/lib/javascript/clean-css/test/data/129-assets/components/bootstrap/images/glyphs.gif +0 -0
  51. data/lib/javascript/clean-css/test/data/129-assets/components/jquery-ui/css/style.css +6 -0
  52. data/lib/javascript/clean-css/test/data/129-assets/components/jquery-ui/images/next.gif +0 -0
  53. data/lib/javascript/clean-css/test/data/129-assets/components/jquery-ui/images/prev.gif +0 -0
  54. data/lib/javascript/clean-css/test/data/960-min.css +125 -0
  55. data/lib/javascript/clean-css/test/data/960.css +602 -0
  56. data/lib/javascript/clean-css/test/data/big-min.css +2984 -0
  57. data/lib/javascript/clean-css/test/data/big.css +13794 -0
  58. data/lib/javascript/clean-css/test/data/blueprint-min.css +245 -0
  59. data/lib/javascript/clean-css/test/data/blueprint.css +556 -0
  60. data/lib/javascript/clean-css/test/data/charset-mixed-with-fonts-min.css +3 -0
  61. data/lib/javascript/clean-css/test/data/charset-mixed-with-fonts.css +14 -0
  62. data/lib/javascript/clean-css/test/data/font-awesome-ie7-min.css +392 -0
  63. data/lib/javascript/clean-css/test/data/font-awesome-ie7.css +1203 -0
  64. data/lib/javascript/clean-css/test/data/font-awesome-min.css +319 -0
  65. data/lib/javascript/clean-css/test/data/font-awesome.css +540 -0
  66. data/lib/javascript/clean-css/test/data/imports-min.css +5 -0
  67. data/lib/javascript/clean-css/test/data/imports.css +4 -0
  68. data/lib/javascript/clean-css/test/data/issue-117-snippet-min.css +3 -0
  69. data/lib/javascript/clean-css/test/data/issue-117-snippet.css +19 -0
  70. data/lib/javascript/clean-css/test/data/issue-159-snippet-min.css +7 -0
  71. data/lib/javascript/clean-css/test/data/issue-159-snippet.css +7 -0
  72. data/lib/javascript/clean-css/test/data/issue-192-min.css +1 -0
  73. data/lib/javascript/clean-css/test/data/issue-192.css +8 -0
  74. data/lib/javascript/clean-css/test/data/issue-198-min.css +3 -0
  75. data/lib/javascript/clean-css/test/data/issue-198.css +4 -0
  76. data/lib/javascript/clean-css/test/data/issue-232-min.css +2 -0
  77. data/lib/javascript/clean-css/test/data/issue-232.css +17 -0
  78. data/lib/javascript/clean-css/test/data/issue-241-min.css +2 -0
  79. data/lib/javascript/clean-css/test/data/issue-241.css +2 -0
  80. data/lib/javascript/clean-css/test/data/issue-304-min.css +1 -0
  81. data/lib/javascript/clean-css/test/data/issue-304.css +4 -0
  82. data/lib/javascript/clean-css/test/data/issue-305-min.css +1 -0
  83. data/lib/javascript/clean-css/test/data/issue-305.css +3 -0
  84. data/lib/javascript/clean-css/test/data/issue-308-min.css +1 -0
  85. data/lib/javascript/clean-css/test/data/issue-308.css +5 -0
  86. data/lib/javascript/clean-css/test/data/issue-312-min.css +1 -0
  87. data/lib/javascript/clean-css/test/data/issue-312.css +7 -0
  88. data/lib/javascript/clean-css/test/data/issue-337-min.css +1 -0
  89. data/lib/javascript/clean-css/test/data/issue-337.css +4 -0
  90. data/lib/javascript/clean-css/test/data/line-breaks-in-attributes-min.css +2 -0
  91. data/lib/javascript/clean-css/test/data/line-breaks-in-attributes.css +8 -0
  92. data/lib/javascript/clean-css/test/data/partials-absolute/base.css +3 -0
  93. data/lib/javascript/clean-css/test/data/partials-absolute/base2.css +1 -0
  94. data/lib/javascript/clean-css/test/data/partials-absolute/extra/sub.css +3 -0
  95. data/lib/javascript/clean-css/test/data/partials-relative/base.css +3 -0
  96. data/lib/javascript/clean-css/test/data/partials-relative/extra/included.css +1 -0
  97. data/lib/javascript/clean-css/test/data/partials/comment.css +2 -0
  98. data/lib/javascript/clean-css/test/data/partials/extra/down.gif +0 -0
  99. data/lib/javascript/clean-css/test/data/partials/extra/four.css +3 -0
  100. data/lib/javascript/clean-css/test/data/partials/extra/three.css +1 -0
  101. data/lib/javascript/clean-css/test/data/partials/five.css +1 -0
  102. data/lib/javascript/clean-css/test/data/partials/four.css +1 -0
  103. data/lib/javascript/clean-css/test/data/partials/one.css +1 -0
  104. data/lib/javascript/clean-css/test/data/partials/three.css +1 -0
  105. data/lib/javascript/clean-css/test/data/partials/two.css +5 -0
  106. data/lib/javascript/clean-css/test/data/reset-min.css +12 -0
  107. data/lib/javascript/clean-css/test/data/reset.css +64 -0
  108. data/lib/javascript/clean-css/test/data/sample1-min.css +4 -0
  109. data/lib/javascript/clean-css/test/data/sample1.css +12 -0
  110. data/lib/javascript/clean-css/test/data/unsupported/selectors-ie7.css +20 -0
  111. data/lib/javascript/clean-css/test/data/unsupported/selectors-ie8.css +17 -0
  112. data/lib/javascript/clean-css/test/module-test.js +185 -0
  113. data/lib/javascript/clean-css/test/protocol-imports-test.js +409 -0
  114. data/lib/javascript/clean-css/test/text/splitter-test.js +20 -0
  115. data/lib/javascript/clean-css/test/unit-test.js +2071 -0
  116. data/lib/ruby-clean-css.rb +6 -0
  117. data/lib/ruby-clean-css/compressor.rb +142 -0
  118. data/lib/ruby-clean-css/exports.rb +258 -0
  119. data/lib/ruby-clean-css/railtie.rb +27 -0
  120. data/lib/ruby-clean-css/sprockets.rb +19 -0
  121. data/lib/ruby-clean-css/version.rb +5 -0
  122. data/ruby-clean-css.gemspec +30 -0
  123. data/test/test_compressor.rb +84 -0
  124. metadata +203 -0
@@ -0,0 +1,602 @@
1
+ /*
2
+ 960 Grid System ~ Core CSS.
3
+ Learn more ~ http://960.gs/
4
+
5
+ Licensed under GPL and MIT.
6
+ */
7
+
8
+ /* `Container >> 24 Columns
9
+ ----------------------------------------------------------------------------------------------------*/
10
+ .container_24 {
11
+ margin-right: auto;
12
+ margin-left: auto;
13
+ width: 960px;
14
+ }
15
+
16
+ /* `Grid >> Global
17
+ ----------------------------------------------------------------------------------------------------*/
18
+
19
+ .grid_1,
20
+ .grid_2,
21
+ .grid_3,
22
+ .grid_4,
23
+ .grid_5,
24
+ .grid_6,
25
+ .grid_7,
26
+ .grid_8,
27
+ .grid_9,
28
+ .grid_10,
29
+ .grid_11,
30
+ .grid_12,
31
+ .grid_13,
32
+ .grid_14,
33
+ .grid_15,
34
+ .grid_16,
35
+ .grid_17,
36
+ .grid_18,
37
+ .grid_19,
38
+ .grid_20,
39
+ .grid_21,
40
+ .grid_22,
41
+ .grid_23,
42
+ .grid_24 {
43
+ display: inline;
44
+ float: right;
45
+ margin-right: 5px;
46
+ margin-left: 5px;
47
+ }
48
+
49
+ .push_1, .pull_1,
50
+ .push_2, .pull_2,
51
+ .push_3, .pull_3,
52
+ .push_4, .pull_4,
53
+ .push_5, .pull_5,
54
+ .push_6, .pull_6,
55
+ .push_7, .pull_7,
56
+ .push_8, .pull_8,
57
+ .push_9, .pull_9,
58
+ .push_10, .pull_10,
59
+ .push_11, .pull_11,
60
+ .push_12, .pull_12,
61
+ .push_13, .pull_13,
62
+ .push_14, .pull_14,
63
+ .push_15, .pull_15,
64
+ .push_16, .pull_16,
65
+ .push_17, .pull_17,
66
+ .push_18, .pull_18,
67
+ .push_19, .pull_19,
68
+ .push_20, .pull_20,
69
+ .push_21, .pull_21,
70
+ .push_22, .pull_22,
71
+ .push_23, .pull_23 {
72
+ position: relative;
73
+ }
74
+
75
+ /* `Grid >> Children (Alpha ~ First, Omega ~ Last)
76
+ ----------------------------------------------------------------------------------------------------*/
77
+
78
+ .alpha {
79
+ margin-right: 0;
80
+ }
81
+
82
+ .omega {
83
+ margin-left: 0;
84
+ }
85
+
86
+ /* `Grid >> 24 Columns
87
+ ----------------------------------------------------------------------------------------------------*/
88
+
89
+ .container_24 .grid_1 {
90
+ width: 30px;
91
+ }
92
+
93
+ .container_24 .grid_2 {
94
+ width: 70px;
95
+ }
96
+
97
+ .container_24 .grid_3 {
98
+ width: 110px;
99
+ }
100
+
101
+ .container_24 .grid_4 {
102
+ width: 150px;
103
+ }
104
+
105
+ .container_24 .grid_5 {
106
+ width: 190px;
107
+ }
108
+
109
+ .container_24 .grid_6 {
110
+ width: 230px;
111
+ }
112
+
113
+ .container_24 .grid_7 {
114
+ width: 270px;
115
+ }
116
+
117
+ .container_24 .grid_8 {
118
+ width: 310px;
119
+ }
120
+
121
+ .container_24 .grid_9 {
122
+ width: 350px;
123
+ }
124
+
125
+ .container_24 .grid_10 {
126
+ width: 390px;
127
+ }
128
+
129
+ .container_24 .grid_11 {
130
+ width: 430px;
131
+ }
132
+
133
+ .container_24 .grid_12 {
134
+ width: 470px;
135
+ }
136
+
137
+ .container_24 .grid_13 {
138
+ width: 510px;
139
+ }
140
+
141
+ .container_24 .grid_14 {
142
+ width: 550px;
143
+ }
144
+
145
+ .container_24 .grid_15 {
146
+ width: 590px;
147
+ }
148
+
149
+ .container_24 .grid_16 {
150
+ width: 630px;
151
+ }
152
+
153
+ .container_24 .grid_17 {
154
+ width: 670px;
155
+ }
156
+
157
+ .container_24 .grid_18 {
158
+ width: 710px;
159
+ }
160
+
161
+ .container_24 .grid_19 {
162
+ width: 750px;
163
+ }
164
+
165
+ .container_24 .grid_20 {
166
+ width: 790px;
167
+ }
168
+
169
+ .container_24 .grid_21 {
170
+ width: 830px;
171
+ }
172
+
173
+ .container_24 .grid_22 {
174
+ width: 870px;
175
+ }
176
+
177
+ .container_24 .grid_23 {
178
+ width: 910px;
179
+ }
180
+
181
+ .container_24 .grid_24 {
182
+ width: 950px;
183
+ }
184
+
185
+ /* `Prefix Extra Space >> 24 Columns
186
+ ----------------------------------------------------------------------------------------------------*/
187
+
188
+ .container_24 .prefix_1 {
189
+ padding-right: 40px;
190
+ }
191
+
192
+ .container_24 .prefix_2 {
193
+ padding-right: 80px;
194
+ }
195
+
196
+ .container_24 .prefix_3 {
197
+ padding-right: 120px;
198
+ }
199
+
200
+ .container_24 .prefix_4 {
201
+ padding-right: 160px;
202
+ }
203
+
204
+ .container_24 .prefix_5 {
205
+ padding-right: 200px;
206
+ }
207
+
208
+ .container_24 .prefix_6 {
209
+ padding-right: 240px;
210
+ }
211
+
212
+ .container_24 .prefix_7 {
213
+ padding-right: 280px;
214
+ }
215
+
216
+ .container_24 .prefix_8 {
217
+ padding-right: 320px;
218
+ }
219
+
220
+ .container_24 .prefix_9 {
221
+ padding-right: 360px;
222
+ }
223
+
224
+ .container_24 .prefix_10 {
225
+ padding-right: 400px;
226
+ }
227
+
228
+ .container_24 .prefix_11 {
229
+ padding-right: 440px;
230
+ }
231
+
232
+ .container_24 .prefix_12 {
233
+ padding-right: 480px;
234
+ }
235
+
236
+ .container_24 .prefix_13 {
237
+ padding-right: 520px;
238
+ }
239
+
240
+ .container_24 .prefix_14 {
241
+ padding-right: 560px;
242
+ }
243
+
244
+ .container_24 .prefix_15 {
245
+ padding-right: 600px;
246
+ }
247
+
248
+ .container_24 .prefix_16 {
249
+ padding-right: 640px;
250
+ }
251
+
252
+ .container_24 .prefix_17 {
253
+ padding-right: 680px;
254
+ }
255
+
256
+ .container_24 .prefix_18 {
257
+ padding-right: 720px;
258
+ }
259
+
260
+ .container_24 .prefix_19 {
261
+ padding-right: 760px;
262
+ }
263
+
264
+ .container_24 .prefix_20 {
265
+ padding-right: 800px;
266
+ }
267
+
268
+ .container_24 .prefix_21 {
269
+ padding-right: 840px;
270
+ }
271
+
272
+ .container_24 .prefix_22 {
273
+ padding-right: 880px;
274
+ }
275
+
276
+ .container_24 .prefix_23 {
277
+ padding-right: 920px;
278
+ }
279
+
280
+ /* `Suffix Extra Space >> 24 Columns
281
+ ----------------------------------------------------------------------------------------------------*/
282
+
283
+ .container_24 .suffix_1 {
284
+ padding-left: 40px;
285
+ }
286
+
287
+ .container_24 .suffix_2 {
288
+ padding-left: 80px;
289
+ }
290
+
291
+ .container_24 .suffix_3 {
292
+ padding-left: 120px;
293
+ }
294
+
295
+ .container_24 .suffix_4 {
296
+ padding-left: 160px;
297
+ }
298
+
299
+ .container_24 .suffix_5 {
300
+ padding-left: 200px;
301
+ }
302
+
303
+ .container_24 .suffix_6 {
304
+ padding-left: 240px;
305
+ }
306
+
307
+ .container_24 .suffix_7 {
308
+ padding-left: 280px;
309
+ }
310
+
311
+ .container_24 .suffix_8 {
312
+ padding-left: 320px;
313
+ }
314
+
315
+ .container_24 .suffix_9 {
316
+ padding-left: 360px;
317
+ }
318
+
319
+ .container_24 .suffix_10 {
320
+ padding-left: 400px;
321
+ }
322
+
323
+ .container_24 .suffix_11 {
324
+ padding-left: 440px;
325
+ }
326
+
327
+ .container_24 .suffix_12 {
328
+ padding-left: 480px;
329
+ }
330
+
331
+ .container_24 .suffix_13 {
332
+ padding-left: 520px;
333
+ }
334
+
335
+ .container_24 .suffix_14 {
336
+ padding-left: 560px;
337
+ }
338
+
339
+ .container_24 .suffix_15 {
340
+ padding-left: 600px;
341
+ }
342
+
343
+ .container_24 .suffix_16 {
344
+ padding-left: 640px;
345
+ }
346
+
347
+ .container_24 .suffix_17 {
348
+ padding-left: 680px;
349
+ }
350
+
351
+ .container_24 .suffix_18 {
352
+ padding-left: 720px;
353
+ }
354
+
355
+ .container_24 .suffix_19 {
356
+ padding-left: 760px;
357
+ }
358
+
359
+ .container_24 .suffix_20 {
360
+ padding-left: 800px;
361
+ }
362
+
363
+ .container_24 .suffix_21 {
364
+ padding-left: 840px;
365
+ }
366
+
367
+ .container_24 .suffix_22 {
368
+ padding-left: 880px;
369
+ }
370
+
371
+ .container_24 .suffix_23 {
372
+ padding-left: 920px;
373
+ }
374
+
375
+ /* `Push Space >> 24 Columns
376
+ ----------------------------------------------------------------------------------------------------*/
377
+
378
+ .container_24 .push_1 {
379
+ right: 40px;
380
+ }
381
+
382
+ .container_24 .push_2 {
383
+ right: 80px;
384
+ }
385
+
386
+ .container_24 .push_3 {
387
+ right: 120px;
388
+ }
389
+
390
+ .container_24 .push_4 {
391
+ right: 160px;
392
+ }
393
+
394
+ .container_24 .push_5 {
395
+ right: 200px;
396
+ }
397
+
398
+ .container_24 .push_6 {
399
+ right: 240px;
400
+ }
401
+
402
+ .container_24 .push_7 {
403
+ right: 280px;
404
+ }
405
+
406
+ .container_24 .push_8 {
407
+ right: 320px;
408
+ }
409
+
410
+ .container_24 .push_9 {
411
+ right: 360px;
412
+ }
413
+
414
+ .container_24 .push_10 {
415
+ right: 400px;
416
+ }
417
+
418
+ .container_24 .push_11 {
419
+ right: 440px;
420
+ }
421
+
422
+ .container_24 .push_12 {
423
+ right: 480px;
424
+ }
425
+
426
+ .container_24 .push_13 {
427
+ right: 520px;
428
+ }
429
+
430
+ .container_24 .push_14 {
431
+ right: 560px;
432
+ }
433
+
434
+ .container_24 .push_15 {
435
+ right: 600px;
436
+ }
437
+
438
+ .container_24 .push_16 {
439
+ right: 640px;
440
+ }
441
+
442
+ .container_24 .push_17 {
443
+ right: 680px;
444
+ }
445
+
446
+ .container_24 .push_18 {
447
+ right: 720px;
448
+ }
449
+
450
+ .container_24 .push_19 {
451
+ right: 760px;
452
+ }
453
+
454
+ .container_24 .push_20 {
455
+ right: 800px;
456
+ }
457
+
458
+ .container_24 .push_21 {
459
+ right: 840px;
460
+ }
461
+
462
+ .container_24 .push_22 {
463
+ right: 880px;
464
+ }
465
+
466
+ .container_24 .push_23 {
467
+ right: 920px;
468
+ }
469
+
470
+ /* `Pull Space >> 24 Columns
471
+ ----------------------------------------------------------------------------------------------------*/
472
+
473
+ .container_24 .pull_1 {
474
+ right: -40px;
475
+ }
476
+
477
+ .container_24 .pull_2 {
478
+ right: -80px;
479
+ }
480
+
481
+ .container_24 .pull_3 {
482
+ right: -120px;
483
+ }
484
+
485
+ .container_24 .pull_4 {
486
+ right: -160px;
487
+ }
488
+
489
+ .container_24 .pull_5 {
490
+ right: -200px;
491
+ }
492
+
493
+ .container_24 .pull_6 {
494
+ right: -240px;
495
+ }
496
+
497
+ .container_24 .pull_7 {
498
+ right: -280px;
499
+ }
500
+
501
+ .container_24 .pull_8 {
502
+ right: -320px;
503
+ }
504
+
505
+ .container_24 .pull_9 {
506
+ right: -360px;
507
+ }
508
+
509
+ .container_24 .pull_10 {
510
+ right: -400px;
511
+ }
512
+
513
+ .container_24 .pull_11 {
514
+ right: -440px;
515
+ }
516
+
517
+ .container_24 .pull_12 {
518
+ right: -480px;
519
+ }
520
+
521
+ .container_24 .pull_13 {
522
+ right: -520px;
523
+ }
524
+
525
+ .container_24 .pull_14 {
526
+ right: -560px;
527
+ }
528
+
529
+ .container_24 .pull_15 {
530
+ right: -600px;
531
+ }
532
+
533
+ .container_24 .pull_16 {
534
+ right: -640px;
535
+ }
536
+
537
+ .container_24 .pull_17 {
538
+ right: -680px;
539
+ }
540
+
541
+ .container_24 .pull_18 {
542
+ right: -720px;
543
+ }
544
+
545
+ .container_24 .pull_19 {
546
+ right: -760px;
547
+ }
548
+
549
+ .container_24 .pull_20 {
550
+ right: -800px;
551
+ }
552
+
553
+ .container_24 .pull_21 {
554
+ right: -840px;
555
+ }
556
+
557
+ .container_24 .pull_22 {
558
+ right: -880px;
559
+ }
560
+
561
+ .container_24 .pull_23 {
562
+ right: -920px;
563
+ }
564
+
565
+ /* `Clear Floated Elements
566
+ ----------------------------------------------------------------------------------------------------*/
567
+
568
+ /* http://sonspring.com/journal/clearing-floats */
569
+
570
+ .clear {
571
+ clear: both;
572
+ display: block;
573
+ overflow: hidden;
574
+ visibility: hidden;
575
+ width: 0;
576
+ height: 0;
577
+ }
578
+
579
+ /* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified */
580
+
581
+ .clearfix:before,
582
+ .clearfix:after {
583
+ content: '\0020';
584
+ display: block;
585
+ overflow: hidden;
586
+ visibility: hidden;
587
+ width: 0;
588
+ height: 0;
589
+ }
590
+
591
+ .clearfix:after {
592
+ clear: both;
593
+ }
594
+
595
+ /*
596
+ The following zoom:1 rule is specifically for IE6 + IE7.
597
+ Move to separate stylesheet if invalid CSS is a problem.
598
+ */
599
+
600
+ .clearfix {
601
+ zoom: 1;
602
+ }