forked from italia/design-comuni-plone-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: layout and style issues, customized _avatar.scss to be figma com…
…pliant (#876) * wip: fix card with avatar * fix: layout and style issues, customized bootstrap-italia/_avatar.scss due to nonsense scaling for avatar-lg sizes, figma compliant * fix: review fixes
- Loading branch information
1 parent
c2f10fb
commit be54848
Showing
7 changed files
with
63 additions
and
15 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
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
28 changes: 28 additions & 0 deletions
28
src/theme/bootstrap-override/bootstrap-italia/_avatar.scss
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// @import 'bootstrap-italia/src/scss/variables'; | ||
@use 'sass:math'; | ||
// $avatar-base-size: 8px; | ||
|
||
.avatar { | ||
&.size-lg { | ||
// Dal figma, sti tondi sono 64x64 | ||
width: $avatar-base-size * 8; | ||
height: $avatar-base-size * 8; | ||
p { | ||
font-size: 24px; | ||
} | ||
.icon { | ||
height: 28px; | ||
width: 28px; | ||
} | ||
.avatar-presence, | ||
.avatar-status { | ||
right: 2px; | ||
width: 14px; | ||
height: 14px; | ||
} | ||
|
||
.avatar-status { | ||
top: math.div($avatar-base-size, 28); | ||
} | ||
} | ||
} |