From 13a289ac74206ada74c329b721584b810ef1b9ef Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 18 Feb 2024 20:11:06 +0200 Subject: fixed oot selectors not working, added support for (webkit) scrollbars --- src/components/user_card/user_card.style.js | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/components/user_card/user_card.style.js (limited to 'src/components/user_card/user_card.style.js') diff --git a/src/components/user_card/user_card.style.js b/src/components/user_card/user_card.style.js new file mode 100644 index 00000000..1a8c179d --- /dev/null +++ b/src/components/user_card/user_card.style.js @@ -0,0 +1,40 @@ +export default { + name: 'UserCard', + selector: '.user-card', + validInnerComponents: [ + 'Text', + 'Link', + 'Icon', + 'Button', + 'ButtonUnstyled', + 'Input', + 'RichContent', + 'Alert' + ], + defaultRules: [ + { + directives: { + background: '--bg', + roundness: 3, + shadow: [{ + x: 1, + y: 1, + blur: 4, + spread: 0, + color: '#000000', + alpha: 0.6 + }], + '--profileTint': '$alpha(--background, 0.5)' + } + }, + { + parent: { + component: 'UserCard' + }, + component: 'RichContent', + directives: { + opacity: 0 + } + } + ] +} -- cgit v1.2.3-70-g09d2