xref: /webtrees/resources/css/minimal.css (revision 240c55fdb4e8a6e0d188a1f41d4e217a953127d7)
1/**
2 * webtrees: online genealogy
3 * Copyright (C) 2023 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::backdrop, .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    border: solid gray thin;
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.wt-chart-box-u,
306.wt-chart-box-u .wt-chart-box-dropdown {
307    background: var(--sex-u-bg);
308    border: solid var(--sex-u-fg) thin;
309}
310
311.wt-chart-box-x,
312.wt-chart-box-x .wt-chart-box-dropdown {
313    background: var(--sex-x-bg);
314    border: solid var(--sex-x-fg) thin;
315}
316
317/* ---Pending edits--- */
318.wt-new {
319    outline: solid thin blue;
320}
321
322.wt-old {
323    outline: solid thin red;
324}
325
326.list_value,
327.list_value_wrap {
328    border: solid #000 1px;
329    vertical-align: top;
330    padding: 4px;
331}
332
333.list_table {
334    margin: 0 auto;
335}
336
337.filtersH,
338.filtersF {
339    margin: 4px;
340}
341
342.filtersH img {
343    margin-bottom: 2px;
344}
345
346.list-charts {
347    text-align: center;
348}
349
350#place-hierarchy h2,
351#place-hierarchy h4 {
352    text-align: center;
353}
354
355/* ======== Block styles ===== */
356.block {
357    background-color: #fff;
358    color: #555;
359    border: solid #ccc 1px;
360    padding: 3px;
361    vertical-align: top;
362}
363
364.blockcontent {
365    margin: 5px;
366    overflow: auto;
367}
368
369.blockcontent .list_table {
370    border-spacing: 0;
371    border: solid #555 1px;
372    border-right: 0;
373}
374
375.blockcontent .list_value,
376.blockcontent .list_value_wrap {
377    border: 0;
378    border-top: solid #555 1px;
379    border-right: solid #555 1px;
380}
381
382.blockheader {
383    font-weight: bold;
384}
385
386/* end Block styles */
387
388.user_welcome_block table,
389.gedcom_block_block table {
390    margin: auto;
391}
392
393.user_welcome_block td,
394.gedcom_block_block td {
395    width: 33%;
396    text-align: center;
397    vertical-align: top;
398}
399
400.user_welcome_block i,
401.gedcom_block_block i {
402    background-image: none;
403    height: 0;
404    width: 0;
405}
406
407/* Table of genealogical facts */
408.wt-facts-table caption {
409    caption-side: top;
410}
411
412.wt-facts-table th {
413    border: 1px solid #000;
414    font-weight: normal;
415}
416
417.wt-facts-table > tbody > tr > th {
418    min-width: 20%;
419}
420
421.wt-facts-table td {
422    border: solid #000 1px;
423}
424
425.parentdeath {
426    padding: 1px;
427}
428
429/* ==== FAQ table styles ===== */
430table.faq {
431    background-color: #ddd;
432    margin: 5px 0 50px 5px;
433    width: 98%;
434}
435
436table.faq tr:nth-child(odd) td {
437    background-color: #fff;
438}
439
440div.faq_title {
441    background-color: #ddd;
442    margin: 1em 0;
443    padding: .25em;
444    font-weight: bold;
445    width: 98%;
446}
447
448div.faq_body {
449    clear: both;
450    padding: 0 1em;
451}
452
453.faq_top {
454    float: right;
455}
456
457#indi_note {
458    margin: 0 0 5px;
459}
460
461.indi_table {
462    clear: left;
463}
464
465.label {
466    font-weight: bold;
467}
468
469#indi_note .fact_NOTE {
470    float: left;
471    margin: 0 5px 0 0;
472}
473
474#indi_note .fact_SOUR {
475    margin: 3px 0;
476}
477
478#indi_note .fact_SOUR a {
479    font-size: 100%;
480}
481
482#indi_note .fact_NOTE,
483#indi_note .fact_SOUR {
484    clear: both;
485}
486
487.odometer {
488    font-family: courier, monospace;
489    font-weight: bold;
490    background: #000;
491    color: #fff;
492}
493
494.upcoming_events_block button,
495.todays_events_block button {
496    margin: 0 20px;
497}
498
499/* Sidebar - Family navigator */
500
501/* Sidebar - Descendants */
502#sb_content_descendancy {
503    margin-top: 5px;
504}
505
506#sb_desc_content {
507    margin-left: 3px;
508    font-size: 0.8em;
509}
510
511#sb_desc_content ul {
512    padding: 0;
513    margin: 0;
514}
515
516.sb_desc_indi_li {
517    list-style-type: none;
518}
519
520/* Individuals and Families */
521#sidebar-content-individuals,
522#sidebar-content-families {
523    margin-top: 5px;
524}
525
526.sb_indi_surname_li,
527.sb_fam_surname_li {
528    list-style-image: url(icons/plus.png);
529}
530
531.name_tree_div ul {
532    padding: 0;
533    margin: 0;
534}
535
536.name_tree_div li {
537    list-style: none;
538    margin: 0;
539    padding: 0;
540}
541
542/* Clippings */
543#sb_clippings_content ul {
544    padding: 0;
545    margin: 0;
546}
547
548#sb_clippings_content li {
549    list-style: none;
550    margin: 0;
551    padding: 0;
552    white-space: nowrap;
553}
554
555/* ====== Charts Styles ======== */
556
557#people label {
558    display: block;
559}
560
561/*-- Fan chart ---- */
562.fan_chart_menu {
563    background: #fff;
564    position: absolute;
565    display: none;
566    z-index: 100;
567}
568
569#fan_chart ul {
570    list-style-type: none;
571    margin: 0;
572}
573
574/* Lifespans chart */
575.wt-lifespans-subtitle {
576    text-align: center;
577}
578
579.wt-lifespans-scale {
580    white-space: nowrap;
581}
582
583.wt-lifespans-decade {
584    width: 70px;
585    height: 60px;
586    display: inline-block;
587    background-image: url(images/lifespan-decade.png);
588    background-position-y: bottom;
589    background-repeat: no-repeat;
590    background-size: 70px 37px;
591}
592
593.wt-lifespans-individuals {
594    background: #fafafa;
595}
596
597.wt-lifespans-individual {
598
599}
600
601.wt-lifespans-summary {
602    background: #ffffff;
603    border: thin solid #000;
604    z-index: 1;
605}
606
607.wt-lifespans-summary-link {
608    font-weight: bold;
609}
610
611/*-- Pedigree ---- */
612.tvertline {
613    vertical-align: bottom;
614}
615
616.optionbox, .descriptionbox {
617    border: solid #000 1px;
618    vertical-align: top;
619    padding: 3px;
620}
621
622#childbox {
623    padding: 5px;
624    position: absolute;
625    display: none;
626    text-align: start;
627    white-space: nowrap;
628    top: 20px;
629    left: 0;
630}
631
632.layout3 #childbox {
633    top: auto;
634    bottom: 20px;
635}
636
637.person0, .person1, .person2, .person3, .person4, .person5 {
638    border:outset #555 1px;
639    vertical-align:top;
640}
641.person0{
642    background-color:#eee;
643}
644
645.person1{
646    background-color:#bfbfbf;
647}
648
649.person2{
650    background-color:#999;
651}
652
653.person3{
654    background-color:#dfdfdf;
655}
656
657.person4{
658    background-color:#eee;
659}
660
661.person5{
662    background-color:#fefefe;
663}
664
665/*-- timeline  --*/
666#timeline_chart {
667    position: relative;
668    top: 0;
669    left: 0;
670}
671
672/*
673 * Any element that is loaded dynamically has the class wt-ajax-load.
674 * We can provide a "loading" placeholder for empty elements with this class.
675 */
676.wt-ajax-load:empty {
677    height: 32px;
678    background: url(images/loading-32x32.gif) no-repeat 50% 50%;
679}
680
681/*
682 * Default icons are provided by FontAwesome.
683 */
684.wt-icon-anniversary {
685}
686
687.wt-icon-arrow-down {
688}
689
690a > .wt-icon-arrow-down:hover {
691}
692
693.wt-icon-arrow-left {
694}
695
696a > .wt-icon-arrow-left:hover {
697}
698
699.wt-icon-arrow-right {
700}
701
702a > .wt-icon-arrow-right:hover {
703}
704
705.wt-icon-arrow-up {
706}
707
708a > .wt-icon-arrow-up:hover {
709}
710
711.wt-icon-bing-maps {
712}
713
714.wt-icon-calendar {
715}
716
717.wt-icon-collapse {
718}
719
720.wt-icon-coordinates {
721}
722
723.wt-icon-copy {
724}
725
726.wt-icon-delete {
727}
728
729.wt-icon-edit {
730}
731
732.wt-icon-expand {
733}
734
735.wt-icon-family {
736}
737
738.wt-icon-google-maps {
739}
740
741.wt-icon-help {
742}
743
744.wt-icon-individual {
745}
746
747.wt-icon-keyboard {
748}
749
750.wt-icon-media {
751}
752
753.wt-icon-note {
754}
755
756.wt-icon-openstreetmap {
757}
758
759.wt-icon-preferences {
760}
761
762.wt-icon-reorder {
763}
764
765.wt-icon-repository {
766}
767
768.wt-icon-sex-f {
769    color: var(--sex-m-fg);
770}
771
772.wt-icon-sex-m {
773    color: var(--sex-m-fg);
774}
775
776.wt-icon-sex-u {
777    color: var(--sex-u-fg);
778}
779
780.wt-icon-sex-x {
781    color: var(--sex-u-fg);
782}
783
784.wt-icon-source {
785}
786
787.wt-icon-submitter {
788}
789
790.wt-icon-warning {
791}
792
793.wt-icon-zoom-in {
794}
795
796.wt-icon-zoom-out {
797}
798
799/* Miscellaneous images */
800.icon-cfamily {
801}
802
803.icon-childless {
804    content: url(images/childless.png);
805}
806
807.icon-children {
808    content: url(images/children.png);
809}
810
811.icon-edit_indi {
812    content: url(minimal/images/edit_indi.png);
813}
814
815.icon-fam-list {
816    content: url(minimal/images/sfamily.png);
817}
818
819.icon-indi-list {
820    content: url(minimal/images/indis.png);
821}
822
823.icon-loading-small {
824    content: url(images/indicator.gif);
825}
826
827.icon-loading-large {
828    content: url(images/loading-32x32.gif);
829}
830
831.icon-minus {
832    content: url(icons/minus.png);
833}
834
835.icon-mypage {
836    content: url(minimal/images/mypage.png);
837}
838
839.icon-plus {
840    content: url(icons/plus.png);
841}
842
843.icon-resn-confidential {
844    content: none;
845}
846
847.icon-resn-locked {
848    content: none;
849}
850
851.icon-resn-none {
852    content: none;
853}
854
855.icon-resn-privacy {
856    content: none;
857}
858
859.icon-rings {
860    content: url(images/rings.png);
861}
862
863.icon-selected {
864    content: url(minimal/images/selected.png);
865}
866
867.icon-sfamily {
868    content: url(minimal/images/sfamily.png);
869}
870
871/* Silhouettes on charts */
872.icon-silhouette-f {
873    content: url(minimal/images/silhouette_female_small.png);
874}
875
876.icon-silhouette-m {
877    content: url(minimal/images/silhouette_male_small.png);
878}
879
880.icon-silhouette-u,
881.icon-silhouette-x {
882    content: url(minimal/images/silhouette_unknown_small.png);
883}
884
885.icon-indis {
886    content: url(minimal/images/indis.png);
887}
888
889.icon-pedigree {
890    content: url(minimal/images/pedigree.png);
891}
892
893/* Census assistant */
894.wt-census-assistant-form-control:focus {
895    min-width: 12rem;
896}
897
898/* Some blocks show a reduced version on the right-hand side. */
899.wt-side-blocks .wt-side-block-optional {
900    display: none !important;
901}
902
903/* my page chart enhancements */
904.wt-block-content-charts {
905    overflow: auto;
906}
907
908/* Some charts are wider than the page. */
909.wt-chart {
910    overflow-x: auto;
911    overflow-y: hidden;
912}
913
914.wt-calendar-month {
915    border-collapse: collapse;
916}
917
918.wt-calendar-month .wt-page-options-label,
919.wt-calendar-month .wt-page-options-value {
920    border: solid grey thin;
921    padding: 0.2rem;
922}
923
924/* Forms */
925.col-form-label {
926    font-weight: bold;
927}
928
929/* Accordions */
930.accordion .wt-icon-expand,
931.accordion .wt-icon-collapse {
932    display: none;
933}
934
935.accordion-button:after {
936    display: block;
937}
938