Files
BABA_YAGA/Assets/UI/Global.uss

436 lines
11 KiB
Plaintext
Raw Normal View History

2026-04-28 00:07:42 +07:00
/* Global Styles for Hallucinate UI */
2026-04-28 18:49:05 +07:00
/* ============================================================
2026-05-01 16:17:12 +07:00
DESIGN TOKENS & UNITY THEME OVERRIDES
2026-04-28 18:49:05 +07:00
============================================================ */
2026-04-28 00:07:42 +07:00
:root {
--primary-color: #ffffff;
--accent-color: #00ffcc;
2026-05-01 15:08:59 +07:00
--color-surface: rgba(10, 10, 10, 0.95);
--color-surface-opaque: #0a0a0a;
2026-04-29 01:04:28 +07:00
--color-text-primary: #ffffff;
--color-text-secondary: #aaaaaa;
--color-text-accent: #00ffcc;
--radius-md: 12px;
2026-05-01 15:08:59 +07:00
--radius-lg: 24px;
2026-04-28 18:49:05 +07:00
--radius-pill: 999px;
2026-05-01 16:17:12 +07:00
/* ÉP UNITY DÙNG MÀU CỦA GAME CHO CÁC THÀNH PHẦN NỘI BỘ (DROPDOWN POPUP) */
--unity-colors-surface-background: #0a0a0a;
--unity-colors-surface-border: #00ffcc;
--unity-colors-surface-text: #ffffff;
--unity-colors-highlight-background: rgba(0, 255, 204, 0.2);
2026-04-28 00:07:42 +07:00
}
2026-04-28 18:49:05 +07:00
/* ============================================================
BASE RESET
============================================================ */
2026-04-28 00:07:42 +07:00
.screen-root {
width: 100%;
height: 100%;
position: absolute;
2026-04-29 01:04:28 +07:00
background-color: rgba(0, 0, 0, 0);
color: #ffffff;
-unity-font: url("../Fonts/BitcountSingleInk-VariableFont_CRSV,ELSH,ELXP,SZP1,SZP2,XPN1,XPN2,YPN1,YPN2,slnt,wght.ttf");
-unity-font-definition: url("../Fonts/BitcountSingleInk-VariableFont_CRSV,ELSH,ELXP,SZP1,SZP2,XPN1,XPN2,YPN1,YPN2,slnt,wght SDF.asset");
2026-04-28 00:07:42 +07:00
}
2026-04-28 18:49:05 +07:00
/* ============================================================
2026-04-28 22:35:03 +07:00
TYPOGRAPHY
2026-04-28 18:49:05 +07:00
============================================================ */
2026-04-28 22:35:03 +07:00
.text-heading {
font-size: 32px;
-unity-font-style: bold;
2026-04-29 01:04:28 +07:00
color: #ffffff;
-unity-font: url("../Fonts/BitcountGridDouble-VariableFont_CRSV,ELSH,ELXP,slnt,wght.ttf");
-unity-font-definition: url("../Fonts/BitcountGridDouble-VariableFont_CRSV,ELSH,ELXP,slnt,wght SDF.asset");
margin-bottom: 16px;
2026-04-28 22:35:03 +07:00
}
.text-subheading {
font-size: 24px;
-unity-font-style: bold;
2026-04-29 01:04:28 +07:00
color: #00ffcc;
-unity-font: url("../Fonts/BitcountGridDouble-VariableFont_CRSV,ELSH,ELXP,slnt,wght.ttf");
-unity-font-definition: url("../Fonts/BitcountGridDouble-VariableFont_CRSV,ELSH,ELXP,slnt,wght SDF.asset");
margin-bottom: 12px;
2026-04-28 22:35:03 +07:00
}
.text-label {
2026-04-29 01:04:28 +07:00
font-size: 15px;
color: #aaaaaa;
2026-04-28 22:35:03 +07:00
-unity-font-style: bold;
2026-04-29 01:04:28 +07:00
letter-spacing: 1px;
2026-04-28 22:35:03 +07:00
}
.text-body {
2026-04-29 01:04:28 +07:00
font-size: 18px;
color: #eeeeee;
-unity-font-style: normal;
/* Giúp chữ mượt hơn */
-unity-text-outline-width: 0.1px;
-unity-text-outline-color: rgba(255, 255, 255, 0.1);
2026-04-28 22:35:03 +07:00
}
.text-accent {
2026-04-29 01:04:28 +07:00
color: #00ffcc;
2026-04-28 22:35:03 +07:00
}
2026-04-28 18:49:05 +07:00
2026-04-28 22:35:03 +07:00
/* ============================================================
2026-04-29 01:04:28 +07:00
SCROLL VIEW CUSTOMIZATION
2026-04-28 22:35:03 +07:00
============================================================ */
2026-04-29 01:04:28 +07:00
.scroll-list {
padding-right: 12px;
2026-04-28 00:07:42 +07:00
}
2026-04-29 01:04:28 +07:00
.unity-scroller {
background-color: transparent;
width: 6px;
2026-04-28 00:07:42 +07:00
}
2026-04-29 01:04:28 +07:00
.unity-base-slider__tracker {
background-color: transparent;
border-width: 0;
2026-04-28 00:07:42 +07:00
}
2026-04-29 01:04:28 +07:00
.unity-base-slider__dragger {
background-color: rgba(0, 255, 204, 0.3);
border-radius: 3px;
width: 3px;
left: 1.5px;
border-width: 0;
2026-05-01 15:08:59 +07:00
transition: 200ms;
2026-04-29 01:04:28 +07:00
}
2026-04-28 18:49:05 +07:00
2026-04-29 01:04:28 +07:00
.unity-scroller:hover .unity-base-slider__dragger {
background-color: rgba(0, 255, 204, 0.8);
width: 6px;
left: 0;
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.unity-scroller__low-button, .unity-scroller__high-button {
display: none;
2026-04-28 18:49:05 +07:00
}
/* ============================================================
2026-04-29 01:04:28 +07:00
BUTTONS
2026-04-28 18:49:05 +07:00
============================================================ */
2026-04-29 01:04:28 +07:00
.button-spring {
height: 48px;
padding: 0 24px;
border-radius: 12px;
border-width: 0;
-unity-font-style: bold;
font-size: 16px;
color: #ffffff;
background-color: rgba(255, 255, 255, 0.1);
2026-05-01 15:08:59 +07:00
transition: 150ms;
2026-04-29 01:04:28 +07:00
align-items: center;
2026-04-28 00:07:42 +07:00
justify-content: center;
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.button-spring:hover {
2026-05-01 15:08:59 +07:00
scale: 1.05 1.05;
2026-04-29 01:04:28 +07:00
background-color: rgba(255, 255, 255, 0.2);
2026-04-28 22:35:03 +07:00
}
2026-04-29 02:31:15 +07:00
.button-spring:active {
2026-05-01 15:08:59 +07:00
scale: 0.92 0.92;
2026-04-29 02:31:15 +07:00
background-color: rgba(255, 255, 255, 0.3);
2026-05-01 15:08:59 +07:00
transition-duration: 50ms;
2026-04-29 02:31:15 +07:00
}
2026-04-29 01:04:28 +07:00
.btn-settings { background-color: #7B6EE8; }
.btn-join { background-color: #4DC8A0; }
.btn-create { background-color: #E8834D; }
.btn-profile { background-color: #E84D8A; }
.btn-exit { background-color: #666666; }
2026-04-28 18:49:05 +07:00
/* ============================================================
2026-05-01 15:08:59 +07:00
DROPDOWN & FIELDS (THE BIG FIX)
============================================================ */
2026-05-01 16:17:12 +07:00
DropdownField, .unity-dropdown-field {
2026-05-01 15:08:59 +07:00
margin-bottom: 12px;
2026-05-01 16:17:12 +07:00
transition: 200ms;
2026-05-01 15:08:59 +07:00
}
2026-05-01 16:17:12 +07:00
DropdownField .unity-dropdown-field__label {
2026-05-01 15:08:59 +07:00
width: 35%;
color: #aaaaaa;
font-size: 14px;
-unity-font-style: bold;
}
2026-05-01 16:17:12 +07:00
DropdownField .unity-base-field__input {
2026-05-01 15:08:59 +07:00
background-color: rgba(255, 255, 255, 0.05);
border-radius: 10px;
border-width: 1px;
border-color: rgba(255, 255, 255, 0.1);
padding: 10px 15px;
flex-grow: 1;
color: #00ffcc;
transition: 200ms;
}
2026-05-01 16:17:12 +07:00
DropdownField:hover .unity-base-field__input {
background-color: rgba(255, 255, 255, 0.08);
2026-05-01 15:08:59 +07:00
border-color: #00ffcc;
}
/* NHẮM VÀO CÁI MENU XỔ XUỐNG (POPUP) */
2026-05-01 16:17:12 +07:00
/* Cần selector cực kỳ mạnh và ghi đè toàn bộ phân cấp */
/* Container chính của Popup - Lớp phủ toàn màn hình */
2026-05-01 15:08:59 +07:00
.unity-base-dropdown {
2026-05-01 16:17:12 +07:00
background-color: rgba(0, 0, 0, 0) !important; /* Phải để trong suốt để không tràn màn hình */
border-width: 0 !important;
}
/* Phần nền nội bộ của cái menu box thực tế */
.unity-base-dropdown__container-inner {
2026-05-01 15:08:59 +07:00
background-color: #0a0a0a !important;
border-width: 2px !important;
border-color: #00ffcc !important;
border-radius: 12px !important;
margin-top: 10px !important;
2026-05-01 16:17:12 +07:00
padding: 5px !important;
2026-05-01 15:08:59 +07:00
}
2026-05-01 16:17:12 +07:00
/* Từng dòng Item */
2026-05-01 15:08:59 +07:00
.unity-base-dropdown__item {
padding: 12px 15px !important;
background-color: transparent !important;
color: #eeeeee !important;
}
2026-05-01 16:17:12 +07:00
/* Chữ trong Item */
.unity-base-dropdown__label {
color: #eeeeee !important;
}
2026-05-01 15:08:59 +07:00
/* Đè hiệu ứng hover mặc định */
.unity-base-dropdown__item:hover {
background-color: rgba(0, 255, 204, 0.15) !important;
color: #00ffcc !important;
}
2026-05-01 16:17:12 +07:00
.unity-base-dropdown__item:hover .unity-base-dropdown__label {
color: #00ffcc !important;
}
2026-05-01 15:08:59 +07:00
/* Item được chọn */
.unity-base-dropdown__item--selected {
background-color: rgba(0, 255, 204, 0.1) !important;
color: #00ffcc !important;
}
.unity-base-dropdown__checkmark {
-unity-background-image-tint-color: #00ffcc !important;
}
2026-05-01 16:17:12 +07:00
/* ============================================================
SMART SIDEBAR (OSU STYLE OVERLAY)
============================================================ */
.sidebar-tabs-container {
background-color: rgba(5, 5, 5, 0.95);
padding-top: 60px;
flex-shrink: 0;
border-right-width: 1px;
border-right-color: rgba(0, 255, 204, 0.1);
transition: width 0.3s ease-out-quad;
overflow: hidden;
height: 100%;
}
.sidebar-collapsed {
width: 80px;
}
.sidebar-expanded {
width: 240px;
position: absolute;
z-index: 100;
border-right-color: #00ffcc;
border-right-width: 2px;
}
.sidebar-tab {
height: 60px;
background-color: transparent;
border-width: 0;
padding: 0;
flex-direction: row;
align-items: center;
border-left-width: 4px;
border-left-color: transparent;
margin: 2px 0;
}
.tab-icon-box {
width: 80px;
height: 60px;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
.tab-icon {
width: 32px;
height: 32px;
background-color: #ffffff; /* Placeholder color */
-unity-background-image-tint-color: #ffffff;
}
.active-tab .tab-icon {
-unity-background-image-tint-color: #00ffcc;
background-color: #00ffcc;
}
.tab-label {
font-size: 16px;
-unity-font-style: bold;
color: #888888;
margin-left: 10px;
white-space: nowrap;
opacity: 0;
transition: opacity 0.2s;
}
.sidebar-expanded .tab-label {
opacity: 1;
color: #ffffff;
}
/* ICON-ONLY BACK BUTTON */
.btn-icon-only {
width: 44px;
height: 44px;
border-radius: 22px;
padding: 0;
justify-content: center;
align-items: center;
}
.btn-icon-only .tab-icon {
width: 24px;
height: 24px;
}
2026-05-01 15:08:59 +07:00
/* ============================================================
PANELS
2026-04-28 18:49:05 +07:00
============================================================ */
.panel-glass {
background-color: var(--color-surface);
2026-04-29 01:04:28 +07:00
border-radius: 20px;
2026-05-01 15:08:59 +07:00
border-width: 1px;
border-color: rgba(255, 255, 255, 0.1);
2026-04-28 18:49:05 +07:00
}
.input-field {
2026-04-28 22:35:03 +07:00
height: 48px;
2026-04-29 01:04:28 +07:00
border-radius: 12px;
2026-04-28 18:49:05 +07:00
border-width: 1px;
2026-04-29 01:04:28 +07:00
border-color: rgba(255, 255, 255, 0.15);
background-color: rgba(255, 255, 255, 0.08);
color: #ffffff;
padding-left: 16px;
margin-bottom: 16px;
2026-04-28 22:35:03 +07:00
}
.unity-base-text-field__input {
2026-04-29 01:04:28 +07:00
background-color: rgba(0, 0, 0, 0);
2026-04-28 22:35:03 +07:00
border-width: 0;
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.ribbon {
flex-direction: row;
height: 120px;
width: 100%;
background-color: rgba(10, 10, 10, 0.95);
border-top-width: 2px;
border-bottom-width: 2px;
border-top-color: #00ffcc;
border-bottom-color: #00ffcc;
align-items: center;
justify-content: center;
padding: 0 50px;
position: absolute;
top: 50%;
translate: 0 -50%;
}
.border-accent { border-color: #00ffcc; }
2026-04-28 18:49:05 +07:00
/* ============================================================
2026-04-29 01:04:28 +07:00
SETTINGS & REBINDING
2026-04-28 18:49:05 +07:00
============================================================ */
.sidebar-tab {
2026-05-01 15:08:59 +07:00
height: 54px;
2026-04-28 18:49:05 +07:00
background-color: transparent;
border-width: 0;
2026-05-01 15:08:59 +07:00
color: #888888;
2026-04-29 01:04:28 +07:00
-unity-font-style: bold;
2026-04-28 22:35:03 +07:00
font-size: 16px;
border-left-width: 4px;
2026-04-29 01:04:28 +07:00
border-left-color: transparent;
2026-05-01 15:08:59 +07:00
padding-left: 24px;
2026-04-28 18:49:05 +07:00
border-radius: 0;
2026-05-01 15:08:59 +07:00
margin: 2px 0;
2026-04-29 01:04:28 +07:00
-unity-text-align: middle-left;
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.sidebar-tab:hover {
color: #ffffff;
2026-05-01 15:08:59 +07:00
background-color: rgba(255, 255, 255, 0.03);
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.active-tab {
color: #00ffcc;
border-left-color: #00ffcc;
2026-05-01 15:08:59 +07:00
background-color: rgba(0, 255, 204, 0.08);
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.rebind-row {
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
2026-05-01 15:08:59 +07:00
background-color: rgba(255, 255, 255, 0.02);
border-radius: 10px;
margin-bottom: 6px;
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.rebind-label {
font-size: 14px;
2026-05-01 15:08:59 +07:00
color: #cccccc;
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.rebind-button {
2026-05-01 15:08:59 +07:00
width: 140px;
height: 36px;
background-color: rgba(255, 255, 255, 0.08);
border-radius: 8px;
2026-04-29 01:04:28 +07:00
border-width: 1px;
2026-05-01 15:08:59 +07:00
border-color: rgba(255, 255, 255, 0.1);
2026-04-29 01:04:28 +07:00
color: #00ffcc;
2026-05-01 15:08:59 +07:00
font-size: 13px;
2026-04-29 01:04:28 +07:00
-unity-font-style: bold;
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.rebind-button:hover {
2026-05-01 15:08:59 +07:00
background-color: rgba(255, 255, 255, 0.15);
border-color: #00ffcc;
2026-04-28 18:49:05 +07:00
}
2026-04-29 01:04:28 +07:00
.setting-section-header {
margin-top: 24px;
2026-05-01 15:08:59 +07:00
margin-bottom: 12px;
font-size: 13px;
color: #666666;
2026-04-29 01:04:28 +07:00
-unity-font-style: bold;
border-bottom-width: 1px;
2026-05-01 15:08:59 +07:00
border-bottom-color: rgba(255, 255, 255, 0.05);
padding-bottom: 6px;
letter-spacing: 1px;
2026-04-28 18:49:05 +07:00
}