1/** 2 * webtrees: online genealogy 3 * Copyright (C) 2021 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 * Common formatting for all themes. 18 */ 19 20@import "_blocks.css"; 21@import "_charts.css"; 22@import "_colorbox.css"; 23@import "_leaflet.css"; 24@import "_lists.css"; 25@import "_markdown.css"; 26@import "_mime-type-icons.css"; 27@import "_on-screen-keyboard.css"; 28@import "_pages.css"; 29@import "_sortable.css"; 30@import "_tab-album.css"; 31@import "_tab-relatives.css"; 32 33/* Some icons need to be reversed on right-to-left pages */ 34[dir=rtl] .wt-icon-flip-rtl 35{ 36 transform: scale(-1, 1); 37} 38 39/* rtl:ignore */ 40td.align-digits, 41th.align-digits { 42 text-align: right; 43} 44 45/* Keep the page as tall as the window, so the footer can remain at the bottom. */ 46.wt-global { 47 display: flex; 48 min-height: 100vh; 49 flex-direction: column; 50} 51 52.wt-main-container { 53 flex: 1; 54} 55 56/* Bootstrap 5 underlines links by default */ 57a { 58 text-decoration: none; 59} 60 61a:hover { 62 text-decoration: underline; 63} 64 65/* Scrollbars */ 66.wt-global { 67 /* Prevent redraws when dynamic content requires a scrollbar. */ 68 overflow-y: scroll; 69 /* Any wide content will have its own horizontal scrollbar */ 70 overflow-x: hidden; 71} 72 73/* Browsers only understand US English */ 74[lang=en-AU] q, 75[lang=en-GB] q { 76 quotes: "‘" "’" "“" "”"; 77} 78 79/* Expand/collapse icons on accordions, etc. */ 80[data-bs-toggle=collapse][aria-expanded=true] > .wt-icon-expand { 81 display: none; 82}[data-bs-toggle=collapse][aria-expanded=false] > .wt-icon-collapse { 83 display: none; 84} 85