Skip to content

Commit

Permalink
added index.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-swf committed Dec 12, 2021
1 parent ad2aa21 commit 7318900
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion src/editor-view/editor-view.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import 'colors';
@import 'editor-vars';

@mixin basic-input-properties {
font-size: 14px;
Expand Down Expand Up @@ -227,6 +226,10 @@ phred-editor-view {
opacity: 0.5;
}

.invisible {
display: none;
}

.phred-content {
flex: 1;
display: inline-flex;
Expand Down
2 changes: 1 addition & 1 deletion src/editor-view/object-tree/model/object-tree-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class ObjectTreeModel {
const o = objects[k] as ObjectTreeNodeModel;
if (!o.node) return;
o.node.classList.addOrRemove(
'invisible',
'excluded',
o.node.title.toLowerCase().indexOf(filter) < 0
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ phred-object-tree-node {
}
}

&.invisible {
&.excluded {
& > .node-head {
display: none;
}
Expand Down
2 changes: 2 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'colors';
@import 'editor-vars';
1 change: 1 addition & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Editor } from 'core/editor';
import { EditorStateHandler } from 'editor.state-handler';
import Phaser from 'phaser-ce';
import { PluginConfigBuilder } from 'plugin.model';
import './index.scss';

interface GameStateConfig {
disableVisibilityChange: boolean;
Expand Down
1 change: 0 additions & 1 deletion src/scene-view/reference-image/reference-image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ phred-reference-image {
bottom: 0;
pointer-events: none;

&.invisible,
&.invalid {
display: none;
}
Expand Down
4 changes: 0 additions & 4 deletions src/scene-view/selection-area/gizmos/selection-gizmo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ phred-selection-gizmo {
padding: 0;
margin: 0;

&.invisible {
display: none;
}

&.disabled {
display: none;
}
Expand Down

0 comments on commit 7318900

Please sign in to comment.