// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
// ┃ ██████ ██████ ██████       █      █      █      █      █ █▄  ▀███ █       ┃
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█  ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄  ▀█ █ ▀▀▀▀▀ ┃
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄   █ ▄▄▄▄▄ ┃
// ┃ █      ██████ █  ▀█▄       █ ██████      █      ███▌▐███ ███████▄ █       ┃
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// ┃ 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). ┃
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

@import "icons.less";

@import url("ref://pro-dark.less");
@import url("ref://solarized.less");

perspective-viewer,
perspective-viewer[theme="Solarized Dark"] {
    --theme-name: "Solarized Dark";
}

perspective-viewer[theme="Solarized Dark"] {
    @include perspective-viewer-pro-dark--colors;
    @include perspective-viewer-solarized;
    @include perspective-viewer-solarized-dark--colors;
    // @include perspective-viewer-solarized-dark--datagrid;
    @include perspective-viewer-solarized-dark--d3fc;
}

perspective-copy-menu[theme="Solarized Dark"],
perspective-export-menu[theme="Solarized Dark"],
perspective-dropdown[theme="Solarized Dark"],
perspective-date-column-style[theme="Solarized Dark"],
perspective-datetime-column-style[theme="Solarized Dark"],
perspective-number-column-style[theme="Solarized Dark"],
perspective-string-column-style[theme="Solarized Dark"] {
    @include perspective-modal-solarized;
    @include perspective-viewer-solarized-dark--colors;
    background-color: #073642;
}

@mixin perspective-viewer-solarized-dark--colors {
    color: #93a1a1;
    background-color: #002b36;

    --inactive--color: #586e75;
    --inactive--border-color: var(--inactive--color);
    --plugin--background: #073642;

    --select-arrow--background-image: var(
        --select-arrow-light--background-image
    );

    --select-arrow--hover--background-image: var(
        --select-arrow-dark--background-image
    );
}

// @mixin perspective-viewer-solarized-dark--datagrid {}

@mixin perspective-viewer-solarized-dark--d3fc {
    --d3fc-treedata--labels: white;
    --d3fc-treedata--hover-highlight: white;
    --d3fc-axis-ticks--color: #93a1a1;
    --d3fc-axis--lines: #93a1a1;
    --d3fc-gridline--color: #002b36;
    --d3fc-legend--text: #93a1a1;

    --d3fc-full--gradient: linear-gradient(
        #cb4b16 0%,
        #073642 50%,
        #268bd2 100%
    );

    // --d3fc-positive--gradient: linear-gradient(#073642 0%, #268bd2 100%);
    --d3fc-negative--gradient: linear-gradient(#cb4b16 0%, #073642 100%);
}
