123 lines
3.1 KiB
Plaintext
123 lines
3.1 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: var(--space-xs) 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);
|
|
}
|
|
|
|
.utk-treeview .unity-tree-view__item--selected {
|
|
background-color: var(--color-btn-primary);
|
|
}
|
|
|
|
.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;
|
|
margin-right: var(--space-xs);
|
|
-unity-background-image-tint-color: var(--color-text-secondary);
|
|
transition-duration: var(--anim-fast);
|
|
transition-property: rotate;
|
|
}
|
|
|
|
.utk-treeview .unity-tree-view__item-toggle:checked {
|
|
rotate: 90deg;
|
|
}
|
|
|
|
.utk-treeview .unity-tree-view__item--selected .unity-tree-view__item-toggle {
|
|
-unity-background-image-tint-color: var(--color-text-on-primary);
|
|
}
|
|
|
|
/* ===================================
|
|
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-tree-view__item--selected .unity-tree-view__item-content > .unity-label {
|
|
color: var(--color-text-on-primary);
|
|
}
|
|
|
|
/* ===================================
|
|
Scrollbar
|
|
=================================== */
|
|
|
|
.utk-treeview .unity-scroller--vertical {
|
|
width: 8px;
|
|
}
|
|
|
|
.utk-treeview .unity-scroller--vertical > .unity-scroller__low-button,
|
|
.utk-treeview .unity-scroller--vertical > .unity-scroller__high-button {
|
|
display: none;
|
|
}
|
|
|
|
.utk-treeview .unity-scroller--vertical .unity-base-slider__tracker {
|
|
background-color: transparent;
|
|
border-width: 0;
|
|
}
|
|
|
|
.utk-treeview .unity-scroller--vertical .unity-base-slider__dragger {
|
|
width: 6px;
|
|
border-radius: 3px;
|
|
background-color: var(--color-text-disabled);
|
|
border-width: 0;
|
|
}
|
|
|
|
.utk-treeview .unity-scroller--vertical .unity-base-slider__dragger:hover {
|
|
background-color: var(--color-text-secondary);
|
|
}
|