UTKAccodion 완료. UTKComponentList 수정 중
This commit is contained in:
161
Assets/Resources/UIToolkit/List/UTKImageListUss.uss
Normal file
161
Assets/Resources/UIToolkit/List/UTKImageListUss.uss
Normal file
@@ -0,0 +1,161 @@
|
||||
.image-list-container {
|
||||
background-color: var(--color-bg-panel);
|
||||
flex-grow: 1;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.search-field {
|
||||
height: 24px;
|
||||
margin-bottom: 8px;
|
||||
margin-top: 0;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
Clear 버튼 (Clear Button) - UTKButton 스타일 오버라이드
|
||||
============================================ */
|
||||
|
||||
.clear-button {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
min-width: 16px;
|
||||
min-height: 16px;
|
||||
border-width: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.search-result-label {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-label4);
|
||||
-unity-font-definition: resource('Fonts/Pretendard/Pretendard-Medium');
|
||||
margin-bottom: 8px;
|
||||
padding-left: 4px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
#main-list-view {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
#main-list-view .unity-list-view__item {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#main-list-view .unity-list-view__item:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#main-list-view .unity-list-view__item:checked {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#main-list-view .unity-list-view__item:selected {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.image-list-row {
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
padding: 0 4px;
|
||||
padding-top: 0;
|
||||
padding-right: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.image-list-item {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
padding: 8px;
|
||||
margin: 4px;
|
||||
background-color: transparent;
|
||||
border-width: 0;
|
||||
transition-duration: 0.15s;
|
||||
transition-property: background-color;
|
||||
flex-shrink: 0;
|
||||
margin-top: 2px;
|
||||
margin-right: 2px;
|
||||
margin-bottom: 4px;
|
||||
margin-left: 2px;
|
||||
padding-top: 0;
|
||||
padding-right: 0;
|
||||
padding-bottom: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.image-list-item:hover {
|
||||
background-color: rgb(60, 60, 64);
|
||||
}
|
||||
|
||||
.image-list-item:checked {
|
||||
background-color: rgb(0, 92, 174);
|
||||
}
|
||||
|
||||
.image-list-item:checked:hover {
|
||||
background-color: rgb(0, 102, 184);
|
||||
}
|
||||
|
||||
.image-list-item--hidden {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.item-image {
|
||||
width: 116px;
|
||||
height: 87px;
|
||||
min-width: 100px;
|
||||
min-height: 75px;
|
||||
background-color: rgb(40, 40, 42);
|
||||
border-radius: 4px;
|
||||
margin-bottom: 0;
|
||||
-unity-background-scale-mode: scale-to-fit;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.item-image-loading {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.item-label {
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-label4);
|
||||
-unity-font-definition: resource('Fonts/Pretendard/Pretendard-Medium');
|
||||
-unity-text-align: upper-left;
|
||||
white-space: normal;
|
||||
width: 100%;
|
||||
max-width: 100px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.image-list-item:checked .item-label {
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
|
||||
.drag-ghost {
|
||||
position: absolute;
|
||||
opacity: 0.7;
|
||||
/* pointer-events: none; */ /* Unity USS does not support pointer-events */
|
||||
width: 80px;
|
||||
height: 60px;
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.drag-ghost .item-image {
|
||||
width: 80px;
|
||||
height: 60px;
|
||||
min-width: 80px;
|
||||
min-height: 60px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
Reference in New Issue
Block a user