Merge pull request #14657 from atom/sm-atomicons

Atomicons
This commit is contained in:
simurai
2017-06-02 11:47:50 +09:00
committed by GitHub
5 changed files with 59 additions and 1 deletions

BIN
static/atomicons.woff Executable file

Binary file not shown.

View File

@@ -11,6 +11,31 @@
// Find: @([a-z-]+): "[^"]+";
// Replace: .make-icon(\1);
// Atomicons (private)
.make-icon(type-array);
.make-icon(type-boolean);
.make-icon(type-class);
.make-icon(type-constant);
.make-icon(type-constructor);
.make-icon(type-enum);
.make-icon(type-field);
.make-icon(type-file);
.make-icon(type-function);
.make-icon(type-interface);
.make-icon(type-method);
.make-icon(type-module);
.make-icon(type-namespace);
.make-icon(type-number);
.make-icon(type-package);
.make-icon(type-property);
.make-icon(type-string);
.make-icon(type-variable);
// Octicons
.make-icon(alert);
.make-icon(alignment-align);
.make-icon(alignment-aligned-to);

View File

@@ -2,11 +2,12 @@
@import "octicon-mixins";
//
// Octicon font
// Icon fonts
// --------------------------------------------------
@font-face { .octicon-font-legacy(); } // keep for backwards compatibility
@font-face { .octicon-font(); }
@font-face { .atomicon-font(); } // Private
//

View File

@@ -46,3 +46,10 @@
font-weight: normal;
font-style: normal;
}
.atomicon-font() {
font-family: 'Octicons Regular';
src: url('atomicons.woff') format('woff');
font-weight: normal;
font-style: normal;
}

View File

@@ -1,3 +1,28 @@
// Atomicons (private)
@type-array: "\e900";
@type-boolean: "\e901";
@type-class: "\e902";
@type-constant: "\e903";
@type-constructor: "\e904";
@type-enum: "\e905";
@type-field: "\e906";
@type-file: "\e907";
@type-function: "\e908";
@type-interface: "\e909";
@type-method: "\e90a";
@type-module: "\e90b";
@type-namespace: "\e90c";
@type-number: "\e90d";
@type-package: "\e90e";
@type-property: "\e90f";
@type-string: "\e910";
@type-variable: "\e911";
// Octicons
@alert: "\f02d";
@alignment-align: "\f08a";
@alignment-aligned-to: "\f08e";