xref: /webtrees/resources/css/minimal.css (revision 3b30be79380aa38a35b048e4660565e29f259f6e)
1/**
2 * webtrees: online genealogy
3 * Copyright (C) 2022 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/* ====== Charts Styles ======== */
552
553#people label {
554    display: block;
555}
556
557/*-- Fan chart ---- */
558.fan_chart_menu {
559    background: #fff;
560    position: absolute;
561    display: none;
562    z-index: 100;
563}
564
565#fan_chart ul {
566    list-style-type: none;
567    margin: 0;
568}
569
570/* Lifespans chart */
571.wt-lifespans-subtitle {
572    text-align: center;
573}
574
575.wt-lifespans-scale {
576    white-space: nowrap;
577}
578
579.wt-lifespans-decade {
580    width: 70px;
581    height: 60px;
582    display: inline-block;
583    background-image: url(images/lifespan-decade.png);
584    background-position-y: bottom;
585    background-repeat: no-repeat;
586    background-size: 70px 37px;
587}
588
589.wt-lifespans-individuals {
590    background: #fafafa;
591}
592
593.wt-lifespans-individual {
594
595}
596
597.wt-lifespans-summary {
598    background: #ffffff;
599    border: thin solid #000;
600    z-index: 1;
601}
602
603.wt-lifespans-summary-link {
604    font-weight: bold;
605}
606
607/*-- Pedigree ---- */
608.tvertline {
609    vertical-align: bottom;
610}
611
612.optionbox, .descriptionbox {
613    border: solid #000 1px;
614    vertical-align: top;
615    padding: 3px;
616}
617
618#childbox {
619    padding: 5px;
620    position: absolute;
621    display: none;
622    text-align: start;
623    white-space: nowrap;
624    top: 20px;
625    left: 0;
626}
627
628.layout3 #childbox {
629    top: auto;
630    bottom: 20px;
631}
632
633.person0, .person1, .person2, .person3, .person4, .person5 {
634    border:outset #555 1px;
635    vertical-align:top;
636}
637.person0{
638    background-color:#eee;
639}
640
641.person1{
642    background-color:#bfbfbf;
643}
644
645.person2{
646    background-color:#999;
647}
648
649.person3{
650    background-color:#dfdfdf;
651}
652
653.person4{
654    background-color:#eee;
655}
656
657.person5{
658    background-color:#fefefe;
659}
660
661/*-- timeline  --*/
662#timeline_chart {
663    position: relative;
664    top: 0;
665    left: 0;
666}
667
668/*
669 * Any element that is loaded dynamically has the class wt-ajax-load.
670 * We can provide a "loading" placeholder for empty elements with this class.
671 */
672.wt-ajax-load:empty {
673    height: 32px;
674    background: url(images/loading-32x32.gif) no-repeat 50% 50%;
675}
676
677/*
678 * Default icons are provided by FontAwesome.
679 */
680.wt-icon-anniversary {
681}
682
683.wt-icon-arrow-down {
684}
685
686a > .wt-icon-arrow-down:hover {
687}
688
689.wt-icon-arrow-left {
690}
691
692a > .wt-icon-arrow-left:hover {
693}
694
695.wt-icon-arrow-right {
696}
697
698a > .wt-icon-arrow-right:hover {
699}
700
701.wt-icon-arrow-up {
702}
703
704a > .wt-icon-arrow-up:hover {
705}
706
707.wt-icon-bing-maps {
708}
709
710.wt-icon-calendar {
711}
712
713.wt-icon-collapse {
714}
715
716.wt-icon-coordinates {
717}
718
719.wt-icon-copy {
720}
721
722.wt-icon-delete {
723}
724
725.wt-icon-edit {
726}
727
728.wt-icon-expand {
729}
730
731.wt-icon-family {
732}
733
734.wt-icon-google-maps {
735}
736
737.wt-icon-help {
738}
739
740.wt-icon-individual {
741}
742
743.wt-icon-keyboard {
744}
745
746.wt-icon-media {
747}
748
749.wt-icon-note {
750}
751
752.wt-icon-openstreetmap {
753}
754
755.wt-icon-preferences {
756}
757
758.wt-icon-reorder {
759}
760
761.wt-icon-repository {
762}
763
764.wt-icon-sex-f {
765    color: var(--sex-m-fg);
766}
767
768.wt-icon-sex-m {
769    color: var(--sex-m-fg);
770}
771
772.wt-icon-sex-u {
773    color: var(--sex-u-fg);
774}
775
776.wt-icon-sex-x {
777    color: var(--sex-u-fg);
778}
779
780.wt-icon-source {
781}
782
783.wt-icon-submitter {
784}
785
786.wt-icon-warning {
787}
788
789.wt-icon-zoom-in {
790}
791
792.wt-icon-zoom-out {
793}
794
795/* Miscellaneous images */
796.icon-cfamily {
797}
798
799.icon-childless {
800    content: url(images/childless.png);
801}
802
803.icon-children {
804    content: url(images/children.png);
805}
806
807.icon-edit_indi {
808    content: url(minimal/images/edit_indi.png);
809}
810
811.icon-fam-list {
812    content: url(minimal/images/sfamily.png);
813}
814
815.icon-indi-list {
816    content: url(minimal/images/indis.png);
817}
818
819.icon-loading-small {
820    content: url(images/indicator.gif);
821}
822
823.icon-loading-large {
824    content: url(images/loading-32x32.gif);
825}
826
827.icon-minus {
828    content: url(icons/minus.png);
829}
830
831.icon-mypage {
832    content: url(minimal/images/mypage.png);
833}
834
835.icon-plus {
836    content: url(icons/plus.png);
837}
838
839.icon-resn-confidential {
840    content: none;
841}
842
843.icon-resn-locked {
844    content: none;
845}
846
847.icon-resn-none {
848    content: none;
849}
850
851.icon-resn-privacy {
852    content: none;
853}
854
855.icon-rings {
856    content: url(images/rings.png);
857}
858
859.icon-selected {
860    content: url(minimal/images/selected.png);
861}
862
863.icon-sfamily {
864    content: url(minimal/images/sfamily.png);
865}
866
867/* Silhouettes on charts */
868.icon-silhouette-f {
869    content: url(minimal/images/silhouette_female_small.png);
870}
871
872.icon-silhouette-m {
873    content: url(minimal/images/silhouette_male_small.png);
874}
875
876.icon-silhouette-u,
877.icon-silhouette-x {
878    content: url(minimal/images/silhouette_unknown_small.png);
879}
880
881.icon-indis {
882    content: url(minimal/images/indis.png);
883}
884
885.icon-pedigree {
886    content: url(minimal/images/pedigree.png);
887}
888
889/* Census assistant */
890.wt-census-assistant-form-control:focus {
891    min-width: 12rem;
892}
893
894/* Some blocks show a reduced version on the right-hand side. */
895.wt-side-blocks .wt-side-block-optional {
896    display: none !important;
897}
898
899/* my page chart enhancements */
900.wt-block-content-charts {
901    overflow: auto;
902}
903
904/* Some charts are wider than the page. */
905.wt-chart {
906    overflow-x: auto;
907    overflow-y: hidden;
908}
909
910.wt-calendar-month {
911    border-collapse: collapse;
912}
913
914.wt-calendar-month .wt-page-options-label,
915.wt-calendar-month .wt-page-options-value {
916    border: solid grey thin;
917    padding: 0.2rem;
918}
919
920/* Forms */
921.col-form-label {
922    font-weight: bold;
923}
924
925/* Accordions */
926.accordion .wt-icon-expand,
927.accordion .wt-icon-collapse {
928    display: none;
929}
930
931.accordion-button:after {
932    display: block;
933}
934