perspective 2.0.0

A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
/******************************************************************************
 *
 * Copyright (c) 2017, the Perspective Authors.
 *
 * This file is part of the Perspective library, distributed under the terms of
 * the Apache License 2.0.  The full license can be found in the LICENSE file.
 *
 */

:host {
    position: fixed;
    z-index: 10000;
    outline: none;
    font-size: 14px;
    border: inherit;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
    user-select: none;
    background-color: white;
    padding: 6px;

    display: flex;
    flex-direction: column;
    min-width: 80px;

    code {
        font-size: 12px;
        font-family: var(--interface-monospace--font-family, "Roboto Mono"),
            monospace;
    }

    input {
        margin-left: 12px;
        margin-right: 12px;
        padding: 0;
        border: none;
        border-bottom: 1px solid var(--inactive--color, #ccc);
        background: transparent;
        font-family: var(--interface-monospace--font-family, "Roboto Mono"),
            monospace;
        font-size: 12px;
        color: inherit;
        outline: none;
    }

    .invalid {
        color: var(--error--color, #ff0000);
        border-color: var(--error--color, #ff0000);
    }

    .selected {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .dropdown-group-label {
        font-size: 10px;
    }

    .dropdown-group-container {
        display: flex;
        flex-direction: column;
        margin-left: 12px;
        margin-right: 12px;
    }

    span {
        min-height: 21px;
        display: inline-flex;
        align-items: center;
    }

    .dropdown-group-container span {
        cursor: pointer;
    }

    .no-results {
        font-style: italics;
        padding: 6px 24px;
        color: #ccc;
    }
}

:host(:hover) {
    .selected {
        background-color: transparent;
    }

    .dropdown-group-container span:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
}