Skip to content

Commit

Permalink
fix mobile image spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrobskyhuntley committed Feb 29, 2024
1 parent 6a27e26 commit 82e5b5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/components/ImageBox.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ import { Image } from 'astro:assets';
const images = import.meta.glob<{ default: ImageMetadata }>('/src/assets/*.{jpeg,jpg,png,gif}')
---

<figure class="image">
<figure class="image tile-image">
<Image src={images[photopath]()} alt={alt} />
</figure>


<style>
<style type="scss">
img {
-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
filter: grayscale(100%);
mix-blend-mode: screen;
padding-right: 1em;
}
</style>
10 changes: 9 additions & 1 deletion src/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ $dark: rgba(255, 255, 255, 0);

#content {
min-height: 60vh;
}
}



@include tablet {
.tile-image > img {
padding-right: 1em;
}
}

0 comments on commit 82e5b5d

Please sign in to comment.