Skip to content

Commit

Permalink
feat(docs): add routing loader (#1533)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibing authored and nnixaa committed May 30, 2019
1 parent c5d15c6 commit dd33a22
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,14 @@
"docs/google46533d2e7a851062.html"
],
"styles": [
"node_modules/pace-js/templates/pace-theme-flash.tmpl.css",
"node_modules/bootstrap/dist/css/bootstrap.css",
"node_modules/docsearch.js/dist/cdn/docsearch.min.css",
"node_modules/highlight.js/styles/dracula.css",
"docs/app/@theme/styles/styles.scss"
],
"scripts": [
"node_modules/pace-js/pace.min.js",
"node_modules/docsearch.js/dist/cdn/docsearch.min.js"
]
},
Expand Down
20 changes: 20 additions & 0 deletions docs/app/@theme/styles/pace.theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/

@mixin ngd-pace-theme() {

.pace .pace-progress {
background: nb-theme(color-fg-highlight);
}

.pace .pace-progress-inner {
box-shadow: 0 0 10px nb-theme(color-fg-highlight), 0 0 5px nb-theme(color-fg-highlight);
}

.pace .pace-activity {
display: none;
}
}
5 changes: 5 additions & 0 deletions docs/app/@theme/styles/styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@import 'themes';
@import 'common';

@import 'pace.theme';

@import '../../../../src/framework/theme/styles/global/normalize';
@import '../../../../src/framework/theme/styles/global/components';
@import '../../../../src/framework/theme/styles/global/typography/typography';
Expand All @@ -19,6 +21,9 @@
@include nb-typography();

@include nbd-common();

// loading progress bar
@include ngd-pace-theme();
};

body {
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"marked": "0.3.9",
"moment": "^2.22.2",
"normalize.css": "8.0.0",
"pace-js": "^1.0.2",
"rxjs": "6.5.2",
"socicon": "3.0.5",
"tslib": "^1.9.0",
Expand Down

0 comments on commit dd33a22

Please sign in to comment.