Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sass/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@import 'editor/editor-layout';
@import 'editor/editor-left-toolbar';
@import 'editor/editor-console';
@import 'editor/editor-bottom-panel';
@import 'editor/editor-hierarchy-panel';
@import 'editor/editor-assets-panel';
@import 'editor/editor-attributes-panel';
Expand Down
53 changes: 25 additions & 28 deletions sass/editor/_editor-assets-panel.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
@use 'sass:color';
@use 'sass:map';

$asset-content-bg: color.mix($bcg-primary, $bcg-dark, 50%);
$asset-tree-bg: color.mix($asset-content-bg, $bcg-darker, 70%);
$asset-content-border: $border-primary;

#layout-assets {
overflow: visible;
background-color: $bcg-darker;
background-color: $asset-content-bg;
height: 100%;

@extend .noSelect;

&.pcui-resizable {
&.pcui-resizable-top.pcui-scrollable > .pcui-panel-content {
top: 0;
}

&.pcui-collapsible.pcui-collapsed {
height: 0 !important;

> .pcui-panel-header {
width: 90px;
}
}
}
}

.pcui-asset-panel {
Expand All @@ -35,11 +26,17 @@
flex-shrink: 0;
max-width: 100%;
height: 100%;
background-color: $asset-tree-bg;
border-top: 1px solid $border-primary;

> .pcui-asset-panel-folders {
height: 100%;

.pcui-treeview-item::before,
.pcui-treeview-item-icon::before {
background-color: $asset-content-border;
}

.pcui-treeview-item-icon::after {
content: '\E139';
}
Expand All @@ -54,8 +51,8 @@

> .pcui-table {
flex: 1;
border-left: 1px solid $border-primary;
background-color: $bcg-dark;
border-left: 1px solid $asset-content-border;
background-color: $asset-content-bg;

> table > tbody {
// Apply hover/focus/selected background to cells only, not the entire row.
Expand Down Expand Up @@ -105,8 +102,8 @@

> .pcui-gridview {
flex: 1;
background-color: $bcg-dark;
border-left: 1px solid $border-primary;
background-color: $asset-content-bg;
border-left: 1px solid $asset-content-border;
border-top: 1px solid $border-primary;
}
}
Expand Down Expand Up @@ -360,7 +357,7 @@
flex-grow: 1;
align-items: center;
height: 32px;
border-left: 1px solid $bcg-darkest;
border-left: 1px solid $border-primary;
}

.pcui-asset-panel-btn-small {
Expand All @@ -375,7 +372,7 @@

&:hover {
z-index: 1;
background-color: #20292b;
background-color: $bcg-darkest;
}
}

Expand All @@ -387,8 +384,8 @@
.pcui-asset-panel-btn-container {
align-items: center;
flex-shrink: 0;
border-left: 1px solid $bcg-darkest;
border-right: 1px solid $bcg-darkest;
border-left: 1px solid $border-primary;
border-right: 1px solid $border-primary;
}

.pcui-select-input {
Expand All @@ -401,7 +398,7 @@
}

&.asset-filter-specific > .pcui-container > .pcui-select-input-value {
background-color: #20292b;
background-color: $bcg-darkest;
}

.pcui-select-input-value {
Expand All @@ -425,8 +422,8 @@
line-height: 32px;
margin: 0;
border: 0;
border-left: 1px solid $bcg-darkest;
border-right: 1px solid $bcg-darkest;
border-left: 1px solid $border-primary;
border-right: 1px solid $border-primary;

> input {
max-width: calc(100% - 24px);
Expand All @@ -451,7 +448,7 @@

&:hover,
&:not([placeholder]) {
background-color: #20292b;
background-color: $bcg-darkest;
}

// placeholder text
Expand Down Expand Up @@ -540,7 +537,7 @@
align-items: center;
justify-content: center;
flex-direction: row;
background-color: $bcg-dark;
background-color: $asset-content-bg;

.pcui-progress {
flex-basis: 128px;
Expand Down
251 changes: 251 additions & 0 deletions sass/editor/_editor-bottom-panel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
@use 'sass:color';

// tabbed bottom panel (assets + console)
#layout-bottom-panel {
border: 1px solid $border-primary;
border-bottom: 0;

> .pcui-panel-header {
overflow: hidden;
align-items: center;
}

// asset panel inside bottom panel
#layout-assets {
border-top: 1px solid $border-primary;

> .pcui-panel-header {
padding-left: 0;

> .pcui-asset-panel-controls {
border-left: 0;
}
}
}

&.pcui-collapsible.pcui-collapsed {
height: 0 !important;
min-height: 0;
border: 0;
overflow: visible;

> .pcui-panel-header {
position: absolute;
top: -32px;
left: 0;
width: fit-content;
max-width: fit-content;
}

> .pcui-panel-content {
display: none;
}
}
}

// tab buttons
.bottom-panel-tabs {
margin: 0;
padding: 0;
gap: 0;
height: 100%;
flex-shrink: 0;
}

.bottom-panel-tab {
@extend .font-bold;

font-size: 12px;
padding: 0 14px;
margin: 0;
height: 100%;
display: flex;
align-items: center;
cursor: pointer;
color: $text-secondary;
border-right: 1px solid $border-primary;
user-select: none;

&:hover {
color: #fff;
background-color: $bcg-darkest;
}

&.active {
color: #fff;
background-color: $bcg-dark;
border-bottom: 2px solid $text-active;
}
}

// status bar (separate row at bottom — Panel matching original #layout-console header)
#layout-statusbar {
border-top: 1px solid $border-primary;
border-left: 1px solid $border-primary;

.pcui-panel-header {
overflow: hidden;
align-items: center;
padding-left: 0;

> .divider {
border: 0;
border-left: 1px solid $border-primary;
height: 100%;
}

> .count {
font-size: 12px;
text-align: center;
margin: 0;
padding: 0 8px;
color: #b1b8ba;
background-color: $bcg-darkest;

&:hover {
color: #fff;
cursor: pointer;
}

&.disabled {
color: color.mix($text-darkest, #b1b8ba, 50%);
background-color: $bcg-darker;
}

&::before {
@extend .font-icon;

text-align: center;
margin-right: 5px;
}

&.info {
&::before {
content: '\E400';
}
}

&.warn {
&::before {
content: '\E218';
}

&.found {
color: #f1c40f;

&.disabled {
color: color.mix($text-darkest, #f1c40f, 50%);
}

&:hover {
color: #fff;
}
}
}

&.error {
&::before {
content: '\E368';
}

&.found {
color: #e74c3c;

&.disabled {
color: color.mix($text-darkest, #e74c3c, 50%);
}

&:hover {
color: #fff;
}
}
}
}

> .jobs-count {
font-size: 12px;
color: #aaa;
margin: 0 8px;
pointer-events: none;

&::before {
content: '\E304';

@extend .font-icon;

text-align: center;
margin-right: 5px;
}
}

> .jobs-progress {
width: 128px;
margin: 0 10px 0 0;
display: none;
transition: opacity 100ms, visibility 100ms;

&.active {
display: block;
}
}

> .asset-auditor {
border-radius: 0;
margin: 0;
height: 32px;

&:hover {
background-color: $bcg-darkest;
box-shadow: none;
}

&.warn {
color: #f1c40f;
}

&.error {
color: white;
background-color: #e74c3c;

&:hover {
background-color: color.mix(black, #e74c3c, 25%);
}
}
}

> .status {
font-size: 12px;
color: #aaa;
border-left: 1px solid $border-primary;
margin-left: auto;
padding-left: 10px;
padding-right: 5px;
pointer-events: none;
user-select: none;

&.error {
color: #e74c3c;
}
}

> .version {
border-radius: 0;
margin: 0;
height: 32px;
white-space: nowrap;

&:hover {
background-color: $bcg-darkest;
box-shadow: none;
}

&.updated {
color: $text-active;

&:hover {
color: color.adjust($text-active, $lightness: 10%);
}
}
}
}
}
Loading