-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[Feature proposal] Background-image reset #436
Comments
We actually do have |
I agree it would make sense to have a utility for resetting the background-image of an element (plus it would have almost no impact on the file size). My only issue with this would be that adding a new module just for this wouldn't make much sense and, since someone might need to define multiple background-images, this would be something a plugin should take care of. |
@adamwathan |
It doesn't but it does the exact same thing as |
I don't thing so. Tailwinds |
Coming back to this, can you give an example of usage? Do you have your own custom utilities for adding background images right now? If not, how are you adding background images that you want to remove with this class? |
Here is an example, not an everyday problem but I wanted such a utility class myself: I have an asymmetric layout with a background image : On mobile, it's atrocious and would like to remove it, I could be able to use those responsively : Where: Not sure if it makes sense nor if I'm correct with this approach, but that would just be useful. Otherwise I have to create it with media queries and such. 100% doable yet requires ugly custom CSS. |
I think |
Since the only way for It may be useful to explore adding a dedicated backgroundImage core plugin where you can provide URLs to your own background images but I think we can discuss that in a separate issue if people want it. |
For responsive variants would be useful something like
.bg-none
forbackground: transparent
.The text was updated successfully, but these errors were encountered: