Skip to content

Commit 36f4e87

Browse files
committed
Clean up CSS
Signed-off-by: Andrew Stein <steinlink@gmail.com>
1 parent 7aa374a commit 36f4e87

9 files changed

Lines changed: 6 additions & 192 deletions

File tree

rust/perspective-viewer/build.mjs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
import { execSync } from "child_process";
1414
import { build } from "@perspective-dev/esbuild-plugin/build.js";
15-
import { PerspectiveEsbuildPlugin } from "@perspective-dev/esbuild-plugin";
1615
import { NodeModulesExternal } from "@perspective-dev/esbuild-plugin/external.js";
1716
import * as fs from "node:fs";
1817
import { BuildCss } from "@prospective.co/procss/target/cjs/procss.js";
@@ -31,9 +30,7 @@ function get_host() {
3130
}
3231
async function build_all() {
3332
execSync(
34-
`cargo bundle --target=${get_host()} -- perspective_viewer ${
35-
IS_DEBUG ? "" : "--release"
36-
}`,
33+
`cargo bundle --target=${get_host()} -- perspective_viewer ${IS_DEBUG ? "" : "--release"}`,
3734
INHERIT,
3835
);
3936

@@ -56,7 +53,6 @@ async function build_all() {
5653
{
5754
entryPoints: ["src/ts/perspective-viewer.inline.ts"],
5855
format: "esm",
59-
plugins: [PerspectiveEsbuildPlugin()],
6056
loader: { ".wasm": "binary" },
6157
outfile: "dist/esm/perspective-viewer.inline.js",
6258
},
@@ -85,7 +81,6 @@ async function build_all() {
8581
{
8682
entryPoints: ["src/ts/perspective-viewer.cdn.ts"],
8783
format: "esm",
88-
plugins: [PerspectiveEsbuildPlugin()],
8984
loader: { ".wasm": "file" },
9085
outfile: "dist/cdn/perspective-viewer.js",
9186
},

rust/perspective-viewer/src/less/column-selector.less

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@
211211
}
212212

213213
span.expression-delete-button {
214-
// padding-right: 1.5px;
215214
padding-left: 5px;
216215
margin-right: 8px;
217216
margin-left: auto;
@@ -384,9 +383,7 @@
384383

385384
.is_column_active {
386385
&.required {
387-
// color: var(--inactive--color, #ccc);
388386
opacity: 0.3;
389-
cursor: not-allowed;
390387
cursor: initial;
391388
}
392389

@@ -396,30 +393,6 @@
396393
}
397394
}
398395

399-
// .column-selector-column[data-index="0"]:before {
400-
// content: var(--column-selector-column-0--label, attr(data-label));
401-
// }
402-
403-
// .column-selector-column[data-index="1"]:before {
404-
// content: var(--column-selector-column-1--label, attr(data-label));
405-
// }
406-
407-
// .column-selector-column[data-index="2"]:before {
408-
// content: var(--column-selector-column-2--label, attr(data-label));
409-
// }
410-
411-
// .column-selector-column[data-index="3"]:before {
412-
// content: var(--column-selector-column-3--label, attr(data-label));
413-
// }
414-
415-
// .column-selector-column[data-index="4"]:before {
416-
// content: var(--column-selector-column-4--label, attr(data-label));
417-
// }
418-
419-
// .column-selector-column[data-index="5"]:before {
420-
// content: var(--column-selector-column-5--label, attr(data-label));
421-
// }
422-
423396
.column-selector-column {
424397
position: relative;
425398

@@ -502,9 +475,6 @@
502475
// selected for the `columns` field of the `ViewConfig`.
503476
#sub-columns {
504477
padding-bottom: 8px;
505-
// & > div:not(:empty) {
506-
// margin-bottom: 6px;
507-
// }
508478

509479
&:empty {
510480
display: none;

rust/perspective-viewer/src/less/column-settings-panel.less

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
4343
font-size: var(--label--font-size, 0.75em);
4444
}
4545

46-
.radio-list-item label {
47-
margin-top: 6px;
48-
}
49-
5046
input {
5147
&[type="text"],
5248
&[type="search"] {
@@ -86,7 +82,7 @@
8682
cursor: text;
8783
}
8884
}
89-
&::focus {
85+
&:focus {
9086
outline-style: solid;
9187
background: var(--plugin--background);
9288
}

rust/perspective-viewer/src/less/column-style.less

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -167,20 +167,6 @@
167167
flex: 1 1 100%;
168168
}
169169

170-
div.bool-field {
171-
display: flex;
172-
label {
173-
padding: 0 8px;
174-
}
175-
}
176-
177-
div.inner_section {
178-
margin-top: 4px;
179-
width: 0px;
180-
margin-bottom: 8px;
181-
flex: 1 1 100%;
182-
}
183-
184170
div.row {
185171
display: flex;
186172
align-items: center;

rust/perspective-viewer/src/less/config-selector.less

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,6 @@
215215
content: var(--filter-label--content, "Where");
216216
}
217217

218-
.highlight-drop {
219-
background-color: rgba(0, 0, 0, 0.5);
220-
}
221-
222218
.rrow {
223219
display: flex;
224220
min-height: 24px;
@@ -270,26 +266,13 @@
270266
margin: 0;
271267
padding: 0 0 0 0;
272268
min-height: 26px;
273-
// margin-bottom: -1px;
274-
275-
// // Comma separators
276-
// &> :not(.config-drop):after {
277-
// width: 0px;
278-
// content: ",";
279-
// }
280-
281-
// &> :last-child:after {
282-
// display: none;
283-
// content: "" !important;
284-
// }
285269
}
286270

287271
.psp-text-field__input + label {
288272
width: 0px;
289273
height: 20px;
290274
line-height: 17px;
291275
box-sizing: border-box;
292-
// color: var(--inactive--color);
293276
white-space: nowrap;
294277
padding: var(--column-drop-container--padding, 0px);
295278
font-size: var(--label--font-size, 0.75em);

rust/perspective-viewer/src/less/containers/radio-list.less

Lines changed: 0 additions & 29 deletions
This file was deleted.

rust/perspective-viewer/src/less/dom/select.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
border-width: 0px;
3939
outline: none;
4040
-webkit-appearance: none;
41-
-moz-appearance: none;
42-
-ms-appearance: none;
4341
appearance: none;
4442
color: inherit;
4543
padding: 0px 12px 0px 0px;

rust/perspective-viewer/src/less/status-bar.less

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
// When settings open ...
2222
#main_column #status_bar,
2323
#main_column #status_bar.titled {
24-
// padding-right: 10px;
25-
2624
input::placeholder {
2725
color: var(--inactive--color);
2826
}
@@ -95,7 +93,6 @@
9593

9694
input,
9795
textarea {
98-
// grid-area: 1 / 1;
9996
position: absolute;
10097
left: 0;
10198
right: 0;
@@ -123,11 +120,6 @@
123120
}
124121
}
125122

126-
.app-title {
127-
margin-left: 12px;
128-
font-size: 16px;
129-
}
130-
131123
.section {
132124
display: flex;
133125
align-items: center;
@@ -171,32 +163,16 @@
171163
align-self: stretch;
172164
}
173165

174-
#counter-arrow:before {
175-
content: var(--status-bar-counter--content, "arrow_back");
176-
}
177-
178166
span {
179167
white-space: nowrap;
180-
181-
// font-size: var(--label--font-size, 0.75em);
182168
margin: 0px 14px;
183169
user-select: none;
184-
// height: 100%;
185-
// line-height: 36px;
186-
187-
// &:before {
188-
// position: relative;
189-
// }
190170

191171
&:hover {
192172
color: inherit;
193173
}
194174
}
195175

196-
// span#rows {
197-
// margin-left: 2px;
198-
// }
199-
200176
span.icon {
201177
height: 100%;
202178
line-height: 36px;
@@ -279,7 +255,7 @@
279255
align-items: center;
280256
border-radius: 3px;
281257
margin: 0;
282-
height: auto; //var(--status-bar--height, 48px);
258+
height: auto;
283259
border: 1px solid var(--status-ok-icon--border-color, transparent);
284260
cursor: var(--status-ok-icon--cursor);
285261
pointer-events: var(--status-indicator--pointer-events, none);
@@ -298,7 +274,6 @@
298274
var(--icon--color)
299275
);
300276
}
301-
// color: var(--status-ok-icon--hover--background-color);
302277
}
303278

304279
&.errored {
@@ -317,12 +292,8 @@
317292
align-items: center;
318293
justify-content: center;
319294
height: 20px;
320-
height: 20px;
321295
border-radius: 10px;
322296
color: var(--plugin--background);
323-
// pointer-events: all;
324-
// mask-image: url(../svg/status_error.svg);
325-
// -webkit-mask-image: url(../svg/status_error.svg);
326297
&:before {
327298
content: "!";
328299
}
@@ -354,10 +325,6 @@
354325
-webkit-mask-image: var(--updating-icon--mask-image);
355326
}
356327

357-
// span#status.uninitialized {
358-
359-
// }
360-
361328
span#status.updating {
362329
animation-name: status-bar-updating-inverse;
363330
animation-fill-mode: forwards;

0 commit comments

Comments
 (0)