avatar shadows
This commit is contained in:
parent
709ce1611a
commit
17b25ef0e0
6 changed files with 34 additions and 20 deletions
20
src/components/avatar.style.js
Normal file
20
src/components/avatar.style.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
export default {
|
||||
name: 'Avatar',
|
||||
selector: '.Avatar',
|
||||
defaultRules: [
|
||||
{
|
||||
directives: {
|
||||
background: '--bg',
|
||||
opacity: 0,
|
||||
shadow: [{
|
||||
x: 0,
|
||||
y: 1,
|
||||
blur: 8,
|
||||
spread: 0,
|
||||
color: '#000000',
|
||||
alpha: 0.7
|
||||
}]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -9,7 +9,8 @@ export default {
|
|||
'Button',
|
||||
'ButtonUnstyled',
|
||||
'RichContent',
|
||||
'Input'
|
||||
'Input',
|
||||
'Avatar'
|
||||
],
|
||||
defaultRules: [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ export default {
|
|||
'Button',
|
||||
'ButtonUnstyled',
|
||||
'RichContent',
|
||||
'Input'
|
||||
'Input',
|
||||
'Avatar'
|
||||
],
|
||||
defaultRules: [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@
|
|||
@import "../../variables";
|
||||
|
||||
.Avatar {
|
||||
--_avatarShadowBox: var(--avatarStatusShadow);
|
||||
--_avatarShadowFilter: var(--avatarStatusShadowFilter);
|
||||
--_avatarShadowInset: var(--avatarStatusShadowInset);
|
||||
--_avatarShadowBox: var(--shadow);
|
||||
--_avatarShadowFilter: var(--shadowFilter);
|
||||
--_avatarShadowInset: var(--shadowInset);
|
||||
--_still-image-label-visibility: hidden;
|
||||
|
||||
display: inline-block;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue