-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMM-SRVMA.css
120 lines (102 loc) · 2.12 KB
/
MMM-SRVMA.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
116
117
118
119
120
/* MMM-SRVMA Enhanced Styles v2.1.2
* Updates:
* - Added loading state styles
* - Added error state styles
* - Added no-alerts state styles
* - Maintains existing border-based design
*/
.mmm-srvma-wrapper {
width: 100%;
max-width: 100%;
overflow: hidden;
position: relative;
}
/* Loading, Error, and No Alerts states */
.loading,
.error,
.no-alerts {
text-align: center;
padding: 15px;
margin: 10px 0;
border-radius: 8px;
background-color: rgba(0, 0, 0, 0.2);
}
.loading {
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
.error {
border-left: 3px solid #ff0000;
padding-left: 12px;
}
.alert-container {
display: flex;
flex-direction: column;
gap: 15px;
padding: 10px;
}
.alert {
display: flex;
padding: 15px;
border-radius: 8px;
background-color: transparent;
border: 2px solid;
transition: all 0.3s ease;
color: white;
}
/* Severity-based styling */
.alert-severe {
border-color: #ff0000;
box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}
.alert-moderate {
border-color: #ffa500;
box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}
.alert-minor {
border-color: #ffff00;
box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}
.alert-title {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 5px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.alert-description {
font-size: 1em;
line-height: 1.4;
margin: 8px 0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.alert-metadata {
font-size: 0.9em;
opacity: 0.8;
margin-top: 5px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
/* Urgency indicators */
.urgency-immediate {
animation: borderPulse 2s infinite;
}
@keyframes borderPulse {
0% { border-width: 2px; }
50% { border-width: 4px; }
100% { border-width: 2px; }
}
/* Optimizations for Raspberry Pi */
@media screen and (max-width: 800px) {
.alert {
padding: 10px;
}
.alert-title {
font-size: 1.1em;
}
.alert-description {
font-size: 0.9em;
}
}