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 minimal theme */ 17@import "_base.css"; 18@import "_block-charts.css"; 19@import "_charts.css"; 20@import "_colorbox.css"; 21@import "_lists.css"; 22@import "_mime-type-icons.css"; 23@import "_on-screen-keyboard.css"; 24@import "_tab-relatives.css"; 25 26/* Colors for chart boxes, etc. */ 27:root { 28 --sex-f-fg: #888888; 29 --sex-m-fg: #888888; 30 --sex-u-fg: #888888; 31 --sex-f-bg: #ffffff; 32 --sex-m-bg: #ffffff; 33 --sex-u-bg: #ffffff; 34 --chart-line: solid gray thin; 35 --chart-line-radius: 1rem; 36} 37 38/* Override Bootstrap formatting */ 39.btn-link { 40 padding-left: 0.25rem; 41 padding-right: 0.25rem; 42} 43 44.table-given-name { 45 overflow-x: hidden; 46} 47 48.container-fluid { 49 padding-left: 5px; 50 padding-right: 5px; 51} 52 53table { 54 border-collapse: separate; 55} 56 57/* 58 * Pages have the following high-level structure: 59 * 60 * wt-global wt-theme-<THEME> wt-route-<ROUTE> 61 * +---wt-header-wrapper 62 * | +---wt-header-container 63 * | +---wt-header-content 64 * | +---wt-accessibility-links 65 * | +---wt-site-logo 66 * | +---wt-site-title 67 * | +---wt-header-search 68 * | | +---wt-header-search-form 69 * | | +---wt-header-search-field 70 * | | +---wt-header-search-button 71 * | +---wt-secondary-navigation 72 * | | +---wt-user-menu 73 * | +---wt-primary-navigation 74 * | +---wt-genealogy-menu 75 * +---wt-main-wrapper 76 * | +---wt-main-container 77 * | +---wt-main-content 78 * | +---wt-messages 79 * | +---wt-page-title 80 * | +---wt-page-options wt-page-options-xxxxx 81 * | +---wt-page-content 82 * +---wt-footers 83 * +---wt-footer wt-footer-xxxxx 84 */ 85 86.wt-global { 87 /* Avoid extremes of black and white. It is better for users with dyslexia. */ 88 color: #0a0a0a; 89 background-color: #f9f9f9; 90} 91 92.wt-header-wrapper { 93} 94 95.wt-header-container { 96 margin-top: 1rem; 97} 98 99.wt-header-content { 100} 101 102.wt-accessibility-links { 103} 104 105.wt-site-logo { 106 display: none; 107} 108 109.wt-site-title { 110 order: 1; 111 flex: 1 1 0; 112 font-size: 1.75rem; 113} 114 115.wt-header-search { 116 order: 3; 117 flex: 0 0 15rem; 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: 0 0 0; 132 white-space: nowrap; 133} 134 135.wt-user-menu { 136 flex-wrap: nowrap; 137} 138 139.wt-user-menu .nav-link { 140 padding: 0.5rem; 141} 142 143.wt-primary-navigation { 144 order: 4; 145 /* Extend to full page width */ 146 flex: 0 1 100vw; 147 max-width: 100vw; 148 /* Recalculate margins for content */ 149 margin: 0 calc(50% - 50vw); 150 padding: 0 calc(50vw - 50%); 151 border-bottom: 2px solid #aaa; 152} 153 154.wt-genealogy-menu { 155 justify-content: center; 156} 157 158.wt-genealogy-menu .nav-link { 159 padding: 0.5rem; 160} 161 162.wt-main-container { 163 /* Space between the header/footer and the main content. */ 164 padding-top: 1rem; 165 padding-bottom: 1rem; 166} 167 168.wt-main { 169} 170 171.wt-messages { 172} 173 174.wt-page-title { 175 text-align: center; 176} 177 178.wt-page-content { 179 margin-top: 1rem; 180} 181 182.wt-footers { 183} 184 185.wt-footer { 186} 187 188.wt-footer-contact { 189} 190 191.wt-footer-cookies { 192 background: #aaa; 193 color: #fff; 194 transition: height 0.5s; 195} 196 197.wt-footer-page-views { 198} 199 200.wt-footer-powered-by { 201} 202 203.wt-footer-powered-by-webtrees { 204} 205 206/* 207 * The tree/user home pages 208 * 209 * wt-home-page / wt-user-page 210 * +---wt-main-blocks 211 * | +---wt-block, wt-block-AAA 212 * | +---wt-block, wt-block-BBB 213 * | +---wt-block, wt-block-CCC 214 * +---wt-side-blocks 215 * +---wt-block, wt-block-XXX 216 * +---wt-block, wt-block-YYY 217 * +---wt-block, wt-block-ZZZ 218 * 219 * Each block as the structure 220 * wt-block, wt-block-XXX 221 * +---wt-block-header, wt-block-header-XXX 222 * +---wt-block-content, wt-block-content-XXX 223 */ 224 225.wt-block { 226 border: solid #000 1px; 227} 228 229.wt-block-header { 230 background-color: #fff; 231} 232 233.wt-block-content { 234} 235 236.wt-block-content .list_table { 237 border-spacing: 1px; 238 border: solid #000 1px; 239 border-right: 0; 240} 241 242.wt-block-content .list_value, 243.wt-block-content .list_value_wrap { 244 border: 0; 245 border-top: solid #000 1px; 246 border-right: solid #000 1px; 247} 248 249/* 250 * The individual page. 251 * 252 * wt-route-individual 253 * +---wt-header-wrapper 254 */ 255 256.wt-individual-silhouette { 257 content: url(images/individual-silhouette-unknown.png); 258} 259 260.wt-individual-silhouette-f { 261 content: url(images/individual-silhouette-female.png); 262} 263 264.wt-individual-silhouette-m { 265 content: url(images/individual-silhouette-male.png); 266} 267 268/* 269 * Chart-boxes are used to build the various charts. 270 * Each type of chart will set its own size and hide/show content. 271 * 272 * wt-chart-box 273 * +--- wt-chart-box-thumbnail 274 * +--- wt-chart-box-extra 275 * +--- wt-chart-box-zoom 276 * +--- wt-chart-box-icon 277 * +--- wt-chart-box-dropdown wt-chart-box-zoom-dropdown 278 * +--- wt-chart-box-links 279 * +--- wt-chart-box-icon 280 * +--- wt-chart-box-dropdown wt-chart-box-links-dropdown 281 * +--- wt-chart-box-name 282 * +--- wt-chart-box-lifespan 283 * +--- wt-chart-box-facts 284 * +--- wt-chart-box-fact 285 */ 286.wt-chart-box, 287.wt-chart-box-menu { 288 background: var(--sex-u-bg); 289 border: dashed var(--sex-u-fg) thin; 290} 291 292.wt-chart-box { 293 height: 5rem; 294 padding: 2px; 295 line-height: 1.1; 296} 297 298.wt-chart-box-f, 299.wt-chart-box-f .wt-chart-box-dropdown { 300 background: var(--sex-f-bg); 301 border: solid var(--sex-f-fg) thin; 302} 303 304.wt-chart-box-m, 305.wt-chart-box-m .wt-chart-box-dropdown { 306 background: var(--sex-m-bg); 307 border: solid var(--sex-m-fg) thin; 308} 309 310/* ---Pending edits--- */ 311.wt-new { 312 outline: solid thin blue; 313} 314 315.wt-old { 316 outline: solid thin red; 317} 318 319.list_value, 320.list_value_wrap { 321 border: solid #000 1px; 322 vertical-align: top; 323 padding: 4px; 324} 325 326.list_table { 327 margin: 0 auto; 328} 329 330.filtersH, 331.filtersF { 332 margin: 4px; 333} 334 335.filtersH img { 336 margin-bottom: 2px; 337} 338 339.list-charts { 340 text-align: center; 341} 342 343#place-hierarchy h2, 344#place-hierarchy h4 { 345 text-align: center; 346} 347 348/* ======== Block styles ===== */ 349#index_main_blocks { 350 clear: none; 351 width: 60%; 352 float: left; 353} 354 355#index_small_blocks { 356 clear: none; 357 width: 40%; 358 float: right; 359} 360 361#index_full_blocks { 362 clear: none; 363 width: 100%; 364} 365 366.block { 367 background-color: #fff; 368 color: #555; 369 border: solid #ccc 1px; 370 padding: 3px; 371 vertical-align: top; 372} 373 374.blockcontent { 375 margin: 5px; 376 overflow: auto; 377} 378 379.blockcontent .list_table { 380 border-spacing: 0; 381 border: solid #555 1px; 382 border-right: 0; 383} 384 385.blockcontent .list_value, 386.blockcontent .list_value_wrap { 387 border: 0; 388 border-top: solid #555 1px; 389 border-right: solid #555 1px; 390} 391 392.blockheader { 393 font-weight: bold; 394} 395 396/* end Block styles */ 397 398.user_welcome_block table, 399.gedcom_block_block table { 400 margin: auto; 401} 402 403.user_welcome_block td, 404.gedcom_block_block td { 405 width: 33%; 406 text-align: center; 407 vertical-align: top; 408} 409 410.user_welcome_block i, 411.gedcom_block_block i { 412 background-image: none; 413 height: 0; 414 width: 0; 415} 416 417/* Table of genealogical facts */ 418.wt-facts-table caption { 419 caption-side: top; 420} 421 422.wt-facts-table th { 423 border: 1px solid #000; 424 font-weight: normal; 425 min-width: 20%; 426} 427 428.wt-facts-table td { 429 border: solid #000 1px; 430} 431 432a { 433 color: #333; 434 text-decoration: none; 435} 436 437a:hover { 438 color: #333; 439 text-decoration: underline; 440} 441 442a:hover { 443 text-decoration: underline!important; 444} 445 446.parentdeath { 447 padding: 1px; 448} 449 450.source_citations { 451 display: none; 452} 453 454/* ==== FAQ table styles ===== */ 455table.faq { 456 background-color: #ddd; 457 margin: 5px 0 50px 5px; 458 width: 98%; 459} 460 461table.faq tr:nth-child(odd) td { 462 background-color: #fff; 463} 464 465div.faq_title { 466 background-color: #ddd; 467 margin: 1em 0; 468 padding: .25em; 469 font-weight: bold; 470 width: 98%; 471} 472 473div.faq_body { 474 clear: both; 475 padding: 0 1em; 476} 477 478.faq_top { 479 float: right; 480} 481 482/* === Positioning edit, copy, delete links === */ 483/* General use */ 484.editfacts { 485 clear: left; 486 padding-top: 15px; 487} 488 489#indi_note { 490 margin: 0 0 5px; 491} 492 493.indi_table { 494 clear: left; 495} 496 497#sex { 498 float: right; 499} 500 501#dates { 502 color: #666; 503 float: right; 504} 505 506.label { 507 font-weight: bold; 508} 509 510#individual-names .wt-icon-edit, 511#individual-names .wt-icon-delete { 512 float: right; 513} 514 515#indi_note .fact_NOTE { 516 float: left; 517 margin: 0 5px 0 0; 518} 519 520#indi_note .fact_SOUR { 521 margin: 3px 0; 522} 523 524#indi_note .fact_SOUR a { 525 font-size: 100%; 526} 527 528#indi_note .fact_NOTE, 529#indi_note .fact_SOUR { 530 clear: both; 531} 532 533/* markdown formatting */ 534 535.markdown { 536 /* Tables and pre-formatted text can break the layout. */ 537 overflow-x: auto; 538} 539 540.markdown p { 541 margin: 0 0 0.5em; 542 white-space: pre-wrap; 543} 544 545.markdown table { 546 border-collapse: collapse; 547 font-size: 10px; 548 margin-bottom: 5px; 549} 550 551.markdown th { 552 font-weight: bold; 553} 554 555.markdown td, 556.markdown th { 557 border: solid thin #000; 558 padding: 3px; 559} 560 561.odometer { 562 font-family: courier, monospace; 563 font-weight: bold; 564 background: #000; 565 color: #fff; 566} 567 568/* ======== Indi tabs ======== */ 569/* Facts & Events tab */ 570.media-display-image { 571 float: left; 572} 573 574.media-display-title { 575 float: left; 576 font-style: italic; 577 margin: 10px; 578} 579 580.upcoming_events_block button, 581.todays_events_block button { 582 margin: 0 20px; 583} 584 585/* Sidebar - Family navigator */ 586 587/* Sidebar - Descendants */ 588#sb_content_descendancy { 589 margin-top: 5px; 590} 591 592#sb_desc_content { 593 margin-left: 3px; 594 font-size: 0.8em; 595} 596 597#sb_desc_content ul { 598 padding: 0; 599 margin: 0; 600} 601 602.sb_desc_indi_li { 603 list-style-type: none; 604} 605 606/* Individuals and Families */ 607#sidebar-content-individuals, 608#sidebar-content-families { 609 margin-top: 5px; 610} 611 612.sb_indi_surname_li, 613.sb_fam_surname_li { 614 list-style-image: url(icons/plus.png); 615} 616 617.name_tree_div ul { 618 padding: 0; 619 margin: 0; 620} 621 622.name_tree_div li { 623 list-style: none; 624 margin: 0; 625 padding: 0; 626} 627 628/* Clippings */ 629#sb_clippings_content ul { 630 padding: 0; 631 margin: 0; 632} 633 634#sb_clippings_content li { 635 list-style: none; 636 margin: 0; 637 padding: 0; 638 white-space: nowrap; 639} 640 641/* Stories module */ 642.story_title { 643 padding-top: 12px; 644 font-size: 13px; 645 height: 32px; 646 font-weight: bold; 647} 648 649.story_body { 650 padding: 20px; 651 white-space: normal; 652} 653 654.story_edit { 655 padding: 12px; 656} 657 658/* Stories module */ 659.story_title { 660 padding-top: 12px; 661 font-size: 13px; 662 height: 32px; 663 font-weight: bold; 664} 665 666.story_body { 667 padding: 20px; 668 white-space: normal; 669} 670 671.story_edit { 672 padding: 12px; 673} 674 675/* ====== Charts Styles ======== */ 676 677#people label { 678 display: block; 679} 680 681/*-- Fan chart ---- */ 682.fan_chart_menu { 683 background: #fff; 684 position: absolute; 685 display: none; 686 z-index: 100; 687} 688 689#fan_chart ul { 690 list-style-type: none; 691 margin: 0; 692} 693 694/* Lifespans chart */ 695.wt-lifespans-subtitle { 696 text-align: center; 697} 698 699.wt-lifespans-scale { 700 white-space: nowrap; 701} 702 703.wt-lifespans-decade { 704 width: 70px; 705 height: 60px; 706 display: inline-block; 707 background-image: url(images/lifespan-decade.png); 708 background-position-y: bottom; 709 background-repeat: no-repeat; 710 background-size: 70px 37px; 711} 712 713.wt-lifespans-individuals { 714 background: #fafafa; 715} 716 717.wt-lifespans-individual { 718 719} 720 721.wt-lifespans-summary { 722 background: #ffffff; 723 border: thin solid #000; 724 z-index: 1; 725} 726 727.wt-lifespans-summary-link { 728 font-weight: bold; 729} 730 731/*-- Pedigree ---- */ 732.tvertline { 733 vertical-align: bottom; 734} 735 736.optionbox, .descriptionbox { 737 border: solid #000 1px; 738 vertical-align: top; 739 padding: 3px; 740} 741 742#childbox { 743 padding: 5px; 744 position: absolute; 745 display: none; 746 text-align: start; 747 white-space: nowrap; 748 top: 20px; 749 left: 0; 750} 751 752.layout3 #childbox { 753 top: auto; 754 bottom: 20px; 755} 756 757#childbox a.name1 { 758 display: block; 759 margin-left: 5px; 760} 761 762.person0, .person1, .person2, .person3, .person4, .person5 { 763 border:outset #555 1px; 764 vertical-align:top; 765} 766.person0{ 767 background-color:#eee; 768} 769 770.person1{ 771 background-color:#bfbfbf; 772} 773 774.person2{ 775 background-color:#999; 776} 777 778.person3{ 779 background-color:#dfdfdf; 780} 781 782.person4{ 783 background-color:#eee; 784} 785 786.person5{ 787 background-color:#fefefe; 788} 789 790/*-- timeline --*/ 791#timeline_chart { 792 position: relative; 793 top: 0; 794 left: 0; 795} 796 797/* 798 * Any element that is loaded dynamically has the class wt-ajax-load. 799 * We can provide a "loading" placeholder for empty elements with this class. 800 */ 801.wt-ajax-load:empty { 802 height: 32px; 803 background: url(images/loading-32x32.gif) no-repeat 50% 50%; 804} 805 806/* 807 * Default icons are provided by FontAwesome. 808 */ 809.wt-icon-anniversary { 810} 811 812.wt-icon-arrow-down { 813} 814 815a > .wt-icon-arrow-down:hover { 816} 817 818.wt-icon-arrow-left { 819} 820 821a > .wt-icon-arrow-left:hover { 822} 823 824.wt-icon-arrow-right { 825} 826 827a > .wt-icon-arrow-right:hover { 828} 829 830.wt-icon-arrow-up { 831} 832 833a > .wt-icon-arrow-up:hover { 834} 835 836.wt-icon-bing-maps { 837} 838 839.wt-icon-calendar { 840} 841 842.wt-icon-collapse { 843} 844 845.wt-icon-coordinates { 846} 847 848.wt-icon-copy { 849} 850 851.wt-icon-delete { 852} 853 854.wt-icon-edit { 855} 856 857.wt-icon-expand { 858} 859 860.wt-icon-family { 861} 862 863.wt-icon-google-maps { 864} 865 866.wt-icon-help { 867} 868 869.wt-icon-individual { 870} 871 872.wt-icon-keyboard { 873} 874 875.wt-icon-media { 876} 877 878.wt-icon-note { 879} 880 881.wt-icon-openstreetmap { 882} 883 884.wt-icon-preferences { 885} 886 887.wt-icon-reorder { 888} 889 890.wt-icon-repository { 891} 892 893.wt-icon-sex-f { 894 color: var(--sex-m-fg); 895} 896 897.wt-icon-sex-m { 898 color: var(--sex-m-fg); 899} 900 901.wt-icon-sex-u { 902 color: var(--sex-u-fg); 903} 904 905.wt-icon-sex-x { 906 color: var(--sex-u-fg); 907} 908 909.wt-icon-source { 910} 911 912.wt-icon-submitter { 913} 914 915.wt-icon-warning { 916} 917 918.wt-icon-zoom-in { 919} 920 921.wt-icon-zoom-out { 922} 923 924/* Miscellaneous images */ 925.icon-cfamily { 926} 927 928.icon-childless { 929 content: url(images/childless.png); 930} 931 932.icon-children { 933 content: url(images/children.png); 934} 935 936.icon-edit_indi { 937 content: url(minimal/images/edit_indi.png); 938} 939 940.icon-fam-list { 941 content: url(minimal/images/sfamily.png); 942} 943 944.icon-indi-list { 945 content: url(minimal/images/indis.png); 946} 947 948.icon-loading-small { 949 content: url(images/indicator.gif); 950} 951 952.icon-loading-large { 953 content: url(images/loading-32x32.gif); 954} 955 956.icon-minus { 957 content: url(icons/minus.png); 958} 959 960.icon-mypage { 961 content: url(minimal/images/mypage.png); 962} 963 964.icon-plus { 965 content: url(icons/plus.png); 966} 967 968.icon-resn-confidential { 969 content: none; 970} 971 972.icon-resn-locked { 973 content: none; 974} 975 976.icon-resn-none { 977 content: none; 978} 979 980.icon-resn-privacy { 981 content: none; 982} 983 984.icon-rings { 985 content: url(images/rings.png); 986} 987 988.icon-selected { 989 content: url(minimal/images/selected.png); 990} 991 992.icon-sfamily { 993 content: url(minimal/images/sfamily.png); 994} 995 996/* Silhouettes on charts */ 997.icon-silhouette-F { 998 content: url(minimal/images/silhouette_female_small.png); 999} 1000 1001.icon-silhouette-M { 1002 content: url(minimal/images/silhouette_male_small.png); 1003} 1004 1005.icon-silhouette-U { 1006 content: url(minimal/images/silhouette_unknown_small.png); 1007} 1008 1009.icon-indis { 1010 content: url(minimal/images/indis.png); 1011} 1012 1013.icon-pedigree { 1014 content: url(minimal/images/pedigree.png); 1015} 1016 1017/* Census assistant */ 1018.wt-census-assistant-form-control:focus { 1019 min-width: 12rem; 1020} 1021 1022/* 1023 * Drag and drop sortable lists 1024 */ 1025.wt-sortable-list { 1026} 1027 1028.wt-sortable-item { 1029 cursor: move; 1030} 1031 1032/* Some blocks show a reduced version on the right-hand side. */ 1033.wt-side-blocks .wt-side-block-optional { 1034 display: none !important; 1035} 1036 1037/* my page chart enhancements */ 1038.wt-block-content-charts { 1039 overflow: auto; 1040} 1041 1042/* Some charts are wider than the page. */ 1043.wt-chart { 1044 overflow-x: auto; 1045 overflow-y: hidden; 1046} 1047 1048/* Fit thumbnail into parent on charts */ 1049.select2-selection.select2-selection--single { 1050 min-height: 36px; 1051 height: auto; 1052 padding: 2px 0; 1053} 1054 1055.select2-container .select2-selection--single .select2-selection__rendered { 1056 padding-left: 2px; 1057} 1058 1059.select2-selection--single .NAME { 1060 padding-left: 4px; 1061} 1062 1063/* 1064 * These selectors control how the short horizontal lines are positioned in the Charts 1065 * Optimized for Win10 and FF, Chrome and Edge browsers 1066 * Ancestors 1067 * Descendants 1068 * amily book 1069 * 1070 */ 1071 1072/* Ascentors */ 1073.wt-chart-ancestors .linea1 { 1074 margin-bottom: 4px; 1075} 1076 1077.wt-chart-ancestors .linea2 { 1078 margin-bottom: 7px; 1079} 1080 1081.wt-chart-ancestors .linea3 { 1082 margin-bottom: 4px; 1083} 1084 1085.wt-chart-ancestors .linea4 { 1086 margin-bottom: 7px; 1087} 1088 1089.wt-chart-ancestors .linea5 { 1090 vertical-align: top; 1091} 1092 1093/* Descendants */ 1094.wt-chart-descendants .lined1 { 1095 margin-bottom: 4px; 1096} 1097 1098.wt-chart-descendants .lined2 { 1099 margin-bottom: 7px; 1100} 1101 1102.wt-chart-descendants .lined3 { 1103 margin-bottom: 4px; 1104} 1105 1106.wt-chart-descendants .lined4 { 1107 margin-bottom: 7px; 1108} 1109 1110.wt-chart-descendants .linea5 { 1111 vertical-align: top; 1112} 1113 1114/* Some menus (e.g. languages) can be longer than a page */ 1115.dropdown-menu { 1116 max-height: 30rem; 1117 overflow-x: hidden; 1118} 1119 1120/* Forms */ 1121.col-form-label { 1122 font-weight: bold; 1123} 1124