Skip to content

Commit

Permalink
Fix elliptical author image issue (#76)
Browse files Browse the repository at this point in the history
* Fix author image styling to remove ellipses

- Update styling for author and avatar images
- Rename CSS file to follow convention
- Fix type in 'authors.yml'

* Update fix to use scss
  • Loading branch information
jhcoll authored Oct 13, 2023
1 parent 670dbf3 commit 8955fc4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _data/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ authors:
acaulfield:
name: "Anna Caulfield"
author-summary: "I'm a Delivery Principal at Scott Logic. Ex- Virgin Money, Telegraph Media Group. Regular at Glastonbury Festival, Mum of two and a crazy sausage dog owner."
picture: picture.jpegs
picture: picture.jpeg
colive:
name: "Charlie Olive"
feed-description: 'Write ups on technical topics learnt through my Consultant role at Scott Logic'
Expand Down
7 changes: 5 additions & 2 deletions scss/_author.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
img {
border-radius: 50%;
filter: grayscale(100%);
max-height: 180px;
max-width: 180px;
max-height: 6.25rem;
max-width: 6.25rem;
object-fit: cover;
height: 100%;
width: 100%;
}

.avatar {
Expand Down
4 changes: 4 additions & 0 deletions scss/_default-post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@
img {
border-radius: 50%;
max-height: 3rem;
max-width: 3rem;
margin-right: .25rem;
filter: grayscale(100%);
object-fit: cover;
height: 100%;
width: 100%;
}
}

Expand Down
4 changes: 4 additions & 0 deletions scss/_featured-posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@
img {
border-radius: 50%;
max-height: 3rem;
max-width: 3rem;
margin-right: 0.25rem;
filter: grayscale(100%);
object-fit: cover;
height: 100%;
width: 100%;
}
@include breakpoint(large) {
margin-right: -75%;
Expand Down
2 changes: 1 addition & 1 deletion style.css

Large diffs are not rendered by default.

0 comments on commit 8955fc4

Please sign in to comment.