Fix a bug in the sprites base file and added a basic sprites test case to the compass test.
@ -1,3 +1,6 @@
|
||||
// Determines those states for which you want to enable magic sprite selectors
|
||||
$sprite-selectors: hover, target, active !default;
|
||||
|
||||
// Set the width and height of an element to the original
|
||||
// dimensions of an image before it was included in the sprite.
|
||||
@mixin sprite-dimensions($map, $sprite) {
|
||||
|
@ -24,8 +24,6 @@ $sprite-image-default-width: $sprite-default-size !default;
|
||||
|
||||
$sprite-image-default-height: $sprite-default-size !default;
|
||||
|
||||
$sprite-selectors: hover, target, active !default;
|
||||
|
||||
// Sets all the rules for a sprite from a given sprite image to show just one of the sprites.
|
||||
// To reduce duplication use a sprite-bg mixin for common properties and a sprite-select mixin for positioning.
|
||||
@mixin sprite-img($img, $col, $row: 1, $width: $sprite-image-default-width, $height: $sprite-image-default-height, $margin: $sprite-default-margin) {
|
||||
|
1262
test/fixtures/stylesheets/compass/css/sprites.css
vendored
Normal file
BIN
test/fixtures/stylesheets/compass/images/flag-03c3b29b35.png
vendored
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
test/fixtures/stylesheets/compass/images/flag/ad.png
vendored
Normal file
After Width: | Height: | Size: 911 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ae.png
vendored
Normal file
After Width: | Height: | Size: 733 B |
BIN
test/fixtures/stylesheets/compass/images/flag/af.png
vendored
Normal file
After Width: | Height: | Size: 878 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ag.png
vendored
Normal file
After Width: | Height: | Size: 912 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ai.png
vendored
Normal file
After Width: | Height: | Size: 972 B |
BIN
test/fixtures/stylesheets/compass/images/flag/al.png
vendored
Normal file
After Width: | Height: | Size: 897 B |
BIN
test/fixtures/stylesheets/compass/images/flag/am.png
vendored
Normal file
After Width: | Height: | Size: 788 B |
BIN
test/fixtures/stylesheets/compass/images/flag/an.png
vendored
Normal file
After Width: | Height: | Size: 823 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ao.png
vendored
Normal file
After Width: | Height: | Size: 841 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ar.png
vendored
Normal file
After Width: | Height: | Size: 826 B |
BIN
test/fixtures/stylesheets/compass/images/flag/as.png
vendored
Normal file
After Width: | Height: | Size: 1000 B |
BIN
test/fixtures/stylesheets/compass/images/flag/at.png
vendored
Normal file
After Width: | Height: | Size: 746 B |
BIN
test/fixtures/stylesheets/compass/images/flag/au.png
vendored
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
test/fixtures/stylesheets/compass/images/flag/aw.png
vendored
Normal file
After Width: | Height: | Size: 849 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ax.png
vendored
Normal file
After Width: | Height: | Size: 936 B |
BIN
test/fixtures/stylesheets/compass/images/flag/az.png
vendored
Normal file
After Width: | Height: | Size: 879 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ba.png
vendored
Normal file
After Width: | Height: | Size: 928 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bb.png
vendored
Normal file
After Width: | Height: | Size: 859 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bd.png
vendored
Normal file
After Width: | Height: | Size: 829 B |
BIN
test/fixtures/stylesheets/compass/images/flag/be.png
vendored
Normal file
After Width: | Height: | Size: 751 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bf.png
vendored
Normal file
After Width: | Height: | Size: 797 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bg.png
vendored
Normal file
After Width: | Height: | Size: 776 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bh.png
vendored
Normal file
After Width: | Height: | Size: 803 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bi.png
vendored
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
test/fixtures/stylesheets/compass/images/flag/bj.png
vendored
Normal file
After Width: | Height: | Size: 767 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bm.png
vendored
Normal file
After Width: | Height: | Size: 955 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bn.png
vendored
Normal file
After Width: | Height: | Size: 964 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bo.png
vendored
Normal file
After Width: | Height: | Size: 797 B |
BIN
test/fixtures/stylesheets/compass/images/flag/br.png
vendored
Normal file
After Width: | Height: | Size: 942 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bs.png
vendored
Normal file
After Width: | Height: | Size: 847 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bt.png
vendored
Normal file
After Width: | Height: | Size: 927 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bv.png
vendored
Normal file
After Width: | Height: | Size: 858 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bw.png
vendored
Normal file
After Width: | Height: | Size: 783 B |
BIN
test/fixtures/stylesheets/compass/images/flag/by.png
vendored
Normal file
After Width: | Height: | Size: 845 B |
BIN
test/fixtures/stylesheets/compass/images/flag/bz.png
vendored
Normal file
After Width: | Height: | Size: 933 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ca.png
vendored
Normal file
After Width: | Height: | Size: 930 B |
BIN
test/fixtures/stylesheets/compass/images/flag/catalonia.png
vendored
Normal file
After Width: | Height: | Size: 793 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cc.png
vendored
Normal file
After Width: | Height: | Size: 952 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cd.png
vendored
Normal file
After Width: | Height: | Size: 924 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cf.png
vendored
Normal file
After Width: | Height: | Size: 912 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cg.png
vendored
Normal file
After Width: | Height: | Size: 838 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ch.png
vendored
Normal file
After Width: | Height: | Size: 707 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ci.png
vendored
Normal file
After Width: | Height: | Size: 762 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ck.png
vendored
Normal file
After Width: | Height: | Size: 951 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cl.png
vendored
Normal file
After Width: | Height: | Size: 780 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cm.png
vendored
Normal file
After Width: | Height: | Size: 804 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cn.png
vendored
Normal file
After Width: | Height: | Size: 805 B |
BIN
test/fixtures/stylesheets/compass/images/flag/co.png
vendored
Normal file
After Width: | Height: | Size: 786 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cr.png
vendored
Normal file
After Width: | Height: | Size: 805 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cs.png
vendored
Normal file
After Width: | Height: | Size: 777 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cu.png
vendored
Normal file
After Width: | Height: | Size: 905 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cv.png
vendored
Normal file
After Width: | Height: | Size: 901 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cx.png
vendored
Normal file
After Width: | Height: | Size: 954 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cy.png
vendored
Normal file
After Width: | Height: | Size: 796 B |
BIN
test/fixtures/stylesheets/compass/images/flag/cz.png
vendored
Normal file
After Width: | Height: | Size: 827 B |
BIN
test/fixtures/stylesheets/compass/images/flag/de.png
vendored
Normal file
After Width: | Height: | Size: 822 B |
BIN
test/fixtures/stylesheets/compass/images/flag/dj.png
vendored
Normal file
After Width: | Height: | Size: 886 B |
BIN
test/fixtures/stylesheets/compass/images/flag/dk.png
vendored
Normal file
After Width: | Height: | Size: 808 B |
BIN
test/fixtures/stylesheets/compass/images/flag/dm.png
vendored
Normal file
After Width: | Height: | Size: 964 B |
BIN
test/fixtures/stylesheets/compass/images/flag/do.png
vendored
Normal file
After Width: | Height: | Size: 824 B |
BIN
test/fixtures/stylesheets/compass/images/flag/dz.png
vendored
Normal file
After Width: | Height: | Size: 922 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ec.png
vendored
Normal file
After Width: | Height: | Size: 811 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ee.png
vendored
Normal file
After Width: | Height: | Size: 755 B |
BIN
test/fixtures/stylesheets/compass/images/flag/eg.png
vendored
Normal file
After Width: | Height: | Size: 804 B |
BIN
test/fixtures/stylesheets/compass/images/flag/eh.png
vendored
Normal file
After Width: | Height: | Size: 847 B |
BIN
test/fixtures/stylesheets/compass/images/flag/england.png
vendored
Normal file
After Width: | Height: | Size: 834 B |
BIN
test/fixtures/stylesheets/compass/images/flag/er.png
vendored
Normal file
After Width: | Height: | Size: 954 B |
BIN
test/fixtures/stylesheets/compass/images/flag/es.png
vendored
Normal file
After Width: | Height: | Size: 800 B |
BIN
test/fixtures/stylesheets/compass/images/flag/et.png
vendored
Normal file
After Width: | Height: | Size: 901 B |
BIN
test/fixtures/stylesheets/compass/images/flag/europeanunion.png
vendored
Normal file
After Width: | Height: | Size: 859 B |
BIN
test/fixtures/stylesheets/compass/images/flag/fam.png
vendored
Normal file
After Width: | Height: | Size: 806 B |
BIN
test/fixtures/stylesheets/compass/images/flag/fi.png
vendored
Normal file
After Width: | Height: | Size: 824 B |
BIN
test/fixtures/stylesheets/compass/images/flag/fj.png
vendored
Normal file
After Width: | Height: | Size: 973 B |
BIN
test/fixtures/stylesheets/compass/images/flag/fk.png
vendored
Normal file
After Width: | Height: | Size: 982 B |
BIN
test/fixtures/stylesheets/compass/images/flag/fm.png
vendored
Normal file
After Width: | Height: | Size: 867 B |
BIN
test/fixtures/stylesheets/compass/images/flag/fo.png
vendored
Normal file
After Width: | Height: | Size: 833 B |
BIN
test/fixtures/stylesheets/compass/images/flag/fr.png
vendored
Normal file
After Width: | Height: | Size: 829 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ga.png
vendored
Normal file
After Width: | Height: | Size: 799 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gb.png
vendored
Normal file
After Width: | Height: | Size: 1005 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gd.png
vendored
Normal file
After Width: | Height: | Size: 920 B |
BIN
test/fixtures/stylesheets/compass/images/flag/ge.png
vendored
Normal file
After Width: | Height: | Size: 951 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gf.png
vendored
Normal file
After Width: | Height: | Size: 829 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gh.png
vendored
Normal file
After Width: | Height: | Size: 792 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gi.png
vendored
Normal file
After Width: | Height: | Size: 825 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gl.png
vendored
Normal file
After Width: | Height: | Size: 807 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gm.png
vendored
Normal file
After Width: | Height: | Size: 819 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gn.png
vendored
Normal file
After Width: | Height: | Size: 776 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gp.png
vendored
Normal file
After Width: | Height: | Size: 812 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gq.png
vendored
Normal file
After Width: | Height: | Size: 861 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gr.png
vendored
Normal file
After Width: | Height: | Size: 847 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gs.png
vendored
Normal file
After Width: | Height: | Size: 982 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gt.png
vendored
Normal file
After Width: | Height: | Size: 795 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gu.png
vendored
Normal file
After Width: | Height: | Size: 840 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gw.png
vendored
Normal file
After Width: | Height: | Size: 803 B |
BIN
test/fixtures/stylesheets/compass/images/flag/gy.png
vendored
Normal file
After Width: | Height: | Size: 977 B |
BIN
test/fixtures/stylesheets/compass/images/flag/hk.png
vendored
Normal file
After Width: | Height: | Size: 849 B |