perspective-viewer 5.4.0

A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
Documentation
/* ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 * ┃ ██████ ██████ ██████       █      █      █      █      █ █▄  ▀███ █       ┃
 * ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█  ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄  ▀█ █ ▀▀▀▀▀ ┃
 * ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄   █ ▄▄▄▄▄ ┃
 * ┃ █      ██████ █  ▀█▄       █ ██████      █      ███▌▐███ ███████▄ █       ┃
 * ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
 * ┃ Copyright (c) 2017, the Perspective Authors.                              ┃
 * ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
 * ┃ This file is part of the Perspective library, distributed under the terms ┃
 * ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
 * ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 */

:host {
    #column_settings_sidebar {
        overflow: hidden;
        text-overflow: ellipsis;
        z-index: 7;

        #attributes-button-panel {
            flex: 0 0 auto;
            margin-top: 4px;
        }

        #attributes-tab {
            flex-direction: column;
            display: flex;
            overflow: hidden;
        }

        #attributes-tab > .split-panel-child {
            min-height: 200px;
            flex: 0 1 auto;
        }

        /* NOTE: These should probably make their way to global form styling eventually. */
        .errored {
            outline-color: var(--psp-error--color);
        }

        .item_title {
            flex: 0 0 auto;
            font-size: var(--label--font-size, 0.75em);
            margin-top: 9px;
        }

        input {
            &[type="text"],
            &[type="search"] {
                outline: 1px solid;
                outline-color: var(--psp-inactive--color);
                background-color: var(--psp--background-color);
                border: none;
                margin-bottom: 0.5em;
                font-family: inherit;
                font-size: 1em;
                &:disabled {
                    background-color: var(--psp-inactive--color);
                }
            }

            &[type="search"] {
                min-height: 24px;
                border-radius: 2px;
            }

            &::-webkit-search-cancel-button {
                cursor: pointer;
            }
        }

        .sidebar_header_contents {
            display: flex;
            margin: 7px 8px;
            align-items: center;
            border-radius: 3px;
            outline-width: 1px;
            outline-color: var(--psp-inactive--color);
            padding-left: 4px;

            &.editable {
                outline-style: dashed;
                &:hover {
                    outline-style: solid;
                    cursor: text;
                }
            }
            &.editable:focus {
                outline-style: solid;
                background: var(--psp--background-color);
            }
            /* &.edited {
                outline-style: dashed;
            } */
            &.invalid {
                outline-color: var(--psp-error--color);
            }

            .sidebar_header_title {
                line-height: normal;
                margin: 0;
                flex: 1;
                padding-left: 5px;
                background: none;
                outline: none;
                color: unset;

                &:disabled {
                    background: none;
                    outline: none;
                    color: unset;
                }
            }
        }
    }
}

#window-tab {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#window-editor-container .window-editor-error {
    color: var(--error--color, #ff5942);
    font-size: 11px;
}

:host {
    #column_settings_sidebar {
        .sidebar_header {
            padding-right: 24px;
        }
    }

    #window-order-by .column-selector-column-border {
        padding-right: 8px;
    }

    .sidebar_pin_button {
        position: absolute;
        right: 6px;
        width: 14px;
        height: 14px;
        z-index: 8;
        cursor: pointer;
        background-color: var(--psp--color);
        opacity: 0.5;
        background-repeat: no-repeat;
        -webkit-mask-size: cover;
        mask-size: cover;
        -webkit-mask-image: var(--psp-icon--pin--mask-image);
        mask-image: var(--psp-icon--pin--mask-image);
        transform: rotate(45deg);
        &:hover {
            opacity: 1;
        }

        &.is-pinned {
            transform: none;
            opacity: 1;
        }
    }
}