-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sass import & use strategy (#181)
* Fix sass import strategy * Update to forward
- Loading branch information
1 parent
3e2ea7e
commit 3d8e747
Showing
21 changed files
with
59 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@use "../../styles/index" as *; | ||
@use "../../styles/reference" as *; | ||
|
||
/** | ||
* BEM block is always "root" className | ||
|
2 changes: 1 addition & 1 deletion
2
apps/front/src/components/cookiesBanner/CookiesBanner.module.scss
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@use "../../styles/index" as *; | ||
@use "../../styles/reference" as *; | ||
|
||
.root { | ||
position: fixed; | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@use "../../styles/index" as *; | ||
@use "../../styles/reference" as *; | ||
|
||
.root { | ||
width: 100%; | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@use "../../styles/index" as *; | ||
@use "../../styles/reference" as *; | ||
|
||
.root { | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@use "../../styles/index" as *; | ||
@use "../../styles/reference" as *; | ||
|
||
.root { | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@use "../../styles/index" as *; | ||
@use "../../styles/reference" as *; | ||
|
||
.root { | ||
} |
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 |
---|---|---|
@@ -1,16 +1,3 @@ | ||
@font-face { | ||
font-family: "roboto-regular"; | ||
src: | ||
url("/src/fonts/roboto-regular/roboto-regular.woff2") format("woff2"), | ||
url("/src/fonts/roboto-regular/roboto-regular.woff") format("woff"), | ||
url("/src/fonts/roboto-regular/roboto-regular.ttf") format("truetype"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
|
||
@mixin font-roboto-regular { | ||
font-family: "roboto-regular", sans-serif; | ||
} | ||
|
||
// Declare font-face & font mixin... | ||
// Add the fonts in src/fonts folder |
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,11 @@ | ||
@forward "./_breakpoints.scss"; | ||
@forward "./_colors.scss"; | ||
@forward "./_ease.scss"; | ||
@forward "./_fonts.scss"; | ||
@forward "./_functions.scss"; | ||
@forward "./_grid.scss"; | ||
@forward "./_ratio.scss"; | ||
@forward "./_reset.scss"; | ||
@forward "./_texts.scss"; | ||
@forward "./_utils.scss"; | ||
@forward "./_viewport.scss"; |
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,9 @@ | ||
@use "./_breakpoints" as *; | ||
|
||
:root { | ||
--breakpoint-mobile: #{$breakpoint-mobile}; | ||
--breakpoint-tablet: #{$breakpoint-tablet}; | ||
--breakpoint-laptop: #{$breakpoint-laptop}; | ||
--breakpoint-bigLaptop: #{$breakpoint-bigLaptop}; | ||
--breakpoint-desktop: #{$breakpoint-desktop}; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@font-face { | ||
font-family: "roboto-regular"; | ||
src: | ||
url("/src/fonts/roboto-regular/roboto-regular.woff2") format("woff2"), | ||
url("/src/fonts/roboto-regular/roboto-regular.woff") format("woff"), | ||
url("/src/fonts/roboto-regular/roboto-regular.ttf") format("truetype"); | ||
font-weight: normal; | ||
font-style: normal; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@forward "./_breakpoints"; | ||
@forward "./_fonts"; | ||
@forward "./_ratio"; | ||
@forward "./_texts"; | ||
@forward "./_utils"; | ||
@forward "./_viewport"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:root { | ||
--viewport-reference-width: #{$viewport-reference-width}; | ||
--viewport-reference-height: #{$viewport-reference-height}; | ||
--viewport-reference-desktop-width: #{$viewport-reference-desktop-width}; | ||
--viewport-reference-desktop-height: #{$viewport-reference-desktop-height}; | ||
} |
2 changes: 1 addition & 1 deletion
2
cli/tasks/scaffold-component/templates/dom/component.scss.template
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@use "../../styles/index" as *; | ||
@use "../../styles/reference" as *; | ||
|
||
.%%upperComponentName%% { | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
cli/tasks/scaffold-component/templates/react/component.scss.template
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@use "../../styles/index" as *; | ||
@use "../../styles/reference" as *; | ||
|
||
.root { | ||
} |