parent
3f6b9fbf9c
commit
28c7fac9f0
@ -0,0 +1,48 @@
|
|||||||
|
export default {
|
||||||
|
name: 'ListItem',
|
||||||
|
selector: '.list-item',
|
||||||
|
states: {
|
||||||
|
active: '.-active',
|
||||||
|
hover: ':hover'
|
||||||
|
},
|
||||||
|
validInnerComponents: [
|
||||||
|
'Text',
|
||||||
|
'Link',
|
||||||
|
'Icon',
|
||||||
|
'Border',
|
||||||
|
'Button',
|
||||||
|
'ButtonUnstyled',
|
||||||
|
'RichContent',
|
||||||
|
'Input',
|
||||||
|
'Avatar'
|
||||||
|
],
|
||||||
|
defaultRules: [
|
||||||
|
{
|
||||||
|
directives: {
|
||||||
|
background: '--bg',
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: ['active'],
|
||||||
|
directives: {
|
||||||
|
background: '--inheritedBackground, 10',
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: ['hover'],
|
||||||
|
directives: {
|
||||||
|
background: '--inheritedBackground, 10',
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
state: ['hover', 'active'],
|
||||||
|
directives: {
|
||||||
|
background: '--inheritedBackground, 20',
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in new issue