mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Add fontello icons.
Remove this when we have octicons for audio and video
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
@import "bootstrap/less/variables.less";
|
||||
@import "octicon-mixins.less";
|
||||
@import "fontello-mixins.less";
|
||||
|
||||
@video-padding: 5px;
|
||||
@large-width: 160px;
|
||||
@@ -141,11 +142,11 @@
|
||||
|
||||
.toggle-video{
|
||||
margin-left: 5px;
|
||||
.mini-icon(arr-right);
|
||||
.fontello-icon(fontello-video);
|
||||
}
|
||||
.toggle-audio{
|
||||
margin-left: 5px;
|
||||
.mini-icon(arr-up);
|
||||
.fontello-icon(fontello-audio);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
20
static/fontello-mixins.less
Normal file
20
static/fontello-mixins.less
Normal file
@@ -0,0 +1,20 @@
|
||||
@fontello-video: "\e800";
|
||||
@fontello-audio: "\e801";
|
||||
|
||||
.fontello-icon(@name, @size: 16px) {
|
||||
&:before {
|
||||
font-family: 'fontello';
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-decoration: none;
|
||||
|
||||
font-size: @size;
|
||||
width: @size;
|
||||
height: @size;
|
||||
|
||||
content: @@name
|
||||
}
|
||||
}
|
||||
BIN
static/fontello.woff
Normal file
BIN
static/fontello.woff
Normal file
Binary file not shown.
@@ -72,3 +72,10 @@ html, body {
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'fontello';
|
||||
src: url("fontello.woff") format("woff");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
Reference in New Issue
Block a user