logo

pleroma-fe

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

alert.style.js (900B)


  1. export default {
  2. name: 'Alert',
  3. selector: '.alert',
  4. validInnerComponents: [
  5. 'Text',
  6. 'Icon',
  7. 'Link',
  8. 'Border',
  9. 'ButtonUnstyled'
  10. ],
  11. variants: {
  12. normal: '.neutral',
  13. error: '.error',
  14. warning: '.warning',
  15. success: '.success'
  16. },
  17. editor: {
  18. border: 1,
  19. aspect: '3 / 1'
  20. },
  21. defaultRules: [
  22. {
  23. directives: {
  24. background: '--text',
  25. opacity: 0.5,
  26. blur: '9px'
  27. }
  28. },
  29. {
  30. parent: {
  31. component: 'Alert'
  32. },
  33. component: 'Border',
  34. directives: {
  35. textColor: '--parent'
  36. }
  37. },
  38. {
  39. variant: 'error',
  40. directives: {
  41. background: '--cRed'
  42. }
  43. },
  44. {
  45. variant: 'warning',
  46. directives: {
  47. background: '--cOrange'
  48. }
  49. },
  50. {
  51. variant: 'success',
  52. directives: {
  53. background: '--cGreen'
  54. }
  55. }
  56. ]
  57. }