Skip to content

Commit

Permalink
bump version 0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
cadgerfeast committed Apr 7, 2021
1 parent d7622e4 commit f5076a7
Show file tree
Hide file tree
Showing 9 changed files with 2,418 additions and 1,094 deletions.
15 changes: 6 additions & 9 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');
const sharp = require('sharp');
const webfontsGenerator = require('webfonts-generator');
const svgtofont = require('svgtofont');

const icons15Path = path.resolve(__dirname, 'png-15');
const icons150Path = path.resolve(__dirname, 'png-150');
Expand Down Expand Up @@ -157,15 +157,12 @@ async function generateSvg (name, src, dest) {
} else {
rimraf(fontsPath);
}
webfontsGenerator({
files: svgFiles,
dest: fontsPath,
svgtofont({
src: iconsSvgPath,
dist: fontsPath,
fontName: 'PixelIcons',
types: ['eot', 'woff2', 'woff', 'ttf', 'svg'],
templateOptions: {
classPrefix: 'pi-',
baseSelector: '.pi'
}
classNamePrefix: 'pi',
css: true
});
} catch (error) {
console.error(error);
Expand Down
35 changes: 35 additions & 0 deletions fonts/PixelIcons.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@font-face {font-family: "PixelIcons";
src: url('PixelIcons.eot?t=1617800288781'); /* IE9*/
src: url('PixelIcons.eot?t=1617800288781#iefix') format('embedded-opentype'), /* IE6-IE8 */
url("PixelIcons.woff2?t=1617800288781") format("woff2"),
url("PixelIcons.woff?t=1617800288781") format("woff"),
url('PixelIcons.ttf?t=1617800288781') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('PixelIcons.svg?t=1617800288781#PixelIcons') format('svg'); /* iOS 4.1- */
}

[class^="pi-"], [class*=" pi-"] {
font-family: 'PixelIcons' !important;
font-size: 16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.pi-bronze-coin:before { content: "\ea01"; }
.pi-chat:before { content: "\ea02"; }
.pi-chevron-left:before { content: "\ea03"; }
.pi-chevron-right:before { content: "\ea04"; }
.pi-circuit:before { content: "\ea05"; }
.pi-code:before { content: "\ea06"; }
.pi-diamond:before { content: "\ea07"; }
.pi-dino:before { content: "\ea08"; }
.pi-eye:before { content: "\ea09"; }
.pi-floppy-disk:before { content: "\ea0a"; }
.pi-gold-coin:before { content: "\ea0b"; }
.pi-home:before { content: "\ea0c"; }
.pi-internet-explorer:before { content: "\ea0d"; }
.pi-phone:before { content: "\ea0e"; }
.pi-pipe-top:before { content: "\ea0f"; }
.pi-pizza-slice:before { content: "\ea10"; }
.pi-refresh:before { content: "\ea11"; }
.pi-silver-coin:before { content: "\ea12"; }
38 changes: 38 additions & 0 deletions fonts/PixelIcons.module.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@font-face {font-family: "PixelIcons";
src: url('PixelIcons.eot?t=1617800288781'); /* IE9*/
src: url('PixelIcons.eot?t=1617800288781#iefix') format('embedded-opentype'), /* IE6-IE8 */
url("PixelIcons.woff2?t=1617800288781") format("woff2"),
url("PixelIcons.woff?t=1617800288781") format("woff"),
url('PixelIcons.ttf?t=1617800288781') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('PixelIcons.svg?t=1617800288781#PixelIcons') format('svg'); /* iOS 4.1- */
}

[class^="pi-"], [class*=" pi-"] {
font-family: 'PixelIcons' !important;
font-size:16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

:global {
.pi-bronze-coin:before { content: "\ea01"; }
.pi-chat:before { content: "\ea02"; }
.pi-chevron-left:before { content: "\ea03"; }
.pi-chevron-right:before { content: "\ea04"; }
.pi-circuit:before { content: "\ea05"; }
.pi-code:before { content: "\ea06"; }
.pi-diamond:before { content: "\ea07"; }
.pi-dino:before { content: "\ea08"; }
.pi-eye:before { content: "\ea09"; }
.pi-floppy-disk:before { content: "\ea0a"; }
.pi-gold-coin:before { content: "\ea0b"; }
.pi-home:before { content: "\ea0c"; }
.pi-internet-explorer:before { content: "\ea0d"; }
.pi-phone:before { content: "\ea0e"; }
.pi-pipe-top:before { content: "\ea0f"; }
.pi-pizza-slice:before { content: "\ea10"; }
.pi-refresh:before { content: "\ea11"; }
.pi-silver-coin:before { content: "\ea12"; }

}
55 changes: 55 additions & 0 deletions fonts/PixelIcons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@font-face {font-family: "PixelIcons";
src: url('PixelIcons.eot?t=1617800288781'); /* IE9*/
src: url('PixelIcons.eot?t=1617800288781#iefix') format('embedded-opentype'), /* IE6-IE8 */
url("PixelIcons.woff2?t=1617800288781") format("woff2"),
url("PixelIcons.woff?t=1617800288781") format("woff"),
url('PixelIcons.ttf?t=1617800288781') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('PixelIcons.svg?t=1617800288781#PixelIcons') format('svg'); /* iOS 4.1- */
}

[class^="pi-"], [class*=" pi-"] {
font-family: 'PixelIcons' !important;
font-size: 16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.pi-bronze-coin:before { content: "\ea01"; }
.pi-chat:before { content: "\ea02"; }
.pi-chevron-left:before { content: "\ea03"; }
.pi-chevron-right:before { content: "\ea04"; }
.pi-circuit:before { content: "\ea05"; }
.pi-code:before { content: "\ea06"; }
.pi-diamond:before { content: "\ea07"; }
.pi-dino:before { content: "\ea08"; }
.pi-eye:before { content: "\ea09"; }
.pi-floppy-disk:before { content: "\ea0a"; }
.pi-gold-coin:before { content: "\ea0b"; }
.pi-home:before { content: "\ea0c"; }
.pi-internet-explorer:before { content: "\ea0d"; }
.pi-phone:before { content: "\ea0e"; }
.pi-pipe-top:before { content: "\ea0f"; }
.pi-pizza-slice:before { content: "\ea10"; }
.pi-refresh:before { content: "\ea11"; }
.pi-silver-coin:before { content: "\ea12"; }

$pi-bronze-coin: "\ea01";
$pi-chat: "\ea02";
$pi-chevron-left: "\ea03";
$pi-chevron-right: "\ea04";
$pi-circuit: "\ea05";
$pi-code: "\ea06";
$pi-diamond: "\ea07";
$pi-dino: "\ea08";
$pi-eye: "\ea09";
$pi-floppy-disk: "\ea0a";
$pi-gold-coin: "\ea0b";
$pi-home: "\ea0c";
$pi-internet-explorer: "\ea0d";
$pi-phone: "\ea0e";
$pi-pipe-top: "\ea0f";
$pi-pizza-slice: "\ea10";
$pi-refresh: "\ea11";
$pi-silver-coin: "\ea12";

35 changes: 35 additions & 0 deletions fonts/PixelIcons.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@font-face {font-family: "PixelIcons";
src: url('PixelIcons.eot?t=1617800288781'); /* IE9*/
src: url('PixelIcons.eot?t=1617800288781#iefix') format('embedded-opentype'), /* IE6-IE8 */
url("PixelIcons.woff2?t=1617800288781") format("woff2"),
url("PixelIcons.woff?t=1617800288781") format("woff"),
url('PixelIcons.ttf?t=1617800288781') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('PixelIcons.svg?t=1617800288781#PixelIcons') format('svg'); /* iOS 4.1- */
}

[class^="pi-"], [class*=" pi-"] {
font-family: 'PixelIcons' !important;
font-size: 16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.pi-bronze-coin:before { content: "\ea01"; }
.pi-chat:before { content: "\ea02"; }
.pi-chevron-left:before { content: "\ea03"; }
.pi-chevron-right:before { content: "\ea04"; }
.pi-circuit:before { content: "\ea05"; }
.pi-code:before { content: "\ea06"; }
.pi-diamond:before { content: "\ea07"; }
.pi-dino:before { content: "\ea08"; }
.pi-eye:before { content: "\ea09"; }
.pi-floppy-disk:before { content: "\ea0a"; }
.pi-gold-coin:before { content: "\ea0b"; }
.pi-home:before { content: "\ea0c"; }
.pi-internet-explorer:before { content: "\ea0d"; }
.pi-phone:before { content: "\ea0e"; }
.pi-pipe-top:before { content: "\ea0f"; }
.pi-pizza-slice:before { content: "\ea10"; }
.pi-refresh:before { content: "\ea11"; }
.pi-silver-coin:before { content: "\ea12"; }
Loading

0 comments on commit f5076a7

Please sign in to comment.