xref: /webtrees/resources/css/colors.css (revision 06a438b41c4b328354bcb5bd8d8d578a3a78f995)
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 {
104    background: #acf none;
105}
106
107.wt-site-title {
108    padding: 0.75rem 0.75rem 0;
109}
110
111.wt-header-search {
112    padding-bottom: 0.5rem;
113}
114
115.wt-user-menu .nav-link {
116    color: inherit; /* Inherit from wt-header-container */
117}
118
119.wt-user-menu .menu-color .dropdown-menu {
120    max-height: 60rem;
121}
122
123.wt-primary-navigation {
124    order: 4;
125    flex: 0 0 100%;
126}
127
128.wt-genealogy-menu {
129    /* Extend to full page width */
130    flex: 0 1 100vw;
131    /* Recalculate margins for content */
132    margin: 0 calc(50% - 50vw);
133    padding: 0 calc(50vw - 50%);
134}
135
136.wt-genealogy-menu .dropdown-menu {
137    max-height: 60rem;
138}
139
140.wt-genealogy-menu .nav-link {
141    /* All menu icons are 40px x 40px */
142    height: calc(40px + 1rem);
143    width: 40px;
144}
145
146.wt-genealogy-menu .nav-item::before {
147    /* The size of the menu icons */
148    width: 40px;
149    height: 40px;
150}
151
152.menu-tree .nav-link::before {
153    content: url(colors/menu/tree.png);
154}
155
156.menu-tree .dropdown-item:not(:first-child)::before {
157    content: url(colors/menu/tree-tree.png);
158}
159
160.menu-chart .nav-link::before {
161    content: url(colors/menu/chart.png);
162}
163
164.menu-chart-ancestry::before {
165    content: url(colors/menu/chart-ancestors.png);
166}
167
168.menu-chart-compact::before {
169    content: url(colors/menu/chart-compact.png);
170}
171
172.menu-chart-descendants::before {
173    content: url(colors/menu/chart-descendants.png);
174}
175
176.menu-chart-familybook::before {
177    content: url(colors/menu/chart-family-book.png);
178}
179
180.menu-chart-fanchart::before {
181    content: url(colors/menu/chart-fanchart.png);
182}
183
184.menu-chart-hourglass::before {
185    content: url(colors/menu/chart-hourglass.png);
186}
187
188.menu-chart-lifespan::before {
189    content: url(colors/menu/chart-lifespan.png);
190}
191
192.menu-chart-pedigree::before {
193    content: url(colors/menu/chart-pedigree.png);
194}
195
196.menu-chart-pedigreemap::before {
197    content: url(colors/menu/chart-pedigree-map.png);
198}
199
200.menu-chart-relationship::before {
201    content: url(colors/menu/chart-relationship.png);
202}
203
204.menu-chart-statistics::before {
205    content: url(colors/menu/chart-statistics.png);
206}
207
208.menu-chart-timeline::before {
209    content: url(colors/menu/chart-timeline.png);
210}
211
212.menu-chart-tree::before {
213    content: url(colors/menu/chart-tree.png);
214}
215
216.menu-list .nav-link::before {
217    content: url(colors/menu/list.png);
218}
219
220.menu-branches::before {
221    content: url(colors/menu/branches.png);
222}
223
224.menu-list-fam::before {
225    content: url(colors/menu/list-fam.png);
226}
227
228.menu-list-indi::before {
229    content: url(colors/menu/list-indi.png);
230}
231
232.menu-list-note::before {
233    content: url(colors/menu/list-note.png);
234}
235
236.menu-list-obje::before {
237    content: url(colors/menu/list-obje.png);
238}
239
240.menu-list-plac::before {
241    content: url(colors/menu/list-plac.png);
242}
243
244.menu-list-repo::before {
245    content: url(colors/menu/list-repo.png);
246}
247
248.menu-list-sour::before {
249    content: url(colors/menu/list-sour.png);
250}
251
252.menu-list-subm::before {
253    content: url(colors/menu/list-indi.png);
254}
255
256.menu-calendar .nav-link::before {
257    content: url(colors/menu/calendar.png);
258}
259
260.menu-calendar-day::before {
261    content: url(colors/menu/calendar-calendar.png);
262}
263
264.menu-calendar-month::before {
265    content: url(colors/menu/calendar-calendar.png);
266}
267
268.menu-calendar-year::before {
269    content: url(colors/menu/calendar-calendar.png);
270}
271
272.menu-report .nav-link::before {
273    content: url(colors/menu/report.png);
274}
275
276.menu-report .dropdown-item:not(:first-child)::before {
277    content: url(colors/menu/report-report.png);
278}
279
280.menu-search .nav-link::before {
281    content: url(colors/menu/search.png);
282}
283
284.menu-search .dropdown-item:not(:first-child)::before {
285    content: url(colors/menu/search-search.png);
286}
287
288.menu-faq .nav-link::before {
289    content: url(colors/menu/faq.png);
290}
291
292.menu-clippings .nav-link::before {
293    content: url(colors/menu/clippings.png);
294}
295
296.menu-clippings-download::before {
297    content: url(colors/menu/edit-gedcom.png);
298}
299
300.menu-clippings-empty::before {
301    content: url(colors/menu/edit-delete.png);
302}
303
304.menu-story .nav-link::before {
305    content: url(colors/menu/story.png);
306}
307
308.wt-page-options-value {
309    color: #333;
310}
311
312.wt-footer-cookies {
313    background: #aaa;
314}
315
316.wt-footer-powered-by-webtrees {
317    content: url(colors/images/powered-by-webtrees.png);
318}
319
320/*
321 * The tree/user home pages
322 *
323 * wt-home-page / wt-user-page
324 * +---wt-main-blocks
325 * |   +---wt-block, wt-block-AAA
326 * |   +---wt-block, wt-block-BBB
327 * |   +---wt-block, wt-block-CCC
328 * +---wt-side-blocks
329 *     +---wt-block, wt-block-XXX
330 *     +---wt-block, wt-block-YYY
331 *     +---wt-block, wt-block-ZZZ
332 *
333 * Each block as the structure
334 * wt-block, wt-block-XXX
335 * +---wt-block-header, wt-block-header-XXX
336 * +---wt-block-content, wt-block-content-XXX
337 */
338
339.wt-block-header::before {
340    content: url(colors/images/block-header-disk.png);
341}
342
343/*
344 * The individual page.
345 *
346 * wt-route-individual
347 * +---wt-header-wrapper
348 */
349
350/*
351 * Chart-boxes are used to build the various charts.
352 * Each type of chart will set its own size and hide/show content.
353 *
354 * wt-chart-box
355 * +--- wt-chart-box-thumbnail
356 * +--- wt-chart-box-extra
357 *      +--- wt-chart-box-zoom
358 *           +--- wt-chart-box-icon
359 *           +--- wt-chart-box-dropdown wt-chart-box-zoom-dropdown
360 *      +--- wt-chart-box-links
361 *           +--- wt-chart-box-icon
362 *           +--- wt-chart-box-dropdown wt-chart-box-links-dropdown
363 * +--- wt-chart-box-name
364 * +--- wt-chart-box-lifespan
365 * +--- wt-chart-box-facts
366 *     +--- wt-chart-box-fact
367 */
368
369.wt-chart-box-name {
370    color: #555555;
371}
372
373/* ios on click workaround */
374a {
375    color: #333;
376}
377
378.topbottombar {
379    color: #fff;
380}
381
382.btn-primary.focus, .btn-primary:focus {
383    box-shadow:none;
384    border: 0;
385}
386
387table.center {
388    margin-left: auto;
389    margin-right: auto;
390}
391
392.list_label,
393.list_label_wrap {
394    background-color: #81a9cb;
395    border: 1px solid #ddd;
396}
397
398.list_value,
399.list_value_wrap {
400    border: solid #ddd 1px;
401    padding: 4px;
402}
403
404/* Table of genealogical facts */
405
406.wt-facts-table th {
407    border: 1px solid #ccc;
408}
409
410.date {
411    color: #333;
412}
413
414.selected-option {
415    background-color: #edf7fd;
416}
417
418.rtl_cal_day {
419    direction: rtl;
420    float: right;
421    color: #00f;
422    font-weight: bold;
423}
424
425.descriptionbox {
426    font-size: 1rem;
427    color: #333;
428    border: 1px solid #999;
429}
430
431.optionbox {
432    color: #333;
433    border: 1px solid #999;
434}
435
436.optionbox .list_value {
437    background-color: #fff;
438    border: 1px solid #999;
439    border-radius: 3px;
440}
441
442/* ---Pending edits--- */
443
444/* ==== FAQ table styles ===== */
445table.faq {
446    background-color: #e0e0e0;
447}
448
449table.faq tr:nth-child(odd) td {
450    background-color: #e7eef3;
451}
452
453div.faq_title {
454    background-color: #e0e0e0;
455}
456
457/* Sidebar - Descendants */
458#sb_content_descendancy {
459    margin-top: 2px;
460}
461
462/* Individuals and Families */
463#sidebar-content-individuals,
464#sidebar-content-families {
465    margin-top: 2px;
466}
467
468/*-- Fan chart ---- */
469
470.icon-cfamily {
471    content: url(colors/images/cfamily.png);
472}
473
474.icon-edit_indi {
475    content: url(colors/images/edit_indi.png);
476}
477
478.icon-fam-list {
479    content: url(colors/images/sfamily.png);
480}
481
482.icon-indi-list {
483    content: url(colors/images/indis.png);
484}
485
486.icon-mypage {
487    content: url(colors/images/mypage.png);
488}
489
490.icon-selected {
491    content: url(colors/images/selected.png);
492}
493
494/* Silhouettes on charts */
495.icon-silhouette-F {
496    content: url(colors/images/silhouette_female_small.png);
497}
498
499.icon-silhouette-M {
500    content: url(colors/images/silhouette_male_small.png);
501}
502
503.icon-silhouette-U {
504    content: url(colors/images/silhouette_unknown_small.png);
505}
506
507/*
508 * Default icons are provided by FontAwesome.
509 */
510
511.wt-icon-arrow-down {
512    content: url(colors/icons/arrow-down.png);
513}
514
515a > .wt-icon-arrow-down:hover {
516    content: url(colors/icons/arrow-down-hover.png);
517}
518
519.wt-icon-arrow-left {
520    content: url(colors/icons/arrow-left.png);
521}
522
523a > .wt-icon-arrow-left:hover {
524    content: url(colors/icons/arrow-left-hover.png);
525}
526
527.wt-icon-arrow-right {
528    content: url(colors/icons/arrow-right.png);
529}
530
531a > .wt-icon-arrow-right:hover {
532    content: url(colors/icons/arrow-right-hover.png);
533}
534
535.wt-icon-arrow-up {
536    content: url(colors/icons/arrow-up.png);
537}
538
539a > .wt-icon-arrow-up:hover {
540    content: url(colors/icons/arrow-up-hover.png);
541}
542
543.wt-icon-help {
544    content: url(colors/icons/help.png);
545}
546
547.wt-icon-zoom-in {
548    content: url(colors/icons/zoom-in.png);
549}
550
551.wt-icon-zoom-out {
552    content: url(colors/icons/zoom-out.png);
553}
554
555/* Miscellaneous images */
556.icon-indis {
557    content: url(colors/images/mypage.png);
558}
559
560.icon-patriarch {
561    content: url(colors/images/patriarch.png);
562}
563
564.icon-pedigree {
565    content: url(colors/images/pedigree.png);
566}
567
568.icon-sfamily {
569    content: url(colors/images/sfamily.png);
570}
571
572.icon-user_add {
573    content: url(colors/images/user_add.png);
574}
575