-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMMM-MinecraftStatus.css
executable file
·115 lines (101 loc) · 2.39 KB
/
MMM-MinecraftStatus.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
* Specific styling used only by IDs and classes from MMM-MinecraftStatus.js
*/
/*
* Set a max so error messages will word-wrap.
*/
.minecraftStatus {
max-width: 370px;
font-size: 20px;
}
/*
* Human readable name with the green & brown background image behind it:
* URL reference should probably be relative, but this works as of now.
* Padding makes it look like it has the same border all the way around.
*/
.minecraftStatus div.title {
color: #d0d0d0;
background-image: url('/modules/MMM-MinecraftStatus/public/minecraft-pattern.jpg');
padding-left: 16px;
padding-right: 16px;
font-size: 26px;
line-height: 1.3em;
}
/*
* The table and spacing allow a break between the rows so the number of players and
* the latency sections have some blackspace between them.
*/
.minecraftStatus table {
border-collapse: separate;
border-spacing: 0 4px;
width: 100%;
}
.minecraftStatus tr {
background-color: #303030;
}
.minecraftStatus td {
text-align: center;
margin: 4px;
padding: 4px;
line-height: 1em;
}
.minecraftStatus td.value {
padding-left: 24px;
padding-right: 4px;
text-align: right;
color: white;
font-size: 26px;
width: 5%; /* hint to make this as thin as it can */
}
.minecraftStatus .successSection td.label {
vertical-align: bottom;
padding-left: 4px;
text-align: left;
padding-top: 0;
line-height: normal;
font-size: small;
font-variant: small-caps;
width: 90%;
}
.minecraftStatus .iconbox {
width: 5%; /* hint to make this as thin as it can */
}
/*
* An Iconbox is the <TD> that holds the FontSwesome images.
*/
.minecraftStatus .successSection .iconbox {
background-color: #4875b4;
}
/*
* Not the same selector as the above! Note the "i" to
* match the fontswesome image.
*/
.minecraftStatus .iconbox i {
color: #e0e0e0;
}
/*
* Start out not displaying either part of the widget (other than the name).
* The code in MMM-MinecraftStatus.js changes this based on the return from
* the helper.
*/
.minecraftStatus tbody {
display: none;
}
.minecraftStatus .errorSection .iconbox {
background-color: #c00000;
}
.minecraftStatus .errorSection .errorLabel {
color: #c00000;
text-align: left;
vertical-align: middle;
width: 90%;
padding-left: 12px;
}
.minecraftStatus .errorSection .errorText {
text-align: left;
vertical-align: top;
font-size: 18px;
word-wrap: break-word;
text-overflow: ellipsis;
overflow: hidden;
}