1e759aebbSGreg Roach/** 2e759aebbSGreg Roach * webtrees: online genealogy 392044e0dSGreg Roach * Copyright (C) 2020 webtrees development team 4e759aebbSGreg Roach * This program is free software: you can redistribute it and/or modify 5e759aebbSGreg Roach * it under the terms of the GNU General Public License as published by 6e759aebbSGreg Roach * the Free Software Foundation, either version 3 of the License, or 7e759aebbSGreg Roach * (at your option) any later version. 8e759aebbSGreg Roach * This program is distributed in the hope that it will be useful, 9e759aebbSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 10e759aebbSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11e759aebbSGreg Roach * GNU General Public License for more details. 12e759aebbSGreg Roach * You should have received a copy of the GNU General Public License 13e759aebbSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 14e759aebbSGreg Roach */ 15e759aebbSGreg Roach 16e759aebbSGreg Roach/* 1792044e0dSGreg Roach * Common formatting for all themes. 18e759aebbSGreg Roach */ 19e759aebbSGreg Roach 20*0dac5065SGreg Roach@import "_blocks.css"; 2192044e0dSGreg Roach@import "_charts.css"; 2292044e0dSGreg Roach@import "_colorbox.css"; 2392044e0dSGreg Roach@import "_lists.css"; 2492044e0dSGreg Roach@import "_mime-type-icons.css"; 2592044e0dSGreg Roach@import "_on-screen-keyboard.css"; 26*0dac5065SGreg Roach@import "_pages.css"; 2792044e0dSGreg Roach@import "_sortable.css"; 2892044e0dSGreg Roach@import "_tab-relatives.css"; 2992044e0dSGreg Roach 30d274c9ecSGreg Roach/* Some icons need to be reversed on right-to-left pages */ 3143e8a0e6SGreg Roach[dir=rtl] .wt-icon-flip-rtl, 3243e8a0e6SGreg Roach[dir=rtl] .wt-icon-flip-rtl svg 3343e8a0e6SGreg Roach{ 34d274c9ecSGreg Roach transform: scale(-1, 1); 35d274c9ecSGreg Roach} 36d274c9ecSGreg Roach 37a3c95e78SGreg Roach/* Remove border-radius for left-to-right input groups on right-to-left pages */ 38a3c95e78SGreg Roach[dir=rtl] .input-group[dir=ltr] [dir=ltr] { 39a3c95e78SGreg Roach border-radius: 0; 40a3c95e78SGreg Roach} 41a3c95e78SGreg Roach 42dbffae50SGreg Roach/* rtl:ignore */ 43e72c24d6SGreg Roachtd.align-digits, 44e72c24d6SGreg Roachth.align-digits { 45dbffae50SGreg Roach text-align: right; 46dbffae50SGreg Roach} 47dbffae50SGreg Roach 48b6ba99b4SGreg Roach/* Allows twitter typeahead to work with bootstrap input groups */ 49b6ba99b4SGreg Roach.input-group > .twitter-typeahead { 50b6ba99b4SGreg Roach flex: 1 1; 51b6ba99b4SGreg Roach} 52b6ba99b4SGreg Roach 53b6ba99b4SGreg Roach/* Allows select2 to work with bootstrap input groups */ 54b6ba99b4SGreg Roach.input-group > .select2-container { 55b6ba99b4SGreg Roach flex: 1 1; 56b6ba99b4SGreg Roach} 57b6ba99b4SGreg Roach 5834395be7SGreg Roach/* Workaround for dropdown menu position on RTL with popper.js */ 5934395be7SGreg Roach/* See also https://github.com/FezVrasta/popper.js/issues/695 */ 6034395be7SGreg Roach[dir=rtl] .wt-genealogy-menu .dropdown-menu { 6134395be7SGreg Roach right: 0; 6234395be7SGreg Roach left: auto !important; 6334395be7SGreg Roach} 6434395be7SGreg Roach 65b2eede42SGreg Roach/* 66c1b29ce3SGreg Roach * https://github.com/fisharebest/webtrees/issues/2291 674e73f0bdSGreg Roach * Chrome 72 has problems with all cards in the control panel. 684e73f0bdSGreg Roach * Chrome 73 has problems with the family-tree card in the control panel. 69c1b29ce3SGreg Roach * Chrome 76 seems OK. 70c1b29ce3SGreg Roach * https://github.com/fisharebest/webtrees/issues/2813 71c1b29ce3SGreg Roach * Safari 13 has the same issue. 724e73f0bdSGreg Roach */ 73c1b29ce3SGreg Roach.wt-control-panel .card { 744e73f0bdSGreg Roach display: block; 754e73f0bdSGreg Roach} 764e73f0bdSGreg Roach 774e73f0bdSGreg Roach/* 78b2eede42SGreg Roach * Flexbox fixes for IE11 79b2eede42SGreg Roach */ 80b2eede42SGreg Roach@media (-ms-high-contrast: active), (-ms-high-contrast: none) { 81b2eede42SGreg Roach /* Move the body down below the mangled header */ 82b2eede42SGreg Roach div.wt-main-container { 83b2eede42SGreg Roach padding-top: 4rem; 84b2eede42SGreg Roach } 85b2eede42SGreg Roach} 86b2eede42SGreg Roach 87e759aebbSGreg Roach/* Keep the page as tall as the window, so the footer can remain at the bottom. */ 88e759aebbSGreg Roach.wt-global { 89e759aebbSGreg Roach display: flex; 90e759aebbSGreg Roach min-height: 100vh; 91e759aebbSGreg Roach flex-direction: column; 92e759aebbSGreg Roach} 93e759aebbSGreg Roach 94e759aebbSGreg Roach.wt-main-container { 95e759aebbSGreg Roach flex: 1; 96e759aebbSGreg Roach} 97e759aebbSGreg Roach 98e759aebbSGreg Roach/* Scrollbars */ 99e759aebbSGreg Roach.wt-global { 100e759aebbSGreg Roach /* Prevent redraws when dynamic content requires a scrollbar. */ 101e759aebbSGreg Roach overflow-y: scroll; 102e759aebbSGreg Roach /* Any wide content will have its own horizontal scrollbar */ 103e759aebbSGreg Roach overflow-x: hidden; 104e759aebbSGreg Roach} 105c652cdbdSGreg Roach 106c652cdbdSGreg Roach/* Browsers only understand US English */ 107c652cdbdSGreg Roach[lang=en-AU] q, 108c652cdbdSGreg Roach[lang=en-GB] q { 109c652cdbdSGreg Roach quotes: "‘" "’" "“" "”"; 110c652cdbdSGreg Roach} 111c15fb5e7SGreg Roach 112c15fb5e7SGreg Roach/* Expand/collapse icons on accordions, etc. */ 113c15fb5e7SGreg Roach[data-toggle=collapse][aria-expanded=true] > .wt-icon-expand { 114c15fb5e7SGreg Roach display: none; 115c15fb5e7SGreg Roach}[data-toggle=collapse][aria-expanded=false] > .wt-icon-collapse { 116c15fb5e7SGreg Roach display: none; 117c15fb5e7SGreg Roach}