Foundation 5 custom sass project setup -
i have project use foundation 5 with. have been through steps of creating new foundation project using cli don't it. there many files , structure not match want. so...
i intending add required files project , use compass compile css.
i have noticed in project created on cli few things confuse me , in clearing them up.
in project created on cli there 2
_settings.scss
files 1 under foundation directory in bower_components , 1 inmy_project\scss
. i'm assuming because ofadd_import_path "bower_components/foundation/scss"
line inconfig.rb
, of files has preference?why
my_project/stylesheets
not have normalize.css (or foundation.css) in it? , how not there? (in custom setup being generated, albeit in subdirectories ofstylesheets
,foundation.css
being generated me has no settings changes applied guess shouldn't being generated)
if take inside \bower_components\foundation\scss
you'll see file foundation.scss
. file imports stylesheets additional components come in foundation 5 "package." in root scss
directory, app.scss
compiles sass \stylesheets\app.css
. rather this:
@import "foundation";
uncomment individual components you'll using. this:
@import //"foundation/components/accordion", //"foundation/components/alert-boxes", "foundation/components/block-grid", //"foundation/components/breadcrumbs", //"foundation/components/button-groups", //"foundation/components/buttons", "foundation/components/clearing", "foundation/components/dropdown", //"foundation/components/dropdown-buttons", //"foundation/components/flex-video", "foundation/components/forms", "foundation/components/grid", //"foundation/components/inline-lists", //"foundation/components/joyride", //"foundation/components/keystrokes", //"foundation/components/labels", //"foundation/components/magellan", //"foundation/components/orbit", //"foundation/components/pagination", //"foundation/components/panels", //"foundation/components/pricing-tables", //"foundation/components/progress-bars", "foundation/components/reveal", "foundation/components/side-nav", //"foundation/components/split-buttons", "foundation/components/sub-nav", //"foundation/components/switches", "foundation/components/tables", //"foundation/components/tabs", //"foundation/components/thumbs", //"foundation/components/tooltips", "foundation/components/top-bar", "foundation/components/type", "foundation/components/offcanvas", "foundation/components/visibility";
if you'd streamline file structure, suggest remove scss files \bower_components\foundation\scss\foundation\components
directory not use. same js
directory. don't need modify in bower_components
directory work. not entirely sure why it's contained within bower_components
, imagine it's got being able update core components later future releases.
someone else give more educated answer.
p.s. - make sure compass watch
in cli see of changes made sass files.
Comments
Post a Comment