xref: /webtrees/resources/css/_maps.css (revision 1270d2767576ed4a83917769b0ee3613e3b010bf)
1/**
2 * webtrees: online genealogy
3 * Copyright (C) 2023 webtrees development team
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16 :root {
17    --wt-map-height: 70vh;
18 }
19
20/*
21 * Formatting for LeafletJS based maps.
22 */
23
24.leaflet-control-layers-selector {
25    margin-right: 2px;
26}
27
28/* Default is 12px - a bit too small */
29.leaflet-container {
30    font-size: 0.8rem;
31}
32
33/* No way to target parents-only... */
34.leaflet-layerstree-header-name {
35    font-weight: bold;
36}
37
38.leaflet-layerstree-node .leaflet-layerstree-node .leaflet-layerstree-header-name {
39    font-weight: normal;
40}
41
42.wt-map {
43    height: var(--wt-map-height);
44}
45
46:fullscreen .wt-map {
47    height: 100%;
48}
49
50.wt-map-sidebar {
51    height: var(--wt-map-height);
52    overflow-y: auto;
53}
54
55:fullscreen .wt-map-sidebar {
56    height: 100%;
57}
58