Merge branch 'eben80-darkmode' into devel
This commit is contained in:
commit
1dc548d6f1
|
|
@ -455,7 +455,7 @@ const char *createSondeHubMap() {
|
||||||
strcpy(ptr, HTMLHEAD); strcat(ptr, "</head>");
|
strcpy(ptr, HTMLHEAD); strcat(ptr, "</head>");
|
||||||
HTMLBODY(ptr, "map.html");
|
HTMLBODY(ptr, "map.html");
|
||||||
if (!sonde.config.sondehub.active) {
|
if (!sonde.config.sondehub.active) {
|
||||||
strcat(ptr, "<div>NOTE: SondeHub uploading is not enabled, detected sonde will not be visable on map</div>");
|
strcat(ptr, "<div class=\"warning\">NOTE: SondeHub uploading is not enabled, detected sonde will not be visable on map</div>");
|
||||||
if ((*s->d.ser == 0) && ( !isnan(sonde.config.rxlat))) {
|
if ((*s->d.ser == 0) && ( !isnan(sonde.config.rxlat))) {
|
||||||
sprintf(ptr + strlen(ptr), "<iframe src=\"https://sondehub.org/#!mc=%f,%f&mz=8\" style=\"border:1px solid #00A3D3;border-radius:20px;height:95vh\"></iframe>", sonde.config.rxlat, sonde.config.rxlon);
|
sprintf(ptr + strlen(ptr), "<iframe src=\"https://sondehub.org/#!mc=%f,%f&mz=8\" style=\"border:1px solid #00A3D3;border-radius:20px;height:95vh\"></iframe>", sonde.config.rxlat, sonde.config.rxlon);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -337,3 +337,21 @@ p{
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
h2{
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
table, th, td, .save, .topnav a.active {
|
||||||
|
color: white;
|
||||||
|
border: 1px solid grey;
|
||||||
|
border-collapse: collapse;
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
input, select, .tci, .warning {
|
||||||
|
color: white;
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue