xref: /webtrees/resources/css/colors.css (revision 1a342ad9011c12c292142ed8f2fdbf151e3552fc)
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 colors theme is based on the clouds theme */
17@import "clouds.css";
18
19/* Override Bootstrap formatting */
20
21.select2-container--default .select2-results__option--highlighted[aria-selected] {
22    background-color: #eee;
23    color: #000;
24}
25
26.btn-link {
27    color: #333;
28}
29
30.card-header h4 {
31    font-size: 1.2rem;
32}
33
34.btn.focus, .btn:focus {
35    box-shadow: none;
36}
37
38.btn-link:hover, .btn-link:focus {
39    color: #f00;
40    text-decoration: none;
41}
42
43.pagination, .page-link, .page-link:hover, .page-link:focus {
44    border-color: #e6e6e6;
45    color: #555;
46}
47
48.page-item.active .page-link {
49    background-color: #e6e6e6;
50    color: #555;
51    border-color: #ccc;
52}
53
54.form-control:focus{
55    border-color:#ccc;
56    box-shadow:0 0 0 .2rem rgba(128,128,128,.25);
57}
58
59/* fit primary and secondary menus on mobile devices */
60@media (max-width: 500px) {
61    .wt-genealogy-menu .nav-item {
62    padding: 0 0.45rem!important;
63    }
64    .wt-user-menu .nav-link {
65    padding: 0.25rem!important;
66    }
67}
68
69/*
70 * Pages have the following high-level structure:
71 *
72 * wt-global wt-theme-<THEME> wt-route-<ROUTE>
73 * +---wt-header-wrapper
74 * |   +---wt-header-container
75 * |       +---wt-header-content
76 * |           +---wt-accessibility-links
77 * |           +---wt-site-logo
78 * |           +---wt-site-title
79 * |           +---wt-header-search
80 * |           |   +---wt-header-search-form
81 * |           |       +---wt-header-search-field
82 * |           |       +---wt-header-search-button
83 * |           +---wt-secondary-navigation
84 * |           |   +---wt-user-menu
85 * |           +---wt-primary-navigation
86 * |               +---wt-genealogy-menu
87 * +---wt-main-wrapper
88 * |   +---wt-main-container
89 * |       +---wt-main-content
90 * |           +---wt-messages
91 * |           +---wt-page-title
92 * |           +---wt-page-options wt-page-options-xxxxx
93 * |           +---wt-page-content
94 * +---wt-footers
95 *     +---wt-footer wt-footer-xxxxx
96 */
97
98.wt-global {
99    background: #fff;
100    color: #333;
101}
102
103.wt-header-wrapper, .btn-primary {
104    background: var(--color-1);
105    border: 0;
106    color: var(--color-5);
107}
108
109.btn-primary {
110    background: var(--color-1);
111}
112
113.btn-primary:hover {
114    background: var(--color-2);
115}
116
117.wt-site-title {
118    padding: 0.75rem 0.75rem 0;
119}
120
121.wt-header-search {
122    padding-bottom: 0.5rem;
123}
124
125.wt-user-menu .nav-link {
126    color: inherit; /* Inherit from wt-header-container */
127}
128
129.wt-user-menu .menu-color .dropdown-menu {
130    max-height: 60rem;
131}
132
133.wt-primary-navigation {
134    order: 4;
135    flex: 0 0 100%;
136}
137
138.wt-genealogy-menu {
139    background: var(--color-2);
140    /* Extend to full page width */
141    flex: 0 1 100vw;
142    /* Recalculate margins for content */
143    margin: 0 calc(50% - 50vw);
144    padding: 0 calc(50vw - 50%);
145}
146
147.wt-genealogy-menu .dropdown-menu {
148    max-height: 60rem;
149}
150
151.wt-genealogy-menu .nav-link {
152    /* All menu icons are 40px x 40px */
153    height: calc(40px + 1rem);
154    width: 40px;
155}
156
157.wt-genealogy-menu .nav-item::before {
158    /* The size of the menu icons */
159    width: 40px;
160    height: 40px;
161}
162
163.wt-page-options-label,
164.wt-facts-table th, .wt-facts-table .dropdown-toggle,
165.descriptionbox, .descriptionbox a,
166.topbottombar, .topbottombar a,
167.list_label, .list_label a {
168    background-color: var(--color-3);
169    color: var(--color-6);
170}
171
172.wt-page-options-value,
173.wt-block-content,
174.wt-facts-table td,
175.ui-widget-header,
176.optionbox, .ui-state-active a:link,
177.list_value, .list_value_wrap, .list_value_wrap a,
178#login-form, #new_passwd_form, #register-form  {
179    background: var(--color-4);
180}
181
182
183.menu-tree .nav-link::before {
184    content: url(colors/menu/tree.png);
185}
186
187.menu-tree .dropdown-item:not(:first-child)::before {
188    content: url(colors/menu/tree-tree.png);
189}
190
191.menu-chart .nav-link::before {
192    content: url(colors/menu/chart.png);
193}
194
195.menu-chart-ancestry::before {
196    content: url(colors/menu/chart-ancestors.png);
197}
198
199.menu-chart-compact::before {
200    content: url(colors/menu/chart-compact.png);
201}
202
203.menu-chart-descendants::before {
204    content: url(colors/menu/chart-descendants.png);
205}
206
207.menu-chart-familybook::before {
208    content: url(colors/menu/chart-family-book.png);
209}
210
211.menu-chart-fanchart::before {
212    content: url(colors/menu/chart-fanchart.png);
213}
214
215.menu-chart-hourglass::before {
216    content: url(colors/menu/chart-hourglass.png);
217}
218
219.menu-chart-lifespan::before {
220    content: url(colors/menu/chart-lifespan.png);
221}
222
223.menu-chart-pedigree::before {
224    content: url(colors/menu/chart-pedigree.png);
225}
226
227.menu-chart-pedigreemap::before {
228    content: url(colors/menu/chart-pedigree-map.png);
229}
230
231.menu-chart-relationship::before {
232    content: url(colors/menu/chart-relationship.png);
233}
234
235.menu-chart-statistics::before {
236    content: url(colors/menu/chart-statistics.png);
237}
238
239.menu-chart-timeline::before {
240    content: url(colors/menu/chart-timeline.png);
241}
242
243.menu-chart-tree::before {
244    content: url(colors/menu/chart-tree.png);
245}
246
247.menu-list .nav-link::before {
248    content: url(colors/menu/list.png);
249}
250
251.menu-branches::before {
252    content: url(colors/menu/branches.png);
253}
254
255.menu-list-fam::before {
256    content: url(colors/menu/list-fam.png);
257}
258
259.menu-list-indi::before {
260    content: url(colors/menu/list-indi.png);
261}
262
263.menu-list-loc::before {
264    content: url(colors/menu/list-plac.png);
265}
266
267.menu-list-note::before {
268    content: url(colors/menu/list-note.png);
269}
270
271.menu-list-obje::before {
272    content: url(colors/menu/list-obje.png);
273}
274
275.menu-list-plac::before {
276    content: url(colors/menu/list-plac.png);
277}
278
279.menu-list-repo::before {
280    content: url(colors/menu/list-repo.png);
281}
282
283.menu-list-sour::before {
284    content: url(colors/menu/list-sour.png);
285}
286
287.menu-list-subm::before {
288    content: url(colors/menu/list-indi.png);
289}
290
291.menu-calendar .nav-link::before {
292    content: url(colors/menu/calendar.png);
293}
294
295.menu-calendar-day::before {
296    content: url(colors/menu/calendar-calendar.png);
297}
298
299.menu-calendar-month::before {
300    content: url(colors/menu/calendar-calendar.png);
301}
302
303.menu-calendar-year::before {
304    content: url(colors/menu/calendar-calendar.png);
305}
306
307.menu-report .nav-link::before {
308    content: url(colors/menu/report.png);
309}
310
311.menu-report .dropdown-item:not(:first-child)::before {
312    content: url(colors/menu/report-report.png);
313}
314
315.menu-search .nav-link::before {
316    content: url(colors/menu/search.png);
317}
318
319.menu-search .dropdown-item:not(:first-child)::before {
320    content: url(colors/menu/search-search.png);
321}
322
323.menu-faq .nav-link::before {
324    content: url(colors/menu/faq.png);
325}
326
327.menu-clippings .nav-link::before {
328    content: url(colors/menu/clippings.png);
329}
330
331.menu-clippings-download::before {
332    content: url(colors/menu/edit-gedcom.png);
333}
334
335.menu-clippings-empty::before {
336    content: url(colors/menu/edit-delete.png);
337}
338
339.menu-story .nav-link::before {
340    content: url(colors/menu/story.png);
341}
342
343.wt-page-options-value {
344    color: #333;
345}
346
347.wt-footer-cookies {
348    background: #aaa;
349}
350
351.wt-footer-powered-by-webtrees {
352    content: url(colors/images/powered-by-webtrees.png);
353}
354
355/*
356 * The tree/user home pages
357 *
358 * wt-home-page / wt-user-page
359 * +---wt-main-blocks
360 * |   +---wt-block, wt-block-AAA
361 * |   +---wt-block, wt-block-BBB
362 * |   +---wt-block, wt-block-CCC
363 * +---wt-side-blocks
364 *     +---wt-block, wt-block-XXX
365 *     +---wt-block, wt-block-YYY
366 *     +---wt-block, wt-block-ZZZ
367 *
368 * Each block as the structure
369 * wt-block, wt-block-XXX
370 * +---wt-block-header, wt-block-header-XXX
371 * +---wt-block-content, wt-block-content-XXX
372 */
373
374.wt-block-header::before {
375    content: url(colors/images/block-header-disk.png);
376}
377
378/*
379 * The individual page.
380 *
381 * wt-route-individual
382 * +---wt-header-wrapper
383 */
384
385/*
386 * Chart-boxes are used to build the various charts.
387 * Each type of chart will set its own size and hide/show content.
388 *
389 * wt-chart-box
390 * +--- wt-chart-box-thumbnail
391 * +--- wt-chart-box-extra
392 *      +--- wt-chart-box-zoom
393 *           +--- wt-chart-box-icon
394 *           +--- wt-chart-box-dropdown wt-chart-box-zoom-dropdown
395 *      +--- wt-chart-box-links
396 *           +--- wt-chart-box-icon
397 *           +--- wt-chart-box-dropdown wt-chart-box-links-dropdown
398 * +--- wt-chart-box-name
399 * +--- wt-chart-box-lifespan
400 * +--- wt-chart-box-facts
401 *     +--- wt-chart-box-fact
402 */
403
404.wt-chart-box-name {
405    color: #555555;
406}
407
408.topbottombar {
409    color: #fff;
410}
411
412.btn-primary.focus, .btn-primary:focus {
413    box-shadow:none;
414    border: 0;
415}
416
417table.center {
418    margin-left: auto;
419    margin-right: auto;
420}
421
422.list_label,
423.list_label_wrap {
424    background-color: #81a9cb;
425    border: 1px solid #ddd;
426}
427
428.list_value,
429.list_value_wrap {
430    border: solid #ddd 1px;
431    padding: 4px;
432}
433
434/* Table of genealogical facts */
435
436.wt-facts-table th {
437    border: 1px solid #ccc;
438}
439
440.date {
441    color: #333;
442}
443
444.selected-option {
445    background-color: #edf7fd;
446}
447
448.rtl_cal_day {
449    color: #00f;
450    font-weight: bold;
451}
452
453.descriptionbox {
454    font-size: 1rem;
455    color: #333;
456    border: 1px solid #999;
457}
458
459.optionbox {
460    color: #333;
461    border: 1px solid #999;
462}
463
464.optionbox .list_value {
465    background-color: #fff;
466    border: 1px solid #999;
467    border-radius: 3px;
468}
469
470/* ---Pending edits--- */
471
472/* ==== FAQ table styles ===== */
473table.faq {
474    background-color: #e0e0e0;
475}
476
477table.faq tr:nth-child(odd) td {
478    background-color: #e7eef3;
479}
480
481div.faq_title {
482    background-color: #e0e0e0;
483}
484
485/* Sidebar - Descendants */
486#sb_content_descendancy {
487    margin-top: 2px;
488}
489
490/* Individuals and Families */
491#sidebar-content-individuals,
492#sidebar-content-families {
493    margin-top: 2px;
494}
495
496/*-- Fan chart ---- */
497
498.icon-cfamily {
499    content: url(colors/images/cfamily.png);
500}
501
502.icon-edit_indi {
503    content: url(colors/images/edit_indi.png);
504}
505
506.icon-fam-list {
507    content: url(colors/images/sfamily.png);
508}
509
510.icon-indi-list {
511    content: url(colors/images/indis.png);
512}
513
514.icon-mypage {
515    content: url(colors/images/mypage.png);
516}
517
518.icon-selected {
519    content: url(colors/images/selected.png);
520}
521
522/* Silhouettes on charts */
523.icon-silhouette-F {
524    content: url(colors/images/silhouette_female_small.png);
525}
526
527.icon-silhouette-M {
528    content: url(colors/images/silhouette_male_small.png);
529}
530
531.icon-silhouette-U {
532    content: url(colors/images/silhouette_unknown_small.png);
533}
534
535/*
536 * Default icons are provided by FontAwesome.
537 */
538
539.wt-icon-arrow-down {
540    content: url(colors/icons/arrow-down.png);
541}
542
543a > .wt-icon-arrow-down:hover {
544    content: url(colors/icons/arrow-down-hover.png);
545}
546
547.wt-icon-arrow-left {
548    content: url(colors/icons/arrow-left.png);
549}
550
551a > .wt-icon-arrow-left:hover {
552    content: url(colors/icons/arrow-left-hover.png);
553}
554
555.wt-icon-arrow-right {
556    content: url(colors/icons/arrow-right.png);
557}
558
559a > .wt-icon-arrow-right:hover {
560    content: url(colors/icons/arrow-right-hover.png);
561}
562
563.wt-icon-arrow-up {
564    content: url(colors/icons/arrow-up.png);
565}
566
567a > .wt-icon-arrow-up:hover {
568    content: url(colors/icons/arrow-up-hover.png);
569}
570
571.wt-icon-help {
572    content: url(colors/icons/help.png);
573}
574
575.wt-icon-zoom-in {
576    content: url(colors/icons/zoom-in.png);
577}
578
579.wt-icon-zoom-out {
580    content: url(colors/icons/zoom-out.png);
581}
582
583/* Miscellaneous images */
584.icon-indis {
585    content: url(colors/images/mypage.png);
586}
587
588.icon-patriarch {
589    content: url(colors/images/patriarch.png);
590}
591
592.icon-pedigree {
593    content: url(colors/images/pedigree.png);
594}
595
596.icon-sfamily {
597    content: url(colors/images/sfamily.png);
598}
599
600.icon-user_add {
601    content: url(colors/images/user_add.png);
602}
603