haxeui / component-examples

27 stars 7 forks source link

@media rules not working in openfl #1

Closed ConfidantCommunications closed 5 years ago

ConfidantCommunications commented 5 years ago

Hi Ian, I tried compiling the "responsive" example on my Mac using OpenFL. There was a small problem where I had to change line 3 of the main.xml to <style source="/main.css" />. Now that I have it finding the css file, it seems that the rules within media queries are breaking display, i.e. only a white screen appears. What should I do? -Allan

ianharrigan commented 5 years ago

Hi Allan,

Are you using the new-component-method branch?

ConfidantCommunications commented 5 years ago

No, is that the recommended way?

ianharrigan commented 5 years ago

Yup, currently the new-component-method branch has a totally new CSS parser that is the only one that can handle media queries and css animations - master cant handle any of these things. At some point (quite soon im hoping) it will replace master - it also has ALOT of other things! :)

Cheers, Ian

PS: note you will need to use the branch for both haxeui-core aswell as haxeui-openfl

ConfidantCommunications commented 5 years ago

Perfect, I will try that. Thanks for your assistance!

ConfidantCommunications commented 5 years ago

Works!