-
Notifications
You must be signed in to change notification settings - Fork 6
/
MMM-NewsAPI.css
97 lines (78 loc) · 1.51 KB
/
MMM-NewsAPI.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
97
@keyframes hide {
0% { opacity:1; }
100% { opacity:0; }
}
@keyframes show {
0% { opacity:0; }
100% { opacity:1; }
}
.untouchable .touchable {
display:none;
}
.showArticle {
animation: show linear 1s;
}
.hideArticle {
animation: hide linear 1s;
}
#NEWSAPI {
line-height:1.1em;
}
#NEWSAPI .header .title {
display:block;
color:#FFF;
font-size:99%;
}
#NEWSAPI .content {
padding:10px;
font-size:90%;
}
#NEWSAPI .footer {
text-align:right;
}
#NEWSAPI .footer .sourceName,
#NEWSAPI .footer .publishedAt,
#NEWSAPI .footer .author {
font-size:80%;
text-align:right;
display:inline-block;
}
#NEWSAPI .footer .sourceName {
text-transform: uppercase;
}
/* custom className */
#NEWSAPI .redTitle .title {
color:#F99;
}
/* Type: Horizontal */
#NEWSAPI.horizontal {
width:100%;
}
#NEWSAPI.horizontal .content {
text-align:center;
}
#NEWSAPI.horizontal .content .articleImage {
margin-right:10px;
float:left;
max-width:15vw;
max-height:15vh;
}
/* Type: Vertical */
#NEWSAPI.vertical {
font-size: calc(2vh);
width:400px;
}
#NEWSAPI.vertical .content .articleImage {
max-width:400px;
max-height:300px;
margin-left:auto;
margin-right:auto;
display:block;
}
#NEWSAPI.vertical #NEWSAPI_CONTENT {
padding-bottom:5px;
}
#NEWSAPI .article #NEWSAPI_QRCODE {
float: right;
margin-left: 20px;
}