Skip to content

Commit

Permalink
fix: change imageblock, can apply invert without affecting shadows
Browse files Browse the repository at this point in the history
The problem was that if we tried to apply invert to invert to
colors of svg in dark mode that the shadows were also inverted.
By changing the css this way we keep the old style with the added
benefit of being to apply invert on the img tag
  • Loading branch information
Bonajo committed Feb 2, 2022
1 parent 6cfffa3 commit a82f26a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
.prose :where(code):not(:where([class~="not-prose"] *)) {
@apply bg-gray-300 dark:bg-gray-900 dark:text-gray-300 text-gray-800 py-1 px-2 rounded font-normal;
}

.sect1 + #footnotes {
hr {
@apply hidden;
}
}
}

@layer components {
Expand All @@ -74,15 +80,16 @@
}

.imageblock {
@apply px-4 my-2;
@apply px-4 my-2 flex justify-center flex-col;
&.thumb{
@apply lg:max-w-md md:max-w-sm sm:max-w-full;
}

.content{
@apply my-1 shadow-md dark:shadow-slate-900 mx-auto;

img {
@apply my-1 shadow-md dark:shadow-slate-900 mx-auto;
@apply m-0;
}
}

Expand Down

0 comments on commit a82f26a

Please sign in to comment.