logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

user_card.style.js (704B)


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