-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(theme): separate bootstrap styles into @nebular/bootstrap (#707
) Closes #230 BREAKING CHANGE: All bootstrap override styles were moved from the @nebular/theme package to the new @nebular/bootstrap package. If you don't need bootstrap support you can simply no use this package. @nebular/theme package introduced a dependency of normalize.css. @nebular/auth package now depends on @nebular/bootstrap (temporary). How To Update: - install Nebular Bootstrap `npm i @nebular/bootstrap` - then add it into your `styles.scss` ```scss @import '~@nebular/bootstrap/styles/globals'; // ... @include nb-install() { // ... @include nb-bootstrap-global(); } ```
- Loading branch information
1 parent
d6a211f
commit a25f615
Showing
47 changed files
with
304 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Bootstrap Integration | ||
|
||
Nebular provides an additional module to override bootstrap styles according our themes. | ||
|
||
<div class="note note-info section-end"> | ||
<div class="note-title">Note</div> | ||
<div class="note-body"> | ||
If you use our [ngx-admin starter kit](docs/guides/install-based-on-starter-kit) then you already have the bootstrap module in place. | ||
</div> | ||
</div> | ||
|
||
To enable bootstrap support you have to do the following: | ||
|
||
- Install nebular bootstrap and bootstrap itself packages: | ||
|
||
```bash | ||
npm i @nebular/bootstrap bootstrap | ||
``` | ||
|
||
- Add bootstrap in `angular.json`: | ||
|
||
```json | ||
"styles": [ | ||
"node_modules/bootstrap/dist/css/bootstrap.css", | ||
] | ||
``` | ||
|
||
Then if you just want to use predefined themes you have to import prebuilt styles for required theme in `angular.json`: | ||
|
||
```json | ||
"styles": [ | ||
"node_modules/@nebular/bootstrap/styles/prebuilt/cosmic.css", | ||
"node_modules/@nebular/bootstrap/styles/prebuilt/default.css", | ||
"node_modules/@nebular/bootstrap/styles/prebuilt/corporate.css", | ||
] | ||
``` | ||
|
||
Another way, if you need to customize themes you have to do the following steps: | ||
|
||
- Import nebular bootstrap into `styles.scss`: | ||
|
||
```scss | ||
@import '~@nebular/bootstrap/styles/globals'; | ||
``` | ||
|
||
- Include `nb-bootstrap-global` in styles.scss: | ||
|
||
```scss | ||
@import '~@nebular/bootstrap/styles/globals'; | ||
|
||
@include nb-install() { | ||
@include nb-bootstrap-global(); | ||
} | ||
``` | ||
|
||
And that's it. Bootstrap is installed now. | ||
|
||
<hr> | ||
|
||
## Related Articles | ||
|
||
- [Enable Theme System](docs/guides/enable-theme-system) | ||
- [Theme System Concepts](docs/guides/theme-system) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "@nebular/bootstrap", | ||
"version": "2.0.0-rc.10", | ||
"description": "@nebular/bootstrap", | ||
"author": "akveo", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/akveo/nebular.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/akveo/nebular/issues" | ||
}, | ||
"homepage": "https://github.com/akveo/nebular#readme", | ||
"keywords": [ | ||
"angular", | ||
"typescript", | ||
"ng2-admin", | ||
"ngx-admin", | ||
"theme", | ||
"nebular" | ||
], | ||
"peerDependencies": { | ||
"bootstrap": "^4.0.0", | ||
"@nebular/theme": "2.0.0-rc.10" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.