-
Notifications
You must be signed in to change notification settings - Fork 44
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
How to remove default styles from image? #172
Comments
Hi, Addition to that, the data attribute for astro-cid is missing. In my case I have astro component with some styling classes. If I just the html picture element, the styling is working fine. Now I want to optimise the picture element so support responsive images. I used this Picture component and added my css class but the style is not applied to the element because astro scopes all elements with a data attribute, e.g. |
@marvincaspar I have the same use-case for the Picture element and the same problems - no way to disable the built-in CSS or get the |
Gotta be able to remove these default styles. |
Have you found any solution for this? I am trying to optimize remote images, but I haven't found a good solution yet. |
Hello, sir! First of all, thank you a lot for your plugin. The default Astro Image plugin didn't work for me, because my components load images using dynamic path, which Astro Image doesn't support by default (need to create Collections I guess). And your plugin works like a charm for me!
But I'm facing an issue with the default styles. Currently I'm using your plugin to show webp images. And my images looks like this:
I'm using Tailwind CSS class names to style my image. But at the output the plugin also adds his own styles, that shows blurred shadow, that is not necessary for my design:
astro-imagetools-img astro-imagetools-img-FDC9B609 text-center md:max-w-xl md:h-full mx-auto lg:order-2
Please, sir, can you tell me, how I can disable/remove default styles from plugin? Also there is internal styling code like
style="display: inline-block; overflow: hidden; vertical-align: middle; ; max-width: 100%; height: auto;"
, I guess it's also not necessary.P.s. Sorry for my bad English, I'm not a native speaker. Thank you a lot again for your plugin!
The text was updated successfully, but these errors were encountered: