mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-21 10:25:00 +00:00
Make some minor UI adjustments
We also add initial prefers-color-scheme: dark support
This commit is contained in:
parent
14f9cf4a60
commit
63bc4e536d
4 changed files with 50 additions and 12 deletions
31
client_src/css/dark.css
Normal file
31
client_src/css/dark.css
Normal file
|
@ -0,0 +1,31 @@
|
|||
@media (prefers-color-scheme: dark) {
|
||||
.nanoModal {
|
||||
background: #333;
|
||||
color: #efefef;
|
||||
}
|
||||
.nanoModal a { color: hsl(240, 90%, 80%); }
|
||||
.nanoModal a:visited { color: hsl(240, 90%, 70%); }
|
||||
.nanoModal a:link { color: hsl(240, 90%, 80%); }
|
||||
.nanoModal a:active { color: hsl(217, 89%, 80%); }
|
||||
|
||||
.nanoModalBtn.nanoModalBtnPrimary { background-color: #1b79cb; }
|
||||
|
||||
body > h1 {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
color: #efefef;
|
||||
}
|
||||
|
||||
|
||||
.leaflet-control-attribution {
|
||||
background: rgba(0, 0, 0, 0.7) !important;
|
||||
color: #efefef;
|
||||
}
|
||||
.leaflet-control-attribution a { color: hsl(240, 90%, 90%) !important; }
|
||||
.leaflet-control-attribution a:visited { color: hsl(240, 90%, 80%) !important; }
|
||||
.leaflet-control-attribution a:link { color: hsl(240, 90%, 90%) !important; }
|
||||
.leaflet-control-attribution a:active { color: hsl(217, 89%, 90%) !important; }
|
||||
|
||||
.leaflet-top.leaflet-left {
|
||||
filter: invert(100%);
|
||||
}
|
||||
}
|
13
client_src/css/index.css
Normal file
13
client_src/css/index.css
Normal file
|
@ -0,0 +1,13 @@
|
|||
@import "../../node_modules/leaflet/dist/leaflet.css";
|
||||
|
||||
@import "../../node_modules/leaflet-fullscreen/dist/leaflet.fullscreen.css";
|
||||
|
||||
@import "../../node_modules/leaflet.markercluster/dist/MarkerCluster.css";
|
||||
@import "../../node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css";
|
||||
|
||||
@import "./main.css";
|
||||
|
||||
@import "./nanomodal.css";
|
||||
@import "./popup.css";
|
||||
@import "./guage.css";
|
||||
@import "./dark.css";
|
|
@ -1,14 +1,3 @@
|
|||
@import "../../node_modules/leaflet/dist/leaflet.css";
|
||||
|
||||
@import "../../node_modules/leaflet-fullscreen/dist/leaflet.fullscreen.css";
|
||||
|
||||
@import "../../node_modules/leaflet.markercluster/dist/MarkerCluster.css";
|
||||
@import "../../node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css";
|
||||
|
||||
@import "./nanomodal.css";
|
||||
@import "./popup.css";
|
||||
@import "./guage.css";
|
||||
|
||||
/** Ensure that some assets are copied that aren't by default **/
|
||||
.non-existent {
|
||||
background: url(../../node_modules/leaflet/dist/images/marker-icon-2x.png),
|
||||
|
@ -77,3 +66,8 @@ button.selected {
|
|||
cursor: progress !important;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.leaflet-control-attribution a {
|
||||
color: #0050B6;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
import '../css/main.css';
|
||||
import '../css/index.css';
|
||||
// import '../../node_modules/leaflet-timedimension/dist/leaflet.timedimension.control.css';
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue