-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1097 from cozy/feat/circleSizes
feat: Add different sizes to Circle component
- Loading branch information
Showing
8 changed files
with
73 additions
and
55 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,22 +1,24 @@ | ||
@require '../../stylus/components/avatar' | ||
@require '../../stylus/components/circle' | ||
|
||
.c-avatar | ||
@extend $circle | ||
@extend $avatar | ||
|
||
.c-avatar--xsmall | ||
@extend $avatar--xsmall | ||
@extend $circle--xsmall | ||
|
||
.c-avatar--small | ||
@extend $avatar--small | ||
@extend $circle--small | ||
|
||
.c-avatar--large | ||
@extend $avatar--large | ||
@extend $circle--large | ||
|
||
.c-avatar--xlarge | ||
@extend $avatar--xlarge | ||
@extend $circle--xlarge | ||
|
||
.c-avatar-initials | ||
@extend $avatar-initials | ||
@extend $circle-text | ||
|
||
.c-avatar-image | ||
@extend $avatar-image |
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
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
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,44 +1,12 @@ | ||
@require '../tools/mixins' | ||
|
||
$avatar | ||
display inline-flex | ||
align-items center | ||
justify-content center | ||
border-radius 50% | ||
overflow hidden | ||
width rem(40) | ||
height rem(40) | ||
background-color var(--paleGrey) | ||
color var(--silver) | ||
font-size rem(18) | ||
|
||
svg | ||
width 50% | ||
height 50% | ||
|
||
$avatar--xsmall | ||
width rem(16) | ||
height rem(16) | ||
font-size rem(7) | ||
|
||
$avatar--small | ||
width rem(32) | ||
height rem(32) | ||
font-size rem(14) | ||
|
||
$avatar--large | ||
width rem(48) | ||
height rem(48) | ||
font-size rem(21) | ||
|
||
$avatar--xlarge | ||
width rem(64) | ||
height rem(64) | ||
font-size rem(27) | ||
|
||
$avatar-initials | ||
font-weight bold | ||
line-height 1 | ||
|
||
$avatar-image | ||
width 100% |
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