compass 0.12.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.markdown +1 -1
- data/Rakefile +159 -79
- data/features/command_line.feature +44 -141
- data/features/step_definitions/command_line_steps.rb +7 -7
- data/lib/compass.rb +19 -17
- data/lib/compass/actions.rb +7 -4
- data/lib/compass/commands.rb +3 -1
- data/lib/compass/commands/print_version.rb +1 -12
- data/lib/compass/commands/project_stats.rb +5 -5
- data/lib/compass/commands/update_project.rb +55 -46
- data/lib/compass/commands/watch_project.rb +53 -106
- data/lib/compass/compiler.rb +87 -26
- data/lib/compass/configuration/comments.rb +4 -1
- data/lib/compass/configuration/helpers.rb +11 -58
- data/lib/compass/configuration/serialization.rb +10 -3
- data/lib/compass/deprecation.rb +19 -0
- data/lib/compass/errors.rb +1 -3
- data/lib/compass/exec/global_options_parser.rb +0 -4
- data/lib/compass/exec/project_options_parser.rb +8 -0
- data/lib/compass/generated_version.rb +4 -0
- data/lib/compass/logger.rb +55 -18
- data/lib/compass/sass_compiler.rb +151 -0
- data/lib/compass/sass_extensions.rb +0 -1
- data/lib/compass/sass_extensions/functions.rb +6 -25
- data/lib/compass/sass_extensions/functions/sprites.rb +143 -56
- data/lib/compass/sass_extensions/sprites.rb +2 -0
- data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +11 -9
- data/lib/compass/sass_extensions/sprites/image.rb +47 -36
- data/lib/compass/sass_extensions/sprites/image_methods.rb +25 -5
- data/lib/compass/sass_extensions/sprites/images.rb +29 -0
- data/lib/compass/sass_extensions/sprites/layout.rb +39 -0
- data/lib/compass/sass_extensions/sprites/layout/diagonal.rb +42 -0
- data/lib/compass/sass_extensions/sprites/layout/horizontal.rb +66 -0
- data/lib/compass/sass_extensions/sprites/layout/smart.rb +33 -0
- data/lib/compass/sass_extensions/sprites/layout/vertical.rb +68 -0
- data/lib/compass/sass_extensions/sprites/layout_methods.rb +9 -115
- data/lib/compass/sass_extensions/sprites/sprite_map.rb +14 -8
- data/lib/compass/sass_extensions/sprites/sprite_methods.rb +8 -14
- data/lib/compass/sprite_importer.rb +12 -11
- data/lib/compass/sprite_importer/content.erb +30 -24
- data/lib/compass/stats.rb +1 -1
- data/lib/compass/version.rb +27 -45
- data/test/fixtures/sprites/public/images/focus/ten-by-ten.png +0 -0
- data/test/fixtures/sprites/public/images/focus/ten-by-ten_active.png +0 -0
- data/test/fixtures/sprites/public/images/focus/ten-by-ten_focus.png +0 -0
- data/test/fixtures/sprites/public/images/focus/ten-by-ten_hover.png +0 -0
- data/test/fixtures/sprites/public/images/focus/ten-by-ten_target.png +0 -0
- data/test/fixtures/sprites/public/images/numeric/200.png +0 -0
- data/test/fixtures/stylesheets/busted_font_urls/config.rb +32 -0
- data/test/fixtures/stylesheets/busted_font_urls/css/screen.css +9 -0
- data/test/fixtures/stylesheets/busted_font_urls/fonts/feed.ttf +0 -0
- data/test/fixtures/stylesheets/busted_font_urls/fonts/grid.ttf +0 -0
- data/test/fixtures/stylesheets/busted_font_urls/fonts/sub/dk.ttf +0 -0
- data/test/fixtures/stylesheets/busted_font_urls/sass/screen.sass +14 -0
- data/test/fixtures/stylesheets/compass/config.rb +2 -0
- data/test/fixtures/stylesheets/compass/css/animation-with-legacy-ie.css +22 -0
- data/test/fixtures/stylesheets/compass/css/animation.css +22 -0
- data/test/fixtures/stylesheets/compass/css/appearance.css +3 -0
- data/test/fixtures/stylesheets/compass/css/background-clip.css +7 -6
- data/test/fixtures/stylesheets/compass/css/background-origin.css +11 -0
- data/test/fixtures/stylesheets/compass/css/background-size.css +17 -0
- data/test/fixtures/stylesheets/compass/css/border_radius.css +3 -3
- data/test/fixtures/stylesheets/compass/css/{box-sizeing.css → box-sizing.css} +7 -2
- data/test/fixtures/stylesheets/compass/css/box_shadow.css +15 -5
- data/test/fixtures/stylesheets/compass/css/brightness.css +14 -0
- data/test/fixtures/stylesheets/compass/css/browser-support.css +335 -0
- data/test/fixtures/stylesheets/compass/css/color.css +18 -0
- data/test/fixtures/stylesheets/compass/css/columns.css +48 -75
- data/test/fixtures/stylesheets/compass/css/filters.css +30 -6
- data/test/fixtures/stylesheets/compass/css/flexbox.css +94 -0
- data/test/fixtures/stylesheets/compass/css/fonts.css +6 -2
- data/test/fixtures/stylesheets/compass/css/gradients.css +106 -86
- data/test/fixtures/stylesheets/compass/css/grid_background.css +42 -35
- data/test/fixtures/stylesheets/compass/css/hyphenation.css +4 -4
- data/test/fixtures/stylesheets/compass/css/lists.css +9 -15
- data/test/fixtures/stylesheets/compass/css/opacity.css +4 -0
- data/test/fixtures/stylesheets/compass/css/print.css +1 -1
- data/test/fixtures/stylesheets/compass/css/regions.css +4 -2
- data/test/fixtures/stylesheets/compass/css/replacement.css +7 -0
- data/test/fixtures/stylesheets/compass/css/reset.css +3 -3
- data/test/fixtures/stylesheets/compass/css/selection.css +50 -0
- data/test/fixtures/stylesheets/compass/css/sprites_with_explicit_separator.css +19 -0
- data/test/fixtures/stylesheets/compass/css/support.css +69 -0
- data/test/fixtures/stylesheets/compass/css/text_shadow.css +6 -6
- data/test/fixtures/stylesheets/compass/css/transform.css +64 -164
- data/test/fixtures/stylesheets/compass/css/transition.css +26 -38
- data/test/fixtures/stylesheets/compass/css/typography/links/hover-link.css +4 -0
- data/test/fixtures/stylesheets/compass/css/units.css +34 -0
- data/test/fixtures/stylesheets/compass/css/user-interface.css +49 -1
- data/test/fixtures/stylesheets/compass/css/utilities.css +21 -6
- data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +5 -8
- data/test/fixtures/stylesheets/compass/css/vertical_rhythm_with_ems.css +53 -0
- data/test/fixtures/stylesheets/compass/css/vertical_rhythm_with_px.css +52 -0
- data/test/fixtures/stylesheets/compass/css/vertical_rhythm_with_rems.css +67 -0
- data/test/fixtures/stylesheets/compass/images/flag-s5b4f509715.png +0 -0
- data/test/fixtures/stylesheets/compass/images/flag_states-sc42d7bf926.png +0 -0
- data/{examples/compass/images/flag/ad.png → test/fixtures/stylesheets/compass/images/flag_states/foo.png} +0 -0
- data/{examples/compass/images/flag/fo.png → test/fixtures/stylesheets/compass/images/flag_states/foo_active.png} +0 -0
- data/{examples/compass/images/flag/hu.png → test/fixtures/stylesheets/compass/images/flag_states/foo_focus.png} +0 -0
- data/{examples/compass/images/flag/bm.png → test/fixtures/stylesheets/compass/images/flag_states/foo_hover.png} +0 -0
- data/{examples/compass/images/flag/cu.png → test/fixtures/stylesheets/compass/images/flag_states/foo_target.png} +0 -0
- data/test/fixtures/stylesheets/compass/sass/animation-with-legacy-ie.scss +17 -0
- data/test/fixtures/stylesheets/compass/sass/animation.scss +13 -0
- data/test/fixtures/stylesheets/compass/sass/appearance.scss +5 -0
- data/test/fixtures/stylesheets/compass/sass/background-clip.scss +1 -4
- data/test/fixtures/stylesheets/compass/sass/background-origin.scss +5 -0
- data/test/fixtures/stylesheets/compass/sass/background-size.scss +7 -0
- data/test/fixtures/stylesheets/compass/sass/{box-sizeing.scss → box-sizing.scss} +4 -1
- data/test/fixtures/stylesheets/compass/sass/box_shadow.scss +4 -2
- data/test/fixtures/stylesheets/compass/sass/brightness.scss +12 -0
- data/test/fixtures/stylesheets/compass/sass/browser-support.scss +30 -0
- data/test/fixtures/stylesheets/compass/sass/color.scss +25 -0
- data/test/fixtures/stylesheets/compass/sass/columns.scss +9 -9
- data/test/fixtures/stylesheets/compass/sass/filters.scss +1 -0
- data/test/fixtures/stylesheets/compass/sass/flexbox.scss +88 -0
- data/test/fixtures/stylesheets/compass/sass/fonts.sass +6 -1
- data/test/fixtures/stylesheets/compass/sass/gradients.sass +40 -8
- data/test/fixtures/stylesheets/compass/sass/opacity.scss +4 -0
- data/test/fixtures/stylesheets/compass/sass/selection.scss +41 -0
- data/test/fixtures/stylesheets/compass/sass/sprites_with_explicit_separator.scss +11 -0
- data/test/fixtures/stylesheets/compass/sass/support.scss +174 -0
- data/test/fixtures/stylesheets/compass/sass/text_shadow.scss +7 -6
- data/test/fixtures/stylesheets/compass/sass/transition.scss +1 -4
- data/test/fixtures/stylesheets/compass/sass/typography/links/hover-link.scss +3 -0
- data/test/fixtures/stylesheets/compass/sass/units.scss +50 -0
- data/test/fixtures/stylesheets/compass/sass/user-interface.scss +24 -1
- data/test/fixtures/stylesheets/compass/sass/utilities.scss +17 -4
- data/test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss +51 -7
- data/test/fixtures/stylesheets/compass/sass/vertical_rhythm_with_ems.scss +52 -0
- data/test/fixtures/stylesheets/compass/sass/vertical_rhythm_with_px.scss +50 -0
- data/test/fixtures/stylesheets/compass/sass/vertical_rhythm_with_rems.scss +50 -0
- data/test/fixtures/stylesheets/envtest/css/env.css +8 -0
- data/test/fixtures/stylesheets/envtest/sass/env.scss +16 -0
- data/test/fixtures/stylesheets/sourcemaps/config.rb +10 -0
- data/test/fixtures/stylesheets/sourcemaps/css/another_simple.css +2 -0
- data/test/fixtures/stylesheets/sourcemaps/css/another_simple.css.map +7 -0
- data/test/fixtures/stylesheets/sourcemaps/css/simple.css +2 -0
- data/test/fixtures/stylesheets/sourcemaps/css/simple.css.map +7 -0
- data/test/fixtures/stylesheets/sourcemaps/css/with_libraries.css +2 -0
- data/test/fixtures/stylesheets/sourcemaps/css/with_libraries.css.map +7 -0
- data/test/fixtures/stylesheets/sourcemaps/sass/another_simple.scss +3 -0
- data/test/fixtures/stylesheets/sourcemaps/sass/simple.sass +2 -0
- data/test/fixtures/stylesheets/sourcemaps/sass/with_libraries.scss +5 -0
- data/test/fixtures/stylesheets/valid/sass/another_simple.scss +3 -0
- data/test/fixtures/stylesheets/with_sass_globbing/config.rb +26 -0
- data/test/fixtures/stylesheets/with_sass_globbing/css/screen.css +19 -0
- data/test/fixtures/stylesheets/with_sass_globbing/sass/partials/_1.scss +3 -0
- data/test/fixtures/stylesheets/with_sass_globbing/sass/partials/_2.scss +3 -0
- data/test/fixtures/stylesheets/with_sass_globbing/sass/partials/_3.scss +4 -0
- data/test/fixtures/stylesheets/with_sass_globbing/sass/screen.scss +3 -0
- data/test/helpers/diff.rb +1 -1
- data/test/integrations/compass_test.rb +49 -14
- data/test/integrations/sprites_test.rb +380 -100
- data/test/test_helper.rb +12 -20
- data/test/units/caniuse_test.rb +194 -0
- data/test/units/command_line_test.rb +9 -9
- data/test/units/compass_util_test.rb +11 -0
- data/test/units/compiler_test.rb +7 -2
- data/test/units/configuration_test.rb +187 -9
- data/test/units/regressions_test.rb +8 -8
- data/test/units/sass_extensions_test.rb +37 -3
- data/test/units/sass_extenstions/gradients_test.rb +30 -0
- data/test/units/sprites/image_test.rb +17 -0
- data/test/units/sprites/images_test.rb +46 -0
- data/test/units/sprites/layout_test.rb +29 -4
- data/test/units/sprites/sprite_map_test.rb +40 -2
- metadata +243 -713
- data/README.markdown +0 -31
- data/VERSION.yml +0 -5
- data/examples/README.markdown +0 -4
- data/examples/blueprint_default/config.rb +0 -7
- data/examples/blueprint_default/images/grid.png +0 -0
- data/examples/blueprint_default/index.html.haml +0 -85
- data/examples/blueprint_default/parts/elements.html.haml +0 -282
- data/examples/blueprint_default/parts/forms.html.haml +0 -200
- data/examples/blueprint_default/parts/grid.html.haml +0 -274
- data/examples/blueprint_default/parts/test-small.jpg +0 -0
- data/examples/blueprint_default/parts/test.jpg +0 -0
- data/examples/blueprint_default/parts/valid.png +0 -0
- data/examples/blueprint_default/src/ie.scss +0 -3
- data/examples/blueprint_default/src/images/grid.png +0 -0
- data/examples/blueprint_default/src/print.scss +0 -3
- data/examples/blueprint_default/src/screen.scss +0 -9
- data/examples/blueprint_plugins/config.rb +0 -8
- data/examples/blueprint_plugins/images/buttons/cross.png +0 -0
- data/examples/blueprint_plugins/images/buttons/key.png +0 -0
- data/examples/blueprint_plugins/images/buttons/tick.png +0 -0
- data/examples/blueprint_plugins/images/grid.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/doc.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/email.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/external.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/feed.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/im.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/pdf.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/visited.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/xls.png +0 -0
- data/examples/blueprint_plugins/images/test-small.jpg +0 -0
- data/examples/blueprint_plugins/images/test.jpg +0 -0
- data/examples/blueprint_plugins/images/valid.png +0 -0
- data/examples/blueprint_plugins/index.html.haml +0 -96
- data/examples/blueprint_plugins/plugins/buttons.html.haml +0 -67
- data/examples/blueprint_plugins/plugins/fancy_type.html.haml +0 -100
- data/examples/blueprint_plugins/plugins/link_icons.html.haml +0 -61
- data/examples/blueprint_plugins/plugins/rtl.html.haml +0 -100
- data/examples/blueprint_plugins/src/buttons.scss +0 -47
- data/examples/blueprint_plugins/src/ie.scss +0 -3
- data/examples/blueprint_plugins/src/images/grid.png +0 -0
- data/examples/blueprint_plugins/src/link_icons.scss +0 -13
- data/examples/blueprint_plugins/src/print.scss +0 -3
- data/examples/blueprint_plugins/src/rtl_screen.scss +0 -15
- data/examples/blueprint_plugins/src/screen.scss +0 -12
- data/examples/blueprint_scoped/images/grid.png +0 -0
- data/examples/blueprint_scoped/src/ie.scss +0 -4
- data/examples/blueprint_scoped/src/print.scss +0 -4
- data/examples/blueprint_scoped/src/screen.scss +0 -5
- data/examples/blueprint_scoped_form/images/grid.png +0 -0
- data/examples/blueprint_scoped_form/src/ie.scss +0 -3
- data/examples/blueprint_scoped_form/src/print.scss +0 -3
- data/examples/blueprint_scoped_form/src/screen.scss +0 -15
- data/examples/blueprint_semantic/config.rb +0 -7
- data/examples/blueprint_semantic/images/grid.png +0 -0
- data/examples/blueprint_semantic/index.html.haml +0 -86
- data/examples/blueprint_semantic/parts/fancy_type.html.haml +0 -100
- data/examples/blueprint_semantic/parts/liquid.html.haml +0 -100
- data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
- data/examples/blueprint_semantic/parts/test.jpg +0 -0
- data/examples/blueprint_semantic/parts/valid.png +0 -0
- data/examples/blueprint_semantic/src/ie.scss +0 -3
- data/examples/blueprint_semantic/src/images/grid.png +0 -0
- data/examples/blueprint_semantic/src/liquid.scss +0 -69
- data/examples/blueprint_semantic/src/print.scss +0 -3
- data/examples/blueprint_semantic/src/screen.scss +0 -69
- data/examples/compass/bootstrap.rb +0 -4
- data/examples/compass/clean.rb +0 -2
- data/examples/compass/compass.html.haml +0 -39
- data/examples/compass/config.rb +0 -8
- data/examples/compass/headers.txt +0 -7
- data/examples/compass/images/blue_arrow.gif +0 -0
- data/examples/compass/images/border2.png +0 -0
- data/examples/compass/images/emblem/favorite.png +0 -0
- data/examples/compass/images/emblem/important.png +0 -0
- data/examples/compass/images/emblem/photos.png +0 -0
- data/examples/compass/images/emblem/readonly.png +0 -0
- data/examples/compass/images/emblem/symbolic-link.png +0 -0
- data/examples/compass/images/emblem/system.png +0 -0
- data/examples/compass/images/emblem/unreadable.png +0 -0
- data/examples/compass/images/flag/ae.png +0 -0
- data/examples/compass/images/flag/af.png +0 -0
- data/examples/compass/images/flag/ag.png +0 -0
- data/examples/compass/images/flag/ai.png +0 -0
- data/examples/compass/images/flag/al.png +0 -0
- data/examples/compass/images/flag/am.png +0 -0
- data/examples/compass/images/flag/an.png +0 -0
- data/examples/compass/images/flag/ao.png +0 -0
- data/examples/compass/images/flag/ar.png +0 -0
- data/examples/compass/images/flag/as.png +0 -0
- data/examples/compass/images/flag/at.png +0 -0
- data/examples/compass/images/flag/au.png +0 -0
- data/examples/compass/images/flag/aw.png +0 -0
- data/examples/compass/images/flag/ax.png +0 -0
- data/examples/compass/images/flag/az.png +0 -0
- data/examples/compass/images/flag/ba.png +0 -0
- data/examples/compass/images/flag/bb.png +0 -0
- data/examples/compass/images/flag/bd.png +0 -0
- data/examples/compass/images/flag/be.png +0 -0
- data/examples/compass/images/flag/bf.png +0 -0
- data/examples/compass/images/flag/bg.png +0 -0
- data/examples/compass/images/flag/bh.png +0 -0
- data/examples/compass/images/flag/bi.png +0 -0
- data/examples/compass/images/flag/bj.png +0 -0
- data/examples/compass/images/flag/bn.png +0 -0
- data/examples/compass/images/flag/bo.png +0 -0
- data/examples/compass/images/flag/br.png +0 -0
- data/examples/compass/images/flag/bs.png +0 -0
- data/examples/compass/images/flag/bt.png +0 -0
- data/examples/compass/images/flag/bv.png +0 -0
- data/examples/compass/images/flag/bw.png +0 -0
- data/examples/compass/images/flag/by.png +0 -0
- data/examples/compass/images/flag/bz.png +0 -0
- data/examples/compass/images/flag/ca.png +0 -0
- data/examples/compass/images/flag/catalonia.png +0 -0
- data/examples/compass/images/flag/cc.png +0 -0
- data/examples/compass/images/flag/cd.png +0 -0
- data/examples/compass/images/flag/cf.png +0 -0
- data/examples/compass/images/flag/cg.png +0 -0
- data/examples/compass/images/flag/ch.png +0 -0
- data/examples/compass/images/flag/ci.png +0 -0
- data/examples/compass/images/flag/ck.png +0 -0
- data/examples/compass/images/flag/cl.png +0 -0
- data/examples/compass/images/flag/cm.png +0 -0
- data/examples/compass/images/flag/cn.png +0 -0
- data/examples/compass/images/flag/co.png +0 -0
- data/examples/compass/images/flag/cr.png +0 -0
- data/examples/compass/images/flag/cs.png +0 -0
- data/examples/compass/images/flag/cv.png +0 -0
- data/examples/compass/images/flag/cx.png +0 -0
- data/examples/compass/images/flag/cy.png +0 -0
- data/examples/compass/images/flag/cz.png +0 -0
- data/examples/compass/images/flag/de.png +0 -0
- data/examples/compass/images/flag/dj.png +0 -0
- data/examples/compass/images/flag/dk.png +0 -0
- data/examples/compass/images/flag/dm.png +0 -0
- data/examples/compass/images/flag/do.png +0 -0
- data/examples/compass/images/flag/dz.png +0 -0
- data/examples/compass/images/flag/ec.png +0 -0
- data/examples/compass/images/flag/ee.png +0 -0
- data/examples/compass/images/flag/eg.png +0 -0
- data/examples/compass/images/flag/eh.png +0 -0
- data/examples/compass/images/flag/england.png +0 -0
- data/examples/compass/images/flag/er.png +0 -0
- data/examples/compass/images/flag/es.png +0 -0
- data/examples/compass/images/flag/et.png +0 -0
- data/examples/compass/images/flag/europeanunion.png +0 -0
- data/examples/compass/images/flag/fam.png +0 -0
- data/examples/compass/images/flag/fi.png +0 -0
- data/examples/compass/images/flag/fj.png +0 -0
- data/examples/compass/images/flag/fk.png +0 -0
- data/examples/compass/images/flag/fm.png +0 -0
- data/examples/compass/images/flag/fr.png +0 -0
- data/examples/compass/images/flag/ga.png +0 -0
- data/examples/compass/images/flag/gb.png +0 -0
- data/examples/compass/images/flag/gd.png +0 -0
- data/examples/compass/images/flag/ge.png +0 -0
- data/examples/compass/images/flag/gf.png +0 -0
- data/examples/compass/images/flag/gh.png +0 -0
- data/examples/compass/images/flag/gi.png +0 -0
- data/examples/compass/images/flag/gl.png +0 -0
- data/examples/compass/images/flag/gm.png +0 -0
- data/examples/compass/images/flag/gn.png +0 -0
- data/examples/compass/images/flag/gp.png +0 -0
- data/examples/compass/images/flag/gq.png +0 -0
- data/examples/compass/images/flag/gr.png +0 -0
- data/examples/compass/images/flag/gs.png +0 -0
- data/examples/compass/images/flag/gt.png +0 -0
- data/examples/compass/images/flag/gu.png +0 -0
- data/examples/compass/images/flag/gw.png +0 -0
- data/examples/compass/images/flag/gy.png +0 -0
- data/examples/compass/images/flag/hk.png +0 -0
- data/examples/compass/images/flag/hm.png +0 -0
- data/examples/compass/images/flag/hn.png +0 -0
- data/examples/compass/images/flag/hr.png +0 -0
- data/examples/compass/images/flag/ht.png +0 -0
- data/examples/compass/images/flag/id-2.png +0 -0
- data/examples/compass/images/flag/ie.png +0 -0
- data/examples/compass/images/flag/il.png +0 -0
- data/examples/compass/images/flag/in.png +0 -0
- data/examples/compass/images/flag/io.png +0 -0
- data/examples/compass/images/flag/iq.png +0 -0
- data/examples/compass/images/flag/ir.png +0 -0
- data/examples/compass/images/flag/is.png +0 -0
- data/examples/compass/images/flag/it.png +0 -0
- data/examples/compass/images/flag/jm.png +0 -0
- data/examples/compass/images/flag/jo.png +0 -0
- data/examples/compass/images/flag/jp.png +0 -0
- data/examples/compass/images/flag/ke.png +0 -0
- data/examples/compass/images/flag/kg.png +0 -0
- data/examples/compass/images/flag/kh.png +0 -0
- data/examples/compass/images/flag/ki.png +0 -0
- data/examples/compass/images/flag/km.png +0 -0
- data/examples/compass/images/flag/kn.png +0 -0
- data/examples/compass/images/flag/kp.png +0 -0
- data/examples/compass/images/flag/kr.png +0 -0
- data/examples/compass/images/flag/kw.png +0 -0
- data/examples/compass/images/flag/ky.png +0 -0
- data/examples/compass/images/flag/kz.png +0 -0
- data/examples/compass/images/flag/la.png +0 -0
- data/examples/compass/images/flag/lb.png +0 -0
- data/examples/compass/images/flag/lc.png +0 -0
- data/examples/compass/images/flag/li.png +0 -0
- data/examples/compass/images/flag/lk.png +0 -0
- data/examples/compass/images/flag/lr.png +0 -0
- data/examples/compass/images/flag/ls.png +0 -0
- data/examples/compass/images/flag/lt.png +0 -0
- data/examples/compass/images/flag/lu.png +0 -0
- data/examples/compass/images/flag/lv.png +0 -0
- data/examples/compass/images/flag/ly.png +0 -0
- data/examples/compass/images/flag/ma.png +0 -0
- data/examples/compass/images/flag/mc.png +0 -0
- data/examples/compass/images/flag/md.png +0 -0
- data/examples/compass/images/flag/me.png +0 -0
- data/examples/compass/images/flag/mg.png +0 -0
- data/examples/compass/images/flag/mh.png +0 -0
- data/examples/compass/images/flag/mk.png +0 -0
- data/examples/compass/images/flag/ml.png +0 -0
- data/examples/compass/images/flag/mm.png +0 -0
- data/examples/compass/images/flag/mn.png +0 -0
- data/examples/compass/images/flag/mo.png +0 -0
- data/examples/compass/images/flag/mp.png +0 -0
- data/examples/compass/images/flag/mq.png +0 -0
- data/examples/compass/images/flag/mr.png +0 -0
- data/examples/compass/images/flag/ms.png +0 -0
- data/examples/compass/images/flag/mt.png +0 -0
- data/examples/compass/images/flag/mu.png +0 -0
- data/examples/compass/images/flag/mv.png +0 -0
- data/examples/compass/images/flag/mw.png +0 -0
- data/examples/compass/images/flag/mx.png +0 -0
- data/examples/compass/images/flag/my.png +0 -0
- data/examples/compass/images/flag/mz.png +0 -0
- data/examples/compass/images/flag/na.png +0 -0
- data/examples/compass/images/flag/nc.png +0 -0
- data/examples/compass/images/flag/ne.png +0 -0
- data/examples/compass/images/flag/nf.png +0 -0
- data/examples/compass/images/flag/ng.png +0 -0
- data/examples/compass/images/flag/ni.png +0 -0
- data/examples/compass/images/flag/nl.png +0 -0
- data/examples/compass/images/flag/no.png +0 -0
- data/examples/compass/images/flag/np.png +0 -0
- data/examples/compass/images/flag/nr.png +0 -0
- data/examples/compass/images/flag/nu.png +0 -0
- data/examples/compass/images/flag/nz.png +0 -0
- data/examples/compass/images/flag/om.png +0 -0
- data/examples/compass/images/flag/pa.png +0 -0
- data/examples/compass/images/flag/pe.png +0 -0
- data/examples/compass/images/flag/pf.png +0 -0
- data/examples/compass/images/flag/pg.png +0 -0
- data/examples/compass/images/flag/ph.png +0 -0
- data/examples/compass/images/flag/pk.png +0 -0
- data/examples/compass/images/flag/pl.png +0 -0
- data/examples/compass/images/flag/pm.png +0 -0
- data/examples/compass/images/flag/pn.png +0 -0
- data/examples/compass/images/flag/pr.png +0 -0
- data/examples/compass/images/flag/ps.png +0 -0
- data/examples/compass/images/flag/pt.png +0 -0
- data/examples/compass/images/flag/pw.png +0 -0
- data/examples/compass/images/flag/py.png +0 -0
- data/examples/compass/images/flag/qa.png +0 -0
- data/examples/compass/images/flag/re.png +0 -0
- data/examples/compass/images/flag/ro.png +0 -0
- data/examples/compass/images/flag/rs.png +0 -0
- data/examples/compass/images/flag/ru.png +0 -0
- data/examples/compass/images/flag/rw.png +0 -0
- data/examples/compass/images/flag/sa.png +0 -0
- data/examples/compass/images/flag/sb.png +0 -0
- data/examples/compass/images/flag/sc.png +0 -0
- data/examples/compass/images/flag/scotland.png +0 -0
- data/examples/compass/images/flag/sd.png +0 -0
- data/examples/compass/images/flag/se.png +0 -0
- data/examples/compass/images/flag/sg.png +0 -0
- data/examples/compass/images/flag/sh.png +0 -0
- data/examples/compass/images/flag/si.png +0 -0
- data/examples/compass/images/flag/sj.png +0 -0
- data/examples/compass/images/flag/sk.png +0 -0
- data/examples/compass/images/flag/sl.png +0 -0
- data/examples/compass/images/flag/sm.png +0 -0
- data/examples/compass/images/flag/sn.png +0 -0
- data/examples/compass/images/flag/so.png +0 -0
- data/examples/compass/images/flag/sr.png +0 -0
- data/examples/compass/images/flag/st.png +0 -0
- data/examples/compass/images/flag/sv.png +0 -0
- data/examples/compass/images/flag/sy.png +0 -0
- data/examples/compass/images/flag/sz.png +0 -0
- data/examples/compass/images/flag/tc.png +0 -0
- data/examples/compass/images/flag/td.png +0 -0
- data/examples/compass/images/flag/tf.png +0 -0
- data/examples/compass/images/flag/tg.png +0 -0
- data/examples/compass/images/flag/th.png +0 -0
- data/examples/compass/images/flag/tj.png +0 -0
- data/examples/compass/images/flag/tk.png +0 -0
- data/examples/compass/images/flag/tl.png +0 -0
- data/examples/compass/images/flag/tm.png +0 -0
- data/examples/compass/images/flag/tn.png +0 -0
- data/examples/compass/images/flag/to.png +0 -0
- data/examples/compass/images/flag/tr.png +0 -0
- data/examples/compass/images/flag/tt.png +0 -0
- data/examples/compass/images/flag/tv.png +0 -0
- data/examples/compass/images/flag/tw.png +0 -0
- data/examples/compass/images/flag/tz.png +0 -0
- data/examples/compass/images/flag/ua.png +0 -0
- data/examples/compass/images/flag/ug.png +0 -0
- data/examples/compass/images/flag/um.png +0 -0
- data/examples/compass/images/flag/us.png +0 -0
- data/examples/compass/images/flag/uy.png +0 -0
- data/examples/compass/images/flag/uz.png +0 -0
- data/examples/compass/images/flag/va.png +0 -0
- data/examples/compass/images/flag/vc.png +0 -0
- data/examples/compass/images/flag/ve.png +0 -0
- data/examples/compass/images/flag/vg.png +0 -0
- data/examples/compass/images/flag/vi.png +0 -0
- data/examples/compass/images/flag/vn.png +0 -0
- data/examples/compass/images/flag/vu.png +0 -0
- data/examples/compass/images/flag/wales.png +0 -0
- data/examples/compass/images/flag/wf.png +0 -0
- data/examples/compass/images/flag/ws.png +0 -0
- data/examples/compass/images/flag/ye.png +0 -0
- data/examples/compass/images/flag/yt.png +0 -0
- data/examples/compass/images/flag/za.png +0 -0
- data/examples/compass/images/flag/zm.png +0 -0
- data/examples/compass/images/flag/zw.png +0 -0
- data/examples/compass/images/icon-chrome.png +0 -0
- data/examples/compass/images/icon-firefox.png +0 -0
- data/examples/compass/images/icon-ie.png +0 -0
- data/examples/compass/images/icon-opera.png +0 -0
- data/examples/compass/images/icon-safari.png +0 -0
- data/examples/compass/pie.html.haml +0 -73
- data/examples/compass/sprites.html.haml +0 -37
- data/examples/compass/src/bp_layout.scss +0 -18
- data/examples/compass/src/compass.scss +0 -46
- data/examples/compass/src/images/blue_arrow.gif +0 -0
- data/examples/compass/src/pie.scss +0 -110
- data/examples/compass/src/sprites.scss +0 -25
- data/examples/compass/src/sticky_footer.scss +0 -11
- data/examples/compass/src/utilities.scss +0 -108
- data/examples/compass/sticky_footer.html.haml +0 -14
- data/examples/compass/utilities.html.haml +0 -189
- data/examples/css3/bootstrap.rb +0 -3
- data/examples/css3/clean.rb +0 -2
- data/examples/css3/config.rb +0 -6
- data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +0 -10
- data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +0 -6
- data/examples/css3/gradients.html.haml +0 -68
- data/examples/css3/images/button_bg.png +0 -0
- data/examples/css3/images/example.png +0 -0
- data/examples/css3/index.html.haml +0 -57
- data/examples/css3/src/_base.scss +0 -13
- data/examples/css3/src/fancy-fonts.scss +0 -13
- data/examples/css3/src/gradients.scss +0 -86
- data/examples/css3/src/main.scss +0 -108
- data/examples/downloader.rb +0 -58
- data/examples/ninesixty/bootstrap.rb +0 -4
- data/examples/ninesixty/clean.rb +0 -2
- data/examples/ninesixty/config.rb +0 -10
- data/examples/ninesixty/src/grid.scss +0 -15
- data/examples/ninesixty/src/text.scss +0 -8
- data/examples/susy/bootstrap.rb +0 -3
- data/examples/susy/clean.rb +0 -2
- data/examples/susy/config.rb +0 -10
- data/examples/susy/src/_base.scss +0 -61
- data/examples/susy/src/_defaults.scss +0 -140
- data/examples/susy/src/screen.scss +0 -100
- data/examples/yui/bootstrap.rb +0 -3
- data/examples/yui/clean.rb +0 -2
- data/examples/yui/config.rb +0 -1
- data/examples/yui/divisions.html.haml +0 -179
- data/examples/yui/index.html.haml +0 -19
- data/examples/yui/src/screen.scss +0 -13
- data/examples/yui/sub_divisions.html.haml +0 -169
- data/examples/yui/templates.html.haml +0 -54
- data/examples/yui/test.jpg +0 -0
- data/examples/yui/typography.html.haml +0 -132
- data/frameworks/blueprint/stylesheets/_blueprint.scss +0 -37
- data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +0 -101
- data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +0 -36
- data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +0 -28
- data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +0 -88
- data/frameworks/blueprint/stylesheets/blueprint/_form.scss +0 -66
- data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +0 -258
- data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +0 -111
- data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +0 -66
- data/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +0 -37
- data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +0 -152
- data/frameworks/blueprint/stylesheets/blueprint/_print.scss +0 -86
- data/frameworks/blueprint/stylesheets/blueprint/_reset.scss +0 -3
- data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +0 -121
- data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +0 -52
- data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +0 -90
- data/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +0 -37
- data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +0 -83
- data/frameworks/blueprint/templates/basic/grid.png +0 -0
- data/frameworks/blueprint/templates/basic/ie.sass +0 -4
- data/frameworks/blueprint/templates/basic/manifest.rb +0 -30
- data/frameworks/blueprint/templates/basic/partials/_base.sass +0 -10
- data/frameworks/blueprint/templates/basic/print.sass +0 -4
- data/frameworks/blueprint/templates/basic/screen.sass +0 -12
- data/frameworks/blueprint/templates/buttons/buttons.sass +0 -49
- data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
- data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
- data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
- data/frameworks/blueprint/templates/buttons/manifest.rb +0 -17
- data/frameworks/blueprint/templates/link_icons/link_icons.sass +0 -13
- data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
- data/frameworks/blueprint/templates/link_icons/manifest.rb +0 -23
- data/frameworks/blueprint/templates/project/grid.png +0 -0
- data/frameworks/blueprint/templates/project/ie.sass +0 -16
- data/frameworks/blueprint/templates/project/manifest.rb +0 -30
- data/frameworks/blueprint/templates/project/partials/_base.sass +0 -11
- data/frameworks/blueprint/templates/project/print.sass +0 -8
- data/frameworks/blueprint/templates/project/screen.sass +0 -46
- data/frameworks/blueprint/templates/semantic/grid.png +0 -0
- data/frameworks/blueprint/templates/semantic/ie.sass +0 -16
- data/frameworks/blueprint/templates/semantic/manifest.rb +0 -33
- data/frameworks/blueprint/templates/semantic/partials/_base.sass +0 -10
- data/frameworks/blueprint/templates/semantic/partials/_form.sass +0 -6
- data/frameworks/blueprint/templates/semantic/partials/_page.sass +0 -17
- data/frameworks/blueprint/templates/semantic/partials/_two_col.sass +0 -38
- data/frameworks/blueprint/templates/semantic/print.sass +0 -5
- data/frameworks/blueprint/templates/semantic/screen.sass +0 -14
- data/frameworks/compass/stylesheets/_compass.scss +0 -3
- data/frameworks/compass/stylesheets/_lemonade.scss +0 -38
- data/frameworks/compass/stylesheets/compass/_css3.scss +0 -20
- data/frameworks/compass/stylesheets/compass/_layout.scss +0 -3
- data/frameworks/compass/stylesheets/compass/_reset-legacy.scss +0 -3
- data/frameworks/compass/stylesheets/compass/_reset.scss +0 -3
- data/frameworks/compass/stylesheets/compass/_support.scss +0 -40
- data/frameworks/compass/stylesheets/compass/_typography.scss +0 -4
- data/frameworks/compass/stylesheets/compass/_utilities.scss +0 -9
- data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +0 -17
- data/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +0 -43
- data/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +0 -42
- data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +0 -26
- data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +0 -130
- data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +0 -76
- data/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +0 -13
- data/frameworks/compass/stylesheets/compass/css3/_box.scss +0 -111
- data/frameworks/compass/stylesheets/compass/css3/_columns.scss +0 -157
- data/frameworks/compass/stylesheets/compass/css3/_filter.scss +0 -23
- data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +0 -48
- data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +0 -77
- data/frameworks/compass/stylesheets/compass/css3/_images.scss +0 -132
- data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +0 -22
- data/frameworks/compass/stylesheets/compass/css3/_opacity.scss +0 -19
- data/frameworks/compass/stylesheets/compass/css3/_pie.scss +0 -73
- data/frameworks/compass/stylesheets/compass/css3/_regions.scss +0 -22
- data/frameworks/compass/stylesheets/compass/css3/_shared.scss +0 -38
- data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +0 -87
- data/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss +0 -87
- data/frameworks/compass/stylesheets/compass/css3/_transform.scss +0 -598
- data/frameworks/compass/stylesheets/compass/css3/_transition.scss +0 -221
- data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +0 -17
- data/frameworks/compass/stylesheets/compass/layout/_grid-background.scss +0 -178
- data/frameworks/compass/stylesheets/compass/layout/_sticky-footer.scss +0 -23
- data/frameworks/compass/stylesheets/compass/layout/_stretching.scss +0 -24
- data/frameworks/compass/stylesheets/compass/reset/_utilities-legacy.scss +0 -135
- data/frameworks/compass/stylesheets/compass/reset/_utilities.scss +0 -142
- data/frameworks/compass/stylesheets/compass/typography/_links.scss +0 -3
- data/frameworks/compass/stylesheets/compass/typography/_lists.scss +0 -4
- data/frameworks/compass/stylesheets/compass/typography/_text.scss +0 -4
- data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +0 -221
- data/frameworks/compass/stylesheets/compass/typography/links/_hover-link.scss +0 -5
- data/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss +0 -28
- data/frameworks/compass/stylesheets/compass/typography/links/_unstyled-link.scss +0 -7
- data/frameworks/compass/stylesheets/compass/typography/lists/_bullets.scss +0 -34
- data/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss +0 -61
- data/frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss +0 -50
- data/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss +0 -44
- data/frameworks/compass/stylesheets/compass/typography/text/_ellipsis.scss +0 -25
- data/frameworks/compass/stylesheets/compass/typography/text/_force-wrap.scss +0 -12
- data/frameworks/compass/stylesheets/compass/typography/text/_nowrap.scss +0 -2
- data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +0 -68
- data/frameworks/compass/stylesheets/compass/utilities/_color.scss +0 -1
- data/frameworks/compass/stylesheets/compass/utilities/_general.scss +0 -6
- data/frameworks/compass/stylesheets/compass/utilities/_links.scss +0 -5
- data/frameworks/compass/stylesheets/compass/utilities/_lists.scss +0 -6
- data/frameworks/compass/stylesheets/compass/utilities/_print.scss +0 -17
- data/frameworks/compass/stylesheets/compass/utilities/_sprites.scss +0 -2
- data/frameworks/compass/stylesheets/compass/utilities/_tables.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/_text.scss +0 -5
- data/frameworks/compass/stylesheets/compass/utilities/color/_contrast.scss +0 -28
- data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +0 -44
- data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +0 -30
- data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +0 -46
- data/frameworks/compass/stylesheets/compass/utilities/general/_min.scss +0 -16
- data/frameworks/compass/stylesheets/compass/utilities/general/_reset.scss +0 -2
- data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.scss +0 -1
- data/frameworks/compass/stylesheets/compass/utilities/general/_tag-cloud.scss +0 -18
- data/frameworks/compass/stylesheets/compass/utilities/links/_hover-link.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled-link.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +0 -66
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +0 -79
- data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +0 -22
- data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +0 -33
- data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.scss +0 -9
- data/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.scss +0 -3
- data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +0 -3
- data/frameworks/compass/templates/ellipsis/ellipsis.sass +0 -9
- data/frameworks/compass/templates/ellipsis/manifest.rb +0 -27
- data/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +0 -14
- data/frameworks/compass/templates/extension/manifest.rb +0 -26
- data/frameworks/compass/templates/extension/stylesheets/main.sass +0 -1
- data/frameworks/compass/templates/extension/templates/project/manifest.rb +0 -2
- data/frameworks/compass/templates/extension/templates/project/screen.sass +0 -2
- data/frameworks/compass/templates/pie/LICENSE +0 -12
- data/frameworks/compass/templates/pie/LICENSE-APACHE2.txt +0 -13
- data/frameworks/compass/templates/pie/LICENSE-GPL2.txt +0 -278
- data/frameworks/compass/templates/pie/PIE.htc +0 -96
- data/frameworks/compass/templates/pie/manifest.rb +0 -39
- data/frameworks/compass/templates/pie/pie.scss +0 -74
- data/frameworks/compass/templates/project/USAGE.markdown +0 -32
- data/frameworks/compass/templates/project/ie.sass +0 -6
- data/frameworks/compass/templates/project/manifest.rb +0 -4
- data/frameworks/compass/templates/project/print.sass +0 -6
- data/frameworks/compass/templates/project/screen.sass +0 -7
- data/lib/compass/app_integration/rails.rb +0 -18
- data/lib/compass/browser_support.rb +0 -62
- data/lib/compass/commands/generate_grid_background.rb +0 -96
- data/lib/compass/configuration.rb +0 -91
- data/lib/compass/configuration/adapters.rb +0 -77
- data/lib/compass/configuration/data.rb +0 -193
- data/lib/compass/configuration/defaults.rb +0 -187
- data/lib/compass/configuration/inheritance.rb +0 -304
- data/lib/compass/configuration/paths.rb +0 -19
- data/lib/compass/exec/switch_ui.rb +0 -179
- data/lib/compass/frameworks.rb +0 -133
- data/lib/compass/grid_builder.rb +0 -102
- data/lib/compass/sass_extensions/functions/colors.rb +0 -67
- data/lib/compass/sass_extensions/functions/constants.rb +0 -74
- data/lib/compass/sass_extensions/functions/cross_browser_support.rb +0 -70
- data/lib/compass/sass_extensions/functions/display.rb +0 -27
- data/lib/compass/sass_extensions/functions/enumerate.rb +0 -7
- data/lib/compass/sass_extensions/functions/env.rb +0 -5
- data/lib/compass/sass_extensions/functions/font_files.rb +0 -41
- data/lib/compass/sass_extensions/functions/gradient_support.rb +0 -540
- data/lib/compass/sass_extensions/functions/image_size.rb +0 -113
- data/lib/compass/sass_extensions/functions/inline_image.rb +0 -64
- data/lib/compass/sass_extensions/functions/lists.rb +0 -101
- data/lib/compass/sass_extensions/functions/math.rb +0 -63
- data/lib/compass/sass_extensions/functions/selectors.rb +0 -64
- data/lib/compass/sass_extensions/functions/urls.rb +0 -266
- data/lib/compass/sass_extensions/monkey_patches.rb +0 -3
- data/lib/compass/sass_extensions/monkey_patches/browser_support.rb +0 -95
- data/lib/compass/sass_extensions/monkey_patches/traversal.rb +0 -23
- data/lib/compass/util.rb +0 -29
- data/test/fixtures/stylesheets/blueprint/config.rb +0 -14
- data/test/fixtures/stylesheets/blueprint/css/ie.css +0 -76
- data/test/fixtures/stylesheets/blueprint/css/print.css +0 -56
- data/test/fixtures/stylesheets/blueprint/css/screen.css +0 -815
- data/test/fixtures/stylesheets/blueprint/css/single-imports/buttons.css +0 -56
- data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +0 -80
- data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +0 -11
- data/test/fixtures/stylesheets/blueprint/css/single-imports/fancy-type.css +0 -30
- data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +0 -42
- data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +0 -435
- data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +0 -76
- data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +0 -46
- data/test/fixtures/stylesheets/blueprint/css/single-imports/link-icons.css +0 -40
- data/test/fixtures/stylesheets/blueprint/css/single-imports/liquid.css +0 -651
- data/test/fixtures/stylesheets/blueprint/css/single-imports/print.css +0 -60
- data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +0 -75
- data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +0 -42
- data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +0 -437
- data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +0 -45
- data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +0 -146
- data/test/fixtures/stylesheets/blueprint/css/single-imports/utilities.css +0 -35
- data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
- data/test/fixtures/stylesheets/blueprint/images/link_icons/doc.png +0 -0
- data/test/fixtures/stylesheets/blueprint/images/link_icons/email.png +0 -0
- data/test/fixtures/stylesheets/blueprint/images/link_icons/external.png +0 -0
- data/test/fixtures/stylesheets/blueprint/images/link_icons/feed.png +0 -0
- data/test/fixtures/stylesheets/blueprint/images/link_icons/im.png +0 -0
- data/test/fixtures/stylesheets/blueprint/images/link_icons/pdf.png +0 -0
- data/test/fixtures/stylesheets/blueprint/images/link_icons/visited.png +0 -0
- data/test/fixtures/stylesheets/blueprint/images/link_icons/xls.png +0 -0
- data/test/fixtures/stylesheets/blueprint/sass/ie.sass +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/print.sass +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/screen.sass +0 -18
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/buttons.scss +0 -4
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/colors.scss +0 -34
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/debug.scss +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/fancy-type.scss +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/form.scss +0 -5
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/grid.scss +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/ie.scss +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/interaction.scss +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/link-icons.scss +0 -13
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/liquid.scss +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/print.scss +0 -5
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset-utilities.scss +0 -5
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset.scss +0 -1
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/rtl.scss +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/scaffolding.scss +0 -5
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/typography.scss +0 -3
- data/test/fixtures/stylesheets/blueprint/sass/single-imports/utilities.scss +0 -3
- data/test/fixtures/stylesheets/compass/css/pie.css +0 -26
- data/test/fixtures/stylesheets/compass/css/sprites.css +0 -1262
- data/test/fixtures/stylesheets/compass/sass/pie.scss +0 -47
- data/test/fixtures/stylesheets/compass/sass/sprites.scss +0 -13
- data/test/units/compass_module_test.rb +0 -36
- data/test/units/compass_png_test.rb +0 -46
@@ -0,0 +1,50 @@
|
|
1
|
+
/* New using px output */
|
2
|
+
$base-font-size: 18px;
|
3
|
+
$base-line-height: $base-font-size * 1.4;
|
4
|
+
$rhythm-unit: px;
|
5
|
+
$default-rhythm-border-style: solid #aaaaaa;
|
6
|
+
@import "compass/typography/vertical_rhythm";
|
7
|
+
|
8
|
+
@include establish-baseline;
|
9
|
+
|
10
|
+
.container {
|
11
|
+
@include debug-vertical-alignment;
|
12
|
+
}
|
13
|
+
|
14
|
+
p {
|
15
|
+
@include margin-leader;
|
16
|
+
@include margin-trailer;
|
17
|
+
}
|
18
|
+
|
19
|
+
th,
|
20
|
+
td {
|
21
|
+
@include rhythm-padding(.25);
|
22
|
+
}
|
23
|
+
|
24
|
+
/* Incremental leading made easy! */
|
25
|
+
.caption {
|
26
|
+
@include adjust-font-size-to(.85rem, 4/5);
|
27
|
+
}
|
28
|
+
|
29
|
+
.spaced-out {
|
30
|
+
@include adjust-leading-to(1.5);
|
31
|
+
}
|
32
|
+
|
33
|
+
blockquote {
|
34
|
+
@include rhythm-margins;
|
35
|
+
padding: 0 rhythm();
|
36
|
+
}
|
37
|
+
|
38
|
+
.fig-quote {
|
39
|
+
> blockquote {
|
40
|
+
@include trailer(.5);
|
41
|
+
}
|
42
|
+
.source {
|
43
|
+
@include adjust-font-size-to(.85rem, auto);
|
44
|
+
@include trailer(.5);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.panel {
|
49
|
+
@include rhythm-borders;
|
50
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/* New using rem output with pixel fallbacks */
|
2
|
+
$base-font-size: 18px;
|
3
|
+
$base-line-height: $base-font-size * 1.4;
|
4
|
+
$rhythm-unit: rem;
|
5
|
+
$default-rhythm-border-style: solid #aaaaaa;
|
6
|
+
@import "compass/typography/vertical_rhythm";
|
7
|
+
|
8
|
+
@include establish-baseline;
|
9
|
+
|
10
|
+
.container {
|
11
|
+
@include debug-vertical-alignment;
|
12
|
+
}
|
13
|
+
|
14
|
+
p {
|
15
|
+
@include margin-leader;
|
16
|
+
@include margin-trailer;
|
17
|
+
}
|
18
|
+
|
19
|
+
th,
|
20
|
+
td {
|
21
|
+
@include rhythm-padding(.25);
|
22
|
+
}
|
23
|
+
|
24
|
+
/* Incremental leading made easy! */
|
25
|
+
.caption {
|
26
|
+
@include adjust-font-size-to(.85rem, 4/5);
|
27
|
+
}
|
28
|
+
|
29
|
+
.spaced-out {
|
30
|
+
@include adjust-leading-to(1.5);
|
31
|
+
}
|
32
|
+
|
33
|
+
blockquote {
|
34
|
+
@include rhythm-margins;
|
35
|
+
padding: 0 rhythm();
|
36
|
+
}
|
37
|
+
|
38
|
+
.fig-quote {
|
39
|
+
> blockquote {
|
40
|
+
@include trailer(.5);
|
41
|
+
}
|
42
|
+
.source {
|
43
|
+
@include adjust-font-size-to(.85rem, auto);
|
44
|
+
@include trailer(.5);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.panel {
|
49
|
+
@include rhythm-borders;
|
50
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Require any additional compass plugins here.
|
2
|
+
css_dir = "tmp"
|
3
|
+
sass_dir = "sass"
|
4
|
+
images_dir = "assets/images"
|
5
|
+
javascripts_dir = "assets/javascripts"
|
6
|
+
# Set this to the root of your project when deployed:
|
7
|
+
http_path = "/"
|
8
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
9
|
+
relative_assets = true
|
10
|
+
sourcemap = true
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"mappings": "AAEA,CAAE,CC0VA,eAAwC,CC1U5B,UAAmB,CD0U/B,kBAAwC,CC1U5B,UAAmB,CD0U/B,UAAwC,CC1U5B,UAAmB",
|
4
|
+
"sources": ["../sass/with_libraries.scss","../../../../../../core/stylesheets/compass/_support.scss","../../../../../../core/stylesheets/compass/css3/_box-sizing.scss"],
|
5
|
+
"names": [],
|
6
|
+
"file": "with_libraries.css"
|
7
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'sass-globbing'
|
2
|
+
require 'compass/import-once/activate'
|
3
|
+
# Require any additional compass plugins here.
|
4
|
+
|
5
|
+
# Set this to the root of your project when deployed:
|
6
|
+
http_path = "/"
|
7
|
+
css_dir = "tmp"
|
8
|
+
sass_dir = "sass"
|
9
|
+
images_dir = "images"
|
10
|
+
javascripts_dir = "javascripts"
|
11
|
+
|
12
|
+
# You can select your preferred output style here (can be overridden via the command line):
|
13
|
+
output_style = :expanded
|
14
|
+
|
15
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
16
|
+
relative_assets = true
|
17
|
+
|
18
|
+
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
19
|
+
line_comments = true
|
20
|
+
|
21
|
+
|
22
|
+
# If you prefer the indented syntax, you might want to regenerate this
|
23
|
+
# project again passing --syntax sass, or you can uncomment this:
|
24
|
+
# preferred_syntax = :sass
|
25
|
+
# and then run:
|
26
|
+
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/* line 1, ../sass/partials/_1.scss */
|
2
|
+
.one {
|
3
|
+
value: 1;
|
4
|
+
}
|
5
|
+
|
6
|
+
/* line 1, ../sass/partials/_2.scss */
|
7
|
+
.two {
|
8
|
+
value: 2;
|
9
|
+
}
|
10
|
+
|
11
|
+
/* line 1, ../sass/partials/_3.scss */
|
12
|
+
.three {
|
13
|
+
value: 3;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* line 3, ../sass/screen.scss */
|
17
|
+
.something {
|
18
|
+
awww: yeah;
|
19
|
+
}
|
data/test/helpers/diff.rb
CHANGED
@@ -3,7 +3,7 @@ require 'diff/lcs/hunk'
|
|
3
3
|
module Compass
|
4
4
|
module Diff
|
5
5
|
#stole this from rspec who stole this from the gem
|
6
|
-
def diff_as_string(
|
6
|
+
def diff_as_string(data_old, data_new)
|
7
7
|
data_old = data_old.split(/\n/).map! { |e| e.chomp }
|
8
8
|
data_new = data_new.split(/\n/).map! { |e| e.chomp }
|
9
9
|
output = ""
|
@@ -11,8 +11,10 @@ class CompassTest < Test::Unit::TestCase
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def teardown
|
14
|
-
|
14
|
+
Dir.glob(absolutize("fixtures/stylesheets/*")).each do |dir|
|
15
|
+
project_name = File.basename(dir)
|
15
16
|
::FileUtils.rm_rf tempfile_path(project_name)
|
17
|
+
::FileUtils.rm_rf File.join(project_path(project_name), ".sass-cache")
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
@@ -23,7 +25,7 @@ class CompassTest < Test::Unit::TestCase
|
|
23
25
|
before_compile = Proc.new do |config|
|
24
26
|
config.on_stylesheet_saved {|filepath| path = filepath; saved = true }
|
25
27
|
end
|
26
|
-
within_project(:
|
28
|
+
within_project(:compass, before_compile)
|
27
29
|
assert saved, "Stylesheet callback didn't get called"
|
28
30
|
assert path.is_a?(String), "Path is not a string. Got: #{path.class.name}"
|
29
31
|
end
|
@@ -36,7 +38,7 @@ class CompassTest < Test::Unit::TestCase
|
|
36
38
|
before_compile = Proc.new do |config|
|
37
39
|
config.on_stylesheet_error {|filename, message| file = filename; error = true }
|
38
40
|
end
|
39
|
-
within_project(:error, before_compile) rescue nil
|
41
|
+
within_project(:error, before_compile) rescue nil
|
40
42
|
assert error, "Project did not throw a compile error"
|
41
43
|
assert file.is_a?(String), "Filename was not a string"
|
42
44
|
end
|
@@ -51,10 +53,10 @@ class CompassTest < Test::Unit::TestCase
|
|
51
53
|
end
|
52
54
|
end
|
53
55
|
|
54
|
-
def
|
55
|
-
within_project(
|
56
|
+
def test_compass
|
57
|
+
within_project('compass') do |proj|
|
56
58
|
each_css_file(proj.css_path) do |css_file|
|
57
|
-
assert_no_errors css_file,
|
59
|
+
assert_no_errors css_file, 'compass'
|
58
60
|
end
|
59
61
|
each_sass_file do |sass_file|
|
60
62
|
assert_renders_correctly sass_file, :ignore_charset => true
|
@@ -62,10 +64,10 @@ class CompassTest < Test::Unit::TestCase
|
|
62
64
|
end
|
63
65
|
end
|
64
66
|
|
65
|
-
def
|
66
|
-
within_project('
|
67
|
+
def test_sourcemaps
|
68
|
+
within_project('sourcemaps') do |proj|
|
67
69
|
each_css_file(proj.css_path) do |css_file|
|
68
|
-
assert_no_errors css_file, '
|
70
|
+
assert_no_errors css_file, 'sourcemaps'
|
69
71
|
end
|
70
72
|
each_sass_file do |sass_file|
|
71
73
|
assert_renders_correctly sass_file, :ignore_charset => true
|
@@ -95,6 +97,17 @@ class CompassTest < Test::Unit::TestCase
|
|
95
97
|
end
|
96
98
|
end
|
97
99
|
|
100
|
+
def test_busted_font_urls
|
101
|
+
within_project('busted_font_urls') do |proj|
|
102
|
+
each_css_file(proj.css_path) do |css_file|
|
103
|
+
assert_no_errors css_file, 'busted_font_urls'
|
104
|
+
end
|
105
|
+
each_sass_file do |sass_file|
|
106
|
+
assert_renders_correctly sass_file
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
98
111
|
def test_busted_image_urls
|
99
112
|
within_project('busted_image_urls') do |proj|
|
100
113
|
each_css_file(proj.css_path) do |css_file|
|
@@ -106,6 +119,17 @@ class CompassTest < Test::Unit::TestCase
|
|
106
119
|
end
|
107
120
|
end
|
108
121
|
|
122
|
+
def test_with_sass_globbing
|
123
|
+
within_project('with_sass_globbing') do |proj|
|
124
|
+
each_css_file(proj.css_path) do |css_file|
|
125
|
+
assert_no_errors css_file, 'with_sass_globbing'
|
126
|
+
end
|
127
|
+
each_sass_file do |sass_file|
|
128
|
+
assert_renders_correctly sass_file
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
109
133
|
def test_image_urls
|
110
134
|
within_project('image_urls') do |proj|
|
111
135
|
each_css_file(proj.css_path) do |css_file|
|
@@ -138,8 +162,9 @@ private
|
|
138
162
|
def assert_renders_correctly(*arguments)
|
139
163
|
options = arguments.last.is_a?(Hash) ? arguments.pop : {}
|
140
164
|
for name in arguments
|
141
|
-
actual_result_file = "#{tempfile_path(@current_project)}/#{name}.css"
|
165
|
+
@output_file = actual_result_file = "#{tempfile_path(@current_project)}/#{name}.css"
|
142
166
|
expected_result_file = "#{result_path(@current_project)}/#{name}.css"
|
167
|
+
@filename = expected_result_file.gsub('css', 'scss')
|
143
168
|
actual_lines = File.read(actual_result_file)
|
144
169
|
actual_lines.gsub!(/^@charset[^;]+;/,'') if options[:ignore_charset]
|
145
170
|
actual_lines = actual_lines.split("\n").reject{|l| l=~/\A\Z/}
|
@@ -154,7 +179,7 @@ private
|
|
154
179
|
end
|
155
180
|
end
|
156
181
|
if expected_lines.size < actual_lines.size
|
157
|
-
assert(false, "#{actual_lines.size - expected_lines.size} Trailing lines found in #{actual_result_file}
|
182
|
+
assert(false, "#{actual_lines.size - expected_lines.size} Trailing lines found in #{actual_result_file}: #{actual_lines[expected_lines.size..-1].join('\n')}")
|
158
183
|
end
|
159
184
|
end
|
160
185
|
end
|
@@ -164,16 +189,17 @@ private
|
|
164
189
|
Compass.add_configuration(configuration_file(project_name)) if File.exists?(configuration_file(project_name))
|
165
190
|
Compass.configuration.project_path = project_path(project_name)
|
166
191
|
Compass.configuration.environment = :production
|
167
|
-
|
192
|
+
Compass.configuration.sourcemap = false unless Compass.configuration.sourcemap_set?
|
168
193
|
|
169
194
|
if config_block
|
170
195
|
config_block.call(Compass.configuration)
|
171
196
|
end
|
172
197
|
|
173
198
|
if Compass.configuration.sass_path && File.exists?(Compass.configuration.sass_path)
|
174
|
-
compiler = Compass
|
199
|
+
compiler = Compass.sass_compiler
|
200
|
+
compiler.logger = Compass::NullLogger.new
|
175
201
|
compiler.clean!
|
176
|
-
compiler.
|
202
|
+
compiler.compile!
|
177
203
|
end
|
178
204
|
yield Compass.configuration if block_given?
|
179
205
|
rescue
|
@@ -188,6 +214,7 @@ private
|
|
188
214
|
def each_sass_file(sass_dir = nil)
|
189
215
|
sass_dir ||= template_path(@current_project)
|
190
216
|
Dir.glob("#{sass_dir}/**/*.s[ac]ss").each do |sass_file|
|
217
|
+
next if File.basename(sass_file).start_with?("_")
|
191
218
|
yield sass_file[(sass_dir.length+1)..-6]
|
192
219
|
end
|
193
220
|
end
|
@@ -221,4 +248,12 @@ private
|
|
221
248
|
File.join(project_path(project_name), "saved")
|
222
249
|
end
|
223
250
|
|
251
|
+
def filename
|
252
|
+
@filename
|
253
|
+
end
|
254
|
+
|
255
|
+
def output_file
|
256
|
+
@output_file
|
257
|
+
end
|
258
|
+
|
224
259
|
end
|
@@ -9,11 +9,19 @@ class SpritesTest < Test::Unit::TestCase
|
|
9
9
|
|
10
10
|
def setup
|
11
11
|
Compass.reset_configuration!
|
12
|
-
@
|
13
|
-
@
|
14
|
-
@
|
12
|
+
@images_project_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'fixtures', 'sprites', 'public'))
|
13
|
+
@images_src_dir = 'images'
|
14
|
+
@images_src_path = File.join(@images_project_path, @images_src_dir)
|
15
|
+
@images_tmp_dir = 'images-tmp'
|
16
|
+
@images_tmp_path = File.join(@images_project_path, @images_tmp_dir)
|
17
|
+
@generated_images_tmp_dir = 'generated-images-tmp'
|
18
|
+
@generated_images_tmp_path = File.join(@images_project_path, @generated_images_tmp_dir)
|
15
19
|
::FileUtils.cp_r @images_src_path, @images_tmp_path
|
16
|
-
|
20
|
+
::FileUtils.mkdir_p @generated_images_tmp_path
|
21
|
+
file = StringIO.new(<<-CONFIG)
|
22
|
+
project_path = "#{@images_project_path}"
|
23
|
+
images_dir = "#{@images_tmp_dir}"
|
24
|
+
CONFIG
|
17
25
|
Compass.add_configuration(file, "sprite_config")
|
18
26
|
Compass.configure_sass_plugin!
|
19
27
|
end
|
@@ -34,7 +42,7 @@ class SpritesTest < Test::Unit::TestCase
|
|
34
42
|
end
|
35
43
|
|
36
44
|
def image_size(file)
|
37
|
-
|
45
|
+
Compass::Core::SassExtensions::Functions::ImageSize::ImageProperties.new(map_location(file)).size
|
38
46
|
end
|
39
47
|
|
40
48
|
def image_md5(file)
|
@@ -44,7 +52,6 @@ class SpritesTest < Test::Unit::TestCase
|
|
44
52
|
end
|
45
53
|
|
46
54
|
def render(scss)
|
47
|
-
scss = %Q(@import "compass"; #{scss})
|
48
55
|
options = Compass.sass_engine_options
|
49
56
|
options[:line_comments] = false
|
50
57
|
options[:style] = :expanded
|
@@ -65,9 +72,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
65
72
|
@import "squares/*.png";
|
66
73
|
@include all-squares-sprites;
|
67
74
|
SCSS
|
68
|
-
assert_correct
|
75
|
+
assert_correct <<-CSS, css
|
69
76
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
70
|
-
background: url('/squares-sbbc18e2129.png')
|
77
|
+
background-image: url('/images-tmp/squares-sbbc18e2129.png');
|
78
|
+
background-repeat: no-repeat;
|
71
79
|
}
|
72
80
|
|
73
81
|
.squares-ten-by-ten {
|
@@ -98,7 +106,8 @@ class SpritesTest < Test::Unit::TestCase
|
|
98
106
|
assert_not_nil Dir.glob("#{@generated_images_tmp_path}/squares-s*.png").first
|
99
107
|
assert_correct <<-CSS, css
|
100
108
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
101
|
-
background: url('/images/generated/squares-sbbc18e2129.png')
|
109
|
+
background-image: url('/images/generated/squares-sbbc18e2129.png');
|
110
|
+
background-repeat: no-repeat;
|
102
111
|
}
|
103
112
|
|
104
113
|
.squares-ten-by-ten {
|
@@ -117,9 +126,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
117
126
|
@import "squares/*.png";
|
118
127
|
@include all-squares-sprites;
|
119
128
|
SCSS
|
120
|
-
assert_correct
|
129
|
+
assert_correct <<-CSS, css
|
121
130
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
122
|
-
background: url('/squares-sbbc18e2129.png')
|
131
|
+
background-image: url('/images-tmp/squares-sbbc18e2129.png');
|
132
|
+
background-repeat: no-repeat;
|
123
133
|
}
|
124
134
|
|
125
135
|
.squares-ten-by-ten {
|
@@ -149,9 +159,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
149
159
|
@include squares-sprite("twenty-by-twenty", true);
|
150
160
|
}
|
151
161
|
SCSS
|
152
|
-
assert_correct
|
162
|
+
assert_correct <<-CSS, css
|
153
163
|
.squares-sprite, .cubicle, .large-cube {
|
154
|
-
background: url('/squares-sbbc18e2129.png')
|
164
|
+
background-image: url('/images-tmp/squares-sbbc18e2129.png');
|
165
|
+
background-repeat: no-repeat;
|
155
166
|
}
|
156
167
|
|
157
168
|
.cubicle {
|
@@ -174,9 +185,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
174
185
|
$squares-sprite-base-class: ".circles";
|
175
186
|
@import "squares/*.png";
|
176
187
|
SCSS
|
177
|
-
assert_correct
|
188
|
+
assert_correct <<-CSS, css
|
178
189
|
.circles {
|
179
|
-
background: url('/squares-sbbc18e2129.png')
|
190
|
+
background-image: url('/images-tmp/squares-sbbc18e2129.png');
|
191
|
+
background-repeat: no-repeat;
|
180
192
|
}
|
181
193
|
CSS
|
182
194
|
assert_equal image_size('squares-s*.png'), [20, 30]
|
@@ -188,9 +200,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
188
200
|
@import "squares/*.png";
|
189
201
|
@include all-squares-sprites;
|
190
202
|
SCSS
|
191
|
-
assert_correct
|
203
|
+
assert_correct <<-CSS, css
|
192
204
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
193
|
-
background: url('/squares-s563a5e0855.png')
|
205
|
+
background-image: url('/images-tmp/squares-s563a5e0855.png');
|
206
|
+
background-repeat: no-repeat;
|
194
207
|
}
|
195
208
|
|
196
209
|
.squares-ten-by-ten {
|
@@ -210,9 +223,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
210
223
|
@import "squares/*.png";
|
211
224
|
@include all-squares-sprites;
|
212
225
|
SCSS
|
213
|
-
assert_correct
|
226
|
+
assert_correct <<-CSS, css
|
214
227
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
215
|
-
background: url('/squares-s4ea353fa6d.png')
|
228
|
+
background-image: url('/images-tmp/squares-s4ea353fa6d.png');
|
229
|
+
background-repeat: no-repeat;
|
216
230
|
}
|
217
231
|
|
218
232
|
.squares-ten-by-ten {
|
@@ -233,9 +247,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
233
247
|
@import "squares/*.png";
|
234
248
|
@include all-squares-sprites;
|
235
249
|
SCSS
|
236
|
-
assert_correct
|
250
|
+
assert_correct <<-CSS, css
|
237
251
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
238
|
-
background: url('/squares-sf4771cb124.png')
|
252
|
+
background-image: url('/images-tmp/squares-sf4771cb124.png');
|
253
|
+
background-repeat: no-repeat;
|
239
254
|
}
|
240
255
|
|
241
256
|
.squares-ten-by-ten {
|
@@ -256,9 +271,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
256
271
|
@import "squares/*.png";
|
257
272
|
@include all-squares-sprites;
|
258
273
|
SCSS
|
259
|
-
assert_correct
|
274
|
+
assert_correct <<-CSS, css
|
260
275
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
261
|
-
background: url('/squares-sc82d6f3cf4.png')
|
276
|
+
background-image: url('/images-tmp/squares-sc82d6f3cf4.png');
|
277
|
+
background-repeat: no-repeat;
|
262
278
|
}
|
263
279
|
|
264
280
|
.squares-ten-by-ten {
|
@@ -278,9 +294,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
278
294
|
@import "squares/*.png";
|
279
295
|
@include all-squares-sprites;
|
280
296
|
SCSS
|
281
|
-
assert_correct
|
297
|
+
assert_correct <<-CSS, css
|
282
298
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
283
|
-
background: url('/squares-s2f4aa65dcf.png')
|
299
|
+
background-image: url('/images-tmp/squares-s2f4aa65dcf.png');
|
300
|
+
background-repeat: no-repeat;
|
284
301
|
}
|
285
302
|
|
286
303
|
.squares-ten-by-ten {
|
@@ -298,7 +315,8 @@ class SpritesTest < Test::Unit::TestCase
|
|
298
315
|
css = render <<-SCSS
|
299
316
|
$squares: sprite-map("squares/*.png", $position: 100%);
|
300
317
|
.squares-sprite {
|
301
|
-
background: $squares
|
318
|
+
background-image: $squares;
|
319
|
+
background-repeat: no-repeat;
|
302
320
|
}
|
303
321
|
|
304
322
|
.adjusted-percentage {
|
@@ -313,9 +331,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
313
331
|
background-position: sprite-position($squares, twenty-by-twenty, -3px, 2px);
|
314
332
|
}
|
315
333
|
SCSS
|
316
|
-
assert_correct
|
334
|
+
assert_correct <<-CSS, css
|
317
335
|
.squares-sprite {
|
318
|
-
background: url('/squares-sce5dc30797.png')
|
336
|
+
background-image: url('/images-tmp/squares-sce5dc30797.png');
|
337
|
+
background-repeat: no-repeat;
|
319
338
|
}
|
320
339
|
|
321
340
|
.adjusted-percentage {
|
@@ -351,9 +370,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
351
370
|
@include squares-sprite("twenty-by-twenty", $offset-x: -3px, $offset-y: 2px);
|
352
371
|
}
|
353
372
|
SCSS
|
354
|
-
assert_correct
|
373
|
+
assert_correct <<-CSS, css
|
355
374
|
.squares-sprite, .adjusted-percentage, .adjusted-px-1, .adjusted-px-2 {
|
356
|
-
background: url('/squares-sce5dc30797.png')
|
375
|
+
background-image: url('/images-tmp/squares-sce5dc30797.png');
|
376
|
+
background-repeat: no-repeat;
|
357
377
|
}
|
358
378
|
|
359
379
|
.adjusted-percentage {
|
@@ -378,9 +398,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
378
398
|
@import "squares/*.png";
|
379
399
|
@include all-squares-sprites;
|
380
400
|
SCSS
|
381
|
-
assert_correct
|
401
|
+
assert_correct <<-CSS, css
|
382
402
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
383
|
-
background: url('/squares-s65c43cd573.png')
|
403
|
+
background-image: url('/images-tmp/squares-s65c43cd573.png');
|
404
|
+
background-repeat: no-repeat;
|
384
405
|
}
|
385
406
|
|
386
407
|
.squares-ten-by-ten {
|
@@ -402,9 +423,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
402
423
|
@import "squares/*.png";
|
403
424
|
@include all-squares-sprites;
|
404
425
|
SCSS
|
405
|
-
assert_correct
|
426
|
+
assert_correct <<-CSS, css
|
406
427
|
.squares-sprite, .squares-ten-by-ten, .squares-twenty-by-twenty {
|
407
|
-
background: url('/squares-sb9d9a8ca6a.png')
|
428
|
+
background-image: url('/images-tmp/squares-sb9d9a8ca6a.png');
|
429
|
+
background-repeat: no-repeat;
|
408
430
|
}
|
409
431
|
|
410
432
|
.squares-ten-by-ten {
|
@@ -423,23 +445,19 @@ class SpritesTest < Test::Unit::TestCase
|
|
423
445
|
assert_raise(Sass::SyntaxError) do
|
424
446
|
render <<-SCSS
|
425
447
|
.squares {
|
426
|
-
background: sprite-url("squares/*.png")
|
427
|
-
|
428
|
-
SCSS
|
429
|
-
end
|
430
|
-
assert_raise(Sass::SyntaxError) do
|
431
|
-
css = render <<-SCSS
|
432
|
-
.squares {
|
433
|
-
background: sprite-image("squares/twenty-by-twenty.png") no-repeat;
|
448
|
+
background-image: sprite-url("squares/*.png");
|
449
|
+
background-repeat: no-repeat;
|
434
450
|
}
|
435
451
|
SCSS
|
436
452
|
end
|
453
|
+
|
437
454
|
assert_raise(Sass::SyntaxError) do
|
438
455
|
css = render <<-SCSS
|
439
456
|
@import "squares/*.png";
|
440
457
|
|
441
458
|
.squares {
|
442
|
-
background: sprite-position("squares/twenty-by-twenty.png")
|
459
|
+
background-image: sprite-position("squares/twenty-by-twenty.png");
|
460
|
+
background-repeat: no-repeat;
|
443
461
|
}
|
444
462
|
SCSS
|
445
463
|
end
|
@@ -448,12 +466,152 @@ class SpritesTest < Test::Unit::TestCase
|
|
448
466
|
it "should work even if @import is missing" do
|
449
467
|
css = render <<-SCSS
|
450
468
|
.squares {
|
451
|
-
background: sprite(sprite-map("squares/*.png"), twenty-by-twenty)
|
469
|
+
background-image: sprite(sprite-map("squares/*.png"), twenty-by-twenty);
|
470
|
+
background-repeat: no-repeat;
|
452
471
|
}
|
453
472
|
SCSS
|
454
|
-
assert_correct
|
473
|
+
assert_correct <<-CSS, css
|
455
474
|
.squares {
|
456
|
-
background: url('/squares-sd817b59156.png') 0 -10px
|
475
|
+
background-image: url('/images-tmp/squares-sd817b59156.png') 0 -10px;
|
476
|
+
background-repeat: no-repeat;
|
477
|
+
}
|
478
|
+
CSS
|
479
|
+
end
|
480
|
+
|
481
|
+
it "should import sprites with numeric filenames via #738" do
|
482
|
+
css = render <<-SCSS
|
483
|
+
@import "numeric/*.png";
|
484
|
+
@include all-numeric-sprites;
|
485
|
+
SCSS
|
486
|
+
assert_correct <<-CSS, css
|
487
|
+
.numeric-sprite, .numeric-200 {
|
488
|
+
background-image: url('/images-tmp/numeric-saa92d65a89.png');
|
489
|
+
background-repeat: no-repeat;
|
490
|
+
}
|
491
|
+
|
492
|
+
.numeric-200 {
|
493
|
+
background-position: 0 0;
|
494
|
+
}
|
495
|
+
CSS
|
496
|
+
end
|
497
|
+
|
498
|
+
it "should use percentage positions when use_percentages is true" do
|
499
|
+
css = render <<-SCSS
|
500
|
+
@import "squares/*.png";
|
501
|
+
$squares-use-percentages: true;
|
502
|
+
.foo {
|
503
|
+
@include squares-sprite-position("twenty-by-twenty");
|
504
|
+
}
|
505
|
+
.bar {
|
506
|
+
@include squares-sprite-position("ten-by-ten");
|
507
|
+
@include squares-sprite-dimensions("ten-by-ten");
|
508
|
+
}
|
509
|
+
SCSS
|
510
|
+
assert_correct <<-CSS, css
|
511
|
+
.squares-sprite {
|
512
|
+
background-image: url('/images-tmp/squares-sbbc18e2129.png');
|
513
|
+
background-repeat: no-repeat;
|
514
|
+
}
|
515
|
+
|
516
|
+
.foo {
|
517
|
+
background-position: 0 100%;
|
518
|
+
}
|
519
|
+
|
520
|
+
.bar {
|
521
|
+
background-position: 0 0;
|
522
|
+
height: 10px;
|
523
|
+
width: 10px;
|
524
|
+
}
|
525
|
+
CSS
|
526
|
+
end
|
527
|
+
|
528
|
+
it "should use correct percentages when use_percentages is with horizontal layout" do
|
529
|
+
css = render <<-SCSS
|
530
|
+
$squares-layout: horizontal;
|
531
|
+
@import "squares/*.png";
|
532
|
+
$squares-use-percentages: true;
|
533
|
+
.foo {
|
534
|
+
@include squares-sprite-position("twenty-by-twenty");
|
535
|
+
}
|
536
|
+
.bar {
|
537
|
+
@include squares-sprite-position("ten-by-ten");
|
538
|
+
}
|
539
|
+
SCSS
|
540
|
+
assert_correct <<-CSS, css
|
541
|
+
.squares-sprite {
|
542
|
+
background-image: url('/images-tmp/squares-s4bd95c5c56.png');
|
543
|
+
background-repeat: no-repeat;
|
544
|
+
}
|
545
|
+
|
546
|
+
.foo {
|
547
|
+
background-position: 100% 0;
|
548
|
+
}
|
549
|
+
|
550
|
+
.bar {
|
551
|
+
background-position: 0 0;
|
552
|
+
}
|
553
|
+
CSS
|
554
|
+
end
|
555
|
+
|
556
|
+
it "should use correct percentages when use_percentages is true with smart layout" do
|
557
|
+
css = render <<-SCSS
|
558
|
+
$image_row-layout: smart;
|
559
|
+
@import "image_row/*.png";
|
560
|
+
$image_row-use-percentages: true;
|
561
|
+
.foo {
|
562
|
+
@include image_row-sprite-position("medium");
|
563
|
+
}
|
564
|
+
.bar {
|
565
|
+
@include image_row-sprite-position("large_square");
|
566
|
+
}
|
567
|
+
SCSS
|
568
|
+
assert_correct <<-CSS, css
|
569
|
+
.image_row-sprite {
|
570
|
+
background-image: url('/images-tmp/image_row-sc5082a6b9f.png');
|
571
|
+
background-repeat: no-repeat;
|
572
|
+
}
|
573
|
+
|
574
|
+
.foo {
|
575
|
+
background-position: 0 50%;
|
576
|
+
}
|
577
|
+
|
578
|
+
.bar {
|
579
|
+
background-position: 33.33333% 100%;
|
580
|
+
}
|
581
|
+
CSS
|
582
|
+
end
|
583
|
+
|
584
|
+
it "should use correct percentages when use_percentages is true" do
|
585
|
+
css = render <<-SCSS
|
586
|
+
$image_row-use-percentages: true;
|
587
|
+
$image_row-sort-by : '!width';
|
588
|
+
@import "image_row/*.png";
|
589
|
+
@include all-image_row-sprites;
|
590
|
+
SCSS
|
591
|
+
assert_correct <<-CSS, css
|
592
|
+
.image_row-sprite, .image_row-large, .image_row-large_square, .image_row-medium, .image_row-small, .image_row-tall {
|
593
|
+
background-image: url('/images-tmp/image_row-sdf383d45a3.png');
|
594
|
+
background-repeat: no-repeat;
|
595
|
+
}
|
596
|
+
|
597
|
+
.image_row-large {
|
598
|
+
background-position: 0 0;
|
599
|
+
}
|
600
|
+
|
601
|
+
.image_row-large_square {
|
602
|
+
background-position: 0 40%;
|
603
|
+
}
|
604
|
+
|
605
|
+
.image_row-medium {
|
606
|
+
background-position: 0 16.66667%;
|
607
|
+
}
|
608
|
+
|
609
|
+
.image_row-small {
|
610
|
+
background-position: 0 100%;
|
611
|
+
}
|
612
|
+
|
613
|
+
.image_row-tall {
|
614
|
+
background-position: 0 80%;
|
457
615
|
}
|
458
616
|
CSS
|
459
617
|
end
|
@@ -470,9 +628,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
470
628
|
}
|
471
629
|
SCSS
|
472
630
|
assert_equal image_size('squares-s*.png'), [20, 40]
|
473
|
-
assert_correct
|
631
|
+
assert_correct <<-CSS, css
|
474
632
|
.squares-sprite {
|
475
|
-
background: url('/squares-s555875d730.png')
|
633
|
+
background-image: url('/images-tmp/squares-s555875d730.png');
|
634
|
+
background-repeat: no-repeat;
|
476
635
|
}
|
477
636
|
|
478
637
|
.foo {
|
@@ -490,21 +649,22 @@ class SpritesTest < Test::Unit::TestCase
|
|
490
649
|
@import "selectors/*.png";
|
491
650
|
@include all-selectors-sprites;
|
492
651
|
SCSS
|
493
|
-
assert_correct
|
652
|
+
assert_correct <<-CSS, css
|
494
653
|
.selectors-sprite, .selectors-ten-by-ten {
|
495
|
-
background: url('/selectors-s7e84acb3d2.png')
|
654
|
+
background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
|
655
|
+
background-repeat: no-repeat;
|
496
656
|
}
|
497
657
|
|
498
658
|
.selectors-ten-by-ten {
|
499
659
|
background-position: 0 0;
|
500
660
|
}
|
501
|
-
.selectors-ten-by-ten:hover, .selectors-ten-by-ten.ten-by-
|
661
|
+
.selectors-ten-by-ten:hover, .selectors-ten-by-ten.ten-by-ten-hover {
|
502
662
|
background-position: 0 -20px;
|
503
663
|
}
|
504
|
-
.selectors-ten-by-ten:target, .selectors-ten-by-ten.ten-by-
|
664
|
+
.selectors-ten-by-ten:target, .selectors-ten-by-ten.ten-by-ten-target {
|
505
665
|
background-position: 0 -30px;
|
506
666
|
}
|
507
|
-
.selectors-ten-by-ten:active, .selectors-ten-by-ten.ten-by-
|
667
|
+
.selectors-ten-by-ten:active, .selectors-ten-by-ten.ten-by-ten-active {
|
508
668
|
background-position: 0 -10px;
|
509
669
|
}
|
510
670
|
CSS
|
@@ -515,21 +675,22 @@ class SpritesTest < Test::Unit::TestCase
|
|
515
675
|
@import "selectors/*.png";
|
516
676
|
@include all-selectors-sprites($offset-x: 20px, $offset-y: 20px);
|
517
677
|
SCSS
|
518
|
-
assert_correct
|
678
|
+
assert_correct <<-CSS, css
|
519
679
|
.selectors-sprite, .selectors-ten-by-ten {
|
520
|
-
background: url('/selectors-s7e84acb3d2.png')
|
680
|
+
background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
|
681
|
+
background-repeat: no-repeat;
|
521
682
|
}
|
522
683
|
|
523
684
|
.selectors-ten-by-ten {
|
524
685
|
background-position: 20px 20px;
|
525
686
|
}
|
526
|
-
.selectors-ten-by-ten:hover, .selectors-ten-by-ten.ten-by-
|
687
|
+
.selectors-ten-by-ten:hover, .selectors-ten-by-ten.ten-by-ten-hover {
|
527
688
|
background-position: 20px 0;
|
528
689
|
}
|
529
|
-
.selectors-ten-by-ten:target, .selectors-ten-by-ten.ten-by-
|
690
|
+
.selectors-ten-by-ten:target, .selectors-ten-by-ten.ten-by-ten-target {
|
530
691
|
background-position: 20px -10px;
|
531
692
|
}
|
532
|
-
.selectors-ten-by-ten:active, .selectors-ten-by-ten.ten-by-
|
693
|
+
.selectors-ten-by-ten:active, .selectors-ten-by-ten.ten-by-ten-active {
|
533
694
|
background-position: 20px 10px;
|
534
695
|
}
|
535
696
|
CSS
|
@@ -542,21 +703,22 @@ class SpritesTest < Test::Unit::TestCase
|
|
542
703
|
@include selectors-sprite(ten-by-ten)
|
543
704
|
}
|
544
705
|
SCSS
|
545
|
-
assert_correct
|
706
|
+
assert_correct <<-CSS, css
|
546
707
|
.selectors-sprite, a {
|
547
|
-
background: url('/selectors-s7e84acb3d2.png')
|
708
|
+
background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
|
709
|
+
background-repeat: no-repeat;
|
548
710
|
}
|
549
711
|
|
550
712
|
a {
|
551
713
|
background-position: 0 0;
|
552
714
|
}
|
553
|
-
a:hover, a.ten-by-
|
715
|
+
a:hover, a.ten-by-ten-hover {
|
554
716
|
background-position: 0 -20px;
|
555
717
|
}
|
556
|
-
a:target, a.ten-by-
|
718
|
+
a:target, a.ten-by-ten-target {
|
557
719
|
background-position: 0 -30px;
|
558
720
|
}
|
559
|
-
a:active, a.ten-by-
|
721
|
+
a:active, a.ten-by-ten-active {
|
560
722
|
background-position: 0 -10px;
|
561
723
|
}
|
562
724
|
CSS
|
@@ -567,13 +729,14 @@ class SpritesTest < Test::Unit::TestCase
|
|
567
729
|
css = render <<-SCSS
|
568
730
|
@import "selectors/*.png";
|
569
731
|
a {
|
570
|
-
$disable-magic-sprite-selectors:true;
|
732
|
+
$disable-magic-sprite-selectors:true !global;
|
571
733
|
@include selectors-sprite(ten-by-ten)
|
572
734
|
}
|
573
735
|
SCSS
|
574
|
-
assert_correct
|
736
|
+
assert_correct <<-CSS, css
|
575
737
|
.selectors-sprite, a {
|
576
|
-
background: url('/selectors-s7e84acb3d2.png')
|
738
|
+
background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
|
739
|
+
background-repeat: no-repeat;
|
577
740
|
}
|
578
741
|
|
579
742
|
a {
|
@@ -589,35 +752,45 @@ class SpritesTest < Test::Unit::TestCase
|
|
589
752
|
@include selectors-sprite(ten-by-ten, false, 5, -5)
|
590
753
|
}
|
591
754
|
SCSS
|
592
|
-
assert_correct
|
755
|
+
assert_correct <<-CSS, css
|
593
756
|
.selectors-sprite, a {
|
594
|
-
background: url('/selectors-s7e84acb3d2.png')
|
757
|
+
background-image: url('/images-tmp/selectors-s7e84acb3d2.png');
|
758
|
+
background-repeat: no-repeat;
|
595
759
|
}
|
596
760
|
|
597
761
|
a {
|
598
762
|
background-position: 5px -5px;
|
599
763
|
}
|
600
|
-
a:hover, a.ten-by-
|
764
|
+
a:hover, a.ten-by-ten-hover {
|
601
765
|
background-position: 5px -25px;
|
602
766
|
}
|
603
|
-
a:target, a.ten-by-
|
767
|
+
a:target, a.ten-by-ten-target {
|
604
768
|
background-position: 5px -35px;
|
605
769
|
}
|
606
|
-
a:active, a.ten-by-
|
770
|
+
a:active, a.ten-by-ten-active {
|
607
771
|
background-position: 5px -15px;
|
608
772
|
}
|
609
773
|
CSS
|
610
774
|
end
|
611
775
|
|
612
|
-
it "should raise error on filenames that are
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
776
|
+
it "should not raise error on filenames that are invalid classnames if the selector generation is not used" do
|
777
|
+
css = render <<-SCSS
|
778
|
+
$prefix-sort-by : 'width';
|
779
|
+
@import "prefix/*.png";
|
780
|
+
a {
|
781
|
+
@include prefix-sprite("20-by-20");
|
782
|
+
}
|
783
|
+
SCSS
|
784
|
+
assert_correct <<-CSS, css
|
785
|
+
.prefix-sprite, a {
|
786
|
+
background-image: url('/images-tmp/prefix-s949dea513d.png');
|
787
|
+
background-repeat: no-repeat;
|
788
|
+
}
|
789
|
+
|
790
|
+
a {
|
791
|
+
background-position: 0 -10px;
|
792
|
+
}
|
793
|
+
CSS
|
621
794
|
end
|
622
795
|
|
623
796
|
it "should generate sprite with bad repeat-x dimensions" do
|
@@ -626,9 +799,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
626
799
|
@import "ko/*.png";
|
627
800
|
@include all-ko-sprites;
|
628
801
|
SCSS
|
629
|
-
assert_correct
|
802
|
+
assert_correct <<-CSS, css
|
630
803
|
.ko-sprite, .ko-default_background, .ko-starbg26x27 {
|
631
|
-
background: url('/ko-sd46dfbab4f.png')
|
804
|
+
background-image: url('/images-tmp/ko-sd46dfbab4f.png');
|
805
|
+
background-repeat: no-repeat;
|
632
806
|
}
|
633
807
|
|
634
808
|
.ko-default_background {
|
@@ -647,7 +821,7 @@ class SpritesTest < Test::Unit::TestCase
|
|
647
821
|
css = render <<-SCSS
|
648
822
|
@import "selectors/*.png";
|
649
823
|
a {
|
650
|
-
$disable-magic-sprite-selectors:true;
|
824
|
+
$disable-magic-sprite-selectors:true !global;
|
651
825
|
@include selectors-sprite(ten-by-ten)
|
652
826
|
}
|
653
827
|
SCSS
|
@@ -661,7 +835,7 @@ class SpritesTest < Test::Unit::TestCase
|
|
661
835
|
$selectors-clean-up: false;
|
662
836
|
@import "selectors/*.png";
|
663
837
|
a {
|
664
|
-
$disable-magic-sprite-selectors:true;
|
838
|
+
$disable-magic-sprite-selectors:true !global;
|
665
839
|
@include selectors-sprite(ten-by-ten)
|
666
840
|
}
|
667
841
|
SCSS
|
@@ -697,9 +871,10 @@ class SpritesTest < Test::Unit::TestCase
|
|
697
871
|
@import "nested/**/*.png";
|
698
872
|
@include all-nested-sprites;
|
699
873
|
SCSS
|
700
|
-
assert_correct
|
874
|
+
assert_correct <<-CSS, css
|
701
875
|
.nested-sprite, .nested-ten-by-ten {
|
702
|
-
background: url('/nested-s7b93e0b6bf.png')
|
876
|
+
background-image: url('/images-tmp/nested-s7b93e0b6bf.png');
|
877
|
+
background-repeat: no-repeat;
|
703
878
|
}
|
704
879
|
|
705
880
|
.nested-ten-by-ten {
|
@@ -722,7 +897,8 @@ class SpritesTest < Test::Unit::TestCase
|
|
722
897
|
assert_equal [30, 20], image_size('squares-s*.png')
|
723
898
|
other_css = <<-CSS
|
724
899
|
.squares-sprite {
|
725
|
-
background: url('/squares-s4bd95c5c56.png')
|
900
|
+
background-image: url('/images-tmp/squares-s4bd95c5c56.png');
|
901
|
+
background-repeat: no-repeat;
|
726
902
|
}
|
727
903
|
|
728
904
|
.foo {
|
@@ -733,7 +909,7 @@ class SpritesTest < Test::Unit::TestCase
|
|
733
909
|
background-position: 0 0;
|
734
910
|
}
|
735
911
|
CSS
|
736
|
-
assert_correct clean(
|
912
|
+
assert_correct clean(other_css), clean(css)
|
737
913
|
end
|
738
914
|
|
739
915
|
it "should allow use of demension functions" do
|
@@ -748,18 +924,20 @@ class SpritesTest < Test::Unit::TestCase
|
|
748
924
|
SCSS
|
749
925
|
other_css = <<-CSS
|
750
926
|
.squares-sprite {
|
751
|
-
background: url('/squares-sbbc18e2129.png')
|
927
|
+
background-image: url('/images-tmp/squares-sbbc18e2129.png');
|
928
|
+
background-repeat: no-repeat;
|
752
929
|
}
|
753
930
|
.div {
|
754
931
|
height:21px;
|
755
932
|
width:22px;
|
756
933
|
}
|
757
934
|
CSS
|
758
|
-
assert_correct clean(
|
935
|
+
assert_correct clean(other_css), clean(css)
|
759
936
|
end
|
760
937
|
|
761
938
|
it "should replace text with images and dimensions using sprites" do
|
762
939
|
css = render <<-SCSS
|
940
|
+
@import "compass/utilities/sprites/sprite-img";
|
763
941
|
@import "colors/*.png";
|
764
942
|
.blue {
|
765
943
|
@include sprite-replace-text($colors-sprites, blue);
|
@@ -769,15 +947,17 @@ class SpritesTest < Test::Unit::TestCase
|
|
769
947
|
}
|
770
948
|
SCSS
|
771
949
|
other_css = <<-CSS
|
772
|
-
.colors-sprite {
|
773
|
-
background:url('/colors-s58671cb5bb.png')
|
950
|
+
.colors-sprite {
|
951
|
+
background-image:url('/images-tmp/colors-s58671cb5bb.png');
|
952
|
+
background-repeat: no-repeat;
|
774
953
|
}
|
775
954
|
.blue {
|
776
955
|
text-indent:-119988px;
|
777
956
|
overflow:hidden;
|
778
957
|
text-align:left;
|
958
|
+
text-transform: capitalize;
|
779
959
|
background-position:0 0;
|
780
|
-
background-image:url('/colors-s58671cb5bb.png');
|
960
|
+
background-image:url('/images-tmp/colors-s58671cb5bb.png');
|
781
961
|
background-repeat:no-repeat;
|
782
962
|
}
|
783
963
|
|
@@ -785,18 +965,26 @@ class SpritesTest < Test::Unit::TestCase
|
|
785
965
|
text-indent:-119988px;
|
786
966
|
overflow:hidden;
|
787
967
|
text-align:left;
|
968
|
+
text-transform: capitalize;
|
788
969
|
background-position:0 -10px;
|
789
970
|
height:10px;
|
790
971
|
width:10px;
|
791
|
-
background-image:url('/colors-s58671cb5bb.png');
|
972
|
+
background-image:url('/images-tmp/colors-s58671cb5bb.png');
|
792
973
|
background-repeat:no-repeat;
|
793
974
|
}
|
794
975
|
CSS
|
795
|
-
assert_correct clean(
|
976
|
+
assert_correct clean(other_css), clean(css)
|
796
977
|
end
|
797
978
|
|
798
979
|
it "should inline the sprite file" do
|
799
|
-
|
980
|
+
Compass.reset_configuration!
|
981
|
+
file = StringIO.new(<<-CONFIG)
|
982
|
+
images_path = #{@images_tmp_path.inspect}
|
983
|
+
generated_images_path = #{@generated_images_tmp_path.inspect}
|
984
|
+
CONFIG
|
985
|
+
Compass.add_configuration(file, "sprite_config")
|
986
|
+
Compass.configure_sass_plugin!
|
987
|
+
css = render <<-SCSS
|
800
988
|
$colors-inline:true;
|
801
989
|
@import "colors/*.png";
|
802
990
|
@include all-colors-sprites;
|
@@ -812,12 +1000,11 @@ class SpritesTest < Test::Unit::TestCase
|
|
812
1000
|
background-position:0 -10px;
|
813
1001
|
}
|
814
1002
|
CSS
|
815
|
-
assert_correct clean(
|
1003
|
+
assert_correct clean(other_css), clean(css)
|
816
1004
|
end
|
817
1005
|
|
818
1006
|
it "should have a sprite_name function that returns the names of the sprites in a sass list" do
|
819
1007
|
css = render <<-SCSS
|
820
|
-
$colors-inline:true;
|
821
1008
|
@import "colors/*.png";
|
822
1009
|
@each $color in sprite_names($colors-sprites) {
|
823
1010
|
.\#{$color} {
|
@@ -827,7 +1014,8 @@ class SpritesTest < Test::Unit::TestCase
|
|
827
1014
|
SCSS
|
828
1015
|
other_css = <<-CSS
|
829
1016
|
.colors-sprite {
|
830
|
-
background-image:url('
|
1017
|
+
background-image: url('/images-tmp/colors-s58671cb5bb.png');
|
1018
|
+
background-repeat: no-repeat;
|
831
1019
|
}
|
832
1020
|
.blue {
|
833
1021
|
width:0px;
|
@@ -836,8 +1024,100 @@ class SpritesTest < Test::Unit::TestCase
|
|
836
1024
|
width:0px;
|
837
1025
|
}
|
838
1026
|
CSS
|
839
|
-
assert_correct clean(
|
1027
|
+
assert_correct clean(other_css), clean(css)
|
1028
|
+
|
1029
|
+
end
|
840
1030
|
|
1031
|
+
it "should respect global spacing" do
|
1032
|
+
css = render <<-SCSS
|
1033
|
+
$colors-spacing:5px;
|
1034
|
+
@import "colors/*.png";
|
1035
|
+
@include all-colors-sprites;
|
1036
|
+
SCSS
|
1037
|
+
other_css = <<-CSS
|
1038
|
+
.colors-sprite, .colors-blue, .colors-yellow {
|
1039
|
+
background-image: url('/images-tmp/colors-s747dec274e.png');
|
1040
|
+
background-repeat: no-repeat;
|
1041
|
+
}
|
1042
|
+
.colors-blue {
|
1043
|
+
background-position:0 0;
|
1044
|
+
}
|
1045
|
+
.colors-yellow {
|
1046
|
+
background-position:0 -15px;
|
1047
|
+
}
|
1048
|
+
CSS
|
1049
|
+
assert_correct clean(other_css), clean(css)
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
it "should return width and height of the map" do
|
1053
|
+
css = render <<-SCSS
|
1054
|
+
@import "colors/*.png";
|
1055
|
+
.height { height : sprite_height($colors-sprites); }
|
1056
|
+
.width { width : sprite_width($colors-sprites); }
|
1057
|
+
SCSS
|
1058
|
+
other_css = <<-CSS
|
1059
|
+
.colors-sprite {
|
1060
|
+
background-image: url('/images-tmp/colors-s58671cb5bb.png');
|
1061
|
+
background-repeat: no-repeat;
|
1062
|
+
}
|
1063
|
+
.height {
|
1064
|
+
height : 20px;
|
1065
|
+
}
|
1066
|
+
.width {
|
1067
|
+
width : 10px;
|
1068
|
+
}
|
1069
|
+
CSS
|
1070
|
+
assert_correct clean(other_css), clean(css)
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
it "should return width and height of a sprite" do
|
1074
|
+
css = render <<-SCSS
|
1075
|
+
@import "colors/*.png";
|
1076
|
+
.height { height : sprite_height($colors-sprites, blue); }
|
1077
|
+
.width { width : sprite_width($colors-sprites, blue); }
|
1078
|
+
SCSS
|
1079
|
+
other_css = <<-CSS
|
1080
|
+
.colors-sprite {
|
1081
|
+
background-image: url('/images-tmp/colors-s58671cb5bb.png');
|
1082
|
+
background-repeat: no-repeat;
|
1083
|
+
}
|
1084
|
+
.height {
|
1085
|
+
height : 10px;
|
1086
|
+
}
|
1087
|
+
.width {
|
1088
|
+
width : 10px;
|
1089
|
+
}
|
1090
|
+
CSS
|
1091
|
+
assert_correct clean(other_css), clean(css)
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
it "should render correct sprite with focus selector" do
|
1095
|
+
css = render <<-SCSS
|
1096
|
+
@import "focus/*.png";
|
1097
|
+
@include all-focus-sprites;
|
1098
|
+
SCSS
|
1099
|
+
assert_correct <<-CSS, css
|
1100
|
+
.focus-sprite, .focus-ten-by-ten {
|
1101
|
+
background-image: url('/images-tmp/focus-sb5d1467be1.png');
|
1102
|
+
background-repeat: no-repeat;
|
1103
|
+
}
|
1104
|
+
|
1105
|
+
.focus-ten-by-ten {
|
1106
|
+
background-position: 0 0;
|
1107
|
+
}
|
1108
|
+
.focus-ten-by-ten:hover, .focus-ten-by-ten.ten-by-ten-hover {
|
1109
|
+
background-position: 0 -30px;
|
1110
|
+
}
|
1111
|
+
.focus-ten-by-ten:target, .focus-ten-by-ten.ten-by-ten-target {
|
1112
|
+
background-position: 0 -40px;
|
1113
|
+
}
|
1114
|
+
.focus-ten-by-ten:active, .focus-ten-by-ten.ten-by-ten-active {
|
1115
|
+
background-position: 0 -10px;
|
1116
|
+
}
|
1117
|
+
.focus-ten-by-ten:focus, .focus-ten-by-ten.ten-by-ten-focus {
|
1118
|
+
background-position: 0 -20px;
|
1119
|
+
}
|
1120
|
+
CSS
|
841
1121
|
end
|
842
1122
|
|
843
1123
|
end
|