Wykop

mod2

Dec 24th, 2022
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.21 KB | None | 0 0
  1. mod2
  2.  
  3. type: entities
  4. title: Rozmiar
  5. card_mod:
  6. style: |
  7. ha-card .card-header {
  8. font-size: 35px;
  9. color: red;
  10. }
  11. entities:
  12. - entity: sun.sun
  13. name: Standardowy rozmiar
  14. secondary_info: last-changed
  15. - entity: sun.sun
  16. name: Rozmiar dla całego rzędu
  17. secondary_info: last-changed
  18. card_mod:
  19. style: |
  20. :host {
  21. font-size: 25px;
  22. color: red;
  23. }
  24. - entity: sun.sun
  25. name: Rozmiar dla imienia i informacji drugorzędnych
  26. secondary_info: last-changed
  27. card_mod:
  28. style:
  29. hui-generic-entity-row:
  30. $: |
  31. .info.pointer {
  32. font-size: 10px;
  33. color: red;
  34. }
  35. - entity: sun.sun
  36. name: Rozmiar dla imienia i informacji_dodatkowych (inne)
  37. secondary_info: last-changed
  38. card_mod:
  39. style:
  40. hui-generic-entity-row:
  41. $:
  42. .info.pointer: |
  43. .secondary ha-relative-time {
  44. color: green;
  45. font-size: 25px;
  46. }
  47. .: |
  48. .info.pointer {
  49. color: red;
  50. font-size: 8px;
  51. }
  52. - entity: sun.sun
  53. name: Rozmiar tylko dla nazwy
  54. secondary_info: last-changed
  55. card_mod:
  56. style:
  57. hui-generic-entity-row:
  58. $:
  59. .info.pointer: |
  60. .secondary ha-relative-time {
  61. color: orange;
  62. font-size: var(--mdc-typography-body1-font-size, 1rem);
  63. }
  64. .: |
  65. .info.pointer {
  66. color: red;
  67. font-size: 8px;
  68. }
  69. - entity: sun.sun
  70. name: Rozmiar za wartość
  71. secondary_info: last-changed
  72. card_mod:
  73. style:
  74. hui-generic-entity-row $: |
  75. .text-content {
  76. font-size: 10px;
  77. color: red;
  78. }
  79. - entity: sun.sun
  80. name: '!!!! Rozmiar dla wartości (bez sec_info) !!!!'
  81. card_mod:
  82. style:
  83. hui-generic-entity-row $: |
  84. .text-content.pointer:not(.info) {
  85. font-size: 10px;
  86. color: red;
  87. }
  88. - entity: sun.sun
  89. name: Rozmiar dla informacji_dodatkowych
  90. secondary_info: last-changed
  91. card_mod:
  92. style:
  93. hui-generic-entity-row:
  94. $:
  95. .info.pointer .secondary: |
  96. ha-relative-time {
  97. font-size: 20px;
  98. color: green !important;
  99. }
  100. - entity: sun.sun
  101. name: swinging
  102. icon: mdi:bell
  103. style:
  104. hui-generic-entity-row:
  105. $: |
  106. state-badge {
  107. color: red;
  108. animation: wobbling 1s linear infinite alternate;
  109. }
  110. @keyframes wobbling {
  111. 0% {
  112. transform: rotate(-45deg);
  113. }
  114. 100% {
  115. transform: rotate(+45deg);
  116. }
  117. }
  118. - entity: sun.sun
  119. name: coloring
  120. style:
  121. hui-generic-entity-row:
  122. $: |
  123. state-badge {
  124. animation: coloring 8s linear infinite alternate;
  125. }
  126. @keyframes coloring {
  127. 0% {
  128. color: red;
  129. }
  130. 17% {
  131. color: orange;
  132. }
  133. 34% {
  134. color: yellow;
  135. }
  136. 51% {
  137. color: green;
  138. }
  139. 68% {
  140. color: lightblue;
  141. }
  142. 85% {
  143. color: blue;
  144. }
  145. 100% {
  146. color: violet;
  147. }
  148. }
  149. - entity: sun.sun
  150. name: resizing
  151. icon: mdi:radio-tower
  152. style:
  153. hui-generic-entity-row:
  154. $: |
  155. state-badge {
  156. animation: resizing 1s linear infinite alternate;
  157. }
  158. @keyframes resizing {
  159. 0% {
  160. --mdc-icon-size: 10px;
  161. }
  162. 25% {
  163. --mdc-icon-size: 15px;
  164. }
  165. 50% {
  166. --mdc-icon-size: 20px;
  167. }
  168. 75% {
  169. --mdc-icon-size: 26px;
  170. }
  171. 100% {
  172. --mdc-icon-size: 32px;
  173. }
  174. }
  175. - entity: sun.sun
  176. name: stretching 1
  177. icon: mdi:bus-side
  178. style:
  179. hui-generic-entity-row:
  180. $: |
  181. state-badge {
  182. animation: stretching 1s linear infinite alternate;
  183. }
  184. @keyframes stretching {
  185. 0% {
  186. transform: scaleX(0.5);
  187. }
  188. 100% {
  189. transform: scaleX(2.0);
  190. }
  191. }
  192. - entity: sun.sun
  193. name: stretching 2
  194. icon: mdi:human-handsup
  195. style:
  196. hui-generic-entity-row:
  197. $: |
  198. state-badge {
  199. animation: stretching 1s linear infinite alternate;
  200. }
  201. @keyframes stretching {
  202. 0% {
  203. transform: scaleY(0.5);
  204. }
  205. 100% {
  206. transform: scaleY(2.0);
  207. }
  208. }
  209. - entity: sun.sun
  210. name: flipping
  211. icon: mdi:timer-sand
  212. style:
  213. hui-generic-entity-row:
  214. $: |
  215. state-badge {
  216. animation: flipping 1s linear infinite;
  217. }
  218. @keyframes flipping {
  219. 0% {
  220. transform: rotateX(0deg);
  221. }
  222. 100% {
  223. transform: rotateX(360deg);
  224. }
  225. }
  226. - entity: sun.sun
  227. name: shifting
  228. icon: mdi:arrow-left-right
  229. style:
  230. hui-generic-entity-row:
  231. $: |
  232. state-badge {
  233. animation: shifting 1s linear infinite alternate;
  234. }
  235. @keyframes shifting {
  236. 0% {
  237. transform: translate(-5px,0);
  238. }
  239. 100% {
  240. transform: translate(5px,0);
  241. }
  242. }
  243. - entity: sun.sun
  244. name: jumping
  245. icon: mdi:arrow-up-down
  246. style:
  247. hui-generic-entity-row:
  248. $: |
  249. state-badge {
  250. animation: jumping 1s linear infinite alternate;
  251. }
  252. @keyframes jumping {
  253. 0% {
  254. transform: translate(0,-5px);
  255. }
  256. 100% {
  257. transform: translate(0,5px);
  258. }
  259. }
  260. - entity: sun.sun
  261. name: blinking
  262. style:
  263. hui-generic-entity-row:
  264. $: |
  265. state-badge {
  266. animation: disappear 1s linear infinite alternate;
  267. }
  268. @keyframes disappear {
  269. 0% {
  270. opacity: 0;
  271. }
  272. 100% {
  273. opacity: 1;
  274. }
  275. }
  276. - entity: cover.blinds_curtain
  277. card_mod:
  278. style: |
  279. :host {
  280. color: green;
  281. }
  282. - entity: cover.blinds_curtain
  283. card_mod:
  284. style: |
  285. :host {
  286. --paper-item-icon-color: cyan;
  287. }
  288. - entity: cover.blinds_curtain
  289. card_mod:
  290. style:
  291. hui-generic-entity-row:
  292. $: |
  293. state-badge {
  294. color: yellow;
  295. }
  296. - entity: cover.blinds_curtain
  297. card_mod:
  298. style:
  299. hui-generic-entity-row ha-cover-controls:
  300. $: |
  301. .state ha-icon-button {
  302. color: orange;
  303. }
  304. - entity: cover.blinds_curtain
  305. card_mod:
  306. style:
  307. hui-generic-entity-row ha-cover-controls:
  308. $: |
  309. .state ha-icon-button:nth-child(1) {
  310. color: orange;
  311. }
  312. .state ha-icon-button:nth-child(2) {
  313. color: red;
  314. }
  315. .state ha-icon-button:nth-child(3) {
  316. color: magenta;
  317. }
  318. - entity: cover.blinds_curtain
  319. card_mod:
  320. style:
  321. hui-generic-entity-row ha-cover-controls:
  322. $: |
  323. .state ha-icon-button:nth-child(1) {
  324. color: orange;
  325. }
  326. .state ha-icon-button:nth-child(2) {
  327. color: red;
  328. }
  329. .state ha-icon-button:nth-child(3) {
  330. color: magenta;
  331. }
  332. .: |
  333. :host {
  334. --paper-item-icon-color: cyan;
  335. color: green;
  336. }
  337.  
Advertisement
Add Comment
Please, Sign In to add comment