-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch (partially) to sass_builder plugin
Now the global style sheet is built automatically when any of its SASS files are modified. A project that uses this will have to creates its own web/theme.scss and import our main scss file to use it. I haven't tested this on component SCSS yet.
- Loading branch information
Showing
4 changed files
with
36 additions
and
80 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,45 +1,45 @@ | ||
/* | ||
* Import mixins. | ||
*/ | ||
@import 'bootstrap/variables'; | ||
@import 'bootstrap/mixins'; | ||
@import 'modular-admin/mixins'; | ||
@import '../bootstrap/variables'; | ||
@import '../bootstrap/mixins'; | ||
@import 'mixins'; | ||
|
||
/* | ||
* Import all of Open Sans. | ||
*/ | ||
$OpenSansPath: "../open-sans/fonts" !default; | ||
$OpenSansVersion: "1.1.0" !default; | ||
|
||
@import 'open-sans/sass/mixins'; | ||
@import 'open-sans/sass/Light'; | ||
@import 'open-sans/sass/LightItalic'; | ||
@import 'open-sans/sass/Regular'; | ||
@import 'open-sans/sass/Italic'; | ||
@import 'open-sans/sass/Semibold'; | ||
@import 'open-sans/sass/SemiboldItalic'; | ||
@import 'open-sans/sass/Bold'; | ||
@import 'open-sans/sass/BoldItalic'; | ||
@import 'open-sans/sass/ExtraBold'; | ||
@import 'open-sans/sass/ExtraBoldItalic'; | ||
@import '../open-sans/sass/mixins'; | ||
@import '../open-sans/sass/Light'; | ||
@import '../open-sans/sass/LightItalic'; | ||
@import '../open-sans/sass/Regular'; | ||
@import '../open-sans/sass/Italic'; | ||
@import '../open-sans/sass/Semibold'; | ||
@import '../open-sans/sass/SemiboldItalic'; | ||
@import '../open-sans/sass/Bold'; | ||
@import '../open-sans/sass/BoldItalic'; | ||
@import '../open-sans/sass/ExtraBold'; | ||
@import '../open-sans/sass/ExtraBoldItalic'; | ||
|
||
/* | ||
* Import some things we need from Bootstrap. | ||
*/ | ||
|
||
$enable-flex: true; | ||
@import 'bootstrap/reboot'; | ||
@import 'bootstrap/normalize'; | ||
@import 'bootstrap/grid'; | ||
@import 'bootstrap/code'; | ||
@import 'bootstrap/type'; | ||
@import 'bootstrap/utilities'; | ||
@import 'bootstrap/list-group'; | ||
@import '../bootstrap/reboot'; | ||
@import '../bootstrap/normalize'; | ||
@import '../bootstrap/grid'; | ||
@import '../bootstrap/code'; | ||
@import '../bootstrap/type'; | ||
@import '../bootstrap/utilities'; | ||
@import '../bootstrap/list-group'; | ||
|
||
/* | ||
* Import Modular Admin. | ||
*/ | ||
@import 'modular-admin/theme'; | ||
@import 'modular-admin/grid'; | ||
@import 'modular-admin/document'; | ||
@import 'modular-admin/typography'; | ||
@import 'theme'; | ||
@import 'grid'; | ||
@import 'document'; | ||
@import 'typography'; |
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 |
---|---|---|
|
@@ -17,3 +17,4 @@ dev_dependencies: | |
build_runner: ^1.0.0 | ||
build_test: ^0.10.2 | ||
build_web_compilers: ^0.4.0 | ||
sass_builder: ^2.1.2 |
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,10 @@ | ||
builders: | ||
sass_builder: | ||
target: "sass_builder" | ||
import: "package:sass_builder/sass_builder.dart" | ||
builder_factories: ["sassBuilder"] | ||
auto_apply: dependents | ||
build_extensions: | ||
.scss: [".css"] | ||
.sass: [".css"] | ||
build_to: source |
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