ng-zorro-antd-mobile
Version:
An enterprise-class mobile UI components based on Ant Design and Angular
20 lines (16 loc) • 505 B
text/less
// Encoded SVG Background
.encoded-svg-background-i(@svg) {
@url: `encodeURIComponent(@{svg}) `;
background-image: url("data:image/svg+xml;charset=utf-8,@{url}");
}
.ellipsis() {
width: auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.background(@start: #ffffff, @end: #000000) {
background: @end;
background-image: -webkit-gradient(linear, left top, left bottom, from(@start), to(@end)); /* Saf4+, Chrome */
background-image: linear-gradient(@start, @end);
}