diff --git a/_sass/icon.scss b/_sass/icon.scss new file mode 100644 index 0000000..f66ffaa --- /dev/null +++ b/_sass/icon.scss @@ -0,0 +1,39 @@ +@font-face { + font-family: "icomoon"; + src: url("../font/fonts/icomoon.eot"); + src: url("../font/fonts/icomoon.eot?#iefix") format("embedded-opentype"), url("../font/fonts/icomoon.woff") format("woff"), url("../fonts/icomoon.ttf") format("truetype"), url("../font/fonts/icomoon.svg#icomoon") format("svg"); + font-weight: normal; + font-style: normal; +} + +.icon .fab { + font-family: "icomoon"; + content: attr(data-icon); + speak: none; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + -webkit-font-smoothing: antialiased; + font-style: normal; +} + +.icon-github-alt:before { + content: "\e903"; +} + +.icon-linke-square:before { + content: "\e902"; +} + +.icon-envelope-open:before { + content: "\e901"; +} + +.icon-twit:before { + content: "\e904"; +} + +.icon-teleg:before { + content: "\e900"; +} \ No newline at end of file diff --git a/_sass/main.scss b/_sass/main.scss index 56d01ac..dd7595e 100644 --- a/_sass/main.scss +++ b/_sass/main.scss @@ -98,44 +98,4 @@ section#contact .button { display: flex; width: 100%; } -} - -@font-face { - font-family: "icomoon"; - src: url("../font/fonts/icomoon.eot"); - src: url("../font/fonts/icomoon.eot?#iefix") format("embedded-opentype"), url("../font/fonts/icomoon.woff") format("woff"), url("../fonts/icomoon.ttf") format("truetype"), url("../font/fonts/icomoon.svg#icomoon") format("svg"); - font-weight: normal; - font-style: normal; -} - -.icon .fab { - font-family: "icomoon"; - content: attr(data-icon); - speak: none; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - font-style: normal; -} - -.icon-github-alt:before { - content: "\e903"; -} - -.icon-linke-square:before { - content: "\e902"; -} - -.icon-envelope-open:before { - content: "\e901"; -} - -.icon-twit:before { - content: "\e904"; -} - -.icon-teleg:before { - content: "\e900"; } \ No newline at end of file diff --git a/package.json b/package.json index 0499bf4..efbb241 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ }, "scripts": { "css-deploy": "npm run css-build && npm run css-postcss", - "css-build": "node-sass _sass/main.scss css/main.css", + "css-build": "node-sass _sass/*.scss css/main.css", "css-postcss": "postcss --use autoprefixer --output css/main.css css/main.css", "css-watch": "npm run css-build -- --watch", "deploy": "npm run css-deploy && npm run js-build",