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 in my_project\scss. i'm assuming because of add_import_path "bower_components/foundation/scss" line in config.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 of stylesheets, 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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -