aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/post.style.js
blob: 673f72e0d567e0b7a4b7d13d87ee6dacdbd06130 (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
export default {
  name: 'Post',
  selector: '.Status',
  states: {
    selected: '.-focused'
  },
  validInnerComponents: [
    'Text',
    'Link',
    'Icon',
    'Border',
    'Button',
    'ButtonUnstyled',
    'RichContent',
    'Input',
    'Avatar',
    'Attachment',
    'PollGraph'
  ],
  defaultRules: [
    {
      directives: {
        background: '--bg',
        opacity: 0
      }
    },
    {
      state: ['selected'],
      directives: {
        background: '--inheritedBackground, 10',
        opacity: 1
      }
    }
  ]
}