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