meteoric / ionicons-sass

Ionic's Ionicons library in SASS and bundled for Meteor.
MIT License
21 stars 18 forks source link

Import path #4

Closed wolasss closed 9 years ago

wolasss commented 9 years ago

Hi,

The way it is supposed to import sass files: (@import '.meteor/local/build/programs/server/assets/packages/meteoric_ionicons-sass/ionicons';) it's not really good idea.

Firstly, when you have package-oriented meteor structure, so that every logical unit is in seperate package, then, when you put this import inside a package, this path is simply wrong.

What's more, this path also will be wrong when you bundle the app and run it as a bundled node meteor application.

So it would be nice if we could figure out best way of importing it.

nickw commented 9 years ago

You don't have to use this @import syntax, I just use it so that I can override the SASS variables. If the paths are causing issues in your app you can just copy the files into your codebase. SASS @imports in Meteor are definitely buggy, but that is a Meteor-core issue.

sasikanth513 commented 9 years ago

@nickw without @import styles are not loading, Is this normal or Is this some kind of bug/issue with my app?

If I use @import everything is fine

nickw commented 9 years ago

@sasikanth513 I'm not sure I follow, but to use the Ionic styles you either need to:

1- use this package and @import the SCSS files 2- use another meteor package 3- grab the static CSS files from ionicframework.com and drop them in your Meteor app

sasikanth513 commented 9 years ago

@nickw Thanks for the quick reply.

One more doubt, For example I don't want _forms.scss file(it is overriding my existing styles)

Is there any way to avoid particulat files or particular styles otherthan cloning the repo?

nickw commented 9 years ago

You can probably just duplicate this file in your own app and only import the files you want.