xref: /webtrees/resources/css/colors.css (revision 076e4c54ac11a9904fac036564df1cb3d89b3c22)
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-loc::before {
233    content: url(colors/menu/list-plac.png);
234}
235
236.menu-list-note::before {
237    content: url(colors/menu/list-note.png);
238}
239
240.menu-list-obje::before {
241    content: url(colors/menu/list-obje.png);
242}
243
244.menu-list-plac::before {
245    content: url(colors/menu/list-plac.png);
246}
247
248.menu-list-repo::before {
249    content: url(colors/menu/list-repo.png);
250}
251
252.menu-list-sour::before {
253    content: url(colors/menu/list-sour.png);
254}
255
256.menu-list-subm::before {
257    content: url(colors/menu/list-indi.png);
258}
259
260.menu-calendar .nav-link::before {
261    content: url(colors/menu/calendar.png);
262}
263
264.menu-calendar-day::before {
265    content: url(colors/menu/calendar-calendar.png);
266}
267
268.menu-calendar-month::before {
269    content: url(colors/menu/calendar-calendar.png);
270}
271
272.menu-calendar-year::before {
273    content: url(colors/menu/calendar-calendar.png);
274}
275
276.menu-report .nav-link::before {
277    content: url(colors/menu/report.png);
278}
279
280.menu-report .dropdown-item:not(:first-child)::before {
281    content: url(colors/menu/report-report.png);
282}
283
284.menu-search .nav-link::before {
285    content: url(colors/menu/search.png);
286}
287
288.menu-search .dropdown-item:not(:first-child)::before {
289    content: url(colors/menu/search-search.png);
290}
291
292.menu-faq .nav-link::before {
293    content: url(colors/menu/faq.png);
294}
295
296.menu-clippings .nav-link::before {
297    content: url(colors/menu/clippings.png);
298}
299
300.menu-clippings-download::before {
301    content: url(colors/menu/edit-gedcom.png);
302}
303
304.menu-clippings-empty::before {
305    content: url(colors/menu/edit-delete.png);
306}
307
308.menu-story .nav-link::before {
309    content: url(colors/menu/story.png);
310}
311
312.wt-page-options-value {
313    color: #333;
314}
315
316.wt-footer-cookies {
317    background: #aaa;
318}
319
320.wt-footer-powered-by-webtrees {
321    content: url(colors/images/powered-by-webtrees.png);
322}
323
324/*
325 * The tree/user home pages
326 *
327 * wt-home-page / wt-user-page
328 * +---wt-main-blocks
329 * |   +---wt-block, wt-block-AAA
330 * |   +---wt-block, wt-block-BBB
331 * |   +---wt-block, wt-block-CCC
332 * +---wt-side-blocks
333 *     +---wt-block, wt-block-XXX
334 *     +---wt-block, wt-block-YYY
335 *     +---wt-block, wt-block-ZZZ
336 *
337 * Each block as the structure
338 * wt-block, wt-block-XXX
339 * +---wt-block-header, wt-block-header-XXX
340 * +---wt-block-content, wt-block-content-XXX
341 */
342
343.wt-block-header::before {
344    content: url(colors/images/block-header-disk.png);
345}
346
347/*
348 * The individual page.
349 *
350 * wt-route-individual
351 * +---wt-header-wrapper
352 */
353
354/*
355 * Chart-boxes are used to build the various charts.
356 * Each type of chart will set its own size and hide/show content.
357 *
358 * wt-chart-box
359 * +--- wt-chart-box-thumbnail
360 * +--- wt-chart-box-extra
361 *      +--- wt-chart-box-zoom
362 *           +--- wt-chart-box-icon
363 *           +--- wt-chart-box-dropdown wt-chart-box-zoom-dropdown
364 *      +--- wt-chart-box-links
365 *           +--- wt-chart-box-icon
366 *           +--- wt-chart-box-dropdown wt-chart-box-links-dropdown
367 * +--- wt-chart-box-name
368 * +--- wt-chart-box-lifespan
369 * +--- wt-chart-box-facts
370 *     +--- wt-chart-box-fact
371 */
372
373.wt-chart-box-name {
374    color: #555555;
375}
376
377/* ios on click workaround */
378a {
379    color: #333;
380}
381
382.topbottombar {
383    color: #fff;
384}
385
386.btn-primary.focus, .btn-primary:focus {
387    box-shadow:none;
388    border: 0;
389}
390
391table.center {
392    margin-left: auto;
393    margin-right: auto;
394}
395
396.list_label,
397.list_label_wrap {
398    background-color: #81a9cb;
399    border: 1px solid #ddd;
400}
401
402.list_value,
403.list_value_wrap {
404    border: solid #ddd 1px;
405    padding: 4px;
406}
407
408/* Table of genealogical facts */
409
410.wt-facts-table th {
411    border: 1px solid #ccc;
412}
413
414.date {
415    color: #333;
416}
417
418.selected-option {
419    background-color: #edf7fd;
420}
421
422.rtl_cal_day {
423    color: #00f;
424    font-weight: bold;
425}
426
427.descriptionbox {
428    font-size: 1rem;
429    color: #333;
430    border: 1px solid #999;
431}
432
433.optionbox {
434    color: #333;
435    border: 1px solid #999;
436}
437
438.optionbox .list_value {
439    background-color: #fff;
440    border: 1px solid #999;
441    border-radius: 3px;
442}
443
444/* ---Pending edits--- */
445
446/* ==== FAQ table styles ===== */
447table.faq {
448    background-color: #e0e0e0;
449}
450
451table.faq tr:nth-child(odd) td {
452    background-color: #e7eef3;
453}
454
455div.faq_title {
456    background-color: #e0e0e0;
457}
458
459/* Sidebar - Descendants */
460#sb_content_descendancy {
461    margin-top: 2px;
462}
463
464/* Individuals and Families */
465#sidebar-content-individuals,
466#sidebar-content-families {
467    margin-top: 2px;
468}
469
470/*-- Fan chart ---- */
471
472.icon-cfamily {
473    content: url(colors/images/cfamily.png);
474}
475
476.icon-edit_indi {
477    content: url(colors/images/edit_indi.png);
478}
479
480.icon-fam-list {
481    content: url(colors/images/sfamily.png);
482}
483
484.icon-indi-list {
485    content: url(colors/images/indis.png);
486}
487
488.icon-mypage {
489    content: url(colors/images/mypage.png);
490}
491
492.icon-selected {
493    content: url(colors/images/selected.png);
494}
495
496/* Silhouettes on charts */
497.icon-silhouette-F {
498    content: url(colors/images/silhouette_female_small.png);
499}
500
501.icon-silhouette-M {
502    content: url(colors/images/silhouette_male_small.png);
503}
504
505.icon-silhouette-U {
506    content: url(colors/images/silhouette_unknown_small.png);
507}
508
509/*
510 * Default icons are provided by FontAwesome.
511 */
512
513.wt-icon-arrow-down {
514    content: url(colors/icons/arrow-down.png);
515}
516
517a > .wt-icon-arrow-down:hover {
518    content: url(colors/icons/arrow-down-hover.png);
519}
520
521.wt-icon-arrow-left {
522    content: url(colors/icons/arrow-left.png);
523}
524
525a > .wt-icon-arrow-left:hover {
526    content: url(colors/icons/arrow-left-hover.png);
527}
528
529.wt-icon-arrow-right {
530    content: url(colors/icons/arrow-right.png);
531}
532
533a > .wt-icon-arrow-right:hover {
534    content: url(colors/icons/arrow-right-hover.png);
535}
536
537.wt-icon-arrow-up {
538    content: url(colors/icons/arrow-up.png);
539}
540
541a > .wt-icon-arrow-up:hover {
542    content: url(colors/icons/arrow-up-hover.png);
543}
544
545.wt-icon-help {
546    content: url(colors/icons/help.png);
547}
548
549.wt-icon-zoom-in {
550    content: url(colors/icons/zoom-in.png);
551}
552
553.wt-icon-zoom-out {
554    content: url(colors/icons/zoom-out.png);
555}
556
557/* Miscellaneous images */
558.icon-indis {
559    content: url(colors/images/mypage.png);
560}
561
562.icon-patriarch {
563    content: url(colors/images/patriarch.png);
564}
565
566.icon-pedigree {
567    content: url(colors/images/pedigree.png);
568}
569
570.icon-sfamily {
571    content: url(colors/images/sfamily.png);
572}
573
574.icon-user_add {
575    content: url(colors/images/user_add.png);
576}
577