1242a7862SGreg Roach/** 2242a7862SGreg Roach * webtrees: online genealogy 3242a7862SGreg Roach * Copyright (C) 2019 webtrees development team 4242a7862SGreg Roach * This program is free software: you can redistribute it and/or modify 5242a7862SGreg Roach * it under the terms of the GNU General Public License as published by 6242a7862SGreg Roach * the Free Software Foundation, either version 3 of the License, or 7242a7862SGreg Roach * (at your option) any later version. 8242a7862SGreg Roach * This program is distributed in the hope that it will be useful, 9242a7862SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 10242a7862SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11242a7862SGreg Roach * GNU General Public License for more details. 12242a7862SGreg Roach * You should have received a copy of the GNU General Public License 13242a7862SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 14242a7862SGreg Roach */ 15242a7862SGreg Roach 16242a7862SGreg Roach/* 17242a7862SGreg Roach * Interactive tree 18242a7862SGreg Roach * 19242a7862SGreg Roach * wt-chart, wt-chart-interactive 20242a7862SGreg Roach */ 21*2ebb07b4SGreg Roach 22*2ebb07b4SGreg Roach.tv_out { 23*2ebb07b4SGreg Roach position: relative; 24*2ebb07b4SGreg Roach overflow: hidden; 25*2ebb07b4SGreg Roach height: 100%; 26*2ebb07b4SGreg Roach border: thin solid #CCCCCC; /* customizable */ 27*2ebb07b4SGreg Roach min-height: 350px; /* customizable, not mandatory, but should be set to have allways something to display */ 28*2ebb07b4SGreg Roach max-height: 95vh; /* customizable, not mandatory, but should be set not too high to limit the size of ajax requests and not too low to enable whole big trees printing */ 29*2ebb07b4SGreg Roach background: #E6E6E6; /* customizable */ 30*2ebb07b4SGreg Roach display: -webkit-box; 31*2ebb07b4SGreg Roach display: -moz-box; 32*2ebb07b4SGreg Roach display: flex; 33*2ebb07b4SGreg Roach align-items: center; 34*2ebb07b4SGreg Roach justify-content: center; 35*2ebb07b4SGreg Roach} 36*2ebb07b4SGreg Roach.tv_out img { 37*2ebb07b4SGreg Roach border: 0; 38*2ebb07b4SGreg Roach} 39*2ebb07b4SGreg Roach 40*2ebb07b4SGreg Roach.tv_in { 41*2ebb07b4SGreg Roach clear: both; 42*2ebb07b4SGreg Roach cursor: move; 43*2ebb07b4SGreg Roach display: inline-block; /* prevent from blinking on IE */ 44*2ebb07b4SGreg Roach} 45*2ebb07b4SGreg Roach 46*2ebb07b4SGreg Roach.tv_in table.tv_tree, 47*2ebb07b4SGreg Roach.tv_in table.tv_tree tbody, 48*2ebb07b4SGreg Roach.tv_in table.tv_tree tr, 49*2ebb07b4SGreg Roach.tv_in table.tv_tree td { 50*2ebb07b4SGreg Roach border: 0 none; 51*2ebb07b4SGreg Roach padding: 0; 52*2ebb07b4SGreg Roach margin: 0; 53*2ebb07b4SGreg Roach background: none; 54*2ebb07b4SGreg Roach font-size: 11px; 55*2ebb07b4SGreg Roach} 56*2ebb07b4SGreg Roach.tv_in table.tv_tree { 57*2ebb07b4SGreg Roach border-collapse: collapse; 58*2ebb07b4SGreg Roach} 59*2ebb07b4SGreg Roach 60*2ebb07b4SGreg Roach#tvbCompact { 61*2ebb07b4SGreg Roach background-image: url(images/compact.png); 62*2ebb07b4SGreg Roach} 63*2ebb07b4SGreg Roach 64*2ebb07b4SGreg Roach/* Border (also have class table.tv_tree) */ 65*2ebb07b4SGreg Roachtable#tvTreeBorder td#tv_tree_topleft { 66*2ebb07b4SGreg Roach background: none; 67*2ebb07b4SGreg Roach} 68*2ebb07b4SGreg Roachtable#tvTreeBorder td#tv_tree_top { 69*2ebb07b4SGreg Roach background: none; 70*2ebb07b4SGreg Roach} 71*2ebb07b4SGreg Roachtable#tvTreeBorder td#tv_tree_top div{ 72*2ebb07b4SGreg Roach font-family: Arial,Verdana,sans-serif; 73*2ebb07b4SGreg Roach font-size: 18px; 74*2ebb07b4SGreg Roach} 75*2ebb07b4SGreg Roachtable#tvTreeBorder td#tv_tree_topright { 76*2ebb07b4SGreg Roach background: none; 77*2ebb07b4SGreg Roach} 78*2ebb07b4SGreg Roachtable#tvTreeBorder td#tv_tree_left { 79*2ebb07b4SGreg Roach background: none; 80*2ebb07b4SGreg Roach} 81*2ebb07b4SGreg Roachtable#tvTreeBorder td#tv_tree_right { 82*2ebb07b4SGreg Roach background: none; 83*2ebb07b4SGreg Roach} 84*2ebb07b4SGreg Roachtable#tvTreeBorder td#tv_tree_bottomleft { 85*2ebb07b4SGreg Roach background: none; 86*2ebb07b4SGreg Roach} 87*2ebb07b4SGreg Roachtable#tvTreeBorder td#tv_tree_bottom { 88*2ebb07b4SGreg Roach background: none; 89*2ebb07b4SGreg Roach} 90*2ebb07b4SGreg Roachtable#tvTreeBorder td#tv_tree_bottomright { 91*2ebb07b4SGreg Roach background: none; 92*2ebb07b4SGreg Roach} 93*2ebb07b4SGreg Roach/* tree */ 94*2ebb07b4SGreg Roachtable#tvTreeBorder td, 95*2ebb07b4SGreg Roach#tv_tree { 96*2ebb07b4SGreg Roach background: none; 97*2ebb07b4SGreg Roach} 98*2ebb07b4SGreg Roach 99*2ebb07b4SGreg Roach/* horizontal and vertical lines color */ 100*2ebb07b4SGreg Roach#tv_tree div.tv_vline, 101*2ebb07b4SGreg Roach#tv_tree div.tv_hline { 102*2ebb07b4SGreg Roach background-color: #81A9CB; /* customizable :should be the same color than in background images of td.tv_vline_x */ 103*2ebb07b4SGreg Roach} 104*2ebb07b4SGreg Roach 105*2ebb07b4SGreg Roach/* TD container for a vertical line */ 106*2ebb07b4SGreg Roach#tv_tree table.tv_tree td.tv_vline { 107*2ebb07b4SGreg Roach width: 1px; 108*2ebb07b4SGreg Roach background: repeat-x 50% 50%; 109*2ebb07b4SGreg Roach height: 100%; /* required */ 110*2ebb07b4SGreg Roach} 111*2ebb07b4SGreg Roach#tv_tree table.tv_tree td.tv_vline_h { 112*2ebb07b4SGreg Roach background-image: url(images/vline.gif); /* customizable: image color must be the same color than div.tv_vline and div.tv_hline */ 113*2ebb07b4SGreg Roach} 114*2ebb07b4SGreg Roach#tv_tree table.tv_tree td.tv_vline_t { 115*2ebb07b4SGreg Roach vertical-align: bottom; 116*2ebb07b4SGreg Roach background-image: url(images/vline_t.gif); /* customizable: image color must be the same color than div.tv_vline and div.tv_hline */ 117*2ebb07b4SGreg Roach} 118*2ebb07b4SGreg Roach#tv_tree table.tv_tree td.tv_vline_b { 119*2ebb07b4SGreg Roach vertical-align: top; 120*2ebb07b4SGreg Roach background-image: url(images/vline_b.gif); /* customizable: image color must be the same color than div.tv_vline and div.tv_hline */ 121*2ebb07b4SGreg Roach} 122*2ebb07b4SGreg Roach#tv_tree table.tv_tree td.tv_vline_c, 123*2ebb07b4SGreg Roach.tv_in table.tv_tree td.tv_vline_h { 124*2ebb07b4SGreg Roach vertical-align: middle; 125*2ebb07b4SGreg Roach} 126*2ebb07b4SGreg Roach#tv_tree table.tv_tree td.tv_vline_c { 127*2ebb07b4SGreg Roach height: 1px; 128*2ebb07b4SGreg Roach} 129*2ebb07b4SGreg Roach/* vertical line drawing */ 130*2ebb07b4SGreg Roach#tv_tree table.tv_tree div.tv_vline { 131*2ebb07b4SGreg Roach width: 1px; 132*2ebb07b4SGreg Roach} 133*2ebb07b4SGreg Roach#tv_tree table.tv_tree div.tv_vline_t, 134*2ebb07b4SGreg Roach#tv_tree table.tv_tree div.tv_vline_b { 135*2ebb07b4SGreg Roach height: 50%; 136*2ebb07b4SGreg Roach} 137*2ebb07b4SGreg Roach#tv_tree table.tv_tree div.tv_vline_c { 138*2ebb07b4SGreg Roach height: 1px; 139*2ebb07b4SGreg Roach overflow: hidden; /* required for IE */ 140*2ebb07b4SGreg Roach} 141*2ebb07b4SGreg Roach#tv_tree table.tv_tree div.tv_vline_h { 142*2ebb07b4SGreg Roach height: 100%; 143*2ebb07b4SGreg Roach} 144*2ebb07b4SGreg Roach 145*2ebb07b4SGreg Roach/* horizontal line drawing */ 146*2ebb07b4SGreg Roach#tv_tree td.tv_hline, 147*2ebb07b4SGreg Roach#tv_tree div.tv_hline { 148*2ebb07b4SGreg Roach overflow: hidden; /* required for IE */ 149*2ebb07b4SGreg Roach width: 8px; /* customizable */ 150*2ebb07b4SGreg Roach} 151*2ebb07b4SGreg Roach#tv_tree div.tv_hline { 152*2ebb07b4SGreg Roach height: 1px; 153*2ebb07b4SGreg Roach} 154*2ebb07b4SGreg Roach 155*2ebb07b4SGreg Roach/* Person or couple(s) box style */ 156*2ebb07b4SGreg Roach#tv_tree div.tv_box { 157*2ebb07b4SGreg Roach border: thin outset #81A9CB; /* customizable */ 158*2ebb07b4SGreg Roach background: #fffdfd; /* customizable */ 159*2ebb07b4SGreg Roach margin-top: 2px; 160*2ebb07b4SGreg Roach margin-bottom: 2px; 161*2ebb07b4SGreg Roach padding: 0; 162*2ebb07b4SGreg Roach width: 180px; /* customizable:initial box width */ 163*2ebb07b4SGreg Roach cursor: help; /* customizable */ 164*2ebb07b4SGreg Roach border-collapse: collapse; /* required */ 165*2ebb07b4SGreg Roach border-radius: 4px; /* customizable */ 166*2ebb07b4SGreg Roach box-shadow: 1px 1px 2px #cfcfdf; /* customizable */ 167*2ebb07b4SGreg Roach} 168*2ebb07b4SGreg Roach#tv_tree div.boxExpanded { 169*2ebb07b4SGreg Roach width: 250px; /* customizable:initial expanded box width */ 170*2ebb07b4SGreg Roach} 171*2ebb07b4SGreg Roach#tv_tree div.tv_box div.tvM { 172*2ebb07b4SGreg Roach background: #f5fdff; /* customizable */ 173*2ebb07b4SGreg Roach color: #220000; /* customizable */ 174*2ebb07b4SGreg Roach} 175*2ebb07b4SGreg Roach#tv_tree div.tv_box div.tvF { 176*2ebb07b4SGreg Roach background: #fff8f5; /* customizable */ 177*2ebb07b4SGreg Roach color: #000022; /* customizable */ 178*2ebb07b4SGreg Roach} 179*2ebb07b4SGreg Roach#tv_tree div.tv_box span.tvSexSymbol { 180*2ebb07b4SGreg Roach font-weight: bold; 181*2ebb07b4SGreg Roach font-family: x-large, serif; /*Arial Unicode MS, monospace; /* customizable, BUT test required for ALL browsers */ 182*2ebb07b4SGreg Roach vertical-align: top; 183*2ebb07b4SGreg Roach margin: 1px; 184*2ebb07b4SGreg Roach} 185*2ebb07b4SGreg Roach#tv_tree div.tv_box span.tvM { 186*2ebb07b4SGreg Roach color: #8f8fdf; /* customizable */ 187*2ebb07b4SGreg Roach} 188*2ebb07b4SGreg Roach#tv_tree div.tv_box span.tvF { 189*2ebb07b4SGreg Roach color: #df8f8f; /* customizable */ 190*2ebb07b4SGreg Roach} 191*2ebb07b4SGreg Roach 192*2ebb07b4SGreg Roach#tv_tree div.tv_box div.tvM, 193*2ebb07b4SGreg Roach#tv_tree .tv_box div.tvF { 194*2ebb07b4SGreg Roach clear: both; 195*2ebb07b4SGreg Roach border: 0; 196*2ebb07b4SGreg Roach margin: 0; 197*2ebb07b4SGreg Roach padding: 1px 4px; 198*2ebb07b4SGreg Roach border-radius: 4px; /* customizable */ 199*2ebb07b4SGreg Roach} 200*2ebb07b4SGreg Roach#tv_tree div.tv_box i.dates { 201*2ebb07b4SGreg Roach float: right; 202*2ebb07b4SGreg Roach font-size: 75%; 203*2ebb07b4SGreg Roach margin-left: 4px; 204*2ebb07b4SGreg Roach} 205*2ebb07b4SGreg Roach#tv_tree div.tv_box img.tv_treelink { 206*2ebb07b4SGreg Roach height: 15px; 207*2ebb07b4SGreg Roach width: 15px; 208*2ebb07b4SGreg Roach float: right; 209*2ebb07b4SGreg Roach} 210*2ebb07b4SGreg Roach#tv_tree div.tv_box img.tv_box_loading { 211*2ebb07b4SGreg Roach height: 12px; 212*2ebb07b4SGreg Roach width: 12px; 213*2ebb07b4SGreg Roach margin: 2px; 214*2ebb07b4SGreg Roach float: right; 215*2ebb07b4SGreg Roach} 216*2ebb07b4SGreg Roach#tv_tree div.tv_box div.tv_person_expanded { 217*2ebb07b4SGreg Roach min-height: 55px; 218*2ebb07b4SGreg Roach padding: 2px; 219*2ebb07b4SGreg Roach} 220*2ebb07b4SGreg Roach#tv_tree div.tv_box img { 221*2ebb07b4SGreg Roach float: left; 222*2ebb07b4SGreg Roach margin: 2px; 223*2ebb07b4SGreg Roach max-height: 50px; 224*2ebb07b4SGreg Roach max-width: 80px; 225*2ebb07b4SGreg Roach width: auto; 226*2ebb07b4SGreg Roach} 227*2ebb07b4SGreg Roach[dir=rtl] #tv_tree div.tv_box img { 228*2ebb07b4SGreg Roach float: right; 229*2ebb07b4SGreg Roach} 230*2ebb07b4SGreg Roach#tv_tree div.tv_box .icon-silhouette-M, 231*2ebb07b4SGreg Roach#tv_tree div.tv_box .icon-silhouette-F, 232*2ebb07b4SGreg Roach#tv_tree div.tv_box .icon-silhouette-U { 233*2ebb07b4SGreg Roach float: left; 234*2ebb07b4SGreg Roach} 235*2ebb07b4SGreg Roach[dir=rtl] #tv_tree div.tv_box .icon-silhouette-M, 236*2ebb07b4SGreg Roach[dir=rtl] #tv_tree div.tv_box .icon-silhouette-F, 237*2ebb07b4SGreg Roach[dir=rtl] #tv_tree div.tv_box .icon-silhouette-U { 238*2ebb07b4SGreg Roach float: right; 239*2ebb07b4SGreg Roach} 240*2ebb07b4SGreg Roach 241*2ebb07b4SGreg Roach#tv_tree div.tv_box div.tv_person_expanded a { 242*2ebb07b4SGreg Roach font-weight: bold; 243*2ebb07b4SGreg Roach} 244*2ebb07b4SGreg Roach 245*2ebb07b4SGreg Roach/* The toolbox style. Button's images come from the active theme */ 246*2ebb07b4SGreg Roach#tv_tools, 247*2ebb07b4SGreg Roach#tvStylesSubmenu { 248*2ebb07b4SGreg Roach display: inline-block; 249*2ebb07b4SGreg Roach position: absolute; 250*2ebb07b4SGreg Roach left: 0; 251*2ebb07b4SGreg Roach top: 0; 252*2ebb07b4SGreg Roach padding: 0; 253*2ebb07b4SGreg Roach margin: 0; /* required */ 254*2ebb07b4SGreg Roach z-index: 90; /* should be < 100 because 100 is the z-index of WT menus */ 255*2ebb07b4SGreg Roach background-color: #efefef; /* customizable */ 256*2ebb07b4SGreg Roach border: 1px outset #dfdfdf; /* customizable */ 257*2ebb07b4SGreg Roach border-radius: 4px; /* customizable */ 258*2ebb07b4SGreg Roach box-shadow: 1px 1px 2px #cfcfdf; /* customizable */ 259*2ebb07b4SGreg Roach} 260*2ebb07b4SGreg Roach 261*2ebb07b4SGreg Roach/* styles submenu */ 262*2ebb07b4SGreg Roach#tvStylesSubmenu { 263*2ebb07b4SGreg Roach display: none; 264*2ebb07b4SGreg Roach left: 0; 265*2ebb07b4SGreg Roach top: 0; 266*2ebb07b4SGreg Roach z-index: 91; /* just over tv_tools */ 267*2ebb07b4SGreg Roach} 268*2ebb07b4SGreg Roach 269*2ebb07b4SGreg Roach#tv_tools ul { 270*2ebb07b4SGreg Roach list-style: none; 271*2ebb07b4SGreg Roach margin: 0; 272*2ebb07b4SGreg Roach padding: 0; /* required */ 273*2ebb07b4SGreg Roach} 274*2ebb07b4SGreg Roach#tv_tools li.tv_button { 275*2ebb07b4SGreg Roach float: left; 276*2ebb07b4SGreg Roach position: relative; 277*2ebb07b4SGreg Roach padding: 0; /* required */ 278*2ebb07b4SGreg Roach margin: 0; 279*2ebb07b4SGreg Roach width: 24px; 280*2ebb07b4SGreg Roach height: 24px; 281*2ebb07b4SGreg Roach text-align: center; 282*2ebb07b4SGreg Roach vertical-align: middle; 283*2ebb07b4SGreg Roach border: thin solid #efefef; /* customizable */ 284*2ebb07b4SGreg Roach background-color: #efefef; /* customizable */ 285*2ebb07b4SGreg Roach border-radius: 4px; 286*2ebb07b4SGreg Roach} 287*2ebb07b4SGreg Roach#tvStylesSubmenu li.tv_button { 288*2ebb07b4SGreg Roach float : none; 289*2ebb07b4SGreg Roach} 290*2ebb07b4SGreg Roach#tv_tools li.tv_button a { 291*2ebb07b4SGreg Roach margin: 0; 292*2ebb07b4SGreg Roach display: block; 293*2ebb07b4SGreg Roach} 294*2ebb07b4SGreg Roach#tv_tools li.tv_button:hover { 295*2ebb07b4SGreg Roach border: thin outset #fdfffd; /* customizable */ 296*2ebb07b4SGreg Roach cursor: pointer; 297*2ebb07b4SGreg Roach} 298*2ebb07b4SGreg Roach#tv_tools li.tvPressed { 299*2ebb07b4SGreg Roach border: thin inset #ffffff; /* customizable */ 300*2ebb07b4SGreg Roach} 301*2ebb07b4SGreg Roach#tv_tools ul li img { 302*2ebb07b4SGreg Roach border: none; 303*2ebb07b4SGreg Roach margin: 0; 304*2ebb07b4SGreg Roach padding: 0; 305*2ebb07b4SGreg Roach width: 22px; 306*2ebb07b4SGreg Roach height: 22px; 307*2ebb07b4SGreg Roach cursor: pointer; 308*2ebb07b4SGreg Roach text-align: center; 309*2ebb07b4SGreg Roach vertical-align: middle; 310*2ebb07b4SGreg Roach} 311*2ebb07b4SGreg Roach#tv_tools ul li a.help img.icon { 312*2ebb07b4SGreg Roach margin: 3px 0 0; 313*2ebb07b4SGreg Roach padding: 0; 314*2ebb07b4SGreg Roach width: 15px; 315*2ebb07b4SGreg Roach height: 15px; 316*2ebb07b4SGreg Roach} 317*2ebb07b4SGreg Roach 318*2ebb07b4SGreg Roach#tvToolsHandler { 319*2ebb07b4SGreg Roach float: left; 320*2ebb07b4SGreg Roach cursor: move; 321*2ebb07b4SGreg Roach height: 22px; 322*2ebb07b4SGreg Roach width: 2px; 323*2ebb07b4SGreg Roach border: thin inset #f6f6f6; /* customizable */ 324*2ebb07b4SGreg Roach margin: 2px; 325*2ebb07b4SGreg Roach overflow: hidden; /* required for IE */ 326*2ebb07b4SGreg Roach} 327*2ebb07b4SGreg Roach 328*2ebb07b4SGreg Roach#tvToolsHandler:hover { 329*2ebb07b4SGreg Roach border: thin outset #f6f6f6; /* customizable */ 330*2ebb07b4SGreg Roach} 331*2ebb07b4SGreg Roach 332*2ebb07b4SGreg Roach 333*2ebb07b4SGreg Roach#tv_tree div.tv_box div.tvM, 334*2ebb07b4SGreg Roach#tv_tree div.tv_box div.tvF { 335*2ebb07b4SGreg Roach background: none; 336*2ebb07b4SGreg Roach color: #000; 337*2ebb07b4SGreg Roach border: 0; 338*2ebb07b4SGreg Roach margin: 0; 339*2ebb07b4SGreg Roach padding: 0 4px; 340*2ebb07b4SGreg Roach} 341*2ebb07b4SGreg Roach 342*2ebb07b4SGreg Roach.tvM {background-color: #DDF !important;} 343*2ebb07b4SGreg Roach.tvF {background-color: #FDD !important;} 344*2ebb07b4SGreg Roach 345*2ebb07b4SGreg Roach.dashed {border-top: thin dashed #81A9CB !important;} 346