diff options
Diffstat (limited to 'packages/astro/components/image.css')
-rw-r--r-- | packages/astro/components/image.css | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/astro/components/image.css b/packages/astro/components/image.css new file mode 100644 index 000000000..6815ec126 --- /dev/null +++ b/packages/astro/components/image.css @@ -0,0 +1,11 @@ +:where([data-astro-image]) { + object-fit: var(--fit); + object-position: var(--pos); + height: auto; +} +:where([data-astro-image='full-width']) { + width: 100%; +} +:where([data-astro-image='constrained']) { + max-width: 100%; +} |