UNPKG

@finos/perspective-viewer

Version:

The `<perspective-viewer>` Custom Element, frontend for Perspective.js

103 lines (87 loc) 4.29 kB
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ // ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃ // ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃ // ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃ // ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃ // ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ // ┃ 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.less"); perspective-viewer, perspective-viewer[theme="Solarized"] { --theme-name: "Solarized"; } perspective-viewer[theme="Solarized"] { @include perspective-viewer-solarized; } perspective-copy-menu[theme="Solarized"], perspective-export-menu[theme="Solarized"], perspective-dropdown[theme="Solarized"], perspective-date-column-style[theme="Solarized"], perspective-datetime-column-style[theme="Solarized"], perspective-number-column-style[theme="Solarized"], perspective-string-column-style[theme="Solarized"] { @include perspective-modal-solarized; } @mixin perspective-modal-solarized { @include perspective-modal-pro; @include perspective-viewer-solarized--colors; background-color: #fdf6e3; } @mixin perspective-viewer-solarized { @include perspective-viewer-pro; @include perspective-viewer-solarized--colors; @include perspective-viewer-solarized--datagrid; @include perspective-viewer-solarized--d3fc; } @mixin perspective-viewer-solarized--colors { color: #586e75; background-color: #eee8d5; --icon--color: #586e75; --active--color: #268bd2; --error--color: #cb4b16; --inactive--color: #93a1a1; --inactive--border-color: var(--inactive--color); --plugin--background: #fdf6e3; // Column type indicators --float--column-type--color: #268bd2; --string--column-type--color: #cb4b16; --date--column-type--color: #2aa198; --boolean--column-type--color: #b58900; } @mixin perspective-viewer-solarized--datagrid { --rt-pos-cell--color: #268bd2 !important; --rt-neg-cell--color: #cb4b16 !important; --rt-hover--border-color: #ccc; --rt--border-color: #93a1a1; } x { color: #cb4b16; } @mixin perspective-viewer-solarized--d3fc { --d3fc-treedata--labels: black; --d3fc-treedata--hover-highlight: black; --d3fc-axis-ticks--color: #586e75; --d3fc-gridline--color: #eee8d5; --d3fc-series: #268bd2; --d3fc-series-1: #268bd2; --d3fc-series-2: #cb4b16; --d3fc-series-3: #b58900; --d3fc-series-4: #859900; --d3fc-series-5: #2aa198; --d3fc-series-6: #6c71c4; --d3fc-series-7: #d33682; --d3fc-positive--gradient: linear-gradient( #268bd2 0%, #2aa198, #859900, #b58900, #cb4b16, #dc322f, #d33682 100% ); }