xref: /webtrees/resources/css/_chart-pedigree.css (revision d11be7027e34e3121be11cc025421873364403f9)
1242a7862SGreg Roach/**
2242a7862SGreg Roach * webtrees: online genealogy
3*d11be702SGreg Roach * Copyright (C) 2023 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 */
21cb0eb4a9SGreg Roach.wt-chart-pedigree {
22cb0eb4a9SGreg Roach    overflow-y: auto;
23cb0eb4a9SGreg Roach}
24cb0eb4a9SGreg 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}
51e759aebbSGreg Roach
52e759aebbSGreg Roach.wt-chart-pedigree-right .wt-generation-rev-2 > .wt-pedigree-lines {
53e759aebbSGreg Roach    top: 12.5%;
54e759aebbSGreg Roach    bottom: 12.5%;
55e759aebbSGreg Roach    height: 75%;
56e759aebbSGreg Roach}
57e759aebbSGreg Roach
58e759aebbSGreg Roach/* Pedigree chart with oldest on the left */
59e759aebbSGreg Roach.wt-chart-pedigree-left .wt-pedigree-lines {
60e759aebbSGreg Roach    left: 0;
61e759aebbSGreg Roach    top: 25%;
62e759aebbSGreg Roach    bottom: 25%;
63e759aebbSGreg Roach    border: var(--chart-line);
64e759aebbSGreg Roach    border-left: none;
6516e8b6e8SGreg Roach    border-radius: 0 var(--chart-line-radius) var(--chart-line-radius) 0;
66e759aebbSGreg Roach    width: 25%;
67e759aebbSGreg Roach    height: 50%;
68e759aebbSGreg Roach}
69e759aebbSGreg Roach
70e759aebbSGreg Roach.wt-chart-pedigree-left .wt-generation-rev-2 > .wt-pedigree-lines {
71e759aebbSGreg Roach    top: 12.5%;
72e759aebbSGreg Roach    bottom: 12.5%;
73e759aebbSGreg Roach    height: 75%;
74e759aebbSGreg Roach}
75e759aebbSGreg Roach
76e759aebbSGreg Roach/* Pedigree chart with oldest at the bottom */
77e759aebbSGreg Roach.wt-chart-pedigree-down {
78e759aebbSGreg Roach    width: max-content;
79e759aebbSGreg Roach}
80e759aebbSGreg Roach
81e759aebbSGreg Roach.wt-chart-pedigree-down .wt-pedigree-lines {
82e759aebbSGreg Roach    bottom: 0;
83e759aebbSGreg Roach    left: 25%;
84e759aebbSGreg Roach    right: 25%;
85e759aebbSGreg Roach    border: var(--chart-line);
86e759aebbSGreg Roach    border-bottom: none;
8716e8b6e8SGreg Roach    border-radius: var(--chart-line-radius) var(--chart-line-radius) 0 0;
88e759aebbSGreg Roach    width: 50%;
89e759aebbSGreg Roach    height: 25%;
90e759aebbSGreg Roach}
91e759aebbSGreg Roach
92e759aebbSGreg Roach.wt-chart-pedigree-down .wt-generation-rev-2 > .wt-pedigree-lines {
93e759aebbSGreg Roach    left: 12.5%;
94e759aebbSGreg Roach    right: 12.5%;
95e759aebbSGreg Roach    width: 75%;
96e759aebbSGreg Roach}
97e759aebbSGreg Roach
98e759aebbSGreg Roach/* Pedigree chart with oldest at the top */
99e759aebbSGreg Roach.wt-chart-pedigree-up {
100e759aebbSGreg Roach    width: max-content;
101e759aebbSGreg Roach}
102e759aebbSGreg Roach
103e759aebbSGreg Roach.wt-chart-pedigree-up .wt-pedigree-lines {
104e759aebbSGreg Roach    top: 0;
105e759aebbSGreg Roach    left: 25%;
106e759aebbSGreg Roach    right: 25%;
107e759aebbSGreg Roach    border: var(--chart-line);
108e759aebbSGreg Roach    border-top: none;
10916e8b6e8SGreg Roach    border-radius: 0 0 var(--chart-line-radius) var(--chart-line-radius);
110e759aebbSGreg Roach    width: 50%;
111e759aebbSGreg Roach    height: 25%;
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