Skip to content

Commit

Permalink
fix: update icon sizing for resource cards (#273)
Browse files Browse the repository at this point in the history
* fix: update icon sizing for resource cards

* chore: update image size styles

* fix: add min width

* chore: add min-height

* add position static to gatsby image wrapper

* chore: fix icon for real this time

* chore: cleanup style order
  • Loading branch information
alisonjoseph authored and vpicone committed Jul 30, 2019
1 parent faf8664 commit c8db707
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ yarn-error.log
.yarn-integrity

# Vscode settings
.vscode/settings.json
.vscode/settings.json
.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
position: absolute;
bottom: 1rem;
left: 1rem;
width: 32px;
min-width: 32px;
min-height: 32px;
display: flex;
align-items: flex-end;
}

.#{$prefix}--resource-card__icon--img .gatsby-resp-image-wrapper,
Expand All @@ -38,6 +40,10 @@
margin-bottom: 0;
}

.#{$prefix}--resource-card__icon--img .gatsby-resp-image-wrapper {
position: static !important; //important needed to override inline style added by Gatsby
}

.#{$prefix}--resource-card__icon--action {
position: absolute;
bottom: 1rem;
Expand Down

1 comment on commit c8db707

@vercel
Copy link

@vercel vercel bot commented on c8db707 Jul 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.