David C. Rankin
2013-Dec-14 10:13 UTC
[Nut-upsdev] cgi graphs text unreadable (black-on-black)
Guys, This is probably known, but since I working on nut tonight, I thought I would make sure. This is with the latest built from git. The cgi-bin script that shows the graph of upsstats has text that is unreadable. The text is black and the background is black. Here is a screenshot: http://www.3111skyline.com/dl/bugs/nut/cgi-black-text.jpg Here is the same page with the text selected with the mouse: http://www.3111skyline.com/dl/bugs/nut/cgi-black-text-highlighted.jpg I don't know how the cgi scripts are formatting the text, but the index.html, bottom.html and header.html files use some very very old html color settings. I don't know if that is the problem, but I've tried adding style="color:#51B3B1" in various tags in the header.html and index.html files, but no difference. What say the experts? -- David C. Rankin, J.D.,P.E.
Charles Lepple
2013-Dec-14 12:58 UTC
[Nut-upsdev] cgi graphs text unreadable (black-on-black)
On Dec 14, 2013, at 5:13 AM, David C. Rankin wrote:> This is probably known, but since I working on nut tonight, I thought I would > make sure. This is with the latest built from git. The cgi-bin script that shows > the graph of upsstats has text that is unreadable. The text is black and the > background is black. Here is a screenshot:That's odd. I'll admit that I don't use the CGI graphs much (I send the data to RRD files with collectd), but I just built the Debian package for NUT 2.7.1 locally, and the defaults yield green text on black. Do you have any customizations relative to the original HTML templates? Any CSS overrides in the browser to force black text? Also, what version of Firefox is that? Is it potentially a problem with an extension? (It's a long shot, since the default HTML templates don't load any external stylesheets.) I tried it here with both Firefox 25 and Safari, and the green text shows up in both cases. -- Charles Lepple clepple at gmail
David C. Rankin
2013-Dec-14 18:45 UTC
[Nut-upsdev] cgi graphs text unreadable (black-on-black)
On 12/14/2013 06:58 AM, Charles Lepple wrote:> On Dec 14, 2013, at 5:13 AM, David C. Rankin wrote: > >> This is probably known, but since I working on nut tonight, I thought I >> would make sure. This is with the latest built from git. The cgi-bin script >> that shows the graph of upsstats has text that is unreadable. The text is >> black and the background is black. Here is a screenshot:> > Also, what version of Firefox is that? Is it potentially a problem with an > extension? (It's a long shot, since the default HTML templates don't load any > external stylesheets.) I tried it here with both Firefox 25 and Safari, and > the green text shows up in both cases. >Firefox 26 -- it is definitely the problem! I tried in an old konqueror browser an it displays the green text just fine: http://www.3111skyline.com/dl/bugs/nut/cgi-black-text-konqueror.jpg Who would have thought. I'll follow up with mozilla there. That's (1) issue down :p -- David C. Rankin, J.D.,P.E.