Open Infrastructure Map, a view of infrastructure data in OpenStreetMap
@import 'maplibre-gl/dist/maplibre-gl.css';
:root {
--oim-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
--oim-font-family-monospace:
ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Oxygen Mono',
'Ubuntu Mono', 'Source Code Pro', 'Fira Mono', 'Droid Sans Mono', 'Consolas', 'Courier New', monospace;
--Grey100: rgb(247, 242, 239);
--Grey200: rgb(226, 209, 199);
--Grey300: rgb(197, 164, 144);
--Grey400: rgb(148, 119, 102);
--Grey500: rgb(109, 87, 75);
--Grey600: rgb(73, 58, 50);
--Green100: rgb(237, 244, 232);
--Green200: rgb(192, 219, 185);
--Green300: rgb(133, 184, 125);
--Green400: rgb(67, 140, 65);
--Green500: rgb(16, 107, 27);
--Green600: rgb(0, 72, 2);
--warning: rgb(255, 240, 240);
--oim-content-background: rgb(252, 252, 252);
--oim-text-color: #333;
--oim-text-color-light: #666;
--oim-text-color-dark: #000;
--oim-light-grey: var(--Grey100);
--oim-grey: var(--Grey200);
--oim-dark-grey: var(--Grey400);
--oim-radius-large: 6px;
--oim-radius-small: 3px;
--oim-popup-header-info-background: var(--Green100);
--oim-popup-header-validation-background: var(--Grey100);
--oim-drop-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
--oim-blur: blur(3px) saturate(80%);
}
* {
box-sizing: border-box;
color: inherit;
}
html,
#map {
width: 100%;
height: 100%;
font-family: var(--oim-font-family);
font-size: 15px;
color: var(--oim-text-color);
}
p {
text-wrap: pretty;
}
body,
#container {
width: 100%;
height: 100%;
margin: 0px;
}
#container {
display: block !important;
background-color: #223;
}
header {
z-index: 2;
padding: 0.25rem 0.5rem 0.5rem 0.5rem;
border-radius: 0px 0px 15px 0px;
background-color: rgba(250, 250, 250, 0.8);
top: 0px;
left: 0px;
min-width: 15rem;
position: absolute;
display: block;
font-size: 13px;
backdrop-filter: var(--oim-blur);
}
nav ul {
font-size: 1.1em;
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
}
nav ul li + li::before {
content: '|';
color: var(--oim-text-color-light);
margin-right: 5px;
}
h1,
h2,
h3,
h4 {
font-weight: bold;
}
h1 {
display: inline;
margin: 0px;
font-size: 1.4rem;
}
h2 {
font-size: 1.2rem;
}
h3 {
font-size: 1.1rem;
}
code {
font-family: var(--oim-font-family-monospace);
}
th {
font-weight: bold;
}
.maplibregl-ctrl-group {
background-color: var(--oim-content-background);
}
.maplibregl-ctrl-top-left {
/* Move control container down to avoid header */
top: 60px;
}
.maplibregl-ctrl-top-left .maplibregl-ctrl {
margin: 0.5rem 0 0 0.5rem;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl {
margin: 0.5rem 0.5rem 0 0;
}
.maplibregl-ctrl-attrib {
font-size: 0.8em;
}
.maplibregl-ctrl-attrib.maplibregl-compact {
background-color: rgba(250, 250, 250, 0.8);
backdrop-filter: blur(3px) saturate(80%);
}
.aa-Autocomplete {
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 0px 2px;
border-radius: 4px;
backdrop-filter: blur(3px) saturate(80%);
}
.aa-Autocomplete:has(:focus) {
background-color: rgba(250, 250, 250, 1);
}
a {
color: var(--oim-text-color);
}
a:hover {
color: var(--oim-text-color-dark);
}
canvas:focus {
/* Remove unnecessary focus border */
outline: none;
}
.oim-button {
font-weight: 500;
cursor: pointer;
display: inline-block;
font-size: inherit;
margin: 0.2em;
padding: 0.2em 0.4em;
border-radius: var(--oim-radius-large);
background-color: var(--oim-light-grey);
text-decoration: none;
border: 1px solid var(--oim-grey);
}
.oim-button:hover {
background-color: #ddd;
}
.layer-switcher-list {
min-width: 10vw !important;
background-color: var(--oim-content-background) !important;
}
.layer-switcher-list ul {
font-size: 1.1rem !important;
}
.layer-switcher-list label {
padding: 1px 2px;
border-radius: var(--oim-radius-small);
}
.layer-switcher-list label:hover {
background-color: var(--oim-light-grey);
}
.layer-switcher-list h3 {
background-color: var(--oim-light-grey);
margin: 0 -8px 0 -8px !important;
border-radius: var(--oim-radius-large) !important;
padding: 0.3em 8px 0.3em 8px;
}
.layer-switcher-list h4 {
border-bottom: 1px solid var(--oim-light-grey) !important;
}