-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia-player-card.css
86 lines (70 loc) · 1.6 KB
/
media-player-card.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* SVG shapes */
svg, svg * {
pointer-events: all !important;
}
/* Hover over */
.entity:hover {
stroke: #03A9F4 !important;
stroke-width: 1px !important;
stroke-opacity: 1 !important;
}
#layer3.invisible, #layer3.invisible * {
opacity: 0;
display: none !important;
}
#layer3.visible, #layer3.visible * {
opacity: 1;
display: inherit !important;
}
#layer5.invisible, #layer5.invisible * {
opacity: 0;
display: none !important;
}
#layer5.visible, #layer5.visible * {
opacity: 1;
display: inherit !important;
}
.always-invisible {
visibility: hidden !important;
opacity: 0 !important;
stroke-opacity: 0 !important;
}
.always-visible {
visibility: visible !important;
opacity: 1 !important;
stroke-opacity: 1 !important;
}
.fillheart-on {
fill: #000000 !important;
fill-opacity: 1 !important;
}
.fillheart-off {
fill: #000000 !important;
fill-opacity: 0 !important;
}
/* Spinning Fans code from https://community.home-assistant.io/t/share-your-floorplan/21315/37 */
@keyframes rotation {
from {
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.rotate-on {
stroke: #000000 !important;
stroke-opacity: 1 !important;
opacity: 1 !important;
animation: rotation 3s infinite linear;
transform-box: fill-box;
transform-origin: center;
}
.rotate-off {
stroke: #000000 !important;
opacity: 1 !important;
stroke-opacity: 0 !important;
}