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-family: Arial;
    font-size: 12px;
    border: inherit;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
    user-select: none;
    background-color: white;

    #editor-container {
        display: flex;
        flex-direction: column;
        min-width: 0px;

        .error {
            flex: 1 1 auto;
            display: flex;
            align-items: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .error_icon {
            font-size: 16px;
            padding-right: 20px;
            &:after {
                content: "!";
            }
        }
    }

    .split-panel.orient-vertical > .split-panel-divider {
        margin-bottom: -6px;
    }

    .split-panel.orient-vertical
        > .split-panel-child:not(.is-width-override)
        #editor-container {
        height: 242px;
    }

    .split-panel:not(.orient-vertical)
        > .split-panel-child:not(.is-width-override)
        #editor-container {
        width: 400px;
    }

    #horizontal-resize {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 8px;

        &:hover {
            cursor: ew-resize;
            background: rgba(0, 0, 0, 0.05);
        }
    }

    #psp-expression-editor-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: 36px;
        padding: 0 12px;
    }

    .psp-expression-editor__button {
        font-family: inherit;
        font-size: 12px;
        border: 1px solid var(--icon--color);
        margin-left: 6px;
        height: 18px;
        padding: 2px 12px;
        display: flex;
        align-items: center;
        background: none;
        color: inherit;

        &:not([disabled]):hover {
            cursor: pointer;
            background-color: var(--icon--color);
            color: var(--plugin--background);
        }

        &[disabled] {
            cursor: not-allowed;
            opacity: 0.2;
        }
    }
}