/* text-colors.css: the Colors popup (see ColorPopup), listing the named colours. Light in both themes,
   so the colours are seen as they are on a white page. */

div.popup-text-colors {
    max-height: 85%;
    overflow-y: auto;
    overscroll-behavior: contain;
    /* So the 85% includes the popup's padding and border */
    box-sizing: border-box;
    /* Twice the usual popup's (see div.popup) */
    padding-left: 64px;
    padding-right: 64px;
}

div.text-colors-heading {
    text-align: center;
    margin-bottom: 24px;
}

/* Each row a grid of its own; the fixed first column keeps the swatches lined up */
div.text-colors-table {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

div.text-colors-row {
    display: grid;
    grid-template-columns: 50% 50%;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

div.text-colors-row:hover {
    border-color: #111111;
}

div.text-colors-swatch,
div.text-colors-sample {
    padding: 6px 12px;
    text-align: center;
}

div.text-colors-swatch {
    border-radius: 3px 0 0 3px;
}

div.text-colors-dark {
    color: black;
}

div.text-colors-light {
    color: white;
}

div.text-colors-sample {
    background-color: white;
    border-radius: 0 3px 3px 0;
}
