I am attempting to deactivate certain CSS files in the foundation framework, as they are unnecessary for my project.
After installing foundation via a gem, I followed Ryan Bates' recommendation to modify the foundation_and_overrides.scss file by replacing import foundation
with specific files that I require:
@import
"foundation/components/grid",
"foundation/components/alert-boxes",
"foundation/components/block-grid",
"foundation/components/buttons",
"foundation/components/dropdown",
"foundation/components/dropdown-buttons",
"foundation/components/forms",
"foundation/components/inline-lists",
"foundation/components/joyride",
"foundation/components/labels",
"foundation/components/orbit",
"foundation/components/panels",
"foundation/components/reveal",
"foundation/components/tooltips",
"foundation/components/top-bar";
However, I encountered the following error message:
Undefined variable: "$include-html-classes".
Has anyone successfully disabled CSS/JS files from the foundation framework?
Thanks!
Update
This is how my foundation_and_overrides.scss appears:
$include-html-classes: true;
$include-print-styles: true;
...
... // Remaining variables go here
@import "foundation/variables";
@import
"foundation/components/grid",
"foundation/components/accordion",
...
... // List of additional components go here
Using this configuration leads to the error:
Undefined variable: "$opposite-direction".