xref: /webtrees/resources/css/webtrees.css (revision 08b5db2af7b56fafdef6563369bf89966bc0e451)
1/**
2 * webtrees: online genealogy
3 * Copyright (C) 2020 webtrees development team
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16/* The webtrees theme */
17@import "_base.css";
18
19/* Colors for chart boxes, etc. */
20:root {
21    --sex-f-fg: #ff2080;
22    --sex-m-fg: #81a9cb;
23    --sex-u-fg: #81a9cb;
24    --sex-f-bg: #e9daf1;
25    --sex-m-bg: #edf7fd;
26    --sex-u-bg: #ffffff;
27    --chart-line: solid gray thin;
28    --chart-line-radius: 1rem;
29}
30
31/* Override Bootstrap formatting */
32.btn-link {
33    padding-left: 0.25rem;
34    padding-right: 0.25rem;
35}
36
37.table-given-name {
38    overflow-x: hidden;
39}
40
41.container-fluid {
42    padding-left: 5px;
43    padding-right: 5px;
44}
45
46table {
47    border-collapse: separate;
48}
49
50/*
51 * Pages have the following high-level structure:
52 *
53 * wt-global wt-theme-<THEME> wt-route-<ROUTE>
54 * +---wt-header-wrapper
55 * |   +---wt-header-container
56 * |       +---wt-header-content
57 * |           +---wt-accessibility-links
58 * |           +---wt-site-logo
59 * |           +---wt-site-title
60 * |           +---wt-header-search
61 * |           |   +---wt-header-search-form
62 * |           |       +---wt-header-search-field
63 * |           |       +---wt-header-search-button
64 * |           +---wt-secondary-navigation
65 * |           |   +---wt-user-menu
66 * |           +---wt-primary-navigation
67 * |               +---wt-genealogy-menu
68 * +---wt-main-wrapper
69 * |   +---wt-main-container
70 * |       +---wt-main-content
71 * |           +---wt-messages
72 * |           +---wt-page-title
73 * |           +---wt-page-options wt-page-options-xxxxx
74 * |           +---wt-page-content
75 * +---wt-footers
76 *     +---wt-footer wt-footer-xxxxx
77 */
78
79.wt-global {
80    color: #555;
81}
82
83.wt-header-wrapper {
84}
85
86.wt-header-container {
87}
88
89.wt-header-content {
90}
91
92.wt-accessibility-links {
93}
94
95.wt-site-logo {
96    order: 1;
97    flex: 0 0 272px;
98}
99
100.wt-site-logo:after {
101    height: 50px;
102    width: 242px;
103    content: url(webtrees/images/webtrees.png);
104}
105
106.wt-site-title {
107    order: 3;
108    flex: 0 0 calc(100% - 15rem);
109    font-size: 1.5rem;
110    font-weight: normal;
111}
112
113.wt-header-search {
114    order: 4;
115    flex: 0 0 15rem;
116    position: relative;
117    top: -0.75rem;
118}
119
120.wt-header-search-form {
121}
122
123.wt-header-search-field {
124}
125
126.wt-header-search-button {
127}
128
129.wt-secondary-navigation {
130    order: 2;
131    flex: 1 0 auto;
132    width: auto;
133    white-space: nowrap;
134    margin-bottom: 15px;
135}
136
137.wt-user-menu {
138    flex-wrap: nowrap;
139    justify-content: flex-end;
140}
141
142.wt-user-menu .nav-link {
143    display: inline-block;
144    padding: 0.5rem;
145}
146
147.wt-user-menu .nav-item + .nav-item::before {
148    content: "|";
149}
150
151.wt-user-menu .dropdown-toggle::after {
152    display: none;
153}
154
155.wt-primary-navigation {
156    order: 5;
157    /* Extend to full page width */
158    flex: 0 0 100vw;
159    max-width: 100vw;
160    /* Recalculate margins for content */
161    margin: 0 calc(50% - 50vw);
162    padding: 0 calc(50vw - 50%);
163    border-bottom: 2px solid #81a9cb;
164    border-top: 2px solid #81a9cb;
165}
166
167.wt-genealogy-menu {
168    justify-content: center;
169}
170
171.wt-genealogy-menu .nav-item {
172    text-align: center;
173    min-width: 5rem;
174}
175
176.wt-genealogy-menu .nav-link::before {
177    display: block;
178}
179
180.wt-genealogy-menu .dropdown-toggle::after {
181    display: none;
182}
183
184.wt-genealogy-menu .dropdown-menu {
185    border-radius: 0;
186    border: thin solid #aaa;
187}
188
189.wt-genealogy-menu .dropdown-item {
190    /* Space between icons and align with submenu icons */
191    padding: 0 5px 0 0;
192    line-height: 1.0;
193}
194
195.wt-genealogy-menu .dropdown-item::before {
196    vertical-align: text-top;
197    line-height: 2.4;
198    padding: 0 .25rem;
199}
200
201.menu-tree .nav-link::before {
202    content: url(webtrees/menu/tree.png);
203}
204
205.menu-tree .dropdown-item::before {
206    content: url(webtrees/menu/tree-tree.png);
207}
208
209.menu-chart .nav-link::before {
210    content: url(webtrees/menu/chart.png);
211}
212
213.menu-chart-ancestry::before {
214    content: url(webtrees/menu/chart-ancestors.png);
215}
216
217.menu-chart-compact::before {
218    content: url(webtrees/menu/chart-compact.png);
219}
220
221.menu-chart-descendants::before {
222    content: url(webtrees/menu/chart-descendants.png);
223}
224
225.menu-chart-familybook::before {
226    content: url(webtrees/menu/chart-family-book.png);
227}
228
229.menu-chart-fanchart::before {
230    content: url(webtrees/menu/chart-fanchart.png);
231}
232
233.menu-chart-hourglass::before {
234    content: url(webtrees/menu/chart-hourglass.png);
235}
236
237.menu-chart-lifespan::before {
238    content: url(webtrees/menu/chart-lifespan.png);
239}
240
241.menu-chart-pedigree::before {
242    content: url(webtrees/menu/chart-pedigree.png);
243}
244
245.menu-chart-pedigreemap::before {
246    content: url(webtrees/menu/chart-pedigree-map.png);
247}
248
249.menu-chart-relationship::before {
250    content: url(webtrees/menu/chart-relationship.png);
251}
252
253.menu-chart-statistics::before {
254    content: url(webtrees/menu/chart-statistics.png);
255}
256
257.menu-chart-timeline::before {
258    content: url(webtrees/menu/chart-timeline.png);
259}
260
261.menu-chart-tree::before {
262    content: url(webtrees/menu/chart-tree.png);
263}
264
265.menu-list .nav-link::before {
266    content: url(webtrees/menu/list.png);
267}
268
269.menu-branches::before {
270    content: url(webtrees/menu/branches.png);
271}
272
273.menu-list-fam::before {
274    content: url(webtrees/menu/list-fam.png);
275}
276
277.menu-list-indi::before {
278    content: url(webtrees/menu/list-indi.png);
279}
280
281.menu-list-loc::before {
282    content: url(webtrees/menu/list-plac.png);
283}
284
285.menu-list-note::before {
286    content: url(webtrees/menu/list-note.png);
287}
288
289.menu-list-obje::before {
290    content: url(webtrees/menu/list-obje.png);
291}
292
293.menu-list-plac::before {
294    content: url(webtrees/menu/list-plac.png);
295}
296
297.menu-list-repo::before {
298    content: url(webtrees/menu/list-repo.png);
299}
300
301.menu-list-sour::before {
302    content: url(webtrees/menu/list-sour.png);
303}
304
305.menu-list-subm::before {
306    content: url(webtrees/menu/list-indi.png);
307}
308
309.menu-calendar .nav-link::before {
310    content: url(webtrees/menu/calendar.png);
311}
312
313.menu-calendar-day::before {
314    content: url(webtrees/menu/calendar-calendar.png);
315}
316
317.menu-calendar-month::before {
318    content: url(webtrees/menu/calendar-calendar.png);
319}
320
321.menu-calendar-year::before {
322    content: url(webtrees/menu/calendar-calendar.png);
323}
324
325.menu-report .nav-link::before {
326    content: url(webtrees/menu/report.png);
327}
328
329.menu-report .dropdown-item::before {
330    content: url(webtrees/menu/report-report.png);
331}
332
333.menu-search .nav-link::before {
334    content: url(webtrees/menu/search.png);
335}
336
337.menu-search .dropdown-item::before {
338    content: url(webtrees/menu/search-search.png);
339}
340
341.menu-faq .nav-link::before {
342    content: url(webtrees/menu/faq.png);
343}
344
345.menu-clippings .nav-link::before {
346    content: url(webtrees/menu/clippings.png);
347}
348
349.menu-clippings-add::before {
350    content: url(webtrees/menu/clippings-add.png);
351}
352
353.menu-clippings-cart::before {
354    content: url(webtrees/menu/clippings-cart.png);
355}
356
357.menu-clippings-download::before {
358    content: url(webtrees/menu/edit-preferences.png);
359}
360
361.menu-clippings-empty::before {
362    content: url(webtrees/menu/edit-delete.png);
363}
364
365.menu-story .nav-link::before {
366    content: url(webtrees/menu/story.png);
367}
368
369.wt-main-container {
370    /* Space between the header/footer and the main content. */
371    padding-top: 1rem;
372    padding-bottom: 1rem;
373}
374
375.wt-main {
376}
377
378.wt-messages {
379}
380
381.wt-page-title {
382    color: #006;
383    font-size: 1.5rem;
384    font-weight: bold;
385    text-align: center;
386}
387
388.wt-page-options {
389}
390
391.wt-page-content {
392}
393
394.wt-page-options .form-group {
395    margin-bottom: 2px;
396}
397
398.wt-page-options-label {
399    color: #fff;
400    background-color: #81a9cb;
401    font-weight: bold;
402    border-left: 2px solid transparent;
403    border-right: 2px solid transparent;
404}
405
406.wt-page-options-value {
407    background-color: #edf7f9;
408    border: solid #81a9cb 1px;
409    padding: 0.25rem 0.75rem;
410}
411
412.wt-page-content {
413    margin-top: 1rem;
414}
415
416.wt-footers {
417}
418
419.wt-footer {
420}
421
422.wt-footer-contact {
423}
424
425.wt-footer-cookies {
426    background: #aaa;
427    color: #fff;
428    transition: height 0.5s;
429}
430
431.wt-footer-page-views {
432}
433
434.wt-footer-powered-by {
435}
436
437.wt-footer-powered-by-webtrees {
438    width: 100px;
439    height: 21px;
440    content: url(images/powered-by-webtrees.png);
441}
442
443/*
444 * The tree/user home pages
445 *
446 * wt-home-page / wt-user-page
447 * +---wt-main-blocks
448 * |   +---wt-block, wt-block-AAA
449 * |   +---wt-block, wt-block-BBB
450 * |   +---wt-block, wt-block-CCC
451 * +---wt-side-blocks
452 *     +---wt-block, wt-block-XXX
453 *     +---wt-block, wt-block-YYY
454 *     +---wt-block, wt-block-ZZZ
455 *
456 * Each block as the structure
457 * wt-block, wt-block-XXX
458 * +---wt-block-header, wt-block-header-XXX
459 * +---wt-block-content, wt-block-content-XXX
460 */
461
462.wt-block {
463    background-color: #edf7fd;
464    border: solid #81a9cb 1px;
465}
466
467.wt-block-header {
468    background-color: #edf7fd;
469    border-bottom: none;
470    font-weight: bold;
471}
472
473.wt-block-content {
474}
475
476.wt-block-content .list_table {
477    border-spacing: 1px;
478    border: solid #81a9cb 1px;
479    border-right: 0;
480}
481
482.wt-block-content .list_value,
483.wt-block-content .list_value_wrap {
484    border: 0;
485    border-top: solid #81a9cb 1px;
486    border-right: solid #81a9cb 1px;
487}
488
489/*
490 * The individual page.
491 *
492 * wt-route-individual
493 * +---wt-header-wrapper
494 */
495
496.wt-individual-silhouette {
497    content: url(images/individual-silhouette-unknown.png);
498}
499
500.wt-individual-silhouette-f {
501    content: url(images/individual-silhouette-female.png);
502}
503
504.wt-individual-silhouette-m {
505    content: url(images/individual-silhouette-male.png);
506}
507
508/*
509 * Chart-boxes are used to build the various charts.
510 * Each type of chart will set its own size and hide/show content.
511 *
512 * wt-chart-box
513 * +--- wt-chart-box-thumbnail
514 * +--- wt-chart-box-extra
515 *      +--- wt-chart-box-zoom
516 *           +--- wt-chart-box-icon
517 *           +--- wt-chart-box-dropdown wt-chart-box-zoom-dropdown
518 *      +--- wt-chart-box-links
519 *           +--- wt-chart-box-icon
520 *           +--- wt-chart-box-dropdown wt-chart-box-links-dropdown
521 * +--- wt-chart-box-name
522 * +--- wt-chart-box-lifespan
523 * +--- wt-chart-box-facts
524 *     +--- wt-chart-box-fact
525 */
526.wt-chart-box,
527.wt-chart-box-menu {
528    background: var(--sex-u-bg);
529    border: dashed var(--sex-u-fg) thin;
530}
531
532.wt-chart-box {
533    height: 5rem;
534    padding: 2px;
535    line-height: 1.1;
536}
537
538.wt-chart-box-f,
539.wt-chart-box-f .wt-chart-box-dropdown {
540    background: var(--sex-f-bg);
541    border: solid var(--sex-f-fg) thin;
542}
543
544.wt-chart-box-m,
545.wt-chart-box-m .wt-chart-box-dropdown {
546    background: var(--sex-m-bg);
547    border: solid var(--sex-m-fg) thin;
548}
549
550a {
551    color: #555;
552    text-decoration: none;
553}
554
555a:hover {
556    color: #f00;
557    text-decoration: none;
558}
559
560:focus {
561    outline-style: none;
562}
563
564.flash-messages {
565    clear: both;
566    text-align: center;
567}
568
569img {
570    border: 0;
571}
572
573legend img {
574    height: 20px;
575    vertical-align: middle;
576    width: 20px;
577}
578
579img.block {
580    border: 0;
581    height: 25px;
582    vertical-align: middle;
583}
584
585.topbottombar {
586    background-color: #81a9cb;
587    color: #fff;
588    font-weight: bold;
589    padding: 4px;
590    text-align: center;
591}
592
593.button {
594    width: 60px;
595}
596
597.alpha_index {
598    color: #999;
599}
600
601.news_box:target,
602#gedcom_stats:target {
603    background-color: #ffc;
604}
605
606/* families tab person box */
607table.center {
608    margin-left: auto;
609    margin-right: auto;
610}
611
612.list_table {
613    margin: 0 auto;
614}
615
616.list_label,
617.list_label_wrap {
618    color: #fff;
619    background-color: #81a9cb;
620    font-weight: bold;
621    text-align: center;
622}
623
624.list_value,
625.list_value_wrap {
626    background-color: #edf7f9;
627    border: solid #81a9cb 1px;
628    vertical-align: top;
629    padding: 4px;
630}
631
632.list_label,
633.list_value {
634    white-space: nowrap;
635}
636
637.list_label_wrap,
638.list_value_wrap {
639    white-space: normal;
640}
641
642div.fact_SHARED_NOTE {
643    clear: both;
644}
645
646/* Table of genealogical facts */
647.wt-facts-table caption {
648    caption-side: top;
649}
650
651.wt-facts-table th {
652    background-color: #81a9cb;
653    border: solid #81a9cb 1px;
654    text-align: center;
655    font-weight: normal;
656    min-width: 20%;
657}
658
659.wt-facts-table td {
660    background-color: #edf7fd;
661    border: solid #81a9cb 1px;
662}
663
664.wt-facts-table .wt-gender-M td {
665    background-color: #edf7fd;
666    border-color: #81a9cb;
667}
668
669.wt-facts-table .wt-gender-F td {
670    background-color: #e9daf1;
671    border-color: #ff2080;
672}
673
674.name1 {
675    font-weight: bold;
676    font-size: 12px;
677}
678
679.name2 {
680    font-size: 16px;
681}
682
683a:hover .name1, a:hover .name2 {
684    color: #f00;
685    font-weight: bold;
686    font-size: 12px;
687}
688
689.details_label {
690    font-weight: bold;
691}
692
693.date {
694    color: #337;
695}
696
697.label {
698    font-weight: bold;
699}
700
701.error {
702    color: #d00;
703    font-weight: bold;
704}
705
706.largeError {
707    color: #d00;
708    font-size: large;
709    font-weight: bold;
710}
711
712.warning {
713    color: #f00;
714    font-weight: bold;
715}
716
717.indent {
718    padding-left: 20px;
719}
720
721.thumbnail {
722    height: auto;
723    padding: 3px;
724}
725
726.icon {
727    border: 0;
728    padding: 0 5px;
729}
730
731.subheaders {
732    font-weight: bold;
733    font-size: 15px;
734    margin-top: 15px;
735    vertical-align: bottom;
736}
737
738.parentdeath {
739    border: thin solid #888;
740    padding: 1px;
741}
742
743.selected-option {
744    background-color: #edf7fd;
745}
746
747.border1 {
748    border: solid #000 1px;
749}
750
751.journal_box {
752    padding: 3pt;
753    border: thin solid #aaa;
754    overflow: visible;
755}
756
757.news_box {
758    background-color: #edf7fd;
759    border-top: solid #81a9cb 1px;
760}
761
762.news_title {
763    font-weight: bold;
764}
765
766.news_date {
767    margin-bottom: 12px;
768}
769
770.current_day {
771    font-weight: bold;
772    font-size: 16px;
773}
774
775.cal_day {
776    font-weight: bold;
777}
778
779.rtl_cal_day {
780    color: #00f;
781    font-weight: bold;
782}
783
784#user-page h1 {
785    margin: 0.25em auto 0.6em;
786}
787
788.tvertline {
789    vertical-align: bottom;
790}
791
792#childbox {
793    padding: 5px;
794    position: absolute;
795    display: none;
796    text-align: start;
797    white-space: nowrap;
798    top: 20px;
799    left: 0;
800}
801
802.layout3 #childbox {
803    top: auto;
804    bottom: 20px;
805}
806
807#childbox a.name1 {
808    display: block;
809    margin-left: 5px;
810}
811
812.person0 {
813    background-color: #aaf;
814    border: outset #aaf 1px;
815    vertical-align: top;
816}
817
818.person1 {
819    background-color: #afa;
820    border: outset #afa 1px;
821    vertical-align: top;
822}
823
824.person2 {
825    background-color: #faa;
826    border: outset #faa 1px;
827    vertical-align: top;
828}
829
830.person3 {
831    background-color: #55f;
832    border: outset #55f 1px;
833    vertical-align: top;
834}
835
836.person4 {
837    background-color: #f55;
838    border: outset #f55 1px;
839    vertical-align: top;
840}
841
842.person5 {
843    background-color: #5f5;
844    border: outset #5f5 1px;
845    vertical-align: top;
846}
847
848.starredname {
849    text-decoration: underline;
850}
851
852.search_hit {
853    background-color: #ff0;
854}
855
856.descriptionbox {
857    color: #fff;
858    font-size: 12px;
859    background-color: #81a9cb;
860    border: solid #81a9cb 1px;
861    vertical-align: top;
862    padding: 3px;
863}
864
865.optionbox {
866    background-color: #d1d9ef;
867    font-size: 1rem;
868    border: solid #81a9cb 1px;
869    vertical-align: top;
870    white-space: nowrap;
871    padding: 3px;
872}
873
874.red {
875    color: #f00;
876}
877
878.wt-relation-fact,
879.wt-historic-fact {
880    opacity: 0.8;
881}
882
883.messagebox {
884    background-color: #c2ceef;
885    border: solid #81a9cb 1px;
886}
887
888/* ---Pending edits--- */
889.wt-new {
890    outline: solid blue 1px;
891}
892
893.wt-old {
894    outline: solid red 1px;
895}
896
897.tag_cloud {
898    text-align: center;
899}
900
901.tag_cloud a {
902    white-space: nowrap;
903}
904
905.nowrap {
906    white-space: nowrap;
907}
908
909.wrap {
910    white-space: normal;
911}
912
913.statistics-page {
914    text-align: center;
915}
916
917.gchart {
918    border: solid #81a9cb 1px;
919}
920
921#facts_content dd {
922    float: left;
923    width: 70%;
924}
925
926td.descriptionbox a {
927    color: #fff;
928}
929
930/* this keeps the tag color the same when it is a link as when not */
931
932.place {
933    padding-top: 5px;
934}
935
936.filtersH,
937.filtersF {
938    margin: 4px;
939}
940
941.filtersH img {
942    margin-bottom: 2px;
943}
944
945.list-charts {
946    text-align: center;
947}
948
949#place-hierarchy h2,
950#place-hierarchy h4 {
951    text-align: center;
952}
953
954/* ==== FAQ table styles ===== */
955table.faq {
956    background-color: #e0e0e0;
957    margin: 5px 0 50px 5px;
958    width: 98%;
959}
960
961table.faq tr:nth-child(odd) td {
962    background-color: #e7eef3;
963}
964
965div.faq_title {
966    background-color: #e0e0e0;
967    margin: 1em 0;
968    padding: .25em;
969    font-weight: bold;
970    width: 98%;
971}
972
973div.faq_body {
974    clear: both;
975    padding: 0 1em;
976}
977
978.faq_top {
979    float: right;
980}
981
982/* === Positioning edit, copy, delete links === */
983/* General use */
984.editfacts {
985    clear: left;
986    padding-top: 15px;
987}
988
989#indi_note {
990    margin: 0 0 5px;
991}
992
993.indi_table {
994    clear: left;
995}
996
997#indi_note .fact_NOTE {
998    float: left;
999    margin: 0 5px 0 0;
1000}
1001
1002#indi_note .fact_SOUR {
1003    margin: 3px 0;
1004}
1005
1006#indi_note .fact_SOUR a {
1007    font-size: 100%;
1008}
1009
1010#indi_note .fact_NOTE,
1011#indi_note .fact_SOUR {
1012    clear: both;
1013}
1014
1015.odometer {
1016    font-family: courier, monospace;
1017    font-weight: bold;
1018    background: #000;
1019    color: #fff;
1020}
1021
1022/* Sidebar - Family navigator */
1023.wt-family-navigator-dropdown {
1024    background: #edf7fd;
1025}
1026
1027.wt-family-navigator-dropdown-heading {
1028    font-weight: bold;
1029    font-size: inherit;
1030    color: inherit;
1031}
1032
1033/* Sidebar - Descendants */
1034#sb_content_descendancy {
1035    margin-top: 5px;
1036}
1037
1038#sb_desc_content {
1039    margin-left: 3px;
1040    font-size: 0.8em;
1041}
1042
1043#sb_desc_content ul {
1044    padding: 0;
1045    margin: 0;
1046}
1047
1048.sb_desc_indi_li {
1049    list-style-type: none;
1050}
1051
1052/* Individuals and Families */
1053#sidebar-content-individuals,
1054#sidebar-content-families {
1055    margin-top: 5px;
1056}
1057
1058.sb_indi_surname_li,
1059.sb_fam_surname_li {
1060    list-style-image: url(icons/plus.png);
1061}
1062
1063.name_tree_div ul {
1064    padding: 0;
1065    margin: 0;
1066}
1067
1068.name_tree_div li {
1069    list-style: none;
1070    margin: 0;
1071    padding: 0;
1072}
1073
1074/* Clippings */
1075#sb_clippings_content ul {
1076    padding: 0;
1077    margin: 0;
1078}
1079
1080#sb_clippings_content li {
1081    list-style: none;
1082    margin: 0;
1083    padding: 0;
1084    white-space: nowrap;
1085}
1086
1087/* Stories module */
1088.story_title {
1089    padding-top: 12px;
1090    font-size: 13px;
1091    height: 32px;
1092    font-weight: bold;
1093}
1094
1095.story_body {
1096    padding: 20px;
1097    white-space: normal;
1098}
1099
1100.story_edit {
1101    padding: 12px;
1102}
1103
1104/*-- Fan chart ---- */
1105.fan_chart_menu {
1106    background: #fff;
1107    position: absolute;
1108    display: none;
1109    z-index: 100;
1110}
1111
1112#fan_chart ul {
1113    list-style-type: none;
1114    margin: 0;
1115}
1116
1117/* Lifespans chart */
1118.wt-lifespans-subtitle {
1119    text-align: center;
1120}
1121
1122.wt-lifespans-scale {
1123    white-space: nowrap;
1124}
1125
1126.wt-lifespans-decade {
1127    width: 70px;
1128    height: 60px;
1129    display: inline-block;
1130    background-image: url(images/lifespan-decade.png);
1131    background-position-y: bottom;
1132    background-repeat: no-repeat;
1133    background-size: 70px 37px;
1134}
1135
1136.wt-lifespans-individuals {
1137    background: #fafafa;
1138}
1139
1140.wt-lifespans-individual {
1141
1142}
1143
1144.wt-lifespans-summary {
1145    background: #ffffff;
1146    border: thin solid #000;
1147    z-index: 1;
1148}
1149
1150.wt-lifespans-summary-link {
1151    font-weight: bold;
1152}
1153
1154/*-- timeline  --*/
1155#timeline_chart {
1156    position: relative;
1157    top: 0;
1158    left: 0;
1159}
1160
1161/*
1162 * Any element that is loaded dynamically has the class wt-ajax-load.
1163 * We can provide a "loading" placeholder for empty elements with this class.
1164 */
1165.wt-ajax-load:empty {
1166    height: 32px;
1167    background: url(images/loading-32x32.gif) no-repeat 50% 50%;
1168}
1169
1170/*
1171 * Default icons are provided by FontAwesome.
1172 */
1173.wt-icon-anniversary {
1174    content: url(icons/anniversary.png);
1175}
1176
1177.wt-icon-arrow-down {
1178    content: url(webtrees/icons/arrow-down.png);
1179}
1180
1181a > .wt-icon-arrow-down:hover {
1182    content: url(webtrees/icons/arrow-down-hover.png);
1183}
1184
1185.wt-icon-arrow-left {
1186    content: url(webtrees/icons/arrow-left.png);
1187}
1188
1189a > .wt-icon-arrow-left:hover {
1190    content: url(webtrees/icons/arrow-left-hover.png);
1191}
1192
1193.wt-icon-arrow-right {
1194    content: url(webtrees/icons/arrow-right.png);
1195}
1196
1197a > .wt-icon-arrow-right:hover {
1198    content: url(webtrees/icons/arrow-right-hover.png);
1199}
1200
1201.wt-icon-arrow-up {
1202    content: url(webtrees/icons/arrow-up.png);
1203}
1204
1205a > .wt-icon-arrow-up:hover {
1206    content: url(webtrees/icons/arrow-up-hover.png);
1207}
1208
1209.wt-icon-bing-maps {
1210    content: url(icons/bing-maps.png);
1211}
1212
1213.wt-icon-calendar {
1214    content: url(icons/calendar.png)
1215}
1216
1217.wt-icon-collapse {
1218}
1219
1220.wt-icon-coordinates {
1221    content: url(icons/coordinates.png)
1222}
1223
1224.wt-icon-copy {
1225    content: url(icons/copy.png)
1226}
1227
1228.wt-icon-delete {
1229    content: url(icons/delete.png);
1230}
1231
1232.wt-icon-edit {
1233    content: url(icons/edit.png);
1234}
1235
1236.wt-icon-expand {
1237}
1238
1239.wt-icon-family {
1240    content: url(icons/family.png);
1241}
1242
1243.wt-icon-google-maps {
1244    content: url(icons/google-maps.png);
1245}
1246
1247.wt-icon-help {
1248    content: url(webtrees/icons/help.png);
1249}
1250
1251.wt-icon-individual {
1252    content: url(icons/individual.png);
1253}
1254
1255.wt-icon-keyboard {
1256    content: url(icons/keyboard.png);
1257}
1258
1259.wt-icon-media {
1260    content: url(icons/media.png);
1261}
1262
1263.wt-icon-note {
1264    content: url(icons/note.png);
1265}
1266
1267.wt-icon-openstreetmap {
1268    content: url(icons/openstreetmap.png);
1269}
1270
1271.wt-icon-preferences {
1272    content: url(webtrees/icons/preferences.png);
1273}
1274
1275.wt-icon-reorder {
1276    content: url(icons/reorder.png);
1277}
1278
1279.wt-icon-repository {
1280    content: url(icons/repository.png);
1281}
1282
1283.wt-icon-sex {
1284    height: 1em;
1285}
1286
1287.wt-icon-sex-f {
1288    content: url(icons/sex-female.png);
1289}
1290
1291.wt-icon-sex-m {
1292    content: url(icons/sex-male.png);
1293}
1294
1295.wt-icon-sex-u {
1296    content: url(icons/sex-unknown.png);
1297}
1298
1299.wt-icon-sex-x {
1300    content: url(icons/sex-unknown.png);
1301}
1302
1303.wt-icon-source {
1304    content: url(icons/source.png);
1305}
1306
1307.wt-icon-submitter {
1308    content: url(icons/individual.png);
1309}
1310
1311.wt-icon-warning {
1312    content: url(icons/warning.png);
1313}
1314
1315.wt-icon-zoom-in {
1316    content: url(webtrees/icons/zoom-in.png);
1317}
1318
1319.wt-icon-zoom-out {
1320    content: url(webtrees/icons/zoom-out.png);
1321}
1322
1323/* Miscellaneous images */
1324.icon-cfamily {
1325    content: url(webtrees/images/family.png);
1326}
1327
1328.icon-childless {
1329    content: url(images/childless.png);
1330}
1331
1332.icon-children {
1333    content: url(images/children.png);
1334}
1335
1336.icon-edit_indi {
1337    content: url(webtrees/images/edit_indi.png);
1338}
1339
1340.icon-fam-list {
1341    content: url(webtrees/images/family.png);
1342}
1343
1344.icon-indi-list {
1345    content: url(webtrees/images/indis.png);
1346}
1347
1348.icon-loading-small {
1349    content: url(images/indicator.gif);
1350}
1351
1352.icon-minus {
1353    content: url(icons/minus.png);
1354}
1355
1356.icon-mypage {
1357    content: url(webtrees/images/mypage.png);
1358}
1359
1360.icon-plus {
1361    content: url(icons/plus.png);
1362}
1363
1364.icon-resn-confidential {
1365    content: url(images/resn_confidential.png);
1366}
1367
1368.icon-resn-locked {
1369    content: url(images/resn_locked.png);
1370}
1371
1372.icon-resn-none {
1373    content: url(images/resn_none.png);
1374}
1375
1376.icon-resn-privacy {
1377    content: url(images/resn_privacy.png);
1378}
1379
1380.icon-rings {
1381    content: url(images/rings.png);
1382}
1383
1384.icon-selected {
1385    content: url(webtrees/images/selected.png);
1386}
1387
1388/* Silhouettes on charts */
1389.icon-silhouette-F {
1390    content: url(webtrees/images/silhouette_female_small.png);
1391}
1392
1393.icon-silhouette-M {
1394    content: url(webtrees/images/silhouette_male_small.png);
1395}
1396
1397.icon-silhouette-U {
1398    content: url(webtrees/images/silhouette_unknown_small.png);
1399}
1400
1401.icon-indis {
1402    content: url(webtrees/images/indis.png);
1403}
1404
1405.icon-patriarch {
1406    content: url(webtrees/images/patriarch.png);
1407}
1408
1409.icon-pedigree {
1410    content: url(webtrees/images/pedigree.png);
1411}
1412
1413.icon-sfamily {
1414    content: url(webtrees/images/family.png);
1415}
1416
1417.icon-user_add {
1418    content: url(webtrees/images/user_add.png);
1419}
1420
1421/* Census assistant */
1422.wt-census-assistant-form-control:focus {
1423    min-width: 12rem;
1424}
1425
1426/* Some blocks show a reduced version on the right-hand side. */
1427.wt-side-blocks .wt-side-block-optional {
1428    display: none !important;
1429}
1430
1431/* my page chart enhancements */
1432.wt-block-content-charts {
1433    overflow: auto;
1434}
1435
1436/* Some charts are wider than the page. */
1437.wt-chart {
1438    overflow-x: auto;
1439    overflow-y: hidden;
1440}
1441
1442/* Fit thumbnail into parent on charts */
1443.select2-selection.select2-selection--single {
1444    min-height: 36px;
1445    height: auto;
1446    padding: 2px 0;
1447}
1448
1449.select2-container .select2-selection--single .select2-selection__rendered {
1450    padding-left: 2px;
1451}
1452
1453.select2-selection--single .NAME {
1454    padding-left: 4px;
1455}
1456
1457/* Some menus (e.g. languages) can be longer than a page */
1458.dropdown-menu {
1459    max-height: 30rem;
1460    overflow-x: hidden;
1461}
1462
1463/* Forms */
1464.col-form-label {
1465    font-weight: bold;
1466}
1467