Guest User

CustomTodoList

a guest
Feb 16th, 2025
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. type: todo-list
  2. entity: todo.demo
  3. hide_completed: true
  4. grid_options: null
  5. columns: full
  6. rows: auto
  7. card_mod:
  8. style: >
  9.  
  10. ha-card.type-todo-list {display: grid; grid-template-rows: auto 1fr auto;
  11. --mdc-text-field-fill-color: rgba(0, 0, 0, 0); }
  12.  
  13. ha-card.type-todo-list .addRow {
  14. grid-row: 3; /* Ensure it's placed in the last row */
  15. border: 1px solid rgba(255, 255, 255, .1);
  16. /backdrop-filter: blur(25px);
  17. border-radius: 16px;
  18. background-color: rgba(0, 0, 0, .1) !important;
  19. padding: 9px;
  20. margin-top: -9px;
  21. margin-left: 0px;
  22. margin-right: 0px;
  23. margin-bottom: 12px; /* Add spacing between items */
  24. position: relative; /* Ensure positioning for ::before */
  25. }
  26.  
  27. ha-card.type-todo-list div.header {
  28. display: none;
  29. }
  30.  
  31. ha-check-list-item {
  32. max-height: 68px !important;
  33. background-color: rgba(0, 0, 0, .20) !important;
  34. box-shadow: none;
  35. border: 1px solid rgba(255, 255, 255, .1);
  36. border-radius: 16px;
  37. padding: 9px;
  38. margin-top: -2px;
  39. margin-left: 0px;
  40. margin-right: 0px;
  41. margin-bottom: 12px;
  42. position: relative;
  43. }
  44.  
  45. ha-check-list-item .summary {
  46. position: absolute;
  47. left: 21%; /* Adjusted to account for the emoji */
  48. top: 33%;
  49. font-weight: bold;
  50. font-family: "Helvetica", sans-serif;
  51. font-size: 27px !important;
  52. color: white;
  53. }
  54.  
  55. ha-check-list-item .description {
  56. color: white;
  57. position: absolute;
  58. left: 17%;
  59. top: 70%;
  60. }
  61.  
  62. ha-check-list-item .due {
  63. position: absolute;
  64. right: 5%;
  65. top: 33%;
  66. color: white;
  67. }
  68.  
  69. .: |
  70. ha-check-list-item$:
  71. mwc-checkbox {
  72. display: none; /* Hides the default checkbox */
  73. }
  74. ha-check-list-item::before {
  75. content: "🔔"; /* Replace with your desired emoji or icon */
  76. position: absolute;
  77. left: 4px;
  78. z-index: 3;
  79. font-size: 40px; /* Adjust size of the emoji */
  80. top: 50%;
  81. transform: translateY(-50%);
  82. }
  83.  
  84. ha-card {
  85. margin-top:-8px;
  86. background-color: rgba(0, 0, 0, 0) !important;
  87. border-radius: 16px;
  88. box-shadow: none;
  89. border: 0px solid rgba(0, 0, 0, 0);
  90. --checkbox-color: white !important;
  91. --primary-text-color: white !important;
  92.  
  93. }
  94.  
Advertisement
Add Comment
Please, Sign In to add comment