PluginProbe
Plugin Memory Usage / 1.3.0
Plugin Memory Usage v1.3.0
trunk 1.0 1.0.2 1.1.0 1.1.2 1.1.3 1.2.0 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0
plugin-memory-usage / plugin-memory-usage.css

plugin-memory-usage.css in Plugin Memory Usage 1.3.0, at plugin-memory-usage.css

368 lines 5.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .wrap .card {
2 background: white;
3 box-shadow: 0 1px 1px rgba(0,0,0,.04);
4 padding: 20px;
5 margin-bottom: 20px;
6 }
7
8 .wrap .card h2 {
9 margin-top: 0;
10 }
11
12 .wrap .widefat {
13 border: none;
14 width: 100%;
15 }
16
17 .wrap .widefat th {
18 font-weight: 600;
19 }
20
21 .memory-bar {
22 width: 100%;
23 background: #e0e0e0;
24 height: 30px;
25 border-radius: 15px;
26 overflow: hidden;
27 }
28
29 .memory-bar-fill {
30 height: 100%;
31 text-align: center;
32 line-height: 30px;
33 color: black;
34 background: #76c7c0;
35 }
36
37 .card-container {
38 display: flex;
39 flex-wrap: wrap;
40 gap: 20px;
41 }
42
43 .card-row {
44 display: flex;
45 width: 100%;
46 gap: 20px;
47 }
48
49
50
51 .card-memory-usage {
52 flex: 0 0 calc(70% - 10px);
53 }
54
55 .card-plugins {
56 width: 100%;
57 min-width:100%;
58 }
59
60
61
62 .plugin-disabled {
63 color: #999;
64 }
65
66
67 .memory-result {
68 margin-left: 10px;
69 font-weight: bold;
70 color: #0073aa;
71 }
72
73
74 @media (max-width: 768px) {
75 .card-row {
76 flex-direction: column;
77 }
78 .card-system-info,
79 .card-memory-usage {
80 width: 100%;
81 }
82 }
83
84
85
86
87
88
89
90
91
92
93
94 .card-system-info,
95 .card-memory-usage,
96 .card-memory-history {
97 flex: 1;
98 }
99
100
101
102 #memory-history-list {
103 max-height: 200px;
104 overflow-y: auto;
105 }
106
107
108
109 .memory-change {
110 font-size: 0.9em;
111 color: #666;
112 }
113
114
115
116
117
118
119 .plugin-list {
120 list-style-type: none;
121 padding: 0;
122 }
123
124
125 .plugin-list li {
126 position: relative;
127 padding-bottom: 25px; /* Increase this value if you need more space for history bars */
128 }
129
130 .plugin-active {
131 background-color: #e6ffe6;
132 }
133
134 .plugin-inactive {
135 background-color: #ffe6e6;
136 }
137
138 .plugin-info {
139 display: flex;
140 align-items: center;
141 flex-grow: 1;
142 margin-right: 10px;
143 }
144
145 .plugin-name {
146 margin-right: 10px;
147 min-width: 200px;
148 }
149
150 .plugin-active .plugin-name {
151 color: #006400;
152 }
153
154 .plugin-inactive .plugin-name {
155 color: #8b0000;
156 }
157
158 .plugin-memory-bar {
159 flex-grow: 1;
160 height: 20px;
161 /* background-color: #f0f0f0; */
162 border-radius: 10px;
163 overflow: hidden;
164 margin-right: 10px;
165 max-width:80%;
166 }
167
168 .plugin-memory-fill {
169 height: 100%;
170 width: 0;
171 background-color: #4CAF50;
172 transition: width 0.5s ease-in-out;
173 }
174
175 .plugin-memory-text {
176 display: inline-block;
177 line-height: 20px;
178 color: white;
179 padding: 0 5px;
180 font-size: 12px;
181 }
182
183 .plugin-actions {
184 float:right;
185 position:relative;
186 min-width: 100px;
187 text-align: right;
188 padding-right:6px;
189 top:-12px;
190 z-index:99;
191 }
192
193 .toggle-plugin {
194 width: 100px;
195 }
196
197
198
199 /* ====================== */
200
201
202
203 .plugin-list .memory-usage-plugin {
204 opacity: 0.7;
205 background-color: #f0f0f0;
206 }
207
208 .plugin-list .memory-usage-plugin .plugin-name {
209 color: #666;
210 }
211
212 .plugin-list .memory-usage-plugin .button {
213 cursor: not-allowed;
214 }
215
216
217
218 .plugin-history-container {
219 position: absolute;
220 bottom: 0;
221 left: 0;
222 right: 0;
223 height: 20px;
224 display: flex;
225 flex-direction: column;
226 justify-content: flex-end;
227 max-width:80% !important;
228 }
229
230 .plugin-history-bar {
231 height: 4px;
232 margin-bottom: 1px;
233 border-radius: 2px;
234 max-width:80%;
235 }
236
237
238 .avg-memory {
239 font-size: 0.9em;
240 background-color: #ffffcc;
241 border: 1px solid #ffcc00;
242 border-radius: 3px;
243 padding: 2px 5px;
244 margin-left: 5px;
245 display: inline-block;
246 }
247
248 #wp-admin-bar-wpmem_memory_usage .ab-item {
249 color: #fff !important;
250 background-color: #555 !important;
251 }
252
253
254
255
256 .wpmem-version {
257 font-size: 0.7em;
258 color: #666;
259 vertical-align: middle;
260 margin-left: 8px;
261 font-weight: 400;
262 background: #f3f4f5;
263 padding: 2px 6px;
264 border-radius: 3px;
265 border: 1px solid #dcdcde;
266 }
267
268 .pluginmemoryusage-system-info-line {
269 line-height: 1.5;
270 margin-top: 2px;
271 margin-bottom: 2px;
272 padding: 0;
273 }
274
275
276
277
278
279
280
281
282
283 .pluginmemoryusage_version-unknown {
284 background: #f5f5f5;
285 color: #666;
286 padding: 2px 8px;
287 border-radius: 5px;
288 margin-left: 10px;
289 display: inline-block;
290 }
291
292
293 .pluginmemoryusage_version-latest {
294 background: #eaffea;
295 color: #006400;
296 padding: 2px 8px;
297 border-radius: 5px;
298 margin-left: 10px;
299 display: inline-block;
300 }
301
302 .pluginmemoryusage_version-outdated {
303 background: #fff8e1;
304 color: #b8860b;
305 padding: 2px 8px;
306 border-radius: 5px;
307 margin-left: 10px;
308 display: inline-block;
309 }
310
311
312
313
314 /* Admin Bar Memory Status Colors - High Contrast for Dark Background */
315 #wp-admin-bar-wpmem_memory_usage .wpmem-good {
316 color: #7FFF00 !important; /* Chartreuse - super bright and visible */
317 font-weight: 400;
318 }
319
320
321 #wp-admin-bar-wpmem_memory_usage .wpmem-moderate {
322 color: #ffeb3b !important; /* Bright yellow */
323 font-weight: 400;
324 }
325
326 #wp-admin-bar-wpmem_memory_usage .wpmem-warning {
327 color: #ff9800 !important; /* Bright orange */
328 font-weight: 400;
329 }
330
331 #wp-admin-bar-wpmem_memory_usage .wpmem-critical {
332 color: #ff7777 !important; /* Salmon pink red */
333 font-weight: 600;
334 animation: wpmem-pulse 2s infinite;
335 }
336
337
338 @keyframes wpmem-pulse {
339 0%, 100% { opacity: 1; }
340 50% { opacity: 0.6; }
341 }
342
343
344
345
346
347
348
349 .pmusage-mini-bar {
350 width: 100%;
351 background: #e0e0e0;
352 height: 8px;
353 border-radius: 4px;
354 overflow: hidden;
355 margin: 2px 0 8px 0;
356 }
357
358 .pmusage-mini-bar-fill {
359 height: 100%;
360 border-radius: 4px;
361 transition: width 0.4s ease-in-out;
362 }
363
364 .pmusage-bar-good { background-color: #46b450; }
365 .pmusage-bar-moderate { background-color: #ffb900; }
366 .pmusage-bar-warning { background-color: #ff8c00; }
367 .pmusage-bar-critical { background-color: #dc3232; }
368