Skip to content

Commit

Permalink
feat: fonts and color
Browse files Browse the repository at this point in the history
  • Loading branch information
artemnih committed Mar 30, 2022
1 parent 4376e6f commit d9fca4f
Show file tree
Hide file tree
Showing 32 changed files with 286 additions and 154 deletions.
18 changes: 2 additions & 16 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"src/assets"
],
"styles": [
"src/styles.scss",
"node_modules/font-awesome/css/font-awesome.css"
"src/styles.scss"
],
"scripts": []
},
Expand Down Expand Up @@ -126,25 +125,12 @@
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
"tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "explorer-app:serve"
},
"configurations": {
"production": {
"devServerTarget": "explorer-app:serve:production"
}
}
}
}
},
Expand Down
36 changes: 0 additions & 36 deletions e2e/protractor.conf.js

This file was deleted.

23 changes: 0 additions & 23 deletions e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions e2e/src/app.po.ts

This file was deleted.

14 changes: 0 additions & 14 deletions e2e/tsconfig.json

This file was deleted.

5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"copy": "cp README.md dist/ngx-explorer/",
"test": "ng test",
"lint": "ng lint",
"lint:fix": "ng lint --fix",
"e2e": "ng e2e"
"lint:fix": "ng lint --fix"
},
"private": true,
"dependencies": {
Expand All @@ -21,7 +20,6 @@
"@angular/platform-browser": "~10.0.14",
"@angular/platform-browser-dynamic": "~10.0.14",
"@angular/router": "~10.0.14",
"font-awesome": "^4.7.0",
"rxjs": "~6.5.5",
"tslib": "^2.0.0",
"zone.js": "~0.10.3"
Expand All @@ -43,7 +41,6 @@
"karma-jasmine": "~3.3.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^10.0.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.9.5",
Expand Down
3 changes: 3 additions & 0 deletions projects/ngx-explorer/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/ngx-explorer",
"assets": [
"src/assets"
],
"lib": {
"entryFile": "src/public-api.ts"
},
Expand Down
3 changes: 0 additions & 3 deletions projects/ngx-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"dependencies": {
"tslib": "^2.0.0"
},
"optionalDependencies": {
"font-awesome": "^4.7.0"
},
"repository": {
"type": "git",
"url": "https://github.com/artemnih/ngx-explorer.git"
Expand Down
39 changes: 39 additions & 0 deletions projects/ngx-explorer/src/assets/icons/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Font license info


## MFG Labs

Copyright (C) 2012 by Daniel Bruce

Author: MFG Labs
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://www.mfglabs.com/


## Font Awesome

Copyright (C) 2016 by Dave Gandy

Author: Dave Gandy
License: SIL ()
Homepage: http://fortawesome.github.com/Font-Awesome/


## Elusive

Copyright (C) 2013 by Aristeides Stathopoulos

Author: Aristeides Stathopoulos
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://aristeides.com/


## Typicons

(c) Stephen Hutchings 2012

Author: Stephen Hutchings
License: SIL (http://scripts.sil.org/OFL)
Homepage: http://typicons.com/


82 changes: 82 additions & 0 deletions projects/ngx-explorer/src/assets/icons/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"name": "nxe",
"css_prefix_text": "nxe-",
"css_use_suffix": false,
"hinting": true,
"units_per_em": 1000,
"ascent": 850,
"glyphs": [
{
"uid": "1b5a5d7b7e3c71437f5a26befdd045ed",
"css": "doc",
"code": 59393,
"src": "fontawesome"
},
{
"uid": "9eece2885134734c5bc085fdd4955af1",
"css": "folder",
"code": 59394,
"src": "elusive"
},
{
"uid": "d5fabfa46384953ae055fceacb2229a7",
"css": "arrows-cw",
"code": 59395,
"src": "elusive"
},
{
"uid": "eeec3208c90b7b48e804919d0d2d4a41",
"css": "upload",
"code": 59396,
"src": "fontawesome"
},
{
"uid": "9a76bc135eac17d2c8b8ad4a5774fc87",
"css": "download",
"code": 59397,
"src": "fontawesome"
},
{
"uid": "41087bc74d4b20b55059c60a33bf4008",
"css": "edit",
"code": 59398,
"src": "fontawesome"
},
{
"uid": "f48ae54adfb27d8ada53d0fd9e34ee10",
"css": "trash-empty",
"code": 59399,
"src": "fontawesome"
},
{
"uid": "06301c50d89b5d3e651bd07ebd6d7de7",
"css": "cancel",
"code": 59392,
"src": "mfglabs"
},
{
"uid": "jh3jpcb1t1bcm80gidkadilh080aq79h",
"css": "menu",
"code": 59400,
"src": "typicons"
},
{
"uid": "e903698d494785d5e9328f0645da81bb",
"css": "th-large",
"code": 59401,
"src": "typicons"
},
{
"uid": "7bf14281af5633a597f85b061ef1cfb9",
"css": "angle-right",
"code": 61701,
"src": "fontawesome"
},
{
"uid": "e4dde1992f787163e2e2b534b8c8067d",
"css": "angle-down",
"code": 61703,
"src": "fontawesome"
}
]
}
68 changes: 68 additions & 0 deletions projects/ngx-explorer/src/assets/icons/css/nxe.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@font-face {
font-family: 'nxe';
src: url('../font/nxe.eot?44693661');
src: url('../font/nxe.eot?44693661#iefix') format('embedded-opentype'),
url('../font/nxe.woff2?44693661') format('woff2'),
url('../font/nxe.woff?44693661') format('woff'),
url('../font/nxe.ttf?44693661') format('truetype'),
url('../font/nxe.svg?44693661#nxe') format('svg');
font-weight: normal;
font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'nxe';
src: url('../font/nxe.svg?44693661#nxe') format('svg');
}
}
*/
[class^="nxe-"]:before, [class*=" nxe-"]:before {
font-family: "nxe";
font-style: normal;
font-weight: normal;
speak: never;

display: inline-block;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */

/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;

/* fix buttons height, for twitter bootstrap */
line-height: 1em;

/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;

/* you can be more comfortable with increased icons size */
/* font-size: 120%; */

/* Font smoothing. That was taken from TWBS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.nxe-cancel:before { content: '\e800'; } /* '' */
.nxe-doc:before { content: '\e801'; } /* '' */
.nxe-folder:before { content: '\e802'; } /* '' */
.nxe-arrows-cw:before { content: '\e803'; } /* '' */
.nxe-upload:before { content: '\e804'; } /* '' */
.nxe-download:before { content: '\e805'; } /* '' */
.nxe-edit:before { content: '\e806'; } /* '' */
.nxe-trash-empty:before { content: '\e807'; } /* '' */
.nxe-menu:before { content: '\e808'; } /* '' */
.nxe-th-large:before { content: '\e809'; } /* '' */
.nxe-angle-right:before { content: '\f105'; } /* '' */
.nxe-angle-down:before { content: '\f107'; } /* '' */
Binary file not shown.

0 comments on commit d9fca4f

Please sign in to comment.