Skip to content

Commit

Permalink
fixing class selector, publishing version 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cadgerfeast committed Oct 8, 2019
1 parent bb8ba85 commit 3ac74aa
Show file tree
Hide file tree
Showing 13 changed files with 418 additions and 418 deletions.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function generateSvg (name, src, dest) {
colors.push(style);
index = colors.indexOf(style);
}
svgContent += `\t<rect class="color-${index}" x="${j * 10}" y="${i * 10}" width="10" height="10"/>\n`;
svgContent += `\t<rect class="pixel-icon-${name} color-${index}" x="${j * 10}" y="${i * 10}" width="10" height="10"/>\n`;
}
}
}
Expand All @@ -81,7 +81,7 @@ async function generateSvg (name, src, dest) {
}
svgContent += '\t}\n';
for (let k = 0; k < colors.length; k++) {
svgContent += `\t.color-${k} { fill: var(--pixel-icon-${name}-color-${k}); }\n`;
svgContent += `\t.pixel-icon-${name}.color-${k} { fill: var(--pixel-icon-${name}-color-${k}); }\n`;
}
svgContent += '\t</style>\n</svg>';
fs.writeFileSync(dest, svgContent);
Expand Down
10 changes: 5 additions & 5 deletions fonts/PixelIcons.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@font-face {
font-family: "PixelIcons";
src: url("PixelIcons.eot?4e992db1a25a22e2c72b23a6e9a5d02f?#iefix") format("embedded-opentype"),
url("PixelIcons.woff2?4e992db1a25a22e2c72b23a6e9a5d02f") format("woff2"),
url("PixelIcons.woff?4e992db1a25a22e2c72b23a6e9a5d02f") format("woff"),
url("PixelIcons.ttf?4e992db1a25a22e2c72b23a6e9a5d02f") format("truetype"),
url("PixelIcons.svg?4e992db1a25a22e2c72b23a6e9a5d02f#PixelIcons") format("svg");
src: url("PixelIcons.eot?38b8ec76bbcc3d22b04e3b70cade3d4a?#iefix") format("embedded-opentype"),
url("PixelIcons.woff2?38b8ec76bbcc3d22b04e3b70cade3d4a") format("woff2"),
url("PixelIcons.woff?38b8ec76bbcc3d22b04e3b70cade3d4a") format("woff"),
url("PixelIcons.ttf?38b8ec76bbcc3d22b04e3b70cade3d4a") format("truetype"),
url("PixelIcons.svg?38b8ec76bbcc3d22b04e3b70cade3d4a#PixelIcons") format("svg");
}

.pi {
Expand Down
Binary file modified fonts/PixelIcons.eot
Binary file not shown.
Binary file modified fonts/PixelIcons.ttf
Binary file not shown.
Binary file modified fonts/PixelIcons.woff
Binary file not shown.
Binary file modified fonts/PixelIcons.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pixel/icons",
"version": "0.0.1",
"version": "0.0.2",
"scripts": {
"build": "node build.js",
"lint": "eslint .",
Expand Down
128 changes: 64 additions & 64 deletions svg/chevron-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3ac74aa

Please sign in to comment.