xref: /webtrees/resources/css/_base.css (revision 00b1984e374faddab4698e73088f0c964e529b65)
1/**
2 * webtrees: online genealogy
3 * Copyright (C) 2019 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/*
17 * Base formatting, resets, workarounds, etc.
18 */
19
20/* Some icons need to be reversed on right-to-left pages */
21[dir=rtl] .wt-icon-flip-rtl,
22[dir=rtl] .wt-icon-flip-rtl svg
23{
24    transform: scale(-1, 1);
25}
26
27/* Remove border-radius for left-to-right input groups on right-to-left pages */
28[dir=rtl] .input-group[dir=ltr] [dir=ltr] {
29    border-radius: 0;
30}
31
32/* rtl:ignore */
33td.align-digits,
34th.align-digits {
35    text-align: right;
36}
37
38/* Allows twitter typeahead to work with bootstrap input groups */
39.input-group > .twitter-typeahead {
40    flex: 1 1;
41}
42
43/* Allows select2 to work with bootstrap input groups */
44.input-group > .select2-container {
45    flex: 1 1;
46}
47
48/* Workaround for dropdown menu position on RTL with popper.js */
49/* See also https://github.com/FezVrasta/popper.js/issues/695 */
50[dir=rtl] .wt-genealogy-menu .dropdown-menu {
51    right: 0;
52    left: auto !important;
53}
54
55/*
56 * https://github.com/fisharebest/webtrees/issues/2291
57 * Chrome 72 has problems with all cards in the control panel.
58 * Chrome 73 has problems with the family-tree card in the control panel.
59 * Chrome 76 seems OK.
60 * https://github.com/fisharebest/webtrees/issues/2813
61 * Safari 13 has the same issue.
62 */
63.wt-control-panel .card {
64    display: block;
65}
66
67/*
68 * Flexbox fixes for IE11
69 */
70@media (-ms-high-contrast: active), (-ms-high-contrast: none) {
71    /* Move the body down below the mangled header */
72    div.wt-main-container {
73        padding-top: 4rem;
74    }
75}
76
77/* Keep the page as tall as the window, so the footer can remain at the bottom. */
78.wt-global {
79    display: flex;
80    min-height: 100vh;
81    flex-direction: column;
82}
83
84.wt-main-container {
85    flex: 1;
86}
87
88/* Scrollbars */
89.wt-global {
90    /* Prevent redraws when dynamic content requires a scrollbar. */
91    overflow-y: scroll;
92    /* Any wide content will have its own horizontal scrollbar */
93    overflow-x: hidden;
94}
95
96/* Browsers only understand US English */
97[lang=en-AU] q,
98[lang=en-GB] q {
99    quotes: "‘" "’" "“" "”";
100}
101