108 lines
3.2 KiB
Plaintext
108 lines
3.2 KiB
Plaintext
/*
|
|
* ===================================
|
|
* UTKTreeView.uss
|
|
* Unity TreeView 래핑 스타일
|
|
* ===================================
|
|
*/
|
|
|
|
/* ===================================
|
|
Base Container
|
|
=================================== */
|
|
|
|
.utk-treeview {
|
|
flex-grow: 1;
|
|
background-color: var(--color-bg-secondary);
|
|
border-radius: var(--radius-s);
|
|
border-width: var(--border-width);
|
|
border-color: var(--color-border);
|
|
}
|
|
|
|
/* ===================================
|
|
Tree Items
|
|
=================================== */
|
|
|
|
.utk-treeview .unity-tree-view__item {
|
|
padding: 0;
|
|
background-color: transparent;
|
|
transition-duration: var(--anim-fast);
|
|
transition-property: background-color;
|
|
}
|
|
|
|
.utk-treeview .unity-tree-view__item:hover {
|
|
background-color: var(--color-btn-hover);
|
|
}
|
|
|
|
/* Unity TreeView uses unity-collection-view__item--selected class internally */
|
|
.utk-treeview .unity-collection-view__item--selected,
|
|
.utk-treeview .unity-tree-view__item--selected {
|
|
background-color: var(--color-btn-primary);
|
|
}
|
|
|
|
.utk-treeview .unity-collection-view__item--selected:hover,
|
|
.utk-treeview .unity-tree-view__item--selected:hover {
|
|
background-color: var(--color-btn-primary-hover);
|
|
}
|
|
|
|
/* ===================================
|
|
Toggle (Expand/Collapse)
|
|
=================================== */
|
|
|
|
.utk-treeview .unity-tree-view__item-toggle {
|
|
width: 16px;
|
|
height: 16px;
|
|
-unity-background-image-tint-color: var(--color-text-secondary);
|
|
transition-duration: var(--anim-fast);
|
|
transition-property: rotate;
|
|
}
|
|
|
|
/* Override #unity-checkmark white color from UTKDefaultStyle.uss */
|
|
.utk-treeview .unity-tree-view__item-toggle #unity-checkmark {
|
|
-unity-background-image-tint-color: var(--color-tree-checkmark);
|
|
}
|
|
|
|
.utk-treeview .unity-tree-view__item-toggle:hover #unity-checkmark {
|
|
-unity-background-image-tint-color: var(--color-tree-checkmark-hover);
|
|
}
|
|
|
|
.utk-treeview .unity-collection-view__item--selected .unity-tree-view__item-toggle,
|
|
.utk-treeview .unity-tree-view__item--selected .unity-tree-view__item-toggle {
|
|
-unity-background-image-tint-color: var(--color-tree-checkmark-hover);
|
|
}
|
|
|
|
.utk-treeview .unity-collection-view__item--selected .unity-tree-view__item-toggle #unity-checkmark,
|
|
.utk-treeview .unity-tree-view__item--selected .unity-tree-view__item-toggle #unity-checkmark {
|
|
-unity-background-image-tint-color: var(--color-tree-checkmark-hover);
|
|
}
|
|
|
|
/* ===================================
|
|
Indentation
|
|
=================================== */
|
|
|
|
.utk-treeview .unity-tree-view__item-indents-container {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.utk-treeview .unity-tree-view__item-indent {
|
|
width: 16px;
|
|
}
|
|
|
|
/* ===================================
|
|
Item Content
|
|
=================================== */
|
|
|
|
.utk-treeview .unity-tree-view__item-content {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
padding-right: var(--space-m);
|
|
}
|
|
|
|
.utk-treeview .unity-tree-view__item-content > .unity-label {
|
|
font-size: var(--font-size-body2);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.utk-treeview .unity-collection-view__item--selected .unity-tree-view__item-content > .unity-label,
|
|
.utk-treeview .unity-tree-view__item--selected .unity-tree-view__item-content > .unity-label {
|
|
color: var(--color-text-on-primary);
|
|
}
|