Advertisement
artpc

animowana ikona w rogu

Apr 14th, 2021
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. style: |
  2. @keyframes pulsation {
  3. 25% {
  4. transform: scale(1.3);
  5.  
  6. }
  7. 100% {
  8. box-shadow: 0 0 0 40px rgba(128, 0, 128, 0), 0 0 0 6px rgba(128, 0, 128, 0) inset;
  9. transform: scale(1)
  10. }
  11. }
  12. #courrier{
  13. animation:
  14. {% if is_state('input_boolean.przelacznik_nodered', 'on') %}
  15. pulsation 1s infinite ease-in;
  16. {% else %}
  17. None
  18. {% endif %}
  19. ;
  20. entity: input_boolean.przelacznik_nodered
  21. name: Łazienka
  22. show_name: true
  23. state:
  24. - icon: 'mdi:door-open'
  25. value: 'on'
  26. - icon: 'mdi:door'
  27. value: 'off'
  28. styles:
  29. custom_fields:
  30. courrier:
  31. - border-radius: 50%
  32. - box-shadow: >-
  33. rgb(247 193 57 / 60%) 0px 0px 0px 0px, rgb(247 193 57 / 60%) 0px 0px
  34. 0px 6px inset
  35. - position: absolute
  36. - right: 5%
  37. - top: 5%
  38. - font-size: 13px
  39. - line-height: 20px
  40. - display: |
  41. [[[
  42. if (states["input_boolean.przelacznik_nodered"].state == 'on') return '';
  43. else return 'none';
  44. ]]]
  45. - '--icon-color': |
  46. [[[
  47. if (states["input_boolean.przelacznik_nodered"].state == 'on') return 'var(--mail-color)';
  48. ]]]
  49. card:
  50. - border-radius: 10px
  51. - border: 2px solid var(--primary-color)
  52. icon:
  53. - color: var(--primary-color)
  54. name:
  55. - font-variant: small-caps
  56. - color: var(--primary-color)
  57. custom_fields:
  58. courrier: |
  59. [[[
  60. return `
  61. <ha-icon
  62. icon="mdi:mail"
  63. style="width: 30px; height: 30px; color: var(--icon-color);">
  64. </ha-icon>`
  65. ]]]
  66. type: 'custom:button-card'
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement