Commit 7d03dba
committed
fix: Refactor global variables
It's not possible to migrate away from `@import` because:
```
pnpx sass-migrator module --migrate-deps addon/styles/addon.scss
...
Error: This stylesheet was loaded by a nested import in addon/styles/addon.scss. The module system only supports loading nested CSS using the load-css() mixin, which doesn't allow access to variables from the outer stylesheet.
╷
2 │ width: calc(((100% - #{$site-container}) / 2) + 14rem);
│ ^^^^^^^^^^^^^^^
╵
addon/styles/components/_docs-viewer-x-current-page-index.scss 2:26 root stylesheet
```1 parent 07e4f9d commit 7d03dba
File tree
3 files changed
+6
-5
lines changed- addon/styles
- components
3 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | | - | |
3 | | - | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
0 commit comments