logo

pleroma-fe

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

input.style.js (1075B)


  1. const hoverGlow = {
  2. x: 0,
  3. y: 0,
  4. blur: 4,
  5. spread: 0,
  6. color: '--text',
  7. alpha: 1
  8. }
  9. export default {
  10. name: 'Input',
  11. selector: '.input',
  12. variant: {
  13. checkbox: '.-checkbox',
  14. radio: '.-radio'
  15. },
  16. states: {
  17. disabled: ':disabled',
  18. hover: ':hover:not(:disabled)',
  19. focused: ':focus-within'
  20. },
  21. validInnerComponents: [
  22. 'Text'
  23. ],
  24. defaultRules: [
  25. {
  26. component: 'Root',
  27. directives: {
  28. '--defaultInputBevel': 'shadow | $borderSide(#FFFFFF, bottom, 0.2)| $borderSide(#000000, top, 0.2)'
  29. }
  30. },
  31. {
  32. variant: 'checkbox',
  33. directives: {
  34. roundness: 1
  35. }
  36. },
  37. {
  38. directives: {
  39. '--font': 'generic | inherit',
  40. background: '--fg, -5',
  41. roundness: 3,
  42. shadow: [{
  43. x: 0,
  44. y: 0,
  45. blur: 2,
  46. spread: 0,
  47. color: '#000000',
  48. alpha: 1
  49. }, '--defaultInputBevel']
  50. }
  51. },
  52. {
  53. state: ['hover'],
  54. directives: {
  55. shadow: [hoverGlow, '--defaultInputBevel']
  56. }
  57. }
  58. ]
  59. }