Added radius crop on avatar image
Default is 50% for a true circle.
This commit is contained in:
parent
596b41ed77
commit
2262eb47e3
2 changed files with 14 additions and 1 deletions
|
@ -194,3 +194,16 @@ hr {
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
border-top: 1px solid #e1e1e1;
|
border-top: 1px solid #e1e1e1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Radius values:
|
||||||
|
|
||||||
|
10%-40%: Squircles
|
||||||
|
50% (default): True circle
|
||||||
|
*/
|
||||||
|
.avatar {
|
||||||
|
width: 128px;
|
||||||
|
height: 128px;
|
||||||
|
object-fit: cover;
|
||||||
|
background-position: center;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Your Image Here -->
|
<!-- Your Image Here -->
|
||||||
<img src="images/avatar.png" srcset="images/avatar@2x.png 2x" alt="Falc0n2k's avatar">
|
<img src="images/avatar.png" class="avatar" srcset="images/avatar@2x.png 2x" alt="Falc0n2k's avatar">
|
||||||
|
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<h1>Falc0n2k</h1>
|
<h1>Falc0n2k</h1>
|
||||||
|
|
Loading…
Reference in a new issue