xref: /webtrees/resources/css/_charts.css (revision 16e8b6e8ad4a9bca8890e43190b3fd794421b003)
1*16e8b6e8SGreg Roach/**
2*16e8b6e8SGreg Roach * webtrees: online genealogy
3*16e8b6e8SGreg Roach * Copyright (C) 2019 webtrees development team
4*16e8b6e8SGreg Roach * This program is free software: you can redistribute it and/or modify
5*16e8b6e8SGreg Roach * it under the terms of the GNU General Public License as published by
6*16e8b6e8SGreg Roach * the Free Software Foundation, either version 3 of the License, or
7*16e8b6e8SGreg Roach * (at your option) any later version.
8*16e8b6e8SGreg Roach * This program is distributed in the hope that it will be useful,
9*16e8b6e8SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
10*16e8b6e8SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11*16e8b6e8SGreg Roach * GNU General Public License for more details.
12*16e8b6e8SGreg Roach * You should have received a copy of the GNU General Public License
13*16e8b6e8SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
14*16e8b6e8SGreg Roach */
15*16e8b6e8SGreg Roach
16*16e8b6e8SGreg Roach@import "_chart-ancestors.css";
17*16e8b6e8SGreg Roach@import "_chart-compact.css";
18*16e8b6e8SGreg Roach@import "_chart-descendants.css";
19*16e8b6e8SGreg Roach@import "_chart-family-book.css";
20*16e8b6e8SGreg Roach@import "_chart-fan.css";
21*16e8b6e8SGreg Roach@import "_chart-hourglass.css";
22*16e8b6e8SGreg Roach@import "_chart-interactive.css";
23*16e8b6e8SGreg Roach@import "_chart-lifespans.css";
24*16e8b6e8SGreg Roach@import "_chart-pedigree.css";
25*16e8b6e8SGreg Roach@import "_chart-pedigree-map.css";
26*16e8b6e8SGreg Roach@import "_chart-relationships.css";
27*16e8b6e8SGreg Roach@import "_chart-statistics.css";
28*16e8b6e8SGreg Roach@import "_chart-timeline.css";
29*16e8b6e8SGreg Roach
30*16e8b6e8SGreg Roach/* Lines for "vertical" charts, such as the ancestors and descendants chart. */
31*16e8b6e8SGreg Roach.wt-chart-vertical-indent {
32*16e8b6e8SGreg Roach	width: 3rem;
33*16e8b6e8SGreg Roach}
34*16e8b6e8SGreg Roach
35*16e8b6e8SGreg Roach.wt-chart-vertical-line {
36*16e8b6e8SGreg Roach	width: 50%;
37*16e8b6e8SGreg Roach	height: 100%;
38*16e8b6e8SGreg Roach	right: 0;
39*16e8b6e8SGreg Roach	border-left: var(--chart-line);
40*16e8b6e8SGreg Roach}
41*16e8b6e8SGreg Roach
42*16e8b6e8SGreg Roach.wt-chart-vertical-last-child-line {
43*16e8b6e8SGreg Roach	width: 50%;
44*16e8b6e8SGreg Roach	right: 0;
45*16e8b6e8SGreg Roach	height: 2.5rem;
46*16e8b6e8SGreg Roach	top: 0;
47*16e8b6e8SGreg Roach	border-left: var(--chart-line);
48*16e8b6e8SGreg Roach	border-bottom: var(--chart-line);
49*16e8b6e8SGreg Roach	border-radius: 0 0 0 var(--chart-line-radius);
50*16e8b6e8SGreg Roach}
51*16e8b6e8SGreg Roach
52*16e8b6e8SGreg Roach.wt-chart-vertical-child-line {
53*16e8b6e8SGreg Roach	width: 50%;
54*16e8b6e8SGreg Roach	right: 0;
55*16e8b6e8SGreg Roach	height: 2.5rem;
56*16e8b6e8SGreg Roach	top: 0;
57*16e8b6e8SGreg Roach	border-bottom: var(--chart-line);
58*16e8b6e8SGreg Roach}
59*16e8b6e8SGreg Roach
60*16e8b6e8SGreg Roach/* Lines for horizontal trees, such as the family page */
61*16e8b6e8SGreg Roach.wt-chart-horizontal-spacer {
62*16e8b6e8SGreg Roach	width: 1rem;
63*16e8b6e8SGreg Roach	height: 100%;
64*16e8b6e8SGreg Roach}
65*16e8b6e8SGreg Roach
66*16e8b6e8SGreg Roach.wt-chart-horizontal-line {
67*16e8b6e8SGreg Roach	height: 0;
68*16e8b6e8SGreg Roach	border-top: var(--chart-line);
69*16e8b6e8SGreg Roach}
70*16e8b6e8SGreg Roach
71*16e8b6e8SGreg Roach.wt-chart-horizontal-first-child {
72*16e8b6e8SGreg Roach	height: 50%;
73*16e8b6e8SGreg Roach	width: 100%;
74*16e8b6e8SGreg Roach	bottom: 0;
75*16e8b6e8SGreg Roach	border-top: var(--chart-line);
76*16e8b6e8SGreg Roach	border-right: var(--chart-line);
77*16e8b6e8SGreg Roach	border-radius: 0 var(--chart-line-radius) 0 0;
78*16e8b6e8SGreg Roach}
79*16e8b6e8SGreg Roach
80*16e8b6e8SGreg Roach.wt-chart-horizontal-middle-child {
81*16e8b6e8SGreg Roach	height: 100%;
82*16e8b6e8SGreg Roach	width: 100%;
83*16e8b6e8SGreg Roach	border-right: var(--chart-line);
84*16e8b6e8SGreg Roach}
85*16e8b6e8SGreg Roach
86*16e8b6e8SGreg Roach.wt-chart-horizontal-last-child {
87*16e8b6e8SGreg Roach	height: 50%;
88*16e8b6e8SGreg Roach	width: 100%;
89*16e8b6e8SGreg Roach	top: 0;
90*16e8b6e8SGreg Roach	border-bottom: var(--chart-line);
91*16e8b6e8SGreg Roach	border-right: var(--chart-line);
92*16e8b6e8SGreg Roach	border-radius: 0 0 var(--chart-line-radius) 0;
93*16e8b6e8SGreg Roach}
94*16e8b6e8SGreg Roach
95*16e8b6e8SGreg Roach.wt-chart-horizontal-first-parent {
96*16e8b6e8SGreg Roach	height: 50%;
97*16e8b6e8SGreg Roach	width: 100%;
98*16e8b6e8SGreg Roach	bottom: 0;
99*16e8b6e8SGreg Roach	border-top: var(--chart-line);
100*16e8b6e8SGreg Roach	border-left: var(--chart-line);
101*16e8b6e8SGreg Roach	border-radius: var(--chart-line-radius) 0 0 0;
102*16e8b6e8SGreg Roach}
103*16e8b6e8SGreg Roach
104*16e8b6e8SGreg Roach.wt-chart-horizontal-last-parent {
105*16e8b6e8SGreg Roach	height: 50%;
106*16e8b6e8SGreg Roach	width: 100%;
107*16e8b6e8SGreg Roach	top: 0;
108*16e8b6e8SGreg Roach	border-bottom: var(--chart-line);
109*16e8b6e8SGreg Roach	border-left: var(--chart-line);
110*16e8b6e8SGreg Roach	border-radius: 0 0 0 var(--chart-line-radius);
111*16e8b6e8SGreg Roach}
112*16e8b6e8SGreg Roach
113*16e8b6e8SGreg Roach/* Buttons to expand/collapse other parts of the chart */
114*16e8b6e8SGreg Roach.wt-chart-expansion-control > .chart-expand {
115*16e8b6e8SGreg Roach	display: none;
116*16e8b6e8SGreg Roach}
117*16e8b6e8SGreg Roach
118*16e8b6e8SGreg Roach.wt-chart-expansion-control > .chart-collapse {
119*16e8b6e8SGreg Roach	display: inline;
120*16e8b6e8SGreg Roach}
121*16e8b6e8SGreg Roach
122*16e8b6e8SGreg Roach.wt-chart-expansion-control.collapsed > .chart-expand {
123*16e8b6e8SGreg Roach	display: inline;
124*16e8b6e8SGreg Roach}
125*16e8b6e8SGreg Roach
126*16e8b6e8SGreg Roach.wt-chart-expansion-control.collapsed > .chart-collapse {
127*16e8b6e8SGreg Roach	display: none;
128*16e8b6e8SGreg Roach}
129*16e8b6e8SGreg Roach
130*16e8b6e8SGreg Roach
131