Add avatar class

This commit is contained in:
Oliver Davies 2018-09-04 20:27:34 +01:00
parent 0b40a777a0
commit 44ba341d62
3 changed files with 14 additions and 6 deletions

View file

@ -1,8 +1,12 @@
img.with-border
img
&.with-border
@apply .border .border-solid .border-grey-light
img.with-padding
&.with-padding
@apply .p-1
&.avatar
@apply .border .p-1 .rounded-full
svg
fill: currentColor

View file

@ -6,7 +6,7 @@
<img
src="{{ site.images_url }}{{ site.avatar.url }}"
alt="Picture of Oliver"
class="rounded-full w-16"
class="avatar w-16"
>
</div>

View file

@ -16,7 +16,11 @@ permalink: /
# About Me
<div class="mb-4 w-1/3 sm:w-1/4 lg:w-1/6">
<img src="{{ site.images_url }}{{ site.avatar.url }}" alt="Picture of Oliver" class="rounded-full">
<img
src="{{ site.images_url }}{{ site.avatar.url }}"
alt="Picture of Oliver"
class="avatar"
>
</div>
My name is Oliver Davies (aka [opdavies][1]) - a Full Stack Web Developer and System Administrator based in Wales, UK.