﻿/* CSS support for Choose service code, for use with family trees as generated by the SVG Family-Tree Generator (SVG-FTG) */
/* Author:	A.C.Proctor	23-Jan-2021				*/
/* 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				*/

#ch_list {		/* The ul name pick list */
    list-style-type: none;
    padding:0;
    margin: 10px 0px 10px 0px;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 18px;
}

#ch_hdr {		/* The title div for list */
    font-weight: bold;
    text-align: center;
    min-height: 24px;
    line-height: 24px;
    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;
    margin-bottom: 7px;
}

li.ch-entry {		/* Individual items in the name list */
    color: black;
}

li.ch-entry:hover {	/* Items in the list when hovering over them */
    color: blue;
    text-decoration: underline;
}

#ch_container {		/* Container div for all of list */
    position: fixed;
    z-index: 50;
    background-color: #f1f1f1;
    border: thin solid darkgray;
    border-radius: 10px;
    text-align: left;
    padding: 7px;
}

button.ch-but {		/* Button to cancel the list */
    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;
}
