-
Notifications
You must be signed in to change notification settings - Fork 1
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
Importing the style.css breaks rest of code #6
Comments
Hey @sebajans, this fix will land in the next version of Svelte Marquee. |
Wonderful @selemondev, looking forward to it! If you need any more details let me know. |
1+ this, my tailwind is broken when I import it :( |
Importing the CSS seems to break the responsive utilities ( |
Any plan on fixing this soon @selemondev ? Do you need help with a PR? |
Hey there @frederichoule . Sure, you can handle this issue 😁. |
Hopefully this helps someone else with a more complete solution Not going to check in as this am still learning the ropes of Svelte. That said, duplicating large chunks (all?) of Tailwind's code that overrides the application's CSS? WTF!! Issues that are head scratching:
Workaround to help a maybe more experienced Svelte dev correct this frankencode for others:
HtH UPDATE: Don't do what I did, see the solve below instead. |
Hey @quixado - here is a simpler way that I did on a few projects. Just modify your
In short, you need to:
And you're good to go! |
So clean. So much less hacky. Thanks for sharing; worked perfectly. 👏 For sake of completeness for others implementing the @frederichoule fix (who may also be newer to the Svelte way):
|
Hey there @quixado, @frederichoule, @tekigg and @sebajans. Thanks @frederichoule's for the solution. The reason why the css code breaks the rest of site is because during build time the |
Hey,
i installed the package to try it out on a project i am working on but the line
import '@selemondev/svelte-marquee/dist/style.css';
completely breaks my css.
I tried importing it into a local component so after a reload the issue disappears, but i couldn't find a way to work around this.
I also tried a scoped style tag (see below) but that also did not work. I didn't find the style.css file so i was wondering if you might be able to help.
The text was updated successfully, but these errors were encountered: