pulsar/static/octicon-mixins.less
2013-08-08 18:54:13 -07:00

40 lines
679 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;
}
.octicon(@name, @size: 16px) {
@import "octicon-utf-codes.less";
&:before {
.icon(@size);
content: @@name
}
}
.mega-octicon(@name, @size: 32px) {
@import "octicon-utf-codes.less";
&:before {
.icon(@size);
content: @@name
}
}
.octicon-font() {
font-family: 'Octicons Regular';
src: url("octicons.woff") format("woff");
font-weight: normal;
font-style: normal;
}