aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card/user_card.style.js
blob: 34eaa176930257242892dbbb31c4fb763ccde068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export default {
  name: 'UserCard',
  selector: '.user-card',
  validInnerComponents: [
    'Text',
    'Link',
    'Icon',
    'Button',
    'ButtonUnstyled',
    'Input',
    'RichContent',
    'Alert'
  ],
  defaultRules: [
    {
      directives: {
        background: '--bg',
        opacity: 0,
        roundness: 3,
        shadow: [{
          x: 1,
          y: 1,
          blur: 4,
          spread: 0,
          color: '#000000',
          alpha: 0.6
        }],
        '--profileTint': 'color | $alpha(--background, 0.5)'
      }
    },
    {
      parent: {
        component: 'UserCard'
      },
      component: 'RichContent',
      directives: {
        opacity: 0
      }
    }
  ]
}