xref: /webtrees/resources/css/minimal.css (revision d97083fe315dad9b7d0a150d4fb5f563e57d1869)
1/**
2 * webtrees: online genealogy
3 * Copyright (C) 2021 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 <https://www.gnu.org/licenses/>.
14 */
15
16/* The minimal theme */
17@import "_base.css";
18
19:root {
20    --chart-line-radius: 1rem;
21    --chart-line: solid gray thin;
22    --link-color-hover: #0a58ca;
23    --link-color: #0d6efd;
24    --link-decoration-hover: underline;
25    --link-decoration: underline;
26    --sex-f-bg: #ffffff;
27    --sex-f-fg: #888888;
28    --sex-m-bg: #ffffff;
29    --sex-m-fg: #888888;
30    --sex-u-bg: #ffffff;
31    --sex-u-fg: #888888;
32    --sex-x-bg: #ffffff;
33    --sex-x-fg: #888888;
34}
35
36/* Override Bootstrap formatting */
37.btn-link {
38    padding-left: 0.25rem;
39    padding-right: 0.25rem;
40}
41
42.table-given-name {
43    overflow-x: hidden;
44}
45
46.container-fluid {
47    padding-left: 5px;
48    padding-right: 5px;
49}
50
51table {
52    border-collapse: separate;
53}
54
55/*
56 * Pages have the following high-level structure:
57 *
58 * wt-global wt-theme-<THEME> wt-route-<ROUTE>
59 * +---wt-header-wrapper
60 * |   +---wt-header-container
61 * |       +---wt-header-content
62 * |           +---wt-accessibility-links
63 * |           +---wt-site-logo
64 * |           +---wt-site-title
65 * |           +---wt-header-search
66 * |           |   +---wt-header-search-form
67 * |           |       +---wt-header-search-field
68 * |           |       +---wt-header-search-button
69 * |           +---wt-secondary-navigation
70 * |           |   +---wt-user-menu
71 * |           +---wt-primary-navigation
72 * |               +---wt-genealogy-menu
73 * +---wt-main-wrapper
74 * |   +---wt-main-container
75 * |       +---wt-main-content
76 * |           +---wt-messages
77 * |           +---wt-page-title
78 * |           +---wt-page-options wt-page-options-xxxxx
79 * |           +---wt-page-content
80 * +---wt-footers
81 *     +---wt-footer wt-footer-xxxxx
82 */
83
84.wt-global {
85    /* Avoid extremes of black and white.  It is better for users with dyslexia. */
86    color: #0a0a0a;
87    background-color: #f9f9f9;
88}
89
90.wt-header-wrapper {
91}
92
93.wt-header-container {
94    margin-top: 1rem;
95}
96
97.wt-header-content {
98}
99
100.wt-accessibility-links {
101}
102
103.wt-site-logo {
104    display: none;
105}
106
107.wt-site-title {
108    order: 1;
109    flex: 1 1 auto;
110    width: auto;
111    font-size: 1.75rem;
112}
113
114.wt-header-search {
115    order: 3;
116    flex: 0 0 15rem;
117}
118
119.wt-header-search-form {
120}
121
122.wt-header-search-field {
123}
124
125.wt-header-search-button {
126}
127
128.wt-secondary-navigation {
129    order: 2;
130    flex: 0 0 auto;
131    width: auto;
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.wt-individual-silhouette-f {
256    content: url(images/individual-silhouette-female.png);
257}
258
259.wt-individual-silhouette-m {
260    content: url(images/individual-silhouette-male.png);
261}
262
263.wt-individual-silhouette-u,
264.wt-individual-silhouette-x {
265    content: url(images/individual-silhouette-unknown.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    height: 5rem;
288    padding: 2px;
289    line-height: 1.1;
290}
291
292.wt-chart-box-f,
293.wt-chart-box-f .wt-chart-box-dropdown {
294    background: var(--sex-f-bg);
295    border: solid var(--sex-f-fg) thin;
296}
297
298.wt-chart-box-m,
299.wt-chart-box-m .wt-chart-box-dropdown {
300    background: var(--sex-m-bg);
301    border: solid var(--sex-m-fg) thin;
302}
303
304.wt-chart-box-u,
305.wt-chart-box-u .wt-chart-box-dropdown {
306    background: var(--sex-u-bg);
307    border: solid var(--sex-u-fg) thin;
308}
309
310.wt-chart-box-x,
311.wt-chart-box-x .wt-chart-box-dropdown {
312    background: var(--sex-x-bg);
313    border: solid var(--sex-x-fg) thin;
314}
315
316/* ---Pending edits--- */
317.wt-new {
318    outline: solid thin blue;
319}
320
321.wt-old {
322    outline: solid thin red;
323}
324
325.list_value,
326.list_value_wrap {
327    border: solid #000 1px;
328    vertical-align: top;
329    padding: 4px;
330}
331
332.list_table {
333    margin: 0 auto;
334}
335
336.filtersH,
337.filtersF {
338    margin: 4px;
339}
340
341.filtersH img {
342    margin-bottom: 2px;
343}
344
345.list-charts {
346    text-align: center;
347}
348
349#place-hierarchy h2,
350#place-hierarchy h4 {
351    text-align: center;
352}
353
354/* ======== Block styles ===== */
355.block {
356    background-color: #fff;
357    color: #555;
358    border: solid #ccc 1px;
359    padding: 3px;
360    vertical-align: top;
361}
362
363.blockcontent {
364    margin: 5px;
365    overflow: auto;
366}
367
368.blockcontent .list_table {
369    border-spacing: 0;
370    border: solid #555 1px;
371    border-right: 0;
372}
373
374.blockcontent .list_value,
375.blockcontent .list_value_wrap {
376    border: 0;
377    border-top: solid #555 1px;
378    border-right: solid #555 1px;
379}
380
381.blockheader {
382    font-weight: bold;
383}
384
385/* end Block styles */
386
387.user_welcome_block table,
388.gedcom_block_block table {
389    margin: auto;
390}
391
392.user_welcome_block td,
393.gedcom_block_block td {
394    width: 33%;
395    text-align: center;
396    vertical-align: top;
397}
398
399.user_welcome_block i,
400.gedcom_block_block i {
401    background-image: none;
402    height: 0;
403    width: 0;
404}
405
406/* Table of genealogical facts */
407.wt-facts-table caption {
408    caption-side: top;
409}
410
411.wt-facts-table th {
412    border: 1px solid #000;
413    font-weight: normal;
414    min-width: 20%;
415}
416
417.wt-facts-table td {
418    border: solid #000 1px;
419}
420
421.parentdeath {
422    padding: 1px;
423}
424
425/* ==== FAQ table styles ===== */
426table.faq {
427    background-color: #ddd;
428    margin: 5px 0 50px 5px;
429    width: 98%;
430}
431
432table.faq tr:nth-child(odd) td {
433    background-color: #fff;
434}
435
436div.faq_title {
437    background-color: #ddd;
438    margin: 1em 0;
439    padding: .25em;
440    font-weight: bold;
441    width: 98%;
442}
443
444div.faq_body {
445    clear: both;
446    padding: 0 1em;
447}
448
449.faq_top {
450    float: right;
451}
452
453#indi_note {
454    margin: 0 0 5px;
455}
456
457.indi_table {
458    clear: left;
459}
460
461.label {
462    font-weight: bold;
463}
464
465#indi_note .fact_NOTE {
466    float: left;
467    margin: 0 5px 0 0;
468}
469
470#indi_note .fact_SOUR {
471    margin: 3px 0;
472}
473
474#indi_note .fact_SOUR a {
475    font-size: 100%;
476}
477
478#indi_note .fact_NOTE,
479#indi_note .fact_SOUR {
480    clear: both;
481}
482
483.odometer {
484    font-family: courier, monospace;
485    font-weight: bold;
486    background: #000;
487    color: #fff;
488}
489
490.upcoming_events_block button,
491.todays_events_block button {
492    margin: 0 20px;
493}
494
495/* Sidebar - Family navigator */
496
497/* Sidebar - Descendants */
498#sb_content_descendancy {
499    margin-top: 5px;
500}
501
502#sb_desc_content {
503    margin-left: 3px;
504    font-size: 0.8em;
505}
506
507#sb_desc_content ul {
508    padding: 0;
509    margin: 0;
510}
511
512.sb_desc_indi_li {
513    list-style-type: none;
514}
515
516/* Individuals and Families */
517#sidebar-content-individuals,
518#sidebar-content-families {
519    margin-top: 5px;
520}
521
522.sb_indi_surname_li,
523.sb_fam_surname_li {
524    list-style-image: url(icons/plus.png);
525}
526
527.name_tree_div ul {
528    padding: 0;
529    margin: 0;
530}
531
532.name_tree_div li {
533    list-style: none;
534    margin: 0;
535    padding: 0;
536}
537
538/* Clippings */
539#sb_clippings_content ul {
540    padding: 0;
541    margin: 0;
542}
543
544#sb_clippings_content li {
545    list-style: none;
546    margin: 0;
547    padding: 0;
548    white-space: nowrap;
549}
550
551/* Stories module */
552.story_title {
553    padding-top: 12px;
554    font-size: 13px;
555    height: 32px;
556    font-weight: bold;
557}
558
559.story_body {
560    padding: 20px;
561    white-space: normal;
562}
563
564.story_edit {
565    padding: 12px;
566}
567
568/* Stories module */
569.story_title {
570    padding-top: 12px;
571    font-size: 13px;
572    height: 32px;
573    font-weight: bold;
574}
575
576.story_body {
577    padding: 20px;
578    white-space: normal;
579}
580
581.story_edit {
582    padding: 12px;
583}
584
585/* ====== Charts Styles ======== */
586
587#people label {
588    display: block;
589}
590
591/*-- Fan chart ---- */
592.fan_chart_menu {
593    background: #fff;
594    position: absolute;
595    display: none;
596    z-index: 100;
597}
598
599#fan_chart ul {
600    list-style-type: none;
601    margin: 0;
602}
603
604/* Lifespans chart */
605.wt-lifespans-subtitle {
606    text-align: center;
607}
608
609.wt-lifespans-scale {
610    white-space: nowrap;
611}
612
613.wt-lifespans-decade {
614    width: 70px;
615    height: 60px;
616    display: inline-block;
617    background-image: url(images/lifespan-decade.png);
618    background-position-y: bottom;
619    background-repeat: no-repeat;
620    background-size: 70px 37px;
621}
622
623.wt-lifespans-individuals {
624    background: #fafafa;
625}
626
627.wt-lifespans-individual {
628
629}
630
631.wt-lifespans-summary {
632    background: #ffffff;
633    border: thin solid #000;
634    z-index: 1;
635}
636
637.wt-lifespans-summary-link {
638    font-weight: bold;
639}
640
641/*-- Pedigree ---- */
642.tvertline {
643    vertical-align: bottom;
644}
645
646.optionbox, .descriptionbox {
647    border: solid #000 1px;
648    vertical-align: top;
649    padding: 3px;
650}
651
652#childbox {
653    padding: 5px;
654    position: absolute;
655    display: none;
656    text-align: start;
657    white-space: nowrap;
658    top: 20px;
659    left: 0;
660}
661
662.layout3 #childbox {
663    top: auto;
664    bottom: 20px;
665}
666
667.person0, .person1, .person2, .person3, .person4, .person5 {
668    border:outset #555 1px;
669    vertical-align:top;
670}
671.person0{
672    background-color:#eee;
673}
674
675.person1{
676    background-color:#bfbfbf;
677}
678
679.person2{
680    background-color:#999;
681}
682
683.person3{
684    background-color:#dfdfdf;
685}
686
687.person4{
688    background-color:#eee;
689}
690
691.person5{
692    background-color:#fefefe;
693}
694
695/*-- timeline  --*/
696#timeline_chart {
697    position: relative;
698    top: 0;
699    left: 0;
700}
701
702/*
703 * Any element that is loaded dynamically has the class wt-ajax-load.
704 * We can provide a "loading" placeholder for empty elements with this class.
705 */
706.wt-ajax-load:empty {
707    height: 32px;
708    background: url(images/loading-32x32.gif) no-repeat 50% 50%;
709}
710
711/*
712 * Default icons are provided by FontAwesome.
713 */
714.wt-icon-anniversary {
715}
716
717.wt-icon-arrow-down {
718}
719
720a > .wt-icon-arrow-down:hover {
721}
722
723.wt-icon-arrow-left {
724}
725
726a > .wt-icon-arrow-left:hover {
727}
728
729.wt-icon-arrow-right {
730}
731
732a > .wt-icon-arrow-right:hover {
733}
734
735.wt-icon-arrow-up {
736}
737
738a > .wt-icon-arrow-up:hover {
739}
740
741.wt-icon-bing-maps {
742}
743
744.wt-icon-calendar {
745}
746
747.wt-icon-collapse {
748}
749
750.wt-icon-coordinates {
751}
752
753.wt-icon-copy {
754}
755
756.wt-icon-delete {
757}
758
759.wt-icon-edit {
760}
761
762.wt-icon-expand {
763}
764
765.wt-icon-family {
766}
767
768.wt-icon-google-maps {
769}
770
771.wt-icon-help {
772}
773
774.wt-icon-individual {
775}
776
777.wt-icon-keyboard {
778}
779
780.wt-icon-media {
781}
782
783.wt-icon-note {
784}
785
786.wt-icon-openstreetmap {
787}
788
789.wt-icon-preferences {
790}
791
792.wt-icon-reorder {
793}
794
795.wt-icon-repository {
796}
797
798.wt-icon-sex-f {
799    color: var(--sex-m-fg);
800}
801
802.wt-icon-sex-m {
803    color: var(--sex-m-fg);
804}
805
806.wt-icon-sex-u {
807    color: var(--sex-u-fg);
808}
809
810.wt-icon-sex-x {
811    color: var(--sex-u-fg);
812}
813
814.wt-icon-source {
815}
816
817.wt-icon-submitter {
818}
819
820.wt-icon-warning {
821}
822
823.wt-icon-zoom-in {
824}
825
826.wt-icon-zoom-out {
827}
828
829/* Miscellaneous images */
830.icon-cfamily {
831}
832
833.icon-childless {
834    content: url(images/childless.png);
835}
836
837.icon-children {
838    content: url(images/children.png);
839}
840
841.icon-edit_indi {
842    content: url(minimal/images/edit_indi.png);
843}
844
845.icon-fam-list {
846    content: url(minimal/images/sfamily.png);
847}
848
849.icon-indi-list {
850    content: url(minimal/images/indis.png);
851}
852
853.icon-loading-small {
854    content: url(images/indicator.gif);
855}
856
857.icon-loading-large {
858    content: url(images/loading-32x32.gif);
859}
860
861.icon-minus {
862    content: url(icons/minus.png);
863}
864
865.icon-mypage {
866    content: url(minimal/images/mypage.png);
867}
868
869.icon-plus {
870    content: url(icons/plus.png);
871}
872
873.icon-resn-confidential {
874    content: none;
875}
876
877.icon-resn-locked {
878    content: none;
879}
880
881.icon-resn-none {
882    content: none;
883}
884
885.icon-resn-privacy {
886    content: none;
887}
888
889.icon-rings {
890    content: url(images/rings.png);
891}
892
893.icon-selected {
894    content: url(minimal/images/selected.png);
895}
896
897.icon-sfamily {
898    content: url(minimal/images/sfamily.png);
899}
900
901/* Silhouettes on charts */
902.icon-silhouette-f {
903    content: url(minimal/images/silhouette_female_small.png);
904}
905
906.icon-silhouette-m {
907    content: url(minimal/images/silhouette_male_small.png);
908}
909
910.icon-silhouette-u,
911.icon-silhouette-x {
912    content: url(minimal/images/silhouette_unknown_small.png);
913}
914
915.icon-indis {
916    content: url(minimal/images/indis.png);
917}
918
919.icon-pedigree {
920    content: url(minimal/images/pedigree.png);
921}
922
923/* Census assistant */
924.wt-census-assistant-form-control:focus {
925    min-width: 12rem;
926}
927
928/* Some blocks show a reduced version on the right-hand side. */
929.wt-side-blocks .wt-side-block-optional {
930    display: none !important;
931}
932
933/* my page chart enhancements */
934.wt-block-content-charts {
935    overflow: auto;
936}
937
938/* Some charts are wider than the page. */
939.wt-chart {
940    overflow-x: auto;
941    overflow-y: hidden;
942}
943
944/*
945 *  These selectors control how the short horizontal lines are positioned in the Charts
946 *  Optimized for Win10 and FF, Chrome and Edge browsers
947 *  	Ancestors
948 *  	Descendants
949 *  	amily book
950 *
951 */
952
953/* Ascentors */
954.wt-chart-ancestors .linea1 {
955    margin-bottom: 4px;
956}
957
958.wt-chart-ancestors .linea2 {
959    margin-bottom: 7px;
960}
961
962.wt-chart-ancestors .linea3 {
963    margin-bottom: 4px;
964}
965
966.wt-chart-ancestors .linea4 {
967    margin-bottom: 7px;
968}
969
970.wt-chart-ancestors .linea5 {
971    vertical-align: top;
972}
973
974/* Descendants */
975.wt-chart-descendants .lined1 {
976    margin-bottom: 4px;
977}
978
979.wt-chart-descendants .lined2 {
980    margin-bottom: 7px;
981}
982
983.wt-chart-descendants .lined3 {
984    margin-bottom: 4px;
985}
986
987.wt-chart-descendants .lined4 {
988    margin-bottom: 7px;
989}
990
991.wt-chart-descendants .linea5 {
992    vertical-align: top;
993}
994
995.wt-calendar-month {
996    border-collapse: collapse;
997}
998
999.wt-calendar-month .wt-page-options-label,
1000.wt-calendar-month .wt-page-options-value {
1001    border: solid grey thin;
1002    padding: 0.2rem;
1003}
1004
1005/* Some menus (e.g. languages) can be longer than a page */
1006.dropdown-menu {
1007    max-height: 30rem;
1008    overflow-x: hidden;
1009}
1010
1011/* Forms */
1012.col-form-label {
1013    font-weight: bold;
1014}
1015
1016/* Accordions */
1017.accordion .wt-icon-expand,
1018.accordion .wt-icon-collapse {
1019    display: none;
1020}
1021
1022.accordion-button:after {
1023    display: block;
1024}
1025