aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2021-07-23 20:43:50 -0400
committermehekj <mehek.jethani@gmail.com>2021-07-23 20:43:50 -0400
commit15041b8cd20bda206536b8d933672802c1a8cfc6 (patch)
tree39a395b1ca39e966162fbff22e753d2fb61fe06e /src/client/views/collections/collectionSchema
parent618062ac7c2349dbc25cc69d8683d6e29ed947e8 (diff)
parent14e66ac5bcdaa5e244be68ccb8cbb0c495917910 (diff)
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/client/views/collections/collectionSchema')
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx2
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.scss22
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx10
-rw-r--r--src/client/views/collections/collectionSchema/SchemaTable.tsx2
4 files changed, 18 insertions, 18 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx
index f75179cea..90f64f163 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaCells.tsx
@@ -26,7 +26,7 @@ import { SnappingManager } from "../../../util/SnappingManager";
import { undoBatch } from "../../../util/UndoManager";
import '../../../views/DocumentDecorations.scss';
import { EditableView } from "../../EditableView";
-import { MAX_ROW_HEIGHT } from '../../globalCssVariables.scss';
+import { MAX_ROW_HEIGHT } from '../../global/globalCssVariables.scss';
import { DocumentIconContainer } from "../../nodes/DocumentIcon";
import { OverlayView } from "../../OverlayView";
import "./CollectionSchemaView.scss";
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.scss b/src/client/views/collections/collectionSchema/CollectionSchemaView.scss
index b57fee0e4..40cdcd14b 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.scss
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.scss
@@ -1,7 +1,7 @@
-@import "../../globalCssVariables";
+@import "../../global/globalCssVariables.scss";
.collectionSchemaView-container {
border-width: $COLLECTION_BORDER_WIDTH;
- border-color: $intermediate-color;
+ border-color: $medium-gray;
border-style: solid;
border-radius: $border-radius;
box-sizing: border-box;
@@ -33,13 +33,13 @@
cursor: col-resize;
}
// .documentView-node:first-child {
- // background: $light-color;
+ // background: $white;
// }
}
.collectionSchemaView-searchContainer {
border-width: $COLLECTION_BORDER_WIDTH;
- border-color: $intermediate-color;
+ border-color: $medium-gray;
border-style: solid;
border-radius: $border-radius;
box-sizing: border-box;
@@ -72,7 +72,7 @@
cursor: col-resize;
}
// .documentView-node:first-child {
- // background: $light-color;
+ // background: $white;
// }
}
@@ -245,7 +245,7 @@ button.add-column {
}
}
label {
- color: $main-accent;
+ color: $medium-gray;
font-weight: normal;
letter-spacing: 2px;
text-transform: uppercase;
@@ -260,11 +260,11 @@ button.add-column {
background-color: white;
transition: background-color 0.2s;
&:hover {
- background-color: $light-color-secondary;
+ background-color: $light-gray;
}
&.active {
font-weight: bold;
- border: 2px solid $light-color-secondary;
+ border: 2px solid $light-gray;
}
svg {
color: gray;
@@ -277,7 +277,7 @@ button.add-column {
//width: 100%;
background-color: white;
input {
- border: 2px solid $light-color-secondary;
+ border: 2px solid $light-gray;
padding: 3px;
height: 28px;
font-weight: bold;
@@ -303,7 +303,7 @@ button.add-column {
border-top: 0;
}
&:hover {
- background-color: $light-color-secondary;
+ background-color: $light-gray;
}
}
}
@@ -329,7 +329,7 @@ button.add-column {
height: 100%;
background-color: white;
&.row-focused .rt-td {
- background-color: #bfffc0; //$light-color-secondary;
+ background-color: #bfffc0; //$light-gray;
}
&.row-wrapped {
.rt-td {
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index ef28f75c8..585cda729 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -11,21 +11,21 @@ import { listSpec } from "../../../../fields/Schema";
import { PastelSchemaPalette, SchemaHeaderField } from "../../../../fields/SchemaHeaderField";
import { Cast, NumCast } from "../../../../fields/Types";
import { TraceMobx } from "../../../../fields/util";
-import { emptyFunction, emptyPath, returnFalse, setupMoveUpEvents, returnEmptyDoclist, returnTrue } from "../../../../Utils";
+import { emptyFunction, returnEmptyDoclist, returnFalse, returnTrue, setupMoveUpEvents } from "../../../../Utils";
+import { DocUtils } from "../../../documents/Documents";
import { SelectionManager } from "../../../util/SelectionManager";
import { SnappingManager } from "../../../util/SnappingManager";
import { Transform } from "../../../util/Transform";
import { undoBatch } from "../../../util/UndoManager";
-import { COLLECTION_BORDER_WIDTH, SCHEMA_DIVIDER_WIDTH } from '../../globalCssVariables.scss';
+import '../../../views/DocumentDecorations.scss';
import { ContextMenu } from "../../ContextMenu";
import { ContextMenuProps } from "../../ContextMenuItem";
-import '../../../views/DocumentDecorations.scss';
+import { COLLECTION_BORDER_WIDTH, SCHEMA_DIVIDER_WIDTH } from '../../global/globalCssVariables.scss';
import { DocumentView } from "../../nodes/DocumentView";
import { DefaultStyleProvider } from "../../StyleProvider";
-import "./CollectionSchemaView.scss";
import { CollectionSubView } from "../CollectionSubView";
+import "./CollectionSchemaView.scss";
import { SchemaTable } from "./SchemaTable";
-import { DocUtils } from "../../../documents/Documents";
// bcz: need to add drag and drop of rows and columns. This seems like it might work for rows: https://codesandbox.io/s/l94mn1q657
export enum ColumnType {
diff --git a/src/client/views/collections/collectionSchema/SchemaTable.tsx b/src/client/views/collections/collectionSchema/SchemaTable.tsx
index 0d5c9e077..de08c327a 100644
--- a/src/client/views/collections/collectionSchema/SchemaTable.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaTable.tsx
@@ -21,7 +21,7 @@ import { DocumentType } from "../../../documents/DocumentTypes";
import { CompileScript, Transformer, ts } from "../../../util/Scripting";
import { Transform } from "../../../util/Transform";
import { undoBatch } from "../../../util/UndoManager";
-import { COLLECTION_BORDER_WIDTH, SCHEMA_DIVIDER_WIDTH } from '../../globalCssVariables.scss';
+import { COLLECTION_BORDER_WIDTH, SCHEMA_DIVIDER_WIDTH } from '../../global/globalCssVariables.scss';
import { ContextMenu } from "../../ContextMenu";
import '../../../views/DocumentDecorations.scss';
import { DocumentView } from "../../nodes/DocumentView";