diff options
| author | Henry Jameson <me@hjkos.com> | 2024-02-18 20:11:06 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-02-18 20:11:06 +0200 |
| commit | 13a289ac74206ada74c329b721584b810ef1b9ef (patch) | |
| tree | f0f13094d56db127161d932958bfad9a8e6f6181 /src/components/user_card | |
| parent | 3e198526e66b88301882b14240f0d50b8819b520 (diff) | |
fixed oot selectors not working, added support for (webkit) scrollbars
Diffstat (limited to 'src/components/user_card')
| -rw-r--r-- | src/components/user_card/user_card.style.js | 40 |
1 files changed, 40 insertions, 0 deletions
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 + } + } + ] +} |
