﻿/* CSS support for Find Person application code, for use with family trees as generated by the SVG Family-Tree Generator (SVG-FTG) */
/* Author:	A.C.Proctor	30-Dec-2020				*/
/* Modified:	A.C.Proctor	4-Mar-2021				*/
/*		Added button to clear search box			*/
/* Modified:	A.C.Proctor	28-Feb-2025				*/
/*		Change Position from Absolute to Fixed on container	*/
/* Modified:	A.C.Proctor	4-Apr-2025				*/
/*		Allow customisable colours				*/

#fp_list {		/* The ul name list */
    list-style-type: none;
    padding:0;
    white-space: nowrap;
    margin: 5px 0px 5px 0px;
    max-height: 60vh;
    overflow-y: auto;
}

#fp_hdr {		/* The title div for the search box */
    font-weight: bold;
    text-align: center;
    background-color: #b1dae7;		/* Fallback */
    background-color: var(--dlg_title_b, #b1dae7);
    color: black;			/* Fallback */
    color: var(--dlg_title_f, black);
    cursor: move;
    touch-action: none;
    min-height: 24px;
    line-height: 24px;
    margin-bottom: 7px;
}

#fp_container {		/* Container div for all of search box */
    position: fixed;
    z-index: 60;
    background-color: #f1f1f1;
    border: thin solid darkgray;
    border-radius: 10px;
    text-align: left;
    padding: 7px;
}

#fp_body {		/* Make sure clear button doesn't wrap */
    white-space: nowrap;
}

li.fp-name {		/* Individual names in the name list */
    color: black;
}

li.fp-name:hover {	/* Names in the list when hovering over them */
    color: blue;
    text-decoration: underline;
}

button.fp-clearable {	/* Button to clear search box */
    border-radius: 10px; 
    font-weight: bold;
    border: none; 
    cursor: pointer; 
    background-color: violet;		/* Fallback */
    background-color: var(--dlg_butc_b, violet);
    color: white;			/* Fallback */
    color: var(--dlg_butc_f, black);
    margin-left: 7px;
}

button.fp-but {		/* Buttons in the search box */
    border-style: solid;
    border-radius: 10px;
    border-color: darkgrey;
    width: 70px;
    height: 25px;
    background-color: violet;		/* Fallback */
    background-color: var(--dlg_but_b, violet);
    color: black;			/* Fallback */
    color: var(--dlg_but_f, black);
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    margin-left: 10px;
    padding: 0;
}

/* NB: These styles are dynamically applied and so we must enforce their precedence */

.fp-person.f {				/* Highlighting Female person-box */
    stroke: red !important;
    stroke-width: 3.0 !important;
}

.fp-person.m {				/* Highlighting Male person-box */
    stroke: blue !important;
    stroke-width: 3.0 !important;
}

.fp-person.u, .fp-person.x {		/* Highlighting Unknown/Other person-box */
    stroke: dimgray !important;
    stroke-width: 3.0 !important;
}