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