mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-10-27 11:42:41 +03:00
56 lines
1.0 KiB
Plaintext
56 lines
1.0 KiB
Plaintext
@import "octicon-utf-codes.less";
|
|
|
|
.icon-size(@size) {
|
|
font-size: @size;
|
|
width: @size;
|
|
height: @size;
|
|
}
|
|
|
|
.icon(@size, @display: inline-block) {
|
|
font-family: 'Octicons Regular';
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
display: @display;
|
|
line-height: 1;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-decoration: none;
|
|
|
|
.icon-size(@size);
|
|
}
|
|
|
|
.octicon(@name, @size: 16px) {
|
|
&::before {
|
|
.icon(@size);
|
|
content: @@name
|
|
}
|
|
}
|
|
|
|
.mega-octicon(@name, @size: 32px) {
|
|
&::before {
|
|
.icon(@size);
|
|
content: @@name
|
|
}
|
|
}
|
|
|
|
// keep for backwards compatibility
|
|
.octicon-font-legacy() {
|
|
font-family: 'Octicons Regular';
|
|
src: url("icons/octicons-2.1.2.woff") format("woff");
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
.octicon-font() {
|
|
font-family: 'Octicons Regular';
|
|
src: url("icons/octicons.woff") format("woff");
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
.atomicon-font() {
|
|
font-family: 'Octicons Regular';
|
|
src: url('icons/atomicons.woff') format('woff');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|