logo

pleroma-fe

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

list_item.style.js (830B)


  1. export default {
  2. name: 'ListItem',
  3. selector: '.list-item',
  4. states: {
  5. active: '.-active',
  6. hover: ':hover:not(.-non-interactive)'
  7. },
  8. validInnerComponents: [
  9. 'Text',
  10. 'Link',
  11. 'Icon',
  12. 'Border',
  13. 'Button',
  14. 'ButtonUnstyled',
  15. 'RichContent',
  16. 'Input',
  17. 'Avatar'
  18. ],
  19. defaultRules: [
  20. {
  21. directives: {
  22. background: '--bg',
  23. opacity: 0
  24. }
  25. },
  26. {
  27. state: ['active'],
  28. directives: {
  29. background: '--inheritedBackground, 10',
  30. opacity: 1
  31. }
  32. },
  33. {
  34. state: ['hover'],
  35. directives: {
  36. background: '--inheritedBackground, 10',
  37. opacity: 1
  38. }
  39. },
  40. {
  41. state: ['hover', 'active'],
  42. directives: {
  43. background: '--inheritedBackground, 20',
  44. opacity: 1
  45. }
  46. }
  47. ]
  48. }