Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 5ed09cd

Browse files
committed
Removed deprecated tilde in imports
1 parent 9aed1f7 commit 5ed09cd

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Diff for: docs/getting-started/introduction.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ For the moment, the theme package can be installed using something like this in
1616

1717
```json
1818
"devDependencies": {
19-
"@bcgov/bootstrap-theme": "https://github.com/bcgov/bootstrap-theme/releases/download/v1.1.1/bcgov-bootstrap-theme-1.1.1.tgz",
19+
"@bcgov/bootstrap-theme": "https://github.com/bcgov/bootstrap-theme/releases/download/v1.1.4/bcgov-bootstrap-theme-1.1.4.tgz",
2020
"bootstrap": "~4.3.1",
2121
}
2222
```
@@ -27,21 +27,21 @@ of Bootstrap functions and mixins. The SCSS source can be included using the fol
2727
(paths may vary):
2828

2929
```scss
30-
$bcgov-font-path: "../node_modules/@bcgov/bootstrap-theme/dist/fonts/";
31-
@import "~@bcgov/bootstrap-theme/dist/scss/bootstrap-theme";
30+
$bcgov-font-path: "@bcgov/bootstrap-theme/dist/fonts/";
31+
@import "@bcgov/bootstrap-theme/dist/scss/bootstrap-theme";
3232
```
3333

3434
SCSS variables and mixins defined by Bootstrap and the theme can be imported independent of
3535
any display rules for use in isolated components:
3636

3737
```scss
38-
@import "~@bcgov/bootstrap-theme/dist/scss/common";
38+
@import "@bcgov/bootstrap-theme/dist/scss/common";
3939
```
4040

4141
Generated CSS can be imported using the following (paths may vary):
4242

4343
```css
44-
@import "~@bcgov/bootstrap-theme/dist/css/bootstrap-theme.min.css";
44+
@import "@bcgov/bootstrap-theme/dist/css/bootstrap-theme.min.css";
4545
```
4646

4747
## Javascript support

Diff for: src/styles/_common.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Includes in this file should not define any CSS classes, it is only meant for
22
// defining variables and functions for use by isolated components
33

4-
@import "~bootstrap/scss/functions";
4+
@import "bootstrap/scss/functions";
55

66
@import "variables";
77

8-
@import "~bootstrap/scss/variables";
9-
@import "~bootstrap/scss/mixins";
8+
@import "bootstrap/scss/variables";
9+
@import "bootstrap/scss/mixins";

Diff for: src/styles/bootstrap-theme.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import "common";
33

44
// Now bring in the rest of bootstrap!
5-
@import "~bootstrap/scss/bootstrap";
5+
@import "bootstrap/scss/bootstrap";
66

77
// Overrides of bootstrap classes
88
@import "overrides";

0 commit comments

Comments
 (0)