Pivotonian

Untitled

Jun 10th, 2025
1,649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. type: custom:button-card
  2. custom_fields:
  3. card_type:
  4. card:
  5. type: tile
  6. entity: light.study_ceiling_light
  7. features_position: bottom
  8. vertical: false
  9. features:
  10. - type: light-brightness
  11. card_mod:
  12. style: |
  13. ha-card {
  14. background: transparent;
  15. width: 100%;}
  16. grid_options:
  17. columns: full
  18. styles:
  19. grid:
  20. - grid-template-areas: '"card_type"'
  21. text-align: left
  22. card:
  23. - background: transparent
  24. border-radius: 30px
  25. padding: 0px
  26. border: solid 2px rgba(255,255,255,0.0)
  27. box-shadow: 10 10 10 2px transparent
  28. backdrop-filter: blur(2px);
  29. "-webkit-backdrop-filter": blur(2px);
  30. custom_fields:
  31. card_type:
  32. - justify-self: start
  33. - align-self: start
  34. - width: 100%
  35. card_mod:
  36. style: |
  37. :host {
  38. display: block;
  39. position: relative;
  40. }
  41.  
  42. :host::before {
  43. content: "";
  44. position: absolute;
  45. inset: 0;
  46. border-radius: 25px;
  47. backdrop-filter: blur(20px);
  48. -webkit-backdrop-filter: blur(20px);
  49. z-index: -1;
  50. padding: 2px;
  51. background: linear-gradient(60deg,
  52. rgba(50,50,50,0.0) 0%,
  53. rgba(255,255,255,1) 40%,
  54. rgba(255,255,255,1) 60%,
  55. rgba(50,50,50,0.0) 100%);
  56. -webkit-mask:
  57. linear-gradient(#fff 0 0) content-box,
  58. linear-gradient(#fff 0 0);
  59. -webkit-mask-composite: xor;
  60. mask-composite: exclude;
  61. z-index: 0;
  62. }
  63.  
  64. :host::after {
  65. content: "";
  66. background-color: rgba(255,255,255,0.2);
  67. position: absolute;
  68.  
  69. inset: 0;
  70. border-radius: 30px;
  71. box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.1);
  72. z-index: -1;
  73. backdrop-filter: blur(10px);
  74. -webkit-backdrop-filter: blur(10px);
  75. border: solid 2px rgba(255,255,255,0.1);
  76.  
  77. }
  78.  
  79. ha-card {
  80. position: relative;
  81. backdrop-filter: blur(20px);
  82. -webkit-backdrop-filter: blur(20px);
  83. }
  84.  
  85.  
  86. grid_options:
  87. columns: full
Advertisement
Add Comment
Please, Sign In to add comment