Browse Source

无jira任务,加个定义背景图的方法.

es6
dailer 6 years ago
parent
commit
8a31c4714f
  1. 10
      src/less/image.less

10
src/less/image.less

@ -18,6 +18,16 @@
_background: none;
}
.background(@class,@backgroundPath, @top:center, @left:center, @repeat: no-repeat) {
.@{class} {
.image2xPath(@backgroundPath, @top, @left, @repeat);
&.hack {
.imagePath(@backgroundPath, @top, @left, @repeat);
}
}
}
// 默认icon
.icon(@class, @iconPath) {
.@{class} {

Loading…
Cancel
Save