aboutsummaryrefslogtreecommitdiff
path: root/src/components/menu_item.style.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/menu_item.style.js')
-rw-r--r--src/components/menu_item.style.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/components/menu_item.style.js b/src/components/menu_item.style.js
new file mode 100644
index 00000000..43b5c35a
--- /dev/null
+++ b/src/components/menu_item.style.js
@@ -0,0 +1,45 @@
+export default {
+ name: 'MenuItem',
+ selector: '.menu-item',
+ validInnerComponents: [
+ 'Text',
+ 'Icon',
+ 'Input',
+ 'Border'
+ ],
+ states: {
+ hover: ':hover',
+ active: 'active'
+ },
+ defaultRules: [
+ {
+ directives: {
+ background: '--fg'
+ }
+ },
+ {
+ component: 'Text',
+ variant: 'normal',
+ parent: {
+ component: 'MenuItem',
+ state: ['normal', 'hover'],
+ variant: 'normal'
+ },
+ directives: {
+ textColor: '--link',
+ textAuto: 'no-preserve'
+ }
+ },
+ {
+ component: 'Icon',
+ parent: {
+ component: 'MenuItem',
+ state: ['hover']
+ },
+ directives: {
+ textColor: '--link',
+ textAuto: 'no-preserve'
+ }
+ }
+ ]
+}