xref: /webtrees/resources/css/colors.css (revision d8278044ddea1644e904479233efcb4d44156931)
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    color: #00f;
420    font-weight: bold;
421}
422
423.descriptionbox {
424    font-size: 1rem;
425    color: #333;
426    border: 1px solid #999;
427}
428
429.optionbox {
430    color: #333;
431    border: 1px solid #999;
432}
433
434.optionbox .list_value {
435    background-color: #fff;
436    border: 1px solid #999;
437    border-radius: 3px;
438}
439
440/* ---Pending edits--- */
441
442/* ==== FAQ table styles ===== */
443table.faq {
444    background-color: #e0e0e0;
445}
446
447table.faq tr:nth-child(odd) td {
448    background-color: #e7eef3;
449}
450
451div.faq_title {
452    background-color: #e0e0e0;
453}
454
455/* Sidebar - Descendants */
456#sb_content_descendancy {
457    margin-top: 2px;
458}
459
460/* Individuals and Families */
461#sidebar-content-individuals,
462#sidebar-content-families {
463    margin-top: 2px;
464}
465
466/*-- Fan chart ---- */
467
468.icon-cfamily {
469    content: url(colors/images/cfamily.png);
470}
471
472.icon-edit_indi {
473    content: url(colors/images/edit_indi.png);
474}
475
476.icon-fam-list {
477    content: url(colors/images/sfamily.png);
478}
479
480.icon-indi-list {
481    content: url(colors/images/indis.png);
482}
483
484.icon-mypage {
485    content: url(colors/images/mypage.png);
486}
487
488.icon-selected {
489    content: url(colors/images/selected.png);
490}
491
492/* Silhouettes on charts */
493.icon-silhouette-F {
494    content: url(colors/images/silhouette_female_small.png);
495}
496
497.icon-silhouette-M {
498    content: url(colors/images/silhouette_male_small.png);
499}
500
501.icon-silhouette-U {
502    content: url(colors/images/silhouette_unknown_small.png);
503}
504
505/*
506 * Default icons are provided by FontAwesome.
507 */
508
509.wt-icon-arrow-down {
510    content: url(colors/icons/arrow-down.png);
511}
512
513a > .wt-icon-arrow-down:hover {
514    content: url(colors/icons/arrow-down-hover.png);
515}
516
517.wt-icon-arrow-left {
518    content: url(colors/icons/arrow-left.png);
519}
520
521a > .wt-icon-arrow-left:hover {
522    content: url(colors/icons/arrow-left-hover.png);
523}
524
525.wt-icon-arrow-right {
526    content: url(colors/icons/arrow-right.png);
527}
528
529a > .wt-icon-arrow-right:hover {
530    content: url(colors/icons/arrow-right-hover.png);
531}
532
533.wt-icon-arrow-up {
534    content: url(colors/icons/arrow-up.png);
535}
536
537a > .wt-icon-arrow-up:hover {
538    content: url(colors/icons/arrow-up-hover.png);
539}
540
541.wt-icon-help {
542    content: url(colors/icons/help.png);
543}
544
545.wt-icon-zoom-in {
546    content: url(colors/icons/zoom-in.png);
547}
548
549.wt-icon-zoom-out {
550    content: url(colors/icons/zoom-out.png);
551}
552
553/* Miscellaneous images */
554.icon-indis {
555    content: url(colors/images/mypage.png);
556}
557
558.icon-patriarch {
559    content: url(colors/images/patriarch.png);
560}
561
562.icon-pedigree {
563    content: url(colors/images/pedigree.png);
564}
565
566.icon-sfamily {
567    content: url(colors/images/sfamily.png);
568}
569
570.icon-user_add {
571    content: url(colors/images/user_add.png);
572}
573