1242a7862SGreg Roach/** 2242a7862SGreg Roach * webtrees: online genealogy 3242a7862SGreg Roach * Copyright (C) 2019 webtrees development team 4242a7862SGreg Roach * This program is free software: you can redistribute it and/or modify 5242a7862SGreg Roach * it under the terms of the GNU General Public License as published by 6242a7862SGreg Roach * the Free Software Foundation, either version 3 of the License, or 7242a7862SGreg Roach * (at your option) any later version. 8242a7862SGreg Roach * This program is distributed in the hope that it will be useful, 9242a7862SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 10242a7862SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11242a7862SGreg Roach * GNU General Public License for more details. 12242a7862SGreg Roach * You should have received a copy of the GNU General Public License 13242a7862SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 14242a7862SGreg Roach */ 15242a7862SGreg Roach 16242a7862SGreg Roach/* 17242a7862SGreg Roach * Pedigree chart 18242a7862SGreg Roach * 19242a7862SGreg Roach * wt-chart, wt-chart-pedigree 20242a7862SGreg Roach */ 21*cb0eb4a9SGreg Roach.wt-chart-pedigree { 22*cb0eb4a9SGreg Roach overflow-y: auto; 23*cb0eb4a9SGreg Roach} 24*cb0eb4a9SGreg Roach 25e759aebbSGreg Roach.wt-chart-pedigree-left .wt-chart-box, 26e759aebbSGreg Roach.wt-chart-pedigree-right .wt-chart-box { 27242a7862SGreg Roach width: 15rem; 28242a7862SGreg Roach} 29242a7862SGreg Roach 30e759aebbSGreg Roach.wt-chart-pedigree-up .wt-chart-box, 31e759aebbSGreg Roach.wt-chart-pedigree-down .wt-chart-box { 32e759aebbSGreg Roach width: 10rem; 33e759aebbSGreg Roach height: 8rem; 34e759aebbSGreg Roach} 35e759aebbSGreg Roach 36242a7862SGreg Roach.wt-chart-pedigree .wt-chart-box-lifespan { 37242a7862SGreg Roach display: none; 38242a7862SGreg Roach} 39242a7862SGreg Roach 40e759aebbSGreg Roach/* Pedigree chart with oldest on the right */ 41e759aebbSGreg Roach.wt-chart-pedigree-right .wt-pedigree-lines { 42e759aebbSGreg Roach right: 0; 43e759aebbSGreg Roach top: 25%; 44e759aebbSGreg Roach bottom: 25%; 45e759aebbSGreg Roach border: var(--chart-line); 46e759aebbSGreg Roach border-right: none; 4716e8b6e8SGreg Roach border-radius: var(--chart-line-radius) 0 0 var(--chart-line-radius); 48e759aebbSGreg Roach width: 25%; 49e759aebbSGreg Roach height: 50%; 50e759aebbSGreg Roach z-index: -1; 51e759aebbSGreg Roach} 52e759aebbSGreg Roach 53e759aebbSGreg Roach.wt-chart-pedigree-right .wt-generation-rev-2 > .wt-pedigree-lines { 54e759aebbSGreg Roach top: 12.5%; 55e759aebbSGreg Roach bottom: 12.5%; 56e759aebbSGreg Roach height: 75%; 57e759aebbSGreg Roach} 58e759aebbSGreg Roach 59e759aebbSGreg Roach/* Pedigree chart with oldest on the left */ 60e759aebbSGreg Roach.wt-chart-pedigree-left .wt-pedigree-lines { 61e759aebbSGreg Roach left: 0; 62e759aebbSGreg Roach top: 25%; 63e759aebbSGreg Roach bottom: 25%; 64e759aebbSGreg Roach border: var(--chart-line); 65e759aebbSGreg Roach border-left: none; 6616e8b6e8SGreg Roach border-radius: 0 var(--chart-line-radius) var(--chart-line-radius) 0; 67e759aebbSGreg Roach width: 25%; 68e759aebbSGreg Roach height: 50%; 69e759aebbSGreg Roach z-index: -1; 70e759aebbSGreg Roach} 71e759aebbSGreg Roach 72e759aebbSGreg Roach.wt-chart-pedigree-left .wt-generation-rev-2 > .wt-pedigree-lines { 73e759aebbSGreg Roach top: 12.5%; 74e759aebbSGreg Roach bottom: 12.5%; 75e759aebbSGreg Roach height: 75%; 76e759aebbSGreg Roach} 77e759aebbSGreg Roach 78e759aebbSGreg Roach/* Pedigree chart with oldest at the bottom */ 79e759aebbSGreg Roach.wt-chart-pedigree-down { 80e759aebbSGreg Roach width: max-content; 81e759aebbSGreg Roach} 82e759aebbSGreg Roach 83e759aebbSGreg Roach.wt-chart-pedigree-down .wt-pedigree-lines { 84e759aebbSGreg Roach bottom: 0; 85e759aebbSGreg Roach left: 25%; 86e759aebbSGreg Roach right: 25%; 87e759aebbSGreg Roach border: var(--chart-line); 88e759aebbSGreg Roach border-bottom: none; 8916e8b6e8SGreg Roach border-radius: var(--chart-line-radius) var(--chart-line-radius) 0 0; 90e759aebbSGreg Roach width: 50%; 91e759aebbSGreg Roach height: 25%; 92e759aebbSGreg Roach z-index: -1; 93e759aebbSGreg Roach} 94e759aebbSGreg Roach 95e759aebbSGreg Roach.wt-chart-pedigree-down .wt-generation-rev-2 > .wt-pedigree-lines { 96e759aebbSGreg Roach left: 12.5%; 97e759aebbSGreg Roach right: 12.5%; 98e759aebbSGreg Roach width: 75%; 99e759aebbSGreg Roach} 100e759aebbSGreg Roach 101e759aebbSGreg Roach/* Pedigree chart with oldest at the top */ 102e759aebbSGreg Roach.wt-chart-pedigree-up { 103e759aebbSGreg Roach width: max-content; 104e759aebbSGreg Roach} 105e759aebbSGreg Roach 106e759aebbSGreg Roach.wt-chart-pedigree-up .wt-pedigree-lines { 107e759aebbSGreg Roach top: 0; 108e759aebbSGreg Roach left: 25%; 109e759aebbSGreg Roach right: 25%; 110e759aebbSGreg Roach border: var(--chart-line); 111e759aebbSGreg Roach border-top: none; 11216e8b6e8SGreg Roach border-radius: 0 0 var(--chart-line-radius) var(--chart-line-radius); 113e759aebbSGreg Roach width: 50%; 114e759aebbSGreg Roach height: 25%; 115e759aebbSGreg Roach z-index: -1; 116e759aebbSGreg Roach} 117e759aebbSGreg Roach 118e759aebbSGreg Roach.wt-chart-pedigree-up .wt-generation-rev-2 > .wt-pedigree-lines { 119e759aebbSGreg Roach left: 12.5%; 120e759aebbSGreg Roach right: 12.5%; 121e759aebbSGreg Roach width: 75%; 122e759aebbSGreg Roach} 123e759aebbSGreg Roach 124e759aebbSGreg Roach 125