fix(icomoon): install via yarn
This commit is contained in:
parent
b0bbb420f8
commit
3c7abddd2d
@ -9,7 +9,7 @@
|
||||
/* 0. General */
|
||||
/* ----------------------------- */
|
||||
|
||||
@import url('../icon/icon.css');
|
||||
@import url('../fonts/vendor/icomoon-free-npm/icomoon.css');
|
||||
@import url('../fonts/luciole/webfonts.css');
|
||||
@import url('animation.css');
|
||||
|
||||
|
BIN
fonts/vendor/icomoon-free-npm/IcoMoon-Free.woff
vendored
Normal file
BIN
fonts/vendor/icomoon-free-npm/IcoMoon-Free.woff
vendored
Normal file
Binary file not shown.
1790
fonts/vendor/icomoon-free-npm/icomoon.css
vendored
Normal file
1790
fonts/vendor/icomoon-free-npm/icomoon.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4
fonts/vendor/icomoon-free-npm/license.txt
vendored
Normal file
4
fonts/vendor/icomoon-free-npm/license.txt
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
You can use this package under one of these two licenses: CC BY 4.0 or GPL.
|
||||
|
||||
http://creativecommons.org/licenses/by/4.0/
|
||||
http://www.gnu.org/licenses/gpl.html
|
@ -1,7 +0,0 @@
|
||||
Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
|
||||
|
||||
To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
|
||||
|
||||
You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
|
||||
|
||||
You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
|
@ -1,152 +0,0 @@
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: sans-serif;
|
||||
font-size: 1em;
|
||||
line-height: 1.5;
|
||||
color: #555;
|
||||
background: #fff;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.5em;
|
||||
font-weight: normal;
|
||||
}
|
||||
small {
|
||||
font-size: .66666667em;
|
||||
}
|
||||
a {
|
||||
color: #e74c3c;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover, a:focus {
|
||||
box-shadow: 0 1px #e74c3c;
|
||||
}
|
||||
.bshadow0, input {
|
||||
box-shadow: inset 0 -2px #e7e7e7;
|
||||
}
|
||||
input:hover {
|
||||
box-shadow: inset 0 -2px #ccc;
|
||||
}
|
||||
input, fieldset {
|
||||
font-family: sans-serif;
|
||||
font-size: 1em;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
input {
|
||||
color: inherit;
|
||||
line-height: 1.5;
|
||||
height: 1.5em;
|
||||
padding: .25em 0;
|
||||
}
|
||||
input:focus {
|
||||
outline: none;
|
||||
box-shadow: inset 0 -2px #449fdb;
|
||||
}
|
||||
.glyph {
|
||||
font-size: 16px;
|
||||
width: 15em;
|
||||
padding-bottom: 1em;
|
||||
margin-right: 4em;
|
||||
margin-bottom: 1em;
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
}
|
||||
.liga {
|
||||
width: 80%;
|
||||
width: calc(100% - 2.5em);
|
||||
}
|
||||
.talign-right {
|
||||
text-align: right;
|
||||
}
|
||||
.talign-center {
|
||||
text-align: center;
|
||||
}
|
||||
.bgc1 {
|
||||
background: #f1f1f1;
|
||||
}
|
||||
.fgc1 {
|
||||
color: #999;
|
||||
}
|
||||
.fgc0 {
|
||||
color: #000;
|
||||
}
|
||||
p {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.mvm {
|
||||
margin-top: .75em;
|
||||
margin-bottom: .75em;
|
||||
}
|
||||
.mtn {
|
||||
margin-top: 0;
|
||||
}
|
||||
.mtl, .mal {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
.mbl, .mal {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
.mal, .mhl {
|
||||
margin-left: 1.5em;
|
||||
margin-right: 1.5em;
|
||||
}
|
||||
.mhmm {
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
}
|
||||
.mls {
|
||||
margin-left: .25em;
|
||||
}
|
||||
.ptl {
|
||||
padding-top: 1.5em;
|
||||
}
|
||||
.pbs, .pvs {
|
||||
padding-bottom: .25em;
|
||||
}
|
||||
.pvs, .pts {
|
||||
padding-top: .25em;
|
||||
}
|
||||
.unit {
|
||||
float: left;
|
||||
}
|
||||
.unitRight {
|
||||
float: right;
|
||||
}
|
||||
.size1of2 {
|
||||
width: 50%;
|
||||
}
|
||||
.size1of1 {
|
||||
width: 100%;
|
||||
}
|
||||
.clearfix:before, .clearfix:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
}
|
||||
.clearfix:after {
|
||||
clear: both;
|
||||
}
|
||||
.hidden-true {
|
||||
display: none;
|
||||
}
|
||||
.textbox0 {
|
||||
width: 3em;
|
||||
background: #f1f1f1;
|
||||
padding: .25em .5em;
|
||||
line-height: 1.5;
|
||||
height: 1.5em;
|
||||
}
|
||||
#testDrive {
|
||||
display: block;
|
||||
padding-top: 24px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.fs0 {
|
||||
font-size: 16px;
|
||||
}
|
||||
.fs1 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
@ -1,30 +0,0 @@
|
||||
if (!('boxShadow' in document.body.style)) {
|
||||
document.body.setAttribute('class', 'noBoxShadow');
|
||||
}
|
||||
|
||||
document.body.addEventListener("click", function(e) {
|
||||
var target = e.target;
|
||||
if (target.tagName === "INPUT" &&
|
||||
target.getAttribute('class').indexOf('liga') === -1) {
|
||||
target.select();
|
||||
}
|
||||
});
|
||||
|
||||
(function() {
|
||||
var fontSize = document.getElementById('fontSize'),
|
||||
testDrive = document.getElementById('testDrive'),
|
||||
testText = document.getElementById('testText');
|
||||
function updateTest() {
|
||||
testDrive.innerHTML = testText.value || String.fromCharCode(160);
|
||||
if (window.icomoonLiga) {
|
||||
window.icomoonLiga(testDrive);
|
||||
}
|
||||
}
|
||||
function updateSize() {
|
||||
testDrive.style.fontSize = fontSize.value + 'px';
|
||||
}
|
||||
fontSize.addEventListener('change', updateSize, false);
|
||||
testText.addEventListener('input', updateTest, false);
|
||||
testText.addEventListener('change', updateTest, false);
|
||||
updateSize();
|
||||
}());
|
1606
icon/demo.html
1606
icon/demo.html
File diff suppressed because it is too large
Load Diff
363
icon/icon.css
363
icon/icon.css
@ -1,363 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'moon';
|
||||
src: url('moon.eot?hjmzrs');
|
||||
src: url('moon.eot?hjmzrs#iefix') format('embedded-opentype'),
|
||||
url('moon.ttf?hjmzrs') format('truetype'),
|
||||
url('moon.woff?hjmzrs') format('woff'),
|
||||
url('moon.svg?hjmzrs#moon') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: block;
|
||||
}
|
||||
|
||||
[class^="moon-"], [class*=" moon-"], input {
|
||||
/* use !important to prevent issues with browser extensions that change fonts */
|
||||
font-family: 'moon' !important;
|
||||
speak: never;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
|
||||
/* Better Font Rendering =========== */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.moon-code:before {
|
||||
content: "\f121";
|
||||
}
|
||||
.moon-superscript:before {
|
||||
content: "\f12b";
|
||||
}
|
||||
.moon-subscript:before {
|
||||
content: "\f12c";
|
||||
}
|
||||
.moon-alert-circle:before {
|
||||
content: "\e902";
|
||||
}
|
||||
.moon-alert-octagon:before {
|
||||
content: "\e903";
|
||||
}
|
||||
.moon-alert-triangle:before {
|
||||
content: "\e904";
|
||||
}
|
||||
.moon-align-center:before {
|
||||
content: "\e905";
|
||||
}
|
||||
.moon-align-justify:before {
|
||||
content: "\e906";
|
||||
}
|
||||
.moon-align-left:before {
|
||||
content: "\e907";
|
||||
}
|
||||
.moon-align-right:before {
|
||||
content: "\e908";
|
||||
}
|
||||
.moon-archive:before {
|
||||
content: "\e909";
|
||||
}
|
||||
.moon-arrow-down:before {
|
||||
content: "\e90a";
|
||||
}
|
||||
.moon-arrow-left:before {
|
||||
content: "\e90b";
|
||||
}
|
||||
.moon-arrow-right:before {
|
||||
content: "\e90c";
|
||||
}
|
||||
.moon-arrow-up:before {
|
||||
content: "\e90d";
|
||||
}
|
||||
.moon-bold:before {
|
||||
content: "\e90e";
|
||||
}
|
||||
.moon-calendar:before {
|
||||
content: "\e90f";
|
||||
}
|
||||
.moon-check:before {
|
||||
content: "\e910";
|
||||
}
|
||||
.moon-clipboard:before {
|
||||
content: "\e911";
|
||||
}
|
||||
.moon-download:before {
|
||||
content: "\e912";
|
||||
}
|
||||
.moon-edit:before {
|
||||
content: "\e913";
|
||||
}
|
||||
.moon-eye:before {
|
||||
content: "\e914";
|
||||
}
|
||||
.moon-eye-off:before {
|
||||
content: "\e915";
|
||||
}
|
||||
.moon-file-minus:before {
|
||||
content: "\e916";
|
||||
}
|
||||
.moon-file-plus:before {
|
||||
content: "\e917";
|
||||
}
|
||||
.moon-file-text:before {
|
||||
content: "\e918";
|
||||
}
|
||||
.moon-film:before {
|
||||
content: "\e919";
|
||||
}
|
||||
.moon-filter:before {
|
||||
content: "\e91a";
|
||||
}
|
||||
.moon-flag:before {
|
||||
content: "\e91b";
|
||||
}
|
||||
.moon-folder:before {
|
||||
content: "\e91c";
|
||||
}
|
||||
.moon-folder-minus:before {
|
||||
content: "\e91d";
|
||||
}
|
||||
.moon-folder-plus:before {
|
||||
content: "\e91e";
|
||||
}
|
||||
.moon-github:before {
|
||||
content: "\e91f";
|
||||
}
|
||||
.moon-grid:before {
|
||||
content: "\e920";
|
||||
}
|
||||
.moon-hash:before {
|
||||
content: "\e951";
|
||||
}
|
||||
.moon-heart:before {
|
||||
content: "\e921";
|
||||
}
|
||||
.moon-help-circle:before {
|
||||
content: "\e922";
|
||||
}
|
||||
.moon-home:before {
|
||||
content: "\e923";
|
||||
}
|
||||
.moon-image:before {
|
||||
content: "\e924";
|
||||
}
|
||||
.moon-italic:before {
|
||||
content: "\e926";
|
||||
}
|
||||
.moon-info:before {
|
||||
content: "\e925";
|
||||
}
|
||||
.moon-key:before {
|
||||
content: "\e927";
|
||||
}
|
||||
.moon-life-buoy:before {
|
||||
content: "\e928";
|
||||
}
|
||||
.moon-link:before {
|
||||
content: "\e929";
|
||||
}
|
||||
.moon-lock:before {
|
||||
content: "\e92a";
|
||||
}
|
||||
.moon-log-in:before {
|
||||
content: "\e92b";
|
||||
}
|
||||
.moon-log-out:before {
|
||||
content: "\e92c";
|
||||
}
|
||||
.moon-mail:before {
|
||||
content: "\e92d";
|
||||
}
|
||||
.moon-maximize:before {
|
||||
content: "\e94f";
|
||||
}
|
||||
.moon-maximize-2:before {
|
||||
content: "\e92e";
|
||||
}
|
||||
.moon-minimize:before {
|
||||
content: "\e92f";
|
||||
}
|
||||
.moon-minimize-2:before {
|
||||
content: "\e930";
|
||||
}
|
||||
.moon-minus:before {
|
||||
content: "\e931";
|
||||
}
|
||||
.moon-more-horizontal:before {
|
||||
content: "\e932";
|
||||
}
|
||||
.moon-move:before {
|
||||
content: "\e933";
|
||||
}
|
||||
.moon-paperclip:before {
|
||||
content: "\e934";
|
||||
}
|
||||
.moon-paragraph:before {
|
||||
content: "\e901";
|
||||
}
|
||||
.moon-plus:before {
|
||||
content: "\e935";
|
||||
}
|
||||
.moon-printer:before {
|
||||
content: "\e936";
|
||||
}
|
||||
.moon-quote:before {
|
||||
content: "\e900";
|
||||
}
|
||||
.moon-refresh-cw:before {
|
||||
content: "\e937";
|
||||
}
|
||||
.moon-rss:before {
|
||||
content: "\e938";
|
||||
}
|
||||
.moon-save:before {
|
||||
content: "\e939";
|
||||
}
|
||||
.moon-settings:before {
|
||||
content: "\e93a";
|
||||
}
|
||||
.moon-share:before {
|
||||
content: "\e93b";
|
||||
}
|
||||
.moon-shopping-bag:before {
|
||||
content: "\e93c";
|
||||
}
|
||||
.moon-shopping-cart:before {
|
||||
content: "\e93d";
|
||||
}
|
||||
.moon-sliders:before {
|
||||
content: "\e93e";
|
||||
}
|
||||
.moon-trash:before {
|
||||
content: "\e93f";
|
||||
}
|
||||
.moon-type:before {
|
||||
content: "\e940";
|
||||
}
|
||||
.moon-underline:before {
|
||||
content: "\e941";
|
||||
}
|
||||
.moon-unlock:before {
|
||||
content: "\e942";
|
||||
}
|
||||
.moon-upload:before {
|
||||
content: "\e943";
|
||||
}
|
||||
.moon-user:before {
|
||||
content: "\e944";
|
||||
}
|
||||
.moon-user-check:before {
|
||||
content: "\e945";
|
||||
}
|
||||
.moon-user-minus:before {
|
||||
content: "\e946";
|
||||
}
|
||||
.moon-user-plus:before {
|
||||
content: "\e947";
|
||||
}
|
||||
.moon-user-x:before {
|
||||
content: "\e948";
|
||||
}
|
||||
.moon-users:before {
|
||||
content: "\e949";
|
||||
}
|
||||
.moon-volume:before {
|
||||
content: "\e94a";
|
||||
}
|
||||
.moon-volume-1:before {
|
||||
content: "\e94b";
|
||||
}
|
||||
.moon-volume-2:before {
|
||||
content: "\e94c";
|
||||
}
|
||||
.moon-volume-x:before {
|
||||
content: "\e94d";
|
||||
}
|
||||
.moon-x:before {
|
||||
content: "\e94e";
|
||||
}
|
||||
.moon-file-pdf:before {
|
||||
content: "\f1c1";
|
||||
}
|
||||
.moon-file-word:before {
|
||||
content: "\f1c2";
|
||||
}
|
||||
.moon-file-excel:before {
|
||||
content: "\f1c3";
|
||||
}
|
||||
.moon-file-powerpoint:before {
|
||||
content: "\f1c4";
|
||||
}
|
||||
.moon-file-image:before {
|
||||
content: "\f1c5";
|
||||
}
|
||||
.moon-file-archive:before {
|
||||
content: "\f1c6";
|
||||
}
|
||||
.moon-file-audio:before {
|
||||
content: "\f1c7";
|
||||
}
|
||||
.moon-file-movie:before {
|
||||
content: "\f1c8";
|
||||
}
|
||||
.moon-file-code:before {
|
||||
content: "\f1c9";
|
||||
}
|
||||
.moon-coffee:before {
|
||||
content: "\e952";
|
||||
}
|
||||
.moon-file:before {
|
||||
content: "\e953";
|
||||
}
|
||||
.moon-anchor:before {
|
||||
content: "\e95a";
|
||||
}
|
||||
.moon-command:before {
|
||||
content: "\e954";
|
||||
}
|
||||
.moon-droplet:before {
|
||||
content: "\e957";
|
||||
}
|
||||
.moon-external-link:before {
|
||||
content: "\e95b";
|
||||
}
|
||||
.moon-gift:before {
|
||||
content: "\e958";
|
||||
}
|
||||
.moon-globe:before {
|
||||
content: "\e959";
|
||||
}
|
||||
.moon-list:before {
|
||||
content: "\e955";
|
||||
}
|
||||
.moon-menu:before {
|
||||
content: "\e950";
|
||||
}
|
||||
.moon-star:before {
|
||||
content: "\e956";
|
||||
}
|
||||
.moon-chevron-down:before {
|
||||
content: "\e95c";
|
||||
}
|
||||
.moon-chevron-left:before {
|
||||
content: "\e95d";
|
||||
}
|
||||
.moon-chevron-right:before {
|
||||
content: "\e95e";
|
||||
}
|
||||
.moon-chevron-up:before {
|
||||
content: "\e95f";
|
||||
}
|
||||
.moon-clock:before {
|
||||
content: "\e962";
|
||||
}
|
||||
.moon-map-pin:before {
|
||||
content: "\e961";
|
||||
}
|
||||
.moon-phone:before {
|
||||
content: "\e963";
|
||||
}
|
||||
.moon-search:before {
|
||||
content: "\e960";
|
||||
}
|
1
icon/icon.min.css
vendored
1
icon/icon.min.css
vendored
@ -1 +0,0 @@
|
||||
@font-face{font-family:moon;src:url('moon.eot?hjmzrs');src:url('moon.eot?hjmzrs#iefix') format('embedded-opentype'),url('moon.ttf?hjmzrs') format('truetype'),url('moon.woff?hjmzrs') format('woff'),url('moon.svg?hjmzrs#moon') format('svg');font-weight:400;font-style:normal;font-display:block}[class*=" moon-"],[class^=moon-]{font-family:moon!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.moon-code:before{content:"\f121"}.moon-superscript:before{content:"\f12b"}.moon-subscript:before{content:"\f12c"}.moon-alert-circle:before{content:"\e902"}.moon-alert-octagon:before{content:"\e903"}.moon-alert-triangle:before{content:"\e904"}.moon-align-center:before{content:"\e905"}.moon-align-justify:before{content:"\e906"}.moon-align-left:before{content:"\e907"}.moon-align-right:before{content:"\e908"}.moon-archive:before{content:"\e909"}.moon-arrow-down:before{content:"\e90a"}.moon-arrow-left:before{content:"\e90b"}.moon-arrow-right:before{content:"\e90c"}.moon-arrow-up:before{content:"\e90d"}.moon-bold:before{content:"\e90e"}.moon-calendar:before{content:"\e90f"}.moon-check:before{content:"\e910"}.moon-clipboard:before{content:"\e911"}.moon-download:before{content:"\e912"}.moon-edit:before{content:"\e913"}.moon-eye:before{content:"\e914"}.moon-eye-off:before{content:"\e915"}.moon-file-minus:before{content:"\e916"}.moon-file-plus:before{content:"\e917"}.moon-file-text:before{content:"\e918"}.moon-film:before{content:"\e919"}.moon-filter:before{content:"\e91a"}.moon-flag:before{content:"\e91b"}.moon-folder:before{content:"\e91c"}.moon-folder-minus:before{content:"\e91d"}.moon-folder-plus:before{content:"\e91e"}.moon-github:before{content:"\e91f"}.moon-grid:before{content:"\e920"}.moon-hash:before{content:"\e951"}.moon-heart:before{content:"\e921"}.moon-help-circle:before{content:"\e922"}.moon-home:before{content:"\e923"}.moon-image:before{content:"\e924"}.moon-italic:before{content:"\e926"}.moon-info:before{content:"\e925"}.moon-key:before{content:"\e927"}.moon-life-buoy:before{content:"\e928"}.moon-link:before{content:"\e929"}.moon-lock:before{content:"\e92a"}.moon-log-in:before{content:"\e92b"}.moon-log-out:before{content:"\e92c"}.moon-mail:before{content:"\e92d"}.moon-maximize:before{content:"\e94f"}.moon-maximize-2:before{content:"\e92e"}.moon-minimize:before{content:"\e92f"}.moon-minimize-2:before{content:"\e930"}.moon-minus:before{content:"\e931"}.moon-more-horizontal:before{content:"\e932"}.moon-move:before{content:"\e933"}.moon-paperclip:before{content:"\e934"}.moon-paragraph:before{content:"\e901"}.moon-plus:before{content:"\e935"}.moon-printer:before{content:"\e936"}.moon-quote:before{content:"\e900"}.moon-refresh-cw:before{content:"\e937"}.moon-rss:before{content:"\e938"}.moon-save:before{content:"\e939"}.moon-settings:before{content:"\e93a"}.moon-share:before{content:"\e93b"}.moon-shopping-bag:before{content:"\e93c"}.moon-shopping-cart:before{content:"\e93d"}.moon-sliders:before{content:"\e93e"}.moon-trash:before{content:"\e93f"}.moon-type:before{content:"\e940"}.moon-underline:before{content:"\e941"}.moon-unlock:before{content:"\e942"}.moon-upload:before{content:"\e943"}.moon-user:before{content:"\e944"}.moon-user-check:before{content:"\e945"}.moon-user-minus:before{content:"\e946"}.moon-user-plus:before{content:"\e947"}.moon-user-x:before{content:"\e948"}.moon-users:before{content:"\e949"}.moon-volume:before{content:"\e94a"}.moon-volume-1:before{content:"\e94b"}.moon-volume-2:before{content:"\e94c"}.moon-volume-x:before{content:"\e94d"}.moon-x:before{content:"\e94e"}.moon-file-pdf:before{content:"\f1c1"}.moon-file-word:before{content:"\f1c2"}.moon-file-excel:before{content:"\f1c3"}.moon-file-powerpoint:before{content:"\f1c4"}.moon-file-image:before{content:"\f1c5"}.moon-file-archive:before{content:"\f1c6"}.moon-file-audio:before{content:"\f1c7"}.moon-file-movie:before{content:"\f1c8"}.moon-file-code:before{content:"\f1c9"}.moon-coffee:before{content:"\e952"}.moon-file:before{content:"\e953"}.moon-anchor:before{content:"\e95a"}.moon-command:before{content:"\e954"}.moon-droplet:before{content:"\e957"}.moon-external-link:before{content:"\e95b"}.moon-gift:before{content:"\e958"}.moon-globe:before{content:"\e959"}.moon-list:before{content:"\e955"}.moon-menu:before{content:"\e950"}.moon-star:before{content:"\e956"}.moon-chevron-down:before{content:"\e95c"}.moon-chevron-left:before{content:"\e95d"}.moon-chevron-right:before{content:"\e95e"}.moon-chevron-up:before{content:"\e95f"}.moon-clock:before{content:"\e962"}.moon-map-pin:before{content:"\e961"}.moon-phone:before{content:"\e963"}.moon-search:before{content:"\e960"}
|
BIN
icon/moon.eot
BIN
icon/moon.eot
Binary file not shown.
138
icon/moon.svg
138
icon/moon.svg
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 123 KiB |
BIN
icon/moon.ttf
BIN
icon/moon.ttf
Binary file not shown.
BIN
icon/moon.woff
BIN
icon/moon.woff
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -78,6 +78,33 @@ copySync(
|
||||
{ overwrite: true }
|
||||
)
|
||||
|
||||
// icomoon free
|
||||
copySync(
|
||||
'node_modules/icomoon-free-npm/license.txt',
|
||||
'fonts/vendor/icomoon-free-npm/license.txt',
|
||||
{ overwrite: true }
|
||||
)
|
||||
|
||||
var previousCSSContent = fs.readFileSync( path.join(basePath,'node_modules/icomoon-free-npm/Font/demo-files/demo.css'),{encoding:'utf8', flag:'r'} )
|
||||
var position = previousCSSContent.search(/@font-face/)
|
||||
fs.writeFileSync(
|
||||
path.join(
|
||||
basePath,
|
||||
'fonts/vendor/icomoon-free-npm/icomoon.css'
|
||||
),
|
||||
previousCSSContent.substr(position).replace(
|
||||
/url\('..\/IcoMoon-Free.ttf'\) format\('truetype'\)/,
|
||||
"url('./IcoMoon-Free.woff') format('woff')"
|
||||
)
|
||||
)
|
||||
|
||||
const execSync = require('child_process').execSync;
|
||||
const output = execSync('node node_modules/ttf2woff/ttf2woff.js node_modules/icomoon-free-npm/Font/IcoMoon-Free.ttf fonts/vendor/icomoon-free-npm/IcoMoon-Free.woff', { encoding: 'utf-8' });
|
||||
console.log('Output was:\n', output);
|
||||
|
||||
|
||||
|
||||
|
||||
// example
|
||||
// mergeFilesSync(
|
||||
// [
|
||||
|
@ -5,7 +5,9 @@
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"fs-extra": "^11.1.0",
|
||||
"icomoon-free-npm": "^0.0.0",
|
||||
"knacss": "https://github.com/alsacreations/KNACSS",
|
||||
"modernizr": "^3.12.0"
|
||||
"modernizr": "^3.12.0",
|
||||
"ttf2woff": "^3.0.0"
|
||||
}
|
||||
}
|
||||
|
18
yarn.lock
18
yarn.lock
@ -648,6 +648,11 @@ hsla-regex@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/hsla-regex/-/hsla-regex-1.0.0.tgz#c1ce7a3168c8c6614033a4b5f7877f3b225f9c38"
|
||||
integrity sha512-7Wn5GMLuHBjZCb2bTmnDOycho0p/7UVaAeqXZGbHrBCl6Yd/xDhQJAXe6Ga9AXJH2I5zY1dEdYw2u1UptnSBJA==
|
||||
|
||||
icomoon-free-npm@^0.0.0:
|
||||
version "0.0.0"
|
||||
resolved "https://registry.yarnpkg.com/icomoon-free-npm/-/icomoon-free-npm-0.0.0.tgz#991417a58727e4053d89edd6717370cbe4e19206"
|
||||
integrity sha512-pfrVhde2E2tt6+oJ7WdvdOz7x9GbMpBzlaScAYFVkD2RTehZE9Xqdn5QaBbtTJrl8fG4ZgKqHxc9sAtKLNgFoA==
|
||||
|
||||
import-fresh@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546"
|
||||
@ -1014,6 +1019,11 @@ p-try@^2.0.0:
|
||||
resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
|
||||
integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
|
||||
|
||||
pako@^1.0.0:
|
||||
version "1.0.11"
|
||||
resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
|
||||
integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==
|
||||
|
||||
parse-json@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0"
|
||||
@ -1493,6 +1503,14 @@ timsort@^0.3.0:
|
||||
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
|
||||
integrity sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==
|
||||
|
||||
ttf2woff@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/ttf2woff/-/ttf2woff-3.0.0.tgz#bd0fc0157e428b7a9a30340f78adf72fb741962a"
|
||||
integrity sha512-OvmFcj70PhmAsVQKfC15XoKH55cRWuaRzvr2fpTNhTNer6JBpG8n6vOhRrIgxMjcikyYt88xqYXMMVapJ4Rjvg==
|
||||
dependencies:
|
||||
argparse "^2.0.1"
|
||||
pako "^1.0.0"
|
||||
|
||||
typed-array-length@^1.0.4:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb"
|
||||
|
Loading…
x
Reference in New Issue
Block a user