kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
Dark mode CSS
rodzic
d6f65d7d01
commit
033175f873
|
@ -455,7 +455,7 @@ const char *createSondeHubMap() {
|
|||
strcpy(ptr, HTMLHEAD); strcat(ptr, "</head>");
|
||||
HTMLBODY(ptr, "map.html");
|
||||
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))) {
|
||||
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 {
|
||||
|
|
|
@ -337,3 +337,21 @@ p{
|
|||
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;
|
||||
}
|
||||
}
|
Ładowanie…
Reference in New Issue