xref: /webtrees/resources/css/_charts.css (revision 7f9d794bdbb10f4d7948e254e9a9d2f980aeef71)
116e8b6e8SGreg Roach/**
216e8b6e8SGreg Roach * webtrees: online genealogy
316e8b6e8SGreg Roach * Copyright (C) 2019 webtrees development team
416e8b6e8SGreg Roach * This program is free software: you can redistribute it and/or modify
516e8b6e8SGreg Roach * it under the terms of the GNU General Public License as published by
616e8b6e8SGreg Roach * the Free Software Foundation, either version 3 of the License, or
716e8b6e8SGreg Roach * (at your option) any later version.
816e8b6e8SGreg Roach * This program is distributed in the hope that it will be useful,
916e8b6e8SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1016e8b6e8SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1116e8b6e8SGreg Roach * GNU General Public License for more details.
1216e8b6e8SGreg Roach * You should have received a copy of the GNU General Public License
1316e8b6e8SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>.
1416e8b6e8SGreg Roach */
1516e8b6e8SGreg Roach@import "_chart-ancestors.css";
1616e8b6e8SGreg Roach@import "_chart-compact.css";
1716e8b6e8SGreg Roach@import "_chart-descendants.css";
1816e8b6e8SGreg Roach@import "_chart-family-book.css";
1916e8b6e8SGreg Roach@import "_chart-fan.css";
2016e8b6e8SGreg Roach@import "_chart-hourglass.css";
2116e8b6e8SGreg Roach@import "_chart-interactive.css";
2216e8b6e8SGreg Roach@import "_chart-lifespans.css";
2316e8b6e8SGreg Roach@import "_chart-pedigree.css";
2416e8b6e8SGreg Roach@import "_chart-pedigree-map.css";
2516e8b6e8SGreg Roach@import "_chart-relationships.css";
2616e8b6e8SGreg Roach@import "_chart-statistics.css";
2716e8b6e8SGreg Roach@import "_chart-timeline.css";
2816e8b6e8SGreg Roach
2916e8b6e8SGreg Roach/* Lines for "vertical" charts, such as the ancestors and descendants chart. */
3016e8b6e8SGreg Roach.wt-chart-vertical-indent {
3116e8b6e8SGreg Roach    width: 3rem;
3216e8b6e8SGreg Roach}
3316e8b6e8SGreg Roach
3416e8b6e8SGreg Roach.wt-chart-vertical-line {
3516e8b6e8SGreg Roach    width: 50%;
3616e8b6e8SGreg Roach    height: 100%;
3716e8b6e8SGreg Roach    right: 0;
3816e8b6e8SGreg Roach    border-left: var(--chart-line);
3916e8b6e8SGreg Roach}
4016e8b6e8SGreg Roach
4116e8b6e8SGreg Roach.wt-chart-vertical-last-child-line {
4216e8b6e8SGreg Roach    width: 50%;
4316e8b6e8SGreg Roach    right: 0;
4416e8b6e8SGreg Roach    height: 2.5rem;
4516e8b6e8SGreg Roach    top: 0;
4616e8b6e8SGreg Roach    border-left: var(--chart-line);
4716e8b6e8SGreg Roach    border-bottom: var(--chart-line);
4816e8b6e8SGreg Roach    border-radius: 0 0 0 var(--chart-line-radius);
4916e8b6e8SGreg Roach}
5016e8b6e8SGreg Roach
5116e8b6e8SGreg Roach.wt-chart-vertical-child-line {
5216e8b6e8SGreg Roach    width: 50%;
5316e8b6e8SGreg Roach    right: 0;
5416e8b6e8SGreg Roach    height: 2.5rem;
5516e8b6e8SGreg Roach    top: 0;
5616e8b6e8SGreg Roach    border-bottom: var(--chart-line);
5716e8b6e8SGreg Roach}
5816e8b6e8SGreg Roach
5916e8b6e8SGreg Roach/* Lines for horizontal trees, such as the family page */
6016e8b6e8SGreg Roach.wt-chart-horizontal-spacer {
6116e8b6e8SGreg Roach    width: 1rem;
6216e8b6e8SGreg Roach}
6316e8b6e8SGreg Roach
6416e8b6e8SGreg Roach.wt-chart-horizontal-line {
65b7765f6bSGreg Roach    width: 1rem;
6617dd427eSGreg Roach    height: 50%;
6717dd427eSGreg Roach    border-bottom: var(--chart-line);
6816e8b6e8SGreg Roach}
6916e8b6e8SGreg Roach
7016e8b6e8SGreg Roach.wt-chart-horizontal-first-child {
7116e8b6e8SGreg Roach    height: 50%;
7217dd427eSGreg Roach    position: relative;
7317dd427eSGreg Roach    top: 50%;
7416e8b6e8SGreg Roach    border-top: var(--chart-line);
7516e8b6e8SGreg Roach    border-right: var(--chart-line);
7616e8b6e8SGreg Roach    border-radius: 0 var(--chart-line-radius) 0 0;
7716e8b6e8SGreg Roach}
7816e8b6e8SGreg Roach
7916e8b6e8SGreg Roach.wt-chart-horizontal-middle-child {
8016e8b6e8SGreg Roach    height: 100%;
8116e8b6e8SGreg Roach    border-right: var(--chart-line);
8216e8b6e8SGreg Roach}
8316e8b6e8SGreg Roach
8416e8b6e8SGreg Roach.wt-chart-horizontal-last-child {
8516e8b6e8SGreg Roach    height: 50%;
8616e8b6e8SGreg Roach    border-bottom: var(--chart-line);
8716e8b6e8SGreg Roach    border-right: var(--chart-line);
8816e8b6e8SGreg Roach    border-radius: 0 0 var(--chart-line-radius) 0;
8916e8b6e8SGreg Roach}
9016e8b6e8SGreg Roach
9116e8b6e8SGreg Roach.wt-chart-horizontal-first-parent {
9216e8b6e8SGreg Roach    height: 50%;
9317dd427eSGreg Roach    position: relative;
9417dd427eSGreg Roach    top: 50%;
9516e8b6e8SGreg Roach    border-top: var(--chart-line);
9616e8b6e8SGreg Roach    border-left: var(--chart-line);
9716e8b6e8SGreg Roach    border-radius: var(--chart-line-radius) 0 0 0;
9816e8b6e8SGreg Roach}
9916e8b6e8SGreg Roach
10016e8b6e8SGreg Roach.wt-chart-horizontal-last-parent {
10116e8b6e8SGreg Roach    height: 50%;
10216e8b6e8SGreg Roach    border-bottom: var(--chart-line);
10316e8b6e8SGreg Roach    border-left: var(--chart-line);
10416e8b6e8SGreg Roach    border-radius: 0 0 0 var(--chart-line-radius);
10516e8b6e8SGreg Roach}
10616e8b6e8SGreg Roach
10716e8b6e8SGreg Roach/* Buttons to expand/collapse other parts of the chart */
10816e8b6e8SGreg Roach.wt-chart-expansion-control > .chart-expand {
10916e8b6e8SGreg Roach    display: none;
11016e8b6e8SGreg Roach}
11116e8b6e8SGreg Roach
11216e8b6e8SGreg Roach.wt-chart-expansion-control > .chart-collapse {
11316e8b6e8SGreg Roach    display: inline;
11416e8b6e8SGreg Roach}
11516e8b6e8SGreg Roach
11616e8b6e8SGreg Roach.wt-chart-expansion-control.collapsed > .chart-expand {
11716e8b6e8SGreg Roach    display: inline;
11816e8b6e8SGreg Roach}
11916e8b6e8SGreg Roach
12016e8b6e8SGreg Roach.wt-chart-expansion-control.collapsed > .chart-collapse {
12116e8b6e8SGreg Roach    display: none;
12216e8b6e8SGreg Roach}
12316e8b6e8SGreg Roach
124*7f9d794bSGreg Roach.wt-chart-box-name {
125*7f9d794bSGreg Roach    font-weight: bold;
126*7f9d794bSGreg Roach}
127