pulsar/static/octicon-mixins.less
2013-05-01 13:10:14 -07:00

33 lines
543 B
Plaintext

.icon() {
font-family: 'Octicons Regular';
font-weight: normal;
font-style: normal;
display: inline-block;
line-height: 1;
-webkit-font-smoothing: antialiased;
text-decoration: none;
}
.icon(@size) {
.icon;
font-size: @size;
width: @size;
height: @size;
}
.mini-icon(@name, @size: 16px) {
@import "mini-octicon-utf-codes.less";
&:before {
.icon(@size);
content: @@name
}
}
.mega-icon(@name, @size: 32px) {
@import "mega-octicon-utf-codes.less";
&:before {
.icon(@size);
content: @@name
}
}