Skip to content

Commit

Permalink
Changed: Single scss file with all variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-jg committed Sep 7, 2022
1 parent d2f3093 commit 5a64272
Show file tree
Hide file tree
Showing 22 changed files with 30 additions and 65 deletions.
19 changes: 0 additions & 19 deletions src/_colors.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/_editor-vars.scss

This file was deleted.

2 changes: 0 additions & 2 deletions src/editor-view/actions/actions-toolbar.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

phred-actions-toolbar {
height: 42px;
min-height: 42px;
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/actions/button/action-button.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

.actions-toolbar .button {
box-shadow: none;
position: relative;
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/actions/help/help-screen.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

phred-help-screen.popup-container {
phred-popup {
width: 500px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

$height: 160px;

phred-reference-image-panel.popup-container {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import 'colors';
@import '../button/action-button.scss';

phred-size-templates-panel.fa {
Expand Down
2 changes: 1 addition & 1 deletion src/editor-view/editor-view.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'colors';
@import 'index';

@mixin basic-input-properties {
font-size: 14px;
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/inspector/inspector.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

@mixin inspector-title {
font-size: 12px;
font-weight: bold;
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/object-tree/search-field/search-field.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

phred-search-field {
position: relative;
opacity: 0.8;
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/object-tree/tree-node/object-tree-node.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

phred-object-tree-node {
display: inline-block;
cursor: pointer;
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/panel/panel.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

$handle-width: 5px;

phred-panel {
Expand Down
10 changes: 4 additions & 6 deletions src/editor-view/panel/resize-handle/panel-resize-handle.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

$handle-width: 6px;
$active-handle-margin: 20px;

Expand All @@ -11,10 +9,10 @@ phred-panel-resize-handle {

&:active {
&.left {
right: -($active-handle-margin + $handle-width/2);
right: calc(($active-handle-margin + $handle-width/2) * -1);
}
&.right {
left: -($active-handle-margin + $handle-width/2);
left: calc(($active-handle-margin + $handle-width/2) * -1);
}
& > .thumb {
margin: 0 $active-handle-margin;
Expand All @@ -29,11 +27,11 @@ phred-panel-resize-handle {
}

&.left {
right: -$handle-width/2;
right: calc($handle-width * -0.5);
}

&.right {
left: -$handle-width/2;
left: calc($handle-width * -0.5);
}

& > .thumb {
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/popup/popup-container.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

.popup-container {
position: absolute;
top: 0;
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/popup/popup.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

phred-popup {
max-width: 90%;
max-height: 90%;
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/properties/editors/property-editor.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

.property-editor {
display: flex;
flex-direction: row;
Expand Down
2 changes: 0 additions & 2 deletions src/editor-view/widget/widget.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

.phred-widget {
background-color: $background-color;
box-sizing: border-box;
Expand Down
25 changes: 23 additions & 2 deletions src/index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
@import 'colors';
@import 'editor-vars';
$primary-color: #2980b9;
$on-primary: #F2F2F2;

$background-color: #232323;
$on-background: #D0D0D0;

$border-color: #1B1B1B;
$shadow-color: rgba(#111, 0.6);
$light-shadow-color: rgba(#111, 0.2);

$selection-color: #62c3d9;

$focused-text-color: $on-background;
$unfocused-text-color: darken($on-background, 20%);
$disabled-text-color: rgba($on-background, 0.5);

$button-text-color: darken($on-background, 40%);

$input-background: lighten($background-color, 3);
$input-foreground: $on-background;
$focused-input-border: rgba($on-background, 0.3);

$gizmo-shadow: 0 0 2px 2px $shadow-color;
2 changes: 0 additions & 2 deletions src/scene-view/game-container/game-container.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'colors';

phred-game-container {
background-color: #1b1b1b;
flex: 1;
Expand Down
1 change: 0 additions & 1 deletion src/scene-view/game-parent/game-resize-handle.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import 'colors';
$size: 20px;

phred-game-resize-handle {
Expand Down
6 changes: 2 additions & 4 deletions src/scene-view/selection-area/gizmos/scale-gizmo.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
@import 'editor-vars';

$handle-size: 15px;
$size: 25px;
$padding: ($size - $handle-size)/2;
$padding: calc(($size - $handle-size) * 0.5);

phred-scale-gizmo {
position: absolute;
display: block;
box-sizing: border-box;
width: $size;
height: $size;
margin: -($size + 2)/2;
margin: calc(($size + 2px) * -0.5);
border-radius: $size;
pointer-events: all;
display: flex;
Expand Down
2 changes: 0 additions & 2 deletions src/scene-view/selection-area/gizmos/selection-gizmo.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import 'editor-vars';

phred-selection-gizmo {
position: absolute;
display: block;
Expand Down

0 comments on commit 5a64272

Please sign in to comment.