-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Stop using @import in scss * Configure scss formatter
- Loading branch information
1 parent
f9a85bb
commit 5bb779d
Showing
15 changed files
with
107 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,25 @@ | ||
@import "../node_modules/bootstrap/scss/functions"; | ||
|
||
$primary: #007E51; | ||
$secondary: #F18200; | ||
$border-radius: 0.5rem; | ||
$link-decoration: none; | ||
/* TODO: We should reference palette, not direct colors | ||
https://github.com/BesLogic/releaf-canopeum/issues/249 */ | ||
$green: #06C270; | ||
$lightgreen: #E8F3E9; | ||
$cream: #FFFAF5; | ||
|
||
$font-family-sans-serif: -apple-system, BlinkMacSystemFont, 'Lato', Roboto, 'Helvetica Neue', Arial, sans-serif; | ||
$font-family-monospace: 'Helvetica Neue', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; | ||
$font-family-base: $font-family-sans-serif; | ||
$headings-font-family: Lato; | ||
|
||
$headings-font-weight: 700; | ||
|
||
|
||
@import "rsuite/dist/rsuite.min.css"; | ||
|
||
@import "../node_modules/bootstrap/scss/variables"; | ||
@import "../node_modules/bootstrap/scss/mixins"; | ||
|
||
@import "../node_modules/bootstrap/scss/bootstrap.scss"; | ||
|
||
@import "./assets/styles/GlobalStyles.scss"; | ||
|
||
$navbar-dark-toggler-border-color: rgba($white, 1); | ||
// Load rsuite CSS first because we don't want it to have priority over bootstrap | ||
// We can also later override its css vars | ||
// TODO: Strongly consider to stop using rsuite, we have too many co-existing design systems ! | ||
// (rsuite + mui + bootstrap) | ||
@use '../node_modules/rsuite/dist/rsuite.min.css'; | ||
|
||
// Load variables before Bootsrap so it generates the right theme colors | ||
@forward './assets/styles/Variables.scss'; | ||
@use './assets/styles/Variables.scss' as *; | ||
|
||
@use '../node_modules/bootstrap/scss/bootstrap' with ( | ||
$font-family-sans-serif: $font-family-sans-serif, | ||
$font-family-monospace: $font-family-monospace, | ||
$font-family-base: $font-family-base, | ||
$headings-font-family: $headings-font-family, | ||
$headings-font-weight: $headings-font-weight, | ||
$border-radius: $border-radius, | ||
$link-decoration: $link-decoration, | ||
$primary: $primary, | ||
$secondary: $secondary, | ||
$success: $success, | ||
$white: $white | ||
); | ||
|
||
@use './assets/styles/GlobalStyles.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
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,52 @@ | ||
/* | ||
* Bootstrap variables | ||
*/ | ||
|
||
$font-family-sans-serif: ( | ||
-apple-system, | ||
BlinkMacSystemFont, | ||
'Lato', | ||
Roboto, | ||
'Helvetica Neue', | ||
Arial, | ||
sans-serif | ||
); | ||
$font-family-monospace: ( | ||
'Helvetica Neue', | ||
Monaco, | ||
Consolas, | ||
'Liberation Mono', | ||
'Courier New', | ||
monospace | ||
); | ||
$font-family-base: $font-family-sans-serif; | ||
$headings-font-family: Lato; | ||
$headings-font-weight: 700; | ||
|
||
$border-radius: 0.5rem; | ||
$link-decoration: none; | ||
|
||
$primary: #007e51; | ||
$secondary: #f18200; | ||
$success: #06c270; | ||
|
||
$white: #fffaf5; | ||
/* TODO: We should reference palette, not direct colors | ||
https://github.com/BesLogic/releaf-canopeum/issues/249 */ | ||
$cream: #fffaf5; | ||
|
||
/* | ||
* Custom variables | ||
*/ | ||
|
||
// TODO (Sam T.): We should try to configure and properly use Bootstrap breakpoints instead | ||
$small-width: 540px; | ||
$medium-width: 720px; | ||
$large-width: 960px; | ||
$xlarge-width: 1200px; | ||
$xxlarge-width: 1600px; | ||
|
||
// TODO (Sam T.): We should configure bootstrap so that | ||
// our primary-derived color this represents uses the right shade of green. | ||
// Then use the generated bootstrap scss variable instead of $lightgreen | ||
$lightgreen: #e8f3e9; |
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,7 +1,7 @@ | ||
@import '../../App.scss'; | ||
@use 'Variables.scss' as *; | ||
|
||
:export { | ||
primary: $primary; | ||
secondary: $secondary; | ||
success: map-get($theme-colors, success); | ||
success: $success; | ||
} |
2 changes: 1 addition & 1 deletion
2
canopeum_frontend/src/components/analytics/AnalyticsSiteHeader.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 @@ | ||
@import '../../App.scss'; | ||
@use '../../assets/styles/Variables.scss' as *; | ||
|
||
.header-card { | ||
display: flex; | ||
|
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
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 @@ | ||
@import '../App.scss'; | ||
@use '../assets/styles/Variables.scss' as *; | ||
|
||
#map-page-row-container { | ||
padding: 0 2rem; | ||
|
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