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 */ 21e759aebbSGreg Roach.wt-chart-pedigree-left .wt-chart-box, 22e759aebbSGreg Roach.wt-chart-pedigree-right .wt-chart-box { 23242a7862SGreg Roach width: 15rem; 24242a7862SGreg Roach} 25242a7862SGreg Roach 26e759aebbSGreg Roach.wt-chart-pedigree-up .wt-chart-box, 27e759aebbSGreg Roach.wt-chart-pedigree-down .wt-chart-box { 28e759aebbSGreg Roach width: 10rem; 29e759aebbSGreg Roach height: 8rem; 30e759aebbSGreg Roach} 31e759aebbSGreg Roach 32242a7862SGreg Roach.wt-chart-pedigree .wt-chart-box-lifespan { 33242a7862SGreg Roach display: none; 34242a7862SGreg Roach} 35242a7862SGreg Roach 36e759aebbSGreg Roach/* Pedigree chart with oldest on the right */ 37e759aebbSGreg Roach.wt-chart-pedigree-right .wt-pedigree-lines { 38e759aebbSGreg Roach right: 0; 39e759aebbSGreg Roach top: 25%; 40e759aebbSGreg Roach bottom: 25%; 41e759aebbSGreg Roach border: var(--chart-line); 42e759aebbSGreg Roach border-right: none; 43*16e8b6e8SGreg Roach border-radius: var(--chart-line-radius) 0 0 var(--chart-line-radius); 44e759aebbSGreg Roach width: 25%; 45e759aebbSGreg Roach height: 50%; 46e759aebbSGreg Roach z-index: -1; 47e759aebbSGreg Roach} 48e759aebbSGreg Roach 49e759aebbSGreg Roach.wt-chart-pedigree-right .wt-generation-rev-2 > .wt-pedigree-lines { 50e759aebbSGreg Roach top: 12.5%; 51e759aebbSGreg Roach bottom: 12.5%; 52e759aebbSGreg Roach height: 75%; 53e759aebbSGreg Roach} 54e759aebbSGreg Roach 55e759aebbSGreg Roach/* Pedigree chart with oldest on the left */ 56e759aebbSGreg Roach.wt-chart-pedigree-left .wt-pedigree-lines { 57e759aebbSGreg Roach left: 0; 58e759aebbSGreg Roach top: 25%; 59e759aebbSGreg Roach bottom: 25%; 60e759aebbSGreg Roach border: var(--chart-line); 61e759aebbSGreg Roach border-left: none; 62*16e8b6e8SGreg Roach border-radius: 0 var(--chart-line-radius) var(--chart-line-radius) 0; 63e759aebbSGreg Roach width: 25%; 64e759aebbSGreg Roach height: 50%; 65e759aebbSGreg Roach z-index: -1; 66e759aebbSGreg Roach} 67e759aebbSGreg Roach 68e759aebbSGreg Roach.wt-chart-pedigree-left .wt-generation-rev-2 > .wt-pedigree-lines { 69e759aebbSGreg Roach top: 12.5%; 70e759aebbSGreg Roach bottom: 12.5%; 71e759aebbSGreg Roach height: 75%; 72e759aebbSGreg Roach} 73e759aebbSGreg Roach 74e759aebbSGreg Roach/* Pedigree chart with oldest at the bottom */ 75e759aebbSGreg Roach.wt-chart-pedigree-down { 76e759aebbSGreg Roach width: max-content; 77e759aebbSGreg Roach} 78e759aebbSGreg Roach 79e759aebbSGreg Roach.wt-chart-pedigree-down .wt-pedigree-lines { 80e759aebbSGreg Roach bottom: 0; 81e759aebbSGreg Roach left: 25%; 82e759aebbSGreg Roach right: 25%; 83e759aebbSGreg Roach border: var(--chart-line); 84e759aebbSGreg Roach border-bottom: none; 85*16e8b6e8SGreg Roach border-radius: var(--chart-line-radius) var(--chart-line-radius) 0 0; 86e759aebbSGreg Roach width: 50%; 87e759aebbSGreg Roach height: 25%; 88e759aebbSGreg Roach z-index: -1; 89e759aebbSGreg Roach} 90e759aebbSGreg Roach 91e759aebbSGreg Roach.wt-chart-pedigree-down .wt-generation-rev-2 > .wt-pedigree-lines { 92e759aebbSGreg Roach left: 12.5%; 93e759aebbSGreg Roach right: 12.5%; 94e759aebbSGreg Roach width: 75%; 95e759aebbSGreg Roach} 96e759aebbSGreg Roach 97e759aebbSGreg Roach/* Pedigree chart with oldest at the top */ 98e759aebbSGreg Roach.wt-chart-pedigree-up { 99e759aebbSGreg Roach width: max-content; 100e759aebbSGreg Roach} 101e759aebbSGreg Roach 102e759aebbSGreg Roach.wt-chart-pedigree-up .wt-pedigree-lines { 103e759aebbSGreg Roach top: 0; 104e759aebbSGreg Roach left: 25%; 105e759aebbSGreg Roach right: 25%; 106e759aebbSGreg Roach border: var(--chart-line); 107e759aebbSGreg Roach border-top: none; 108*16e8b6e8SGreg Roach border-radius: 0 0 var(--chart-line-radius) var(--chart-line-radius); 109e759aebbSGreg Roach width: 50%; 110e759aebbSGreg Roach height: 25%; 111e759aebbSGreg Roach z-index: -1; 112e759aebbSGreg Roach} 113e759aebbSGreg Roach 114e759aebbSGreg Roach.wt-chart-pedigree-up .wt-generation-rev-2 > .wt-pedigree-lines { 115e759aebbSGreg Roach left: 12.5%; 116e759aebbSGreg Roach right: 12.5%; 117e759aebbSGreg Roach width: 75%; 118e759aebbSGreg Roach} 119e759aebbSGreg Roach 120e759aebbSGreg Roach 121