forked from atom/atom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathocticon-mixins.less
55 lines (47 loc) · 1.02 KB
/
octicon-mixins.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@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;
}