forked from hermanho/MMM-GooglePhotos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMM-GooglePhotos.css
96 lines (84 loc) · 1.45 KB
/
MMM-GooglePhotos.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
87
88
89
90
91
92
93
94
95
96
#GPHOTO_INFO {
--top: none;
--left: none;
--bottom: 0;
--right: 0;
}
@keyframes trans {
from {opacity: 0}
to {opacity: 1}
}
.region.fullscreen #GPHOTO {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
#GPHOTO {
position:relative;
min-width: 300px;
min-height:300px;
}
#GPHOTO_CURRENT {
background-size:contain;
background-repeat:no-repeat;
background-position:center;
position: absolute;
top:10px;
left:10px;
right:10px;
bottom:10px;
}
#GPHOTO_CURRENT.animated {
animation-name: trans;
animation-duration: 2s;
}
#GPHOTO_BACK {
background-size:cover;
background-repeat:no-repeat;
background-position:center;
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
filter: blur(10px) sepia(80%) brightness(40%);
}
#GPHOTO_INFO {
position:absolute;
top: var(--top);
left: var(--left);
bottom: var(--bottom);
right: var(--right);
margin:10px;
background-color: rgba(0,0,0,0.5);
padding: 10px;
border-radius: 36px;
line-height: 100%;
text-align:left;
}
#GPHOTO_INFO .albumCover {
width:48px;
height:48px;
border-radius:50%;
background-size:cover;
background-repeat:no-repeat;
background-position:center;
float:left;
}
#GPHOTO_INFO .albumTitle {
color:#FDD;
}
#GPHOTO_INFO .photoTime {
color:#DFD;
}
#GPHOTO_INFO .infoText {
float:right;
margin-left: 12px;
padding-right: 12px;
padding-top:6px;
font-size:18px;
line-height:100%;
color:#FFF;
}