Skip to content

Commit

Permalink
chore(website): removed tilde from imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Aug 13, 2021
1 parent c0f25f7 commit 6081e14
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Next, create a `src/App.scss` file to include all the `react-md` styles and
import the `App.scss` file in the `src/App.js`:

```scss
@import "~react-md/dist/scss/react-md";
@import "react-md/dist/react-md";

// this will include all the styles from react-md
@include react-md-utils;
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/src/blogs/v2-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ variable:
```scss
$rmd-utils-enable-rtl: false;

@import "~react-md/dist/react-md";
@import "react-md/dist/react-md";
```

### Convenience Configuration and Context Provider Components
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ few values.
First, create or update `src/_rmd-variable-overrides.scss`:

```scss
@import "~@react-md/theme/dist/color-palette";
@import "@react-md/theme/dist/color-palette";

$rmd-theme-light: false;
// I am bad at colors and chose 2 random ones from https://flatuicolors.com/palette/defo
Expand Down Expand Up @@ -75,10 +75,10 @@ base styles:
```scss
@import "variables";

@import "~@react-md/button/dist/mixins";
@import "~@react-md/theme/dist/mixins";
@import "~@react-md/list/dist/mixins";
@import "~@react-md/utils/dist/mixins";
@import "@react-md/button/dist/mixins";
@import "@react-md/theme/dist/mixins";
@import "@react-md/list/dist/mixins";
@import "@react-md/utils/dist/mixins";

@include react-md-utils;
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ My recommended way is using the media query approach along with the #utils
package:

```scss
@import "~@react-md/tooltip/dist/mixins";
@import "~@react-md/utils/dist/mixins";
@import "@react-md/tooltip/dist/mixins";
@import "@react-md/utils/dist/mixins";

:root {
@rmd-utils-desktop-media {
Expand Down
6 changes: 3 additions & 3 deletions packages/documentation/src/guides/advanced-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Next, include the font with the weights by using the
`rmd-typography-host-google-font` mixin:

```scss
@import "~@react-md/typography/dist/mixins";
@import "@react-md/typography/dist/mixins";

@include rmd-typography-host-google-font;
```
Expand Down Expand Up @@ -256,7 +256,7 @@ mv ~/Downloads/roboto src/fonts/roboto
```

```scss
@import "~@react-md/typography/dist/mixins";
@import "@react-md/typography/dist/mixins";

@include rmd-typography-host-google-font(
Roboto,
Expand All @@ -283,7 +283,7 @@ you'll use the `rmd-icon-host-material-icons` mixin from the #icon package
instead.

```scss
@import "~@react-md/icon/dist/mixins";
@import "@react-md/icon/dist/mixins";

// if material icons are in `public/fonts/material-icons`
@include rmd-icon-host-material-icons;
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/src/guides/creating-a-new-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Let's fix that by adding the base styles. Create a new file `src/App.scss` that
will import the `react-md` scss library as well as generate the default styles:

```scss
@import "~react-md/dist/react-md";
@import "react-md/dist/react-md";

@include react-md-utils;
```
Expand Down
10 changes: 5 additions & 5 deletions packages/documentation/src/guides/customizing-your-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ to create a `_variables.scss` file that can be imported into any of your other
`src/_variables.scss`

```scss
@import "~@react-md/theme/dist/color-palette";
@import "@react-md/theme/dist/color-palette";

$rmd-theme-primary: $rmd-teal-500;
$rmd-theme-secondary: $rmd-deep-orange-a-400;
Expand All @@ -34,7 +34,7 @@ $rmd-theme-secondary: $rmd-deep-orange-a-400;

```scss
@import "./variables";
@import "~react-md/dist/react-md";
@import "react-md/dist/react-md";

@include react-md-utils;
```
Expand All @@ -53,7 +53,7 @@ app.
`src/_variables.scss`

```scss
@import "~@react-md/theme/dist/color-palette";
@import "@react-md/theme/dist/color-palette";

$rmd-theme-light: false;
$rmd-theme-primary: $rmd-teal-500;
Expand All @@ -64,7 +64,7 @@ $rmd-theme-secondary: $rmd-deep-orange-a-400;

```scss
@import "./variables";
@import "~react-md/dist/react-md";
@import "react-md/dist/everything";

@include react-md-utils;
```
Expand All @@ -86,7 +86,7 @@ theme in their OS? Luckily, `react-md` provides `rmd-theme-light` and
conditionally apply the dark theme.

```scss
@import "~react-md/dist/react-md";
@import "react-md/dist/everything";

@media (prefers-color-scheme: dark) {
:root {
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/src/guides/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ base `react-md` styles. First, create a `src/index.scss` file and generate the
styles:

```scss
@import "~react-md/dist/react-md";
@import "react-md/dist/react-md";

@include react-md-utils;
```
Expand Down
6 changes: 3 additions & 3 deletions packages/documentation/src/guides/scoped-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ into your `.scss` file and use the `react-md-{{PACKAGE_NAME}}` mixin to generate
the styles:

```scss
@import "~@react-md/theme/dist/mixins";
@import "~@react-md/typography/dist/mixins";
@import "@react-md/theme/dist/mixins";
@import "@react-md/typography/dist/mixins";

@include react-md-theme;
@include react-md/typography;
@include react-md-typography;
```

Please read the [using the Sass exports] guide for more information about these
Expand Down
12 changes: 6 additions & 6 deletions packages/documentation/src/guides/working-with-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ the styles from `react-md@v1`:
```scss
$md-typography-extended: false;

@import "~react-md/src/scss/react-md";
@import "react-md/src/scss/react-md";

// instead of calling `@include react-md-everything`, make sure
// to include everything you need except for the
Expand Down Expand Up @@ -208,11 +208,11 @@ $rmd-theme-light-background: $md-light-theme-background-color;
$rmd-theme-dark-background: $md-dark-theme-background-color;

// import all the installed @react-md/* packages in your app:
@import "~@react-md/icon/dist/mixins";
@import "~@react-md/states/dist/mixins";
@import "~@react-md/theme/dist/mixins";
@import "~@react-md/typography/dist/mixins";
@import "~@react-md/utils/dist/mixins";
@import "@react-md/icon/dist/mixins";
@import "@react-md/states/dist/mixins";
@import "@react-md/theme/dist/mixins";
@import "@react-md/typography/dist/mixins";
@import "@react-md/utils/dist/mixins";

// this is kind of the new `react-md-everything`. it conditionally does `@include react-md-PACKAGE`
// for all the mixins that have been imported
Expand Down
2 changes: 1 addition & 1 deletion packages/react-md/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ variable:
```scss
$rmd-utils-enable-rtl: false;

@import "~react-md/dist/react-md";
@import "react-md/dist/react-md";
```

#### Convenience Configuration and Context Provider Components
Expand Down
2 changes: 1 addition & 1 deletion packages/react-md/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Next, create a `src/App.scss` file to include all the `react-md` styles and
import the `App.scss` file in the `src/App.js`:

```scss
@import "~react-md/dist/scss/react-md";
@import "react-md/dist/react-md";

// this will include all the styles from react-md
@include react-md-utils;
Expand Down
8 changes: 4 additions & 4 deletions packages/theme/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ the existing SCSS variables to update your theme.
Example:

```scss
@import "~@react-md/theme/dist/color-palette";
@import "@react-md/theme/dist/color-palette";

$rmd-theme-primary: $rmd-blue-500;
$rmd-theme-secondary: $rmd-orange-a-400;

@import "~@react-md/theme/dist/mixins";
@import "@react-md/theme/dist/mixins";

@include react-md-theme;
```
Expand All @@ -97,7 +97,7 @@ $my-awesome-company-orange: #e67e22;
$rmd-theme-primary: $my-awesome-company-purple;
$rmd-theme-secondary: $my-awesome-company-orange;

@import "~@react-md/theme/dist/mixins";
@import "@react-md/theme/dist/mixins";

@include react-md-theme;
```
Expand Down Expand Up @@ -137,7 +137,7 @@ $rmd-theme-secondary: $my-awesome-company-orange;
@import "my-awesome-company-branding";
@import "my-awesome-company-react-md-overrides";

@import "~@react-md/theme/dist/mixins";
@import "@react-md/theme/dist/mixins";
```

```scss
Expand Down
12 changes: 6 additions & 6 deletions packages/utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The main export for this package will mainly be the exposed mixins which can be
included with the following import:

```scss
@import "~@react-md/utils/dist/mixins";
@import "@react-md/utils/dist/mixins";

@include rmd-utils-base;

Expand All @@ -56,11 +56,11 @@ automatically include all the react-md styles for packages you have included in
this file.

```scss
@import "~@react-md/app-bar/dist/mixins";
@import "~@react-md/avatar/dist/mixins";
@import "~@react-md/button/dist/mixins";
@import "~@react-md/elevation/dist/mixins";
@import "~@react-md/utils/dist/mixins";
@import "@react-md/app-bar/dist/mixins";
@import "@react-md/avatar/dist/mixins";
@import "@react-md/button/dist/mixins";
@import "@react-md/elevation/dist/mixins";
@import "@react-md/utils/dist/mixins";

@include react-md-utils;
```
Expand Down

0 comments on commit 6081e14

Please sign in to comment.