UNPKG

grunt-css2sprite

Version:

A grunt plugin to help front engineer creating css sprite.for from laoshu133/grunt-css-sprite @0.2.2

145 lines (128 loc) 3.98 kB
/* * icons * content:'"' */ .icon{display:inline-block;zoom:1; } a[href*='}{']::after{ content:'}{';} .icon_switch-off{background-position: 0 0;width:71px;height:29px} a[href*='}{']::after{ content:'}{';} .icon_switch-off{background-position: 0 0;width:71px;height:29px} .icon_switch-on{background-position: 0 -31px;width:71px;height:29px} .icon_tip-error{background-position: -73px 0;width:24px;height:24px} .icon_tip-ok{background-position: -73px -26px;width:24px;height:24px} .icon_tip-warn{background-position: 0 -62px;width:24px;height:24px} .icon_wait{background-position: -26px -62px;width:14px;height:14px} /* comments test */ /*.icon_switch-off{background-image:url("../slice/icon_switch-off.png");width:71px;height:29px} .icon_switch-on{background-image:url("../slice/icon_switch-on.png");width:71px;height:29px} .icon_tip-error{background-image:url("../slice/icon_tip-error.png");width:24px;height:24px} .icon_tip-ok{background-image:url("../slice/icon_tip-ok.png");width:24px;height:24px} .icon_tip-warn{background-image:url("../slice/icon_tip-warn.png");width:24px;height:24px} .icon_wait{background-image:url("../slice/icon_wait.png") !important;width:14px;height:14px}*/ .iocn_ext1{ background-position: -26px -62px;} .iocn_ext1{ background-position: -26px -62px; /* repeat test */} /* miss semicolon test */ .iocn_ext2{ height:14px; width:14px; background-position: -26px -62px;} .iocn_ext3{ background-image:url(../slice/icon_wait_nofile.png); /* no file test */} .iocn_ext4{ background: no-repeat;background-position: -26px -62px;} .iocn_ext5{ background:#fff no-repeat;background-position: -26px -62px;} /* path test */ .iocn_ext7{ background-image:url(/slice/icon_wait.png);} .iocn_ext8{ background-image:url(/w/grunt-css-sprite/test/slice/icon_wait.png);} .iocn_ext9{ /* multi-line test */ background:url(/slice/icon_wait.png) no-repeat; background-image: no-repeat;background-position: -26px -62px; } .iocn_ext10{ /* content test */ content: '}'; background: no-repeat;background-position: 0 -62px; _background-image:url(../slice/icon_tip-warn.png); } #iocn_ext11{ background: no-repeat;background-position: -26px -62px; background-position: 0 -62px; content: '}'; } span{ background: no-repeat;background-position: -26px -62px; } /* ../images/icon.png?20150326151249 */ .icon_switch-off, .icon_switch-on, .icon_tip-error, .icon_tip-ok, .icon_tip-warn, .icon_wait, .iocn_ext1, .iocn_ext2, .iocn_ext4, .iocn_ext5, .iocn_ext9, .iocn_ext10, #iocn_ext11, span{ background-image: url(../images/icon.png?20150326151249); } /* ../images/icon@2x.png?20150326151249 */ @media only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 240dpi), only screen and (min-resolution: 2dppx) { .icon_switch-off, .icon_switch-on, .icon_tip-error, .icon_tip-ok, .icon_tip-warn, .icon_wait, .iocn_ext1, .iocn_ext2, .iocn_ext4, .iocn_ext5, .iocn_ext9, .iocn_ext10, #iocn_ext11, span{ background-image: url(../images/icon@2x.png?20150326151249); background-size: 96px auto; } .icon_switch-off{ background-position: 0 0; } .icon_switch-on{ background-position: 0 -30px; } .icon_tip-error{ background-position: -72px 0; } .icon_tip-ok{ background-position: -72px -25px; } .icon_tip-warn{ background-position: 0 -60px; } .icon_wait{ background-position: -25px -60px; } .iocn_ext1{ background-position: -25px -60px; } .iocn_ext2{ background-position: -25px -60px; } .iocn_ext4{ background-position: -25px -60px; } .iocn_ext5{ background-position: -25px -60px; } .iocn_ext9{ background-position: -25px -60px; } .iocn_ext10{ background-position: 0 -60px; } #iocn_ext11{ background-position: 0 -60px; } span{ background-position: -25px -60px; } } .css_stamp{ content:"20150326151249";}