Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

1.4 KB
Raw Blame
.maplibregl-popup-content {
  box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.2);
}

.oim-popup {
  max-width: min(350px, 70vw) !important;
}

.oim-popup .maplibregl-popup-content {
  background-color: var(--oim-content-background);
  padding: 0 0.5em 0.5em 0.5em;
}

.oim-popup-content > * + * {
  margin-block-start: 0.6em;
}

.oim-popup .oim-popup-header {
  padding: 0.5em 2.2em 0.5em 0.5em;
  margin: 0 -0.5em 0.5em -0.5em;
}

.oim-popup h3 {
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0;
}

.oim-popup h4 {
  font-weight: normal;
  color: var(--oim-text-color-light);
}

.oim-popup .maplibregl-popup-close-button {
  font-weight: bold;
  font-size: 1.5rem;
  height: 1.3em;
  color: var(--oim-text-color);
  background-color: var(--oim-light-grey);
  border-radius: 0 0 0 var(--oim-radius-small);
}

.oim-popup .maplibregl-popup-close-button:hover {
  color: var(--oim-text-color-light);
  background-color: var(--oim-grey);
}

.oim-popup table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--oim-light-grey);
  border-radius: 4px;
}

.oim-popup table td,
.oim-popup table th {
  padding: 0.1em 0.5em;
}

.oim-popup table th {
  text-align: left;
  text-wrap: nowrap;
}

.oim-popup table td {
  width: 100%;
  overflow: hidden;
}

.oim-popup table tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.oim-popup ul {
  margin: 0;
  padding-left: 1.5em;
}