Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added background and initials in avatar
- Loading branch information
1 parent
a09ab53
commit 2feaa64
Showing
4 changed files
with
81 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,72 @@ | ||
@use '../../theme/helpers.scss' as *; | ||
@use '../../theme/variables/font' as font; | ||
|
||
.avatar { | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 50%; | ||
|
||
border: 1px solid red; | ||
overflow: hidden; | ||
|
||
&.xsmall { | ||
width: 24px; | ||
height: 24px; | ||
|
||
span { | ||
font-size: 10px; | ||
line-height: 10px; | ||
} | ||
} | ||
|
||
&.small { | ||
width: 32px; | ||
height: 32px; | ||
|
||
span { | ||
font-size: 12px; | ||
line-height: 12px; | ||
} | ||
} | ||
|
||
&.medium { | ||
width: 48px; | ||
height: 48px; | ||
|
||
span { | ||
font-size: 16px; | ||
line-height: 16px; | ||
} | ||
} | ||
|
||
&.large { | ||
width: 64px; | ||
height: 64px; | ||
|
||
span { | ||
font-size: 20px; | ||
line-height: 20px; | ||
} | ||
} | ||
|
||
&.xlarge { | ||
width: 96px; | ||
height: 96px; | ||
|
||
span { | ||
font-size: 24px; | ||
line-height: 24px; | ||
} | ||
} | ||
|
||
img { | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 50%; | ||
} | ||
|
||
span { | ||
font-family: font.$family-primary; | ||
font-weight: font.$weight-semibold; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters