157 lines
3.9 KiB
Plaintext
157 lines
3.9 KiB
Plaintext
/*
|
|
* ===================================
|
|
* UTKBoundsField.uss
|
|
* Unity BoundsField 래핑 스타일
|
|
* ===================================
|
|
*/
|
|
|
|
/* ===================================
|
|
Base Container
|
|
=================================== */
|
|
|
|
.utk-boundsfield {
|
|
flex-direction: row;
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
height: auto;
|
|
}
|
|
|
|
/* ===================================
|
|
Label
|
|
=================================== */
|
|
|
|
.utk-boundsfield > .unity-label {
|
|
min-width: 80px;
|
|
margin-right: var(--space-m);
|
|
font-size: var(--font-size-body2);
|
|
color: var(--color-text-primary);
|
|
-unity-text-align: middle-left;
|
|
}
|
|
|
|
/* ===================================
|
|
Input Container
|
|
=================================== */
|
|
|
|
.utk-boundsfield > .unity-base-field__input {
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
/* ===================================
|
|
Vector3 Fields (Center, Extents rows)
|
|
=================================== */
|
|
|
|
.utk-boundsfield .unity-composite-field__field-spacer {
|
|
flex-grow: 0;
|
|
}
|
|
|
|
.utk-boundsfield .unity-vector3-field {
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
/* Unity USS does not support :last-child pseudo-class */
|
|
/* .utk-boundsfield .unity-vector3-field:last-child {
|
|
margin-bottom: 0;
|
|
} */
|
|
|
|
.utk-boundsfield .unity-vector3-field > .unity-label {
|
|
min-width: 50px;
|
|
margin-right: var(--space-s);
|
|
padding-top: 3px;
|
|
font-size: var(--font-size-body2);
|
|
color: var(--color-text-secondary);
|
|
-unity-text-align: upper-left;
|
|
}
|
|
|
|
/* ===================================
|
|
Individual Float Fields
|
|
=================================== */
|
|
|
|
.utk-boundsfield .unity-float-field {
|
|
flex-grow: 1;
|
|
margin-right: var(--space-xs);
|
|
}
|
|
|
|
/* Unity USS does not support :last-child pseudo-class */
|
|
/* .utk-boundsfield .unity-float-field:last-child {
|
|
margin-right: 0;
|
|
} */
|
|
|
|
.utk-boundsfield .unity-float-field > .unity-label {
|
|
min-width: 14px;
|
|
font-size: var(--font-size-body2);
|
|
color: var(--color-text-secondary);
|
|
-unity-text-align: middle-center;
|
|
}
|
|
|
|
.utk-boundsfield .unity-float-field > .unity-base-text-field__input {
|
|
background-color: var(--color-bg-input);
|
|
border-width: var(--border-width);
|
|
border-color: var(--color-border);
|
|
border-radius: var(--radius-s);
|
|
padding: var(--space-xs) var(--space-s);
|
|
font-size: var(--font-size-body2);
|
|
color: var(--color-text-primary);
|
|
--unity-cursor-color: var(--color-text-primary);
|
|
}
|
|
|
|
.utk-boundsfield .unity-float-field > .unity-base-text-field__input:focus {
|
|
border-color: var(--color-btn-primary);
|
|
}
|
|
|
|
/* ===================================
|
|
Disabled State
|
|
=================================== */
|
|
|
|
/* ===================================
|
|
Error State
|
|
=================================== */
|
|
|
|
.utk-boundsfield--error .unity-float-field > .unity-base-text-field__input {
|
|
border-color: var(--color-border-error);
|
|
}
|
|
|
|
.utk-boundsfield--error > .unity-label {
|
|
color: var(--color-state-error);
|
|
}
|
|
|
|
/* Error Message Label */
|
|
.utk-boundsfield__error-message {
|
|
width: 100%;
|
|
margin-top: var(--space-xs);
|
|
font-size: var(--font-size-caption);
|
|
color: var(--color-state-error);
|
|
white-space: normal;
|
|
}
|
|
|
|
/* ===================================
|
|
Disabled State
|
|
=================================== */
|
|
|
|
.utk-boundsfield--disabled {
|
|
cursor: arrow;
|
|
}
|
|
|
|
.utk-boundsfield--disabled > .unity-label {
|
|
color: var(--color-text-disabled);
|
|
}
|
|
|
|
.utk-boundsfield--disabled .unity-float-field > .unity-base-text-field__input {
|
|
background-color: var(--color-btn-disabled);
|
|
color: var(--color-text-disabled);
|
|
cursor: arrow;
|
|
}
|
|
|
|
.utk-boundsfield--disabled .unity-float-field > .unity-base-text-field__input:focus {
|
|
border-color: var(--color-border);
|
|
}
|
|
|
|
/* ===================================
|
|
Read Only
|
|
=================================== */
|
|
|
|
.utk-boundsfield--readonly > .unity-base-text-field__input {
|
|
background-color: var(--color-btn-disabled);
|
|
}
|
|
|