css2spritesmith
Version:
A plugin to help front engineer creating css sprite.
94 lines (79 loc) • 3.17 kB
CSS
/*
* icons
* content:'"'
*/
.icon{display:inline-block;zoom:1; }
a[href*='}{']::after{ content:'}{';}
.icon_switch-off{background-image:url("../slice/icon_switch-off.png");width:71px;height:29px}
a[href*='}{']::after{ content:'}{';}
.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?v=1234");width:14px;height:14px}
.icon_ppt{
background-image:url(../slice/icon_ppt.png);width:64px;height:64px
}
/* 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}*/
.icon_ext1{ background-image:url(../slice/icon_wait.png);}
.icon_ext1{ background-image:url(../slice/icon_wait.png); /* repeat test */}
/* miss semicolon test */
.icon_ext2{ height:14px; width:14px; background-image:url(../slice/icon_wait.png)}
.icon_ext3{ background-image:url(../slice/icon_wait_nofile.png); /* no file test */}
.icon_ext4{ background:url(../slice/icon_wait.png) no-repeat;}
.icon_ext5{ background:#fff url(../slice/icon_wait.png) no-repeat;}
/* path test */
.icon_ext7{ background-image:url(/slice/icon_wait.png);}
.icon_ext8{ background-image:url(/w/grunt-css-sprite/test/slice/icon_wait.png);}
.icon_ext9{
/* multi-line test */
background:url(/slice/icon_wait.png) no-repeat;
background-image:url(../slice/icon_wait.png) no-repeat;
}
.icon_ext10{
/* content test */
content: '}';
background:url(../slice/icon_tip-warn.png) no-repeat;
_background-image:url(../slice/icon_tip-warn.png);
}
#icon_ext11{
background:url(../slice/icon_wait.png) no-repeat;
background-image:url(../slice/icon_tip-warn.png);
content: '}';
}
span{ background:url(../slice/icon_wait.png) no-repeat; }
/* multi selector test */
.ww-btn,
.ww-btn-s,
.ww-btn-group{
display: inline-block;
background: url(../slice/icon_wait.png) no-repeat;
line-height: 110px;
margin: -5px 0 0 .4em;
height: 24px;
width: 66px;
overflow: hidden;
vertical-align: middle;
}
.ww-btn-s{
background-image: url(../slice/icon_switch-on.png);
margin-top: -3px;
height: 18px;
width: 50px;
}
.ww-btn-group{
background-image: url(../slice/icon_switch-off.png);
height: 24px;
width: 90px;
opacity: .9;
&:hover{
opacity: 1;
}
}