initial commit
This commit is contained in:
89
client/style.css
Normal file
89
client/style.css
Normal file
@@ -0,0 +1,89 @@
|
||||
/* @import '~leaflet/dist/leaflet.css'; */
|
||||
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
font-family: sans-serif;
|
||||
|
||||
--mhd-color-tram: #e31e24;
|
||||
--mhd-color-bus: #5071b9;
|
||||
--mhd-color-trolleybus: #0E562C;
|
||||
}
|
||||
html, body, main, #app, #map {
|
||||
height: 100%;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
#map .mhd-linenr {
|
||||
background: #000;
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 2px #00000080;
|
||||
padding: 0.3em;
|
||||
}
|
||||
|
||||
#map .veh-icon {
|
||||
background: #000;
|
||||
color: #fff;
|
||||
padding: 0.3em;
|
||||
}
|
||||
|
||||
#map .mhd-linenr.veh-type-tram {
|
||||
background: var(--mhd-color-tram);
|
||||
}
|
||||
#map .mhd-linenr.veh-type-bus {
|
||||
background: var(--mhd-color-bus);
|
||||
}
|
||||
#map .mhd-linenr.veh-type-trolleybus {
|
||||
background: var(--mhd-color-trolleybus);
|
||||
}
|
||||
|
||||
#map .veh-icon.veh-notinservice {
|
||||
background: #000;
|
||||
}
|
||||
#map .veh-icon.veh-left {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
#map .leaflet-popup-content {
|
||||
margin: 5px 10px 5px 10px;
|
||||
min-width: 130px;
|
||||
text-align: center;
|
||||
}
|
||||
#map .leaflet-popup-content img.veh-model {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#map .search-tooltip {
|
||||
min-width: 175px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
max-height: calc(((1em * 1.3) + 6px) * 8);
|
||||
overflow-x: visible;
|
||||
}
|
||||
#map .search-tooltip > a {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: 1.3;
|
||||
}
|
||||
#map .search-tooltip .result-vehicle img {
|
||||
height: 1em;
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
#map .search-tooltip .result-vehicle .mhd-linenr {
|
||||
box-shadow: none;
|
||||
padding: 0.1em 0.4em;
|
||||
}
|
||||
#map.popup-open.drawing-trace .leaflet-marker-icon.veh-icon {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity .3s ease-in-out;
|
||||
}
|
||||
#map.popup-open.drawing-trace .leaflet-marker-icon.veh-icon.marker-popup-open {
|
||||
opacity: 1;
|
||||
pointer-events: all;
|
||||
}
|
||||
Reference in New Issue
Block a user