Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make scooter work as a mixin library #48

Open
standardpixel opened this issue Jun 1, 2016 · 1 comment
Open

Make scooter work as a mixin library #48

standardpixel opened this issue Jun 1, 2016 · 1 comment
Assignees
Milestone

Comments

@standardpixel
Copy link

Right now the only way to import styles from scooter is as classes. This means that the whole library will be imported if you import extend a class with one of scooters internal classes. If instead scooter started by providing placeholder classes %classname and then used those to create it's regular classes .classname, others could use scooter to extend their existing classes and not have to clutter up their markup with scooter specific class names

@lunaroja
Copy link
Contributor

lunaroja commented Jun 1, 2016

👍 Great suggestion!

I did this slightly differently for the grids, because they are still include because @include grid; at the bottom. https://github.com/dropbox/scooter/blob/master/scss/objects/_grid.scss#L65

For now, the only way to do what you need is to not @importobjects/_all';` and do

@import 'objects/_flag';
// @import 'objects/_grid';
@import 'objects/_list-ui';
@import 'objects/_media';

... but then you can't mixin your own. 😢

@lunaroja lunaroja added this to the 2.1 milestone Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants