mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
fix: reduce opacity for normal images in dark mode
This commit is contained in:
committed by
Stefan Imhoff
parent
7ca011742c
commit
19ed076182
@@ -70,7 +70,7 @@ const wrapperProps = href ? { href } : {};
|
|||||||
{...wrapperProps}
|
{...wrapperProps}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
class:list={['rounded-2 object-cover dark:opacity-[0.87]']}
|
class:list={['rounded-2 object-cover']}
|
||||||
decoding={decoding}
|
decoding={decoding}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
src={src}
|
src={src}
|
||||||
|
|||||||
@@ -8,12 +8,6 @@ interface Props {
|
|||||||
const { class: className, noMargin, src, ...props } = Astro.props;
|
const { class: className, noMargin, src, ...props } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<div
|
<div class:list={['block h-auto w-full rounded-2 mbe-10 mbs-0', { 'mbe-0': noMargin }, className]}>
|
||||||
class:list={[
|
|
||||||
'block h-auto w-full rounded-2 mbe-10 mbs-0 dark:opacity-[0.87]',
|
|
||||||
{ 'mbe-0': noMargin },
|
|
||||||
className,
|
|
||||||
]}
|
|
||||||
>
|
|
||||||
<img src={src} decoding="async" loading="lazy" {...props} />
|
<img src={src} decoding="async" loading="lazy" {...props} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user