Skip to content

Commit

Permalink
modify about page css contstrain images
Browse files Browse the repository at this point in the history
  • Loading branch information
jamcgrath committed Jun 24, 2023
1 parent 262c79d commit 0165351
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions components/ImageContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,15 @@ onMounted(() => {
class="img-container"
:src="item.small.file"
alt=""
:style="{
width: `${item.small.size.width}px`,
height: `${item.small.size.height}px`,
}"
:width="`${item.small.size.width}`"
:height="`${item.small.size.height}`"
/>
</a>
</div>
</div>
</template>

<style scoped>
div {
display: flex;
flex-direction: row;
}
.gallery-container {
display: flex;
flex-wrap: wrap;
Expand All @@ -159,23 +152,21 @@ div {
position: relative;
border-radius: var(--radius);
}
.img-container {
width: 10rem;
height: 10rem;
}
.gallery-container a {
line-height: 0;
}
img {
margin-top: auto;
margin-bottom: auto;
.img-container {
border-radius: var(--radius);
width: 100%;
}
img:hover {
.img-container:hover {
box-shadow: 0 0 150px 5px #aab6bd;
}
.content, .date {
.content,
.date {
display: block;
margin: 1em;
}
Expand Down

0 comments on commit 0165351

Please sign in to comment.