SlavCodes

kindle dasb

Oct 31st, 2026
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.60 KB | None | 0 0
  1. type: custom:layout-card
  2. layout_type: custom:grid-layout
  3. layout:
  4. margin: 0px
  5. padding: 0px
  6. height: 100vh
  7. grid-gap: 0px
  8. grid-template-columns: 100%
  9. grid-template-rows: 110px 460px 300px minmax(0, 1fr)
  10. grid-template-areas: |
  11. "date"
  12. "current"
  13. "hourly"
  14. "daily"
  15. cards:
  16. - type: markdown
  17. view_layout:
  18. grid-area: date
  19. content: |
  20. # {{ now().strftime('%A, %d %B %Y') }}
  21. card_mod:
  22. style:
  23. .: |
  24. ha-card {
  25. height: 100%;
  26. box-sizing: border-box;
  27. display: flex;
  28. align-items: center;
  29. justify-content: center;
  30. background: #ffffff !important;
  31. color: #000000 !important;
  32. border: none !important;
  33. border-radius: 0 !important;
  34. box-shadow: none !important;
  35. padding: 0 25px;
  36. }
  37. ha-markdown$: |
  38. h1 {
  39. font-size: 48px !important;
  40. font-weight: 800 !important;
  41. text-align: center !important;
  42. text-transform: uppercase;
  43. line-height: 1.1 !important;
  44. margin: 0 !important;
  45. color: #000000 !important;
  46. }
  47. - type: weather-forecast
  48. entity: weather.forecast_home
  49. name: Home
  50. show_current: true
  51. show_forecast: false
  52. round_temperature: true
  53. secondary_info_attribute: humidity
  54. view_layout:
  55. grid-area: current
  56. card_mod:
  57. style: |
  58. ha-card {
  59. height: 100% !important;
  60. box-sizing: border-box;
  61. background: #ffffff !important;
  62. color: #000000 !important;
  63. border: none !important;
  64. border-top: 3px solid #000 !important;
  65. border-radius: 0 !important;
  66. box-shadow: none !important;
  67. padding: 20px 0 !important;
  68. display: flex !important;
  69. justify-content: center !important;
  70. }
  71.  
  72. .content {
  73. height: 100%;
  74. box-sizing: border-box;
  75. display: flex !important;
  76. flex-direction: column !important;
  77. justify-content: center !important;
  78. align-items: center !important;
  79. gap: 28px !important;
  80. padding: 10px 55px !important;
  81. }
  82.  
  83. .icon-image {
  84. margin: 0 !important;
  85. min-width: 155px !important;
  86. justify-content: center !important;
  87. }
  88.  
  89. .icon-image > * {
  90. width: 155px !important;
  91. height: 155px !important;
  92. flex: 0 0 155px !important;
  93. }
  94.  
  95. .weather-icon {
  96. --mdc-icon-size: 155px;
  97. }
  98.  
  99. .info {
  100. width: 100% !important;
  101. flex-grow: 0 !important;
  102. display: flex !important;
  103. align-items: center !important;
  104. justify-content: space-between !important;
  105. gap: 25px !important;
  106. overflow: visible !important;
  107. }
  108.  
  109. .name-state {
  110. flex: 1;
  111. width: auto !important;
  112. overflow: visible !important;
  113. }
  114.  
  115. .state {
  116. font-size: 48px !important;
  117. font-weight: 700 !important;
  118. line-height: 1.15 !important;
  119. color: #000000 !important;
  120. white-space: normal !important;
  121. overflow: visible !important;
  122. }
  123.  
  124. .name {
  125. font-size: 33px !important;
  126. line-height: 1.4 !important;
  127. color: #444444 !important;
  128. }
  129.  
  130. .temp-attribute {
  131. flex: 0 0 auto;
  132. }
  133.  
  134. .temp-attribute .temp {
  135. font-size: 140px !important;
  136. font-weight: 800 !important;
  137. line-height: 1.2 !important;
  138. letter-spacing: -5px;
  139. margin-right: 55px !important;
  140. color: #000000 !important;
  141. }
  142.  
  143. .temp-attribute .temp span {
  144. font-size: 39px !important;
  145. font-weight: 600 !important;
  146. top: 10px !important;
  147. }
  148.  
  149. .attribute {
  150. font-size: 29px !important;
  151. color: #333333 !important;
  152. }
  153. - type: weather-forecast
  154. entity: weather.forecast_home
  155. show_current: false
  156. show_forecast: true
  157. forecast_type: hourly
  158. forecast_slots: 6
  159. round_temperature: true
  160. view_layout:
  161. grid-area: hourly
  162. card_mod:
  163. style: |
  164. ha-card {
  165. height: 100% !important;
  166. box-sizing: border-box;
  167. background: #ffffff !important;
  168. color: #000000 !important;
  169. border: none !important;
  170. border-top: 3px solid #000 !important;
  171. border-radius: 0 !important;
  172. box-shadow: none !important;
  173. padding: 10px 0 !important;
  174. display: flex !important;
  175. flex-direction: column !important;
  176. justify-content: center !important;
  177. }
  178.  
  179. /* Six independent hourly columns */
  180. .forecast {
  181. display: grid !important;
  182. grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  183. width: 100% !important;
  184. max-width: 100% !important;
  185. height: 100% !important;
  186. box-sizing: border-box !important;
  187. padding: 12px 16px !important;
  188. gap: 0 !important;
  189. align-items: stretch !important;
  190. justify-content: stretch !important;
  191. overflow: hidden !important;
  192. mask-image: none !important;
  193. --forecast-icon-size: 65px;
  194. }
  195.  
  196. /* Flatten the day-group wrappers */
  197. .forecast-day {
  198. display: contents !important;
  199. }
  200.  
  201. .forecast-day-content {
  202. display: contents !important;
  203. }
  204.  
  205. /* Each forecast entry gets its own space */
  206. .forecast-item {
  207. display: flex !important;
  208. flex-direction: column !important;
  209. align-items: center !important;
  210. justify-content: center !important;
  211. width: 100% !important;
  212. min-width: 0 !important;
  213. max-width: 100% !important;
  214. box-sizing: border-box !important;
  215. padding: 8px 2px !important;
  216. gap: 12px !important;
  217. flex: none !important;
  218. }
  219.  
  220. /* Day header */
  221. .forecast-day-header-slot {
  222. min-height: 28px !important;
  223. display: flex !important;
  224. align-items: center !important;
  225. justify-content: center !important;
  226. }
  227.  
  228. .forecast-day-header {
  229. font-size: 22px !important;
  230. font-weight: 700 !important;
  231. line-height: 1.2 !important;
  232. white-space: nowrap !important;
  233. color: #000000 !important;
  234. }
  235.  
  236. /* Time */
  237. .forecast-item-label {
  238. font-size: 25px !important;
  239. font-weight: 700 !important;
  240. line-height: 1.3 !important;
  241. white-space: nowrap !important;
  242. color: #000000 !important;
  243. text-align: center !important;
  244. }
  245.  
  246. /* Icons */
  247. .forecast-image-icon {
  248. padding: 0 !important;
  249. display: flex !important;
  250. align-items: center !important;
  251. justify-content: center !important;
  252. }
  253.  
  254. .forecast-image-icon > * {
  255. width: 65px !important;
  256. height: 65px !important;
  257. }
  258.  
  259. /* Temperature */
  260. .forecast .temp {
  261. font-size: 42px !important;
  262. font-weight: 800 !important;
  263. line-height: 1.2 !important;
  264. white-space: nowrap !important;
  265. color: #000000 !important;
  266. margin: 0 !important;
  267. text-align: center !important;
  268. }
  269.  
  270. .forecast .templow {
  271. display: none !important;
  272. }
  273. - type: weather-forecast
  274. entity: weather.forecast_home
  275. show_current: false
  276. show_forecast: true
  277. forecast_type: daily
  278. forecast_slots: 7
  279. round_temperature: true
  280. view_layout:
  281. grid-area: daily
  282. card_mod:
  283. style: |
  284. ha-card {
  285. height: 100% !important;
  286. box-sizing: border-box;
  287. background: #ffffff !important;
  288. color: #000000 !important;
  289. border: none !important;
  290. border-top: 3px solid #000 !important;
  291. border-radius: 0 !important;
  292. box-shadow: none !important;
  293. padding: 0 !important;
  294. display: flex !important;
  295. flex-direction: column !important;
  296. justify-content: stretch !important;
  297. }
  298.  
  299. .forecast {
  300. display: flex !important;
  301. flex-direction: column !important;
  302. justify-content: space-between !important;
  303. align-items: stretch !important;
  304. flex: 1 1 auto !important;
  305. height: 100% !important;
  306. min-height: 0 !important;
  307. width: 100% !important;
  308. max-width: none !important;
  309. box-sizing: border-box;
  310. overflow: hidden !important;
  311. mask-image: none !important;
  312. padding: 0 35px !important;
  313. gap: 0 !important;
  314. --forecast-icon-size: 57px;
  315. }
  316.  
  317. .forecast > .forecast-item {
  318. display: grid !important;
  319. grid-template-columns: 35% 25% 20% 20%;
  320. align-items: center !important;
  321. width: 100% !important;
  322. min-width: 0 !important;
  323. min-height: 0 !important;
  324. flex: 1 1 0 !important;
  325. box-sizing: border-box;
  326. padding: 0 10px !important;
  327. gap: 0 !important;
  328. border-bottom: 1px solid #aaaaaa;
  329. }
  330.  
  331. .forecast > .forecast-item:last-child {
  332. border-bottom: none !important;
  333. }
  334.  
  335. /* Weekday */
  336. .forecast-item-label {
  337. font-size: 34px !important;
  338. font-weight: 700 !important;
  339. color: #000000 !important;
  340. text-align: left !important;
  341. justify-self: start;
  342. }
  343.  
  344. /* Weather icon */
  345. .forecast-image-icon {
  346. justify-self: center;
  347. padding: 0 !important;
  348. }
  349.  
  350. .forecast-image-icon > * {
  351. width: 57px !important;
  352. height: 57px !important;
  353. }
  354.  
  355. /* High temperature */
  356. .forecast .temp {
  357. font-size: 39px !important;
  358. font-weight: 800 !important;
  359. color: #000000 !important;
  360. justify-self: center;
  361. }
  362.  
  363. /* Low temperature */
  364. .forecast .templow {
  365. font-size: 34px !important;
  366. font-weight: 500 !important;
  367. color: #555555 !important;
  368. justify-self: center;
  369. }
  370.  
Advertisement
Add Comment
Please, Sign In to add comment