Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
unify uss name vs class usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrynes7 committed Jun 1, 2020
1 parent b2be216 commit 8ed3e07
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<UXML xmlns="UnityEngine.UIElements" xmlns:ue ="UnityEditor.UIElements">
<ue:Toolbar>
<ue:ToolbarSearchField class="entity-list-searchbar"/>
<ue:ToolbarSearchField name="entity-list-searchbar"/>
</ue:Toolbar>
<ListView class="entity-list-view" />
<ListView name="entity-list-view" />
</UXML>
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.entity-list-view {
.columns {
flex-direction: row;
flex-grow: 1;
}

#entity-list-view {
flex-grow: 1;
flex-direction: column;
--unity-item-height: 24;
Expand All @@ -9,7 +14,7 @@
-unity-text-align: middle-left;
}

.entity-panel {
#entity-panel {
flex-grow: 1;
flex-direction: column;
max-width: 33%;
Expand All @@ -20,7 +25,55 @@
border-top-width: 1px;
}

.entity-list-searchbar {
#entity-list-searchbar {
flex-grow: 1;
width: auto;
}

#entity-detail {
flex-grow: 1;
flex-direction: column;
max-width: 67%;
border-top-color: rgba(0, 0, 0, 0.2);
border-top-width: 1px;
}

#entity-info {
min-height: 50px;
padding: 8px;
background-color: rgba(0, 0, 0, 0.05);
border-bottom-color: rgba(0, 0, 0, 0.20);
border-bottom-width: 1px;
-unity-text-align: middle-left;
}

#entity-name {
-unity-font-style: bold;
font-size: 14px;
padding-bottom: 4px;
}

.component-foldout {
border-top-width: 1px;
border-bottom-width: 1px;
border-color: rgba(0,0,0,0.10);
padding: 0;
}

.component-foldout .unity-foldout__toggle {
background-color: rgba(255, 255, 255, 0.05);
color: white;
-unity-font-style: bold;
padding-top: 4px;
padding-bottom: 4px;
margin: 0;
}

.component-foldout .unity-foldout__content {
padding-top: 4px;
padding-bottom: 4px;
}

.is-auth-toggle .unity-label:disabled {
color: white;
}

0 comments on commit 8ed3e07

Please sign in to comment.