Advertisement
Guest User

CalendarCardModded

a guest
Feb 16th, 2025
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. type: custom:mod-card
  2. style: |
  3. ha-card {
  4. border: 1px solid rgba(255, 255, 255, .1);
  5. background-color: rgba(0, 0, 0, .1); /* Set the entire background color */
  6. border-radius: 30px;
  7. z-index: 8;
  8. }
  9. card:
  10. type: custom:layout-card
  11. layout_type: custom:grid-layout
  12. layout:
  13. /grid-template-columns: 1fr 1fr
  14. /grid-gap: 8px
  15. cards:
  16. - type: custom:layout-card
  17. layout_type: custom:grid-layout
  18. cards:
  19. - type: custom:week-planner-card
  20. calendars:
  21. - entity: calendar.INSERTCALENDARHERE1
  22. color: rgba(81, 170, 242);
  23. name: Calendar1
  24. - entity: calendar.INSERTCALENDARHERE2
  25. color: rgba(192,119, 219);
  26. name: Calendar2
  27. startingDayOffset: 0
  28. hideWeekend: false
  29. noCardBackground: true
  30. compact: false
  31. weather:
  32. showCondition: false
  33. showTemperature: false
  34. showLowTemperature: false
  35. useTwiceDaily: false
  36. locale: en
  37. showLocation: false
  38. hidePastEvents: false
  39. hideDaysWithoutEvents: false
  40. hideTodayWithoutEvents: false
  41. combineSimilarEvents: true
  42. showLegend: false
  43. title: null
  44. eventBackground: rgba(0, 0, 0, 0)
  45. legendToggle: false
  46. texts:
  47. fullDay: " "
  48. noEvents: " "
  49. today: null
  50. tomorrow: null
  51. yesterday: null
  52. showTitle: true
  53. days: month
  54. startingDay: sunday
  55. showDescription: false
  56. hold_action: null
  57. card_mod:
  58. style:
  59. .: |
  60. ha-card {
  61. margin-top: -10px;
  62. top: 0;
  63. font-size: 15px !important;
  64. background-color: rgba(0, 0, 0, 0) !important;
  65. border-color: rgba(0, 0, 0, 0);
  66. --primary-text-color: white !important;
  67.  
  68. }
  69. .event.past {
  70. opacity: 0.2;
  71. }
  72.  
  73. .event {
  74. transform: translateY(-20px); /* Moves the icons up by 10px */
  75. z-index: 2;
  76.  
  77. }
  78.  
  79. .container .day {
  80. width: calc((100% - 6 * var(--days-spacing)) /7) !important;
  81. height: 200px;
  82. background-color: rgba(255, 255, 255, .06);
  83. border-radius: 20px;
  84. overflow: auto;
  85. }
  86. .container .day .date {
  87. display: flex;
  88. font-size: 8px !important;
  89. flex-direction: column;
  90. align-items: center;
  91. justify-content: center;
  92. text-align: center;
  93. }
  94. /* Fixed Day Labels */.container::before {
  95. content: ' Sunday Monday Tuesday Wednesday Thursday Friday Saturday';
  96. position: sticky; /* Keeps labels fixed at the top while scrolling */
  97. width: 100%;
  98. margin-top: -10px;
  99. top: 0; /* Anchors labels to the top of the viewport */
  100. z-index: 8; /* Ensures labels are above other elements */
  101. white-space: pre; /* Preserves spaces exactly as written */
  102. isolation: isolate;
  103. /text-shadow: 1px 1px 15px black;
  104. /color: white;
  105. /border-radius: 16px;
  106. font-weight: bold;
  107. font-size: 27px;
  108. padding: 12px;
  109. /background-color: rgba(0, 0, 0, .2) !important;
  110. backdrop-filter: blur(10px);
  111. /box-shadow: 0px 6px 2px -2px rgba(11, 26, 55, 1);;
  112. }
  113.  
  114. .today .date .number {
  115. background-color: #ff0000 !important;
  116. border-radius: 16px 16px 0px 0px;
  117. width: 100%;
  118. }
  119. .container .day:nth-child(n+0) .date .text {
  120. display: none;
  121. }
  122. grid_options:
  123. columns: full
  124. layout:
  125. height: 46vh;
  126. grid_options:
  127. columns: full
  128. column_span: 3
  129. layout:
  130. height: 100vh;
  131. visibility:
  132. - condition: screen
  133. media_query: "(min-width: 768px)"
  134.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement