196 lines
4.7 KiB
Plaintext
196 lines
4.7 KiB
Plaintext
/*
|
|
* ===================================
|
|
* UTKTabView.uss
|
|
* Unity TabView 래핑 스타일
|
|
* ===================================
|
|
*/
|
|
|
|
/* ===================================
|
|
Base Container
|
|
=================================== */
|
|
|
|
.utk-tabview {
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
/* ===================================
|
|
Tab Header Strip
|
|
=================================== */
|
|
|
|
.utk-tabview .unity-tab-view__header-container {
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* ===================================
|
|
Reorderable Handle (hide)
|
|
=================================== */
|
|
|
|
.utk-tabview .unity-tab-view__reorderable-handle {
|
|
display: none;
|
|
}
|
|
|
|
/* ===================================
|
|
Content Container
|
|
=================================== */
|
|
|
|
.utk-tabview > .unity-tab-view__content-container {
|
|
flex-grow: 1;
|
|
padding: var(--space-l);
|
|
}
|
|
|
|
/* Tab Content inside unity-tab__content-container */
|
|
.utk-tabview .unity-tab__content-container {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.utk-tabview .unity-tab__content-container .unity-label {
|
|
font-size: var(--font-size-body2);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
/* ===================================
|
|
Tab Header inside TabView
|
|
=================================== */
|
|
|
|
.utk-tabview .unity-tab__header {
|
|
background-color: transparent ;
|
|
border-width: 0;
|
|
padding: var(--space-s) var(--space-l);
|
|
margin-right: var(--space-s);
|
|
transition-duration: var(--anim-fast);
|
|
transition-property: background-color;
|
|
}
|
|
|
|
.utk-tabview .unity-tab__header:hover {
|
|
background-color: var(--color-btn-hover) ;
|
|
}
|
|
|
|
.utk-tabview .unity-tab__header:checked {
|
|
background-color: transparent ;
|
|
}
|
|
|
|
.utk-tabview .unity-tab__header-label {
|
|
font-size: var(--font-size-body2);
|
|
color: var(--color-text-secondary) ;
|
|
}
|
|
|
|
.utk-tabview .unity-tab__header:checked .unity-tab__header-label {
|
|
color: var(--color-btn-primary) ;
|
|
-unity-font-style: bold;
|
|
}
|
|
|
|
/* Tab Underline */
|
|
.utk-tabview .unity-tab__header-underline {
|
|
height: 2px;
|
|
background-color: transparent ;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.utk-tabview .unity-tab__header:checked .unity-tab__header-underline {
|
|
background-color: var(--color-btn-primary) ;
|
|
}
|
|
|
|
.utk-tabview .unity-tab-view__content-viewport {
|
|
align-items: stretch;
|
|
}
|
|
|
|
/* ===================================
|
|
Tab Alignment Modes
|
|
=================================== */
|
|
|
|
/* Top Alignment (Default) - 탭이 위쪽에 배치 */
|
|
.utk-tabview.utk-tabview--align-top {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.utk-tabview.utk-tabview--align-top .unity-tab-view__header-container {
|
|
flex-direction: row;
|
|
border-bottom-width: var(--border-width);
|
|
border-bottom-color: var(--color-border);
|
|
border-top-width: 0;
|
|
border-left-width: 0;
|
|
border-right-width: 0;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
/* Bottom Alignment - 탭이 아래쪽에 배치 */
|
|
.utk-tabview.utk-tabview--align-bottom {
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
.utk-tabview.utk-tabview--align-bottom .unity-tab-view__header-container {
|
|
flex-direction: row;
|
|
border-top-width: var(--border-width);
|
|
border-top-color: var(--color-border);
|
|
border-bottom-width: 0;
|
|
border-left-width: 0;
|
|
border-right-width: 0;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.utk-tabview.utk-tabview--align-bottom .unity-tab__header-underline {
|
|
bottom: auto;
|
|
top: 0;
|
|
}
|
|
|
|
/* Left Alignment - 탭이 왼쪽에 세로로 배치 */
|
|
.utk-tabview.utk-tabview--align-left {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.utk-tabview.utk-tabview--align-left .unity-tab-view__header-container {
|
|
flex-direction: column;
|
|
border-right-width: var(--border-width);
|
|
border-right-color: var(--color-border);
|
|
border-bottom-width: 0;
|
|
border-top-width: 0;
|
|
border-left-width: 0;
|
|
}
|
|
|
|
.utk-tabview.utk-tabview--align-left .unity-tab__header {
|
|
margin-right: 0;
|
|
margin-bottom: var(--space-s);
|
|
}
|
|
|
|
.utk-tabview.utk-tabview--align-left .unity-tab__header-underline {
|
|
left: auto;
|
|
right: 0;
|
|
bottom: 0;
|
|
top: 0;
|
|
width: 2px;
|
|
height: auto;
|
|
}
|
|
|
|
/* Right Alignment - 탭이 오른쪽에 세로로 배치 */
|
|
.utk-tabview.utk-tabview--align-right {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.utk-tabview.utk-tabview--align-right .unity-tab-view__header-container {
|
|
flex-direction: column;
|
|
border-left-width: var(--border-width);
|
|
border-left-color: var(--color-border);
|
|
border-bottom-width: 0;
|
|
border-top-width: 0;
|
|
border-right-width: 0;
|
|
}
|
|
|
|
.utk-tabview.utk-tabview--align-right .unity-tab__header {
|
|
margin-right: 0;
|
|
margin-bottom: var(--space-s);
|
|
}
|
|
|
|
.utk-tabview.utk-tabview--align-right .unity-tab__header-underline {
|
|
right: auto;
|
|
left: 0;
|
|
bottom: 0;
|
|
top: 0;
|
|
width: 2px;
|
|
height: auto;
|
|
}
|