-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathpro.less
More file actions
182 lines (164 loc) · 6.86 KB
/
pro.less
File metadata and controls
182 lines (164 loc) · 6.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
// ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
// ┃ 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 "intl.less";
// Register theme for auto-detection
perspective-viewer,
perspective-viewer[theme="Pro Light"] {
--theme-name: "Pro Light";
}
perspective-viewer[theme="Pro Light"] {
@include perspective-viewer-pro;
}
perspective-copy-menu[theme="Pro Light"],
perspective-export-menu[theme="Pro Light"],
perspective-dropdown[theme="Pro Light"],
perspective-date-column-style[theme="Pro Light"],
perspective-datetime-column-style[theme="Pro Light"],
perspective-number-column-style[theme="Pro Light"],
perspective-string-column-style[theme="Pro Light"] {
@include perspective-modal-pro;
background-color: white;
}
@mixin perspective-viewer-pro {
@include perspective-viewer-pro--dimensions;
@include perspective-viewer-pro--colors;
@include perspective-viewer-pro--fonts;
@include perspective-viewer-pro--d3fc;
@include perspective-viewer-pro--datagrid;
@include perspective-viewer-pro--openlayers;
}
@mixin perspective-modal-pro {
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
"Consolas", "Liberation Mono", monospace;
background-color: white;
border: 1px solid var(--inactive--color);
border-radius: 0 0 2px 2px;
--column-style-pos-color--content: "+";
--column-style-neg-color--content: "-";
--save-button-icon--content: "save";
--reset-button-icon--content: "refresh";
@include perspective-viewer-pro--fonts;
@include perspective-viewer-pro--colors;
}
@mixin perspective-viewer-pro--dimensions {
--button--font-size: 16px;
--config-button--padding: 15px 8px 6px 8px;
--column-drop-label--font-size: 8px;
--column-drop-container--padding: 0px;
--column-selector--width: 20px;
--column-selector--font-size: 16px;
// 3 char width in 'Roboto Mono'
--column_type--width: 25px;
--select--padding: 0px;
--top-panel-row--display: inline-flex;
--button--min-width: 33px;
}
@mixin perspective-viewer-pro--colors {
color: #161616;
background-color: transparent;
--icon--color: #161616;
--inactive--color: #ababab;
--inactive--border-color: #dadada;
--root--background: #ffffff;
--active--color: #2670a9;
--error--color: #ff471e;
--plugin--background: #ffffff;
--overflow-hint-icon--color: rgba(0, 0, 0, 0.2);
--select--background-color: none;
--column-drop-container--background: none;
--warning--background: #042121;
--warning--color: #fdfffd;
--select-arrow--background-image: var(
--select-arrow-dark--background-image
);
// TODO deprecate me
--overflow-hint-icon--color: #fdfffd;
}
@mixin perspective-viewer-pro--fonts {
font-family: "ui-monospace", "SFMono-Regular", "SF Mono", "Menlo",
"Consolas", "Liberation Mono", monospace;
--interface-monospace--font-family: "ui-monospace", "SFMono-Regular",
"SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
}
@mixin perspective-viewer-pro--d3fc {
--d3fc-y1-label--content: "arrow_upward";
--d3fc-y2-label--content: "arrow_downward";
--d3fc-treedata-axis--lines: none;
--d3fc-tooltip--background--color: rgba(155, 155, 155, 0.8);
--d3fc-tooltip--color: #161616;
--d3fc-tooltip--border-color: #fff;
--d3fc-tooltip--box-shadow: 0 2px 4px 0 rgb(0 0 0 / 10%);
--d3fc-gridline--color: #eaedef;
--d3fc-axis-ticks--color: #161616;
--d3fc-axis--lines: #c5c9d0;
--d3fc-legend--background: var(--plugin--background);
--d3fc-series: rgba(31, 119, 180, 0.8);
--d3fc-series-1: #0366d6;
--d3fc-series-2: #ff7f0e;
--d3fc-series-3: #2ca02c;
--d3fc-series-4: #d62728;
--d3fc-series-5: #9467bd;
--d3fc-series-6: #8c564b;
--d3fc-series-7: #e377c2;
--d3fc-series-8: #7f7f7f;
--d3fc-series-9: #bcbd22;
--d3fc-series-10: #17becf;
--d3fc-full--gradient: linear-gradient(
#4d342f 0%,
#e4521b 22.5%,
#feeb65 42.5%,
#f0f0f0 50%,
#dcedc8 57.5%,
#42b3d5 67.5%,
#1a237e 100%
);
--d3fc-positive--gradient: linear-gradient(
#f0f0f0 0%,
#dcedc8 10%,
#42b3d5 50%,
#1a237e 100%
);
--d3fc-negative--gradient: linear-gradient(
#4d342f 0%,
#e4521b 50%,
#feeb65 90%,
#f0f0f0 100%
);
}
@mixin perspective-viewer-pro--openlayers {
--map-tile-url: "http://{a-c}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png";
--map-element-background: #fff;
--map-category-1: #0366d6;
--map-category-2: #ff7f0e;
--map-category-3: #2ca02c;
--map-category-4: #d62728;
--map-category-5: #9467bd;
--map-category-6: #8c564b;
--map-category-7: #e377c2;
--map-category-8: #7f7f7f;
--map-category-9: #bcbd22;
--map-category-10: #17becf;
--map-gradient: linear-gradient(
#4d342f 0%,
#e4521b 22.5%,
#feeb65 42.5%,
#f0f0f0 50%,
#dcedc8 57.5%,
#42b3d5 67.5%,
#1a237e 100%
);
}
@mixin perspective-viewer-pro--datagrid {
--rt-pos-cell--color: #338dcd;
--rt-neg-cell--color: #ff471e;
}