-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix ordering of css dependencies #109
Comments
hmm yeah that's definitely not ideal |
running into this more and more as i build out the segment.io theme - but i have no idea how to wrap my head around the recursion to fix it haha, but it will be badass once this works |
This just bit me on a large project too. Before manually stitching files to workaround I am going to have a look to see if I can patch |
why even bother referencing locals in non-boot components when they're just CSS? just order them correctly in your |
@jonathanong it's still pretty critical for some unfortunately since css is kinda lame haha, even simple stuff like normalization libs typically need to be first, or if you want to override something in a dependency then it has to be after. YAY CSS |
CSS, oh baby you!! |
hahaha nice song ian |
gah now i'm getting this issue. time to spend time fixing component! |
Never run into this issue yet, but I barely override styles |
yeah this one is the one limiting issue for handling all the native types properly. after this and versioning are handled i'm pretty sure i have no "big picture" issues with component and everything is gravy after that |
that would be really nice. i am building a project right now in which i have currently about 20-25 modules in my lib folder. almost all of them have some kind of styling. styles that should always appear "on the top" of the css, i simply put inside a |
Is this still a problem in 0.12? |
@necolas yup still a problem in 0.12 -_- |
@jonathanong's |
right now, the ignoring that the builder does, while preventing dupes, doesn't result in the proper css output. for example, imagine a situation with a parent and two children...
theme/component.json
:theme/one/component.json
:theme/one/index.css
:.one {}
theme/two/component.json
:theme/two/index.css
:.two {}
when resolving the dependencies, the builder should run into
theme
's two dependencies, and start withone
. while evaluatingone
it should see that it depends ontwo
and evaluatetwo
first. the final output inbuild/build.css
should be:since
one
depends ontwo
. instead, becausetwo
gets ignored when evaluatingtheme
, the actual output is:and then styles in
one
that should have overridden styles intwo
actually need!important
flags to work. this makes it impossible (or annoying) to build up css dependencies, even though it would be a badass and obvious way to structure the css deps in themesThe text was updated successfully, but these errors were encountered: