| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- /* Shop UI Styles - Unity Compatible Version */
- #ShopContainer {
- position: absolute;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.8);
- justify-content: center;
- align-items: center;
- display: none; /* Hidden by default, script will show it */
- }
- #ShopWindow {
- width: 650px;
- height: 550px;
- min-width: 450px;
- min-height: 350px;
- max-width: 800px;
- max-height: 650px;
- background-color: rgb(240, 240, 240);
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- border-bottom-left-radius: 10px;
- border-bottom-right-radius: 10px;
- border-left-width: 2px;
- border-right-width: 2px;
- border-top-width: 2px;
- border-bottom-width: 2px;
- border-left-color: rgb(100, 100, 100);
- border-right-color: rgb(100, 100, 100);
- border-top-color: rgb(100, 100, 100);
- border-bottom-color: rgb(100, 100, 100);
- padding-left: 20px;
- padding-right: 20px;
- padding-top: 20px;
- padding-bottom: 20px;
- }
- #ShopTitle {
- font-size: 24px;
- color: rgb(50, 50, 50);
- -unity-font-style: bold;
- }
- #PlayerMoney {
- color: rgb(0, 120, 0);
- font-size: 16px;
- -unity-font-style: bold;
- }
- #CloseButton {
- width: 30px;
- height: 30px;
- background-color: rgb(200, 50, 50);
- color: white;
- border-top-left-radius: 15px;
- border-top-right-radius: 15px;
- border-bottom-left-radius: 15px;
- border-bottom-right-radius: 15px;
- border-left-width: 0;
- border-right-width: 0;
- border-top-width: 0;
- border-bottom-width: 0;
- font-size: 16px;
- -unity-font-style: bold;
- }
- #CloseButton:hover {
- background-color: rgb(220, 70, 70);
- }
- /* Shop Controls container */
- #ShopControls {
- flex-direction: column;
- flex-shrink: 0; /* Prevent shrinking */
- width: 100%; /* Take full width of parent */
- max-width: 610px; /* Ensure it fits within ShopWindow (650px - 40px padding) */
- }
- /* Search row container */
- #SearchRow {
- flex-direction: row;
- align-items: center;
- width: 100%;
- margin-bottom: 10px;
- }
- /* Category row container */
- #CategoryRow {
- flex-direction: row;
- align-items: center;
- width: 100%;
- }
- #SearchField {
- flex-grow: 1;
- margin-right: 0px;
- max-width: none; /* Allow it to take full width */
- min-width: 200px; /* Ensure minimum usability */
- color: rgb(50, 50, 50); /* Text color for visibility */
- background-color: transparent; /* Transparent background to match window */
- }
- /* Style the search field's text input specifically */
- #SearchField .unity-text-field__input {
- color: rgb(50, 50, 50);
- background-color: white;
- border-left-width: 1px;
- border-right-width: 1px;
- border-top-width: 1px;
- border-bottom-width: 1px;
- border-left-color: rgb(180, 180, 180);
- border-right-color: rgb(180, 180, 180);
- border-top-color: rgb(180, 180, 180);
- border-bottom-color: rgb(180, 180, 180);
- border-top-left-radius: 3px;
- border-top-right-radius: 3px;
- border-bottom-left-radius: 3px;
- border-bottom-right-radius: 3px;
- padding-left: 5px;
- padding-right: 5px;
- padding-top: 3px;
- padding-bottom: 3px;
- }
- /* Focus state for search field */
- #SearchField .unity-text-field__input:focus {
- border-left-color: rgb(100, 150, 255);
- border-right-color: rgb(100, 150, 255);
- border-top-color: rgb(100, 150, 255);
- border-bottom-color: rgb(100, 150, 255);
- border-left-width: 2px;
- border-right-width: 2px;
- border-top-width: 2px;
- border-bottom-width: 2px;
- }
- /* Style the search field label */
- #SearchField .unity-text-field__label {
- color: rgb(50, 50, 50);
- background-color: transparent; /* Remove white background */
- font-size: 12px;
- margin-right: 5px;
- min-width: 50px;
- }
- /* Style the category filter */
- #CategoryFilter .unity-dropdown-field__input {
- color: rgb(50, 50, 50);
- background-color: white;
- border-left-width: 1px;
- border-right-width: 1px;
- border-top-width: 1px;
- border-bottom-width: 1px;
- border-left-color: rgb(180, 180, 180);
- border-right-color: rgb(180, 180, 180);
- border-top-color: rgb(180, 180, 180);
- border-bottom-color: rgb(180, 180, 180);
- border-top-left-radius: 3px;
- border-top-right-radius: 3px;
- border-bottom-left-radius: 3px;
- border-bottom-right-radius: 3px;
- padding-left: 8px; /* Increased padding for better text spacing */
- padding-right: 25px; /* More space for dropdown arrow */
- padding-top: 4px;
- padding-bottom: 4px;
- min-height: 20px; /* Ensure minimum height for text visibility */
- }
- /* Style the dropdown arrow/button area */
- #CategoryFilter .unity-dropdown-field__arrow {
- color: rgb(100, 100, 100);
- background-color: transparent;
- }
- /* Style the text display in closed state */
- #CategoryFilter .unity-dropdown-field__text {
- color: rgb(50, 50, 50);
- font-size: 12px;
- padding-left: 2px;
- padding-right: 2px;
- }
- /* Style the category filter label */
- #CategoryFilter .unity-dropdown-field__label {
- color: rgb(50, 50, 50);
- background-color: transparent; /* Remove white background */
- font-size: 12px;
- margin-right: 8px; /* Increased margin for better spacing */
- min-width: 70px; /* Slightly increased width */
- }
- /* Hide scrollbars in the dropdown */
- #CategoryFilter .unity-scroll-view__horizontal-scroller {
- display: none !important;
- }
- #CategoryFilter .unity-scroll-view__vertical-scroller {
- display: none !important;
- }
- /* Additional scrollbar hiding for dropdown popup */
- #CategoryFilter .unity-scroll-view {
- overflow: hidden;
- }
- #CategoryFilter .unity-scroll-view__content-viewport {
- overflow: hidden;
- }
- /* Hide any scrollbars in the dropdown list */
- #CategoryFilter .unity-dropdown-field__list {
- overflow: hidden;
- }
- #CategoryFilter .unity-dropdown-field__list .unity-scroll-view__horizontal-scroller {
- display: none !important;
- }
- #CategoryFilter .unity-dropdown-field__list .unity-scroll-view__vertical-scroller {
- display: none !important;
- }
- /* Hide scrollbars for any popup content */
- #CategoryFilter .unity-base-popup-field__popup .unity-scroll-view__horizontal-scroller {
- display: none !important;
- }
- #CategoryFilter .unity-base-popup-field__popup .unity-scroll-view__vertical-scroller {
- display: none !important;
- }
- /* Target the popup window specifically */
- #CategoryFilter .unity-base-popup-field__popup {
- overflow: hidden;
- }
- #CategoryFilter .unity-base-popup-field__popup .unity-scroll-view {
- overflow: hidden;
- }
- /* Hide horizontal scrollers in popup content */
- #CategoryFilter .unity-popup__content-container .unity-scroll-view__horizontal-scroller {
- display: none !important;
- }
- /* Force all dropdown list items to fit within container */
- #CategoryFilter .unity-dropdown-field__list .unity-label {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 280px;
- }
- /* Style the dropdown popup/menu */
- #CategoryFilter .unity-base-popup-field__arrow {
- color: rgb(100, 100, 100);
- }
- /* Ensure dropdown content fits properly */
- #CategoryFilter .unity-dropdown-field__container {
- overflow: hidden;
- }
- #CategoryFilter {
- width: 400px; /* Increased from 300px to give more space for text */
- flex-shrink: 0; /* Prevent it from shrinking */
- background-color: transparent; /* Match window background */
- overflow: hidden; /* Hide any overflow content */
- }
- /* Global scrollbar hiding for all elements within CategoryFilter */
- #CategoryFilter * {
- overflow: hidden;
- }
- /* Force hide all scrollbars globally within the category filter */
- #CategoryFilter .unity-scroller {
- display: none !important;
- }
- #CategoryFilter .unity-scroller__slider {
- display: none !important;
- }
- #CategoryFilter .unity-scroller__low-button {
- display: none !important;
- }
- #CategoryFilter .unity-scroller__high-button {
- display: none !important;
- }
- /* Target Unity's internal scrollbar elements */
- #CategoryFilter .unity-scroller--horizontal {
- display: none !important;
- }
- #CategoryFilter .unity-scroller--vertical {
- display: none !important;
- }
- /* Hide all scrollbar track elements */
- #CategoryFilter .unity-scroller__track {
- display: none !important;
- }
- /* Hide scrollbar dragger elements */
- #CategoryFilter .unity-scroller__dragger {
- display: none !important;
- }
- /* Hide repeat buttons */
- #CategoryFilter .unity-repeat-button {
- display: none !important;
- }
- /* Global nuclear option - hide ALL scrollers */
- #CategoryFilter .unity-base-field__input .unity-scroller {
- display: none !important;
- }
- #CategoryFilter .unity-popup-field__input .unity-scroller {
- display: none !important;
- }
- /* Target any element with "scroller" in the class name */
- #CategoryFilter [class*="scroller"] {
- display: none !important;
- }
- /* Target any element with "scroll" in the class name */
- #CategoryFilter [class*="scroll"] {
- display: none !important;
- }
- #ItemList {
- background-color: white;
- border-left-width: 1px;
- border-right-width: 1px;
- border-top-width: 1px;
- border-bottom-width: 1px;
- border-left-color: rgb(180, 180, 180);
- border-right-color: rgb(180, 180, 180);
- border-top-color: rgb(180, 180, 180);
- border-bottom-color: rgb(180, 180, 180);
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- padding-left: 10px;
- padding-right: 10px;
- padding-top: 10px;
- padding-bottom: 10px;
- flex-grow: 1;
- min-height: 200px;
- }
- .shop-item {
- background-color: rgb(248, 248, 248);
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
- border-bottom-left-radius: 5px;
- border-bottom-right-radius: 5px;
- padding-left: 10px;
- padding-right: 10px;
- padding-top: 10px;
- padding-bottom: 10px;
- margin-bottom: 5px;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- }
- .shop-item:hover {
- background-color: rgb(235, 235, 235);
- }
- .item-name {
- font-size: 16px;
- color: rgb(50, 50, 50);
- -unity-font-style: bold;
- }
- .item-description {
- font-size: 12px;
- color: rgb(100, 100, 100);
- margin-top: 2px;
- }
- .item-stats {
- font-size: 11px;
- color: rgb(80, 80, 150);
- margin-top: 2px;
- }
- .item-price {
- font-size: 14px;
- color: rgb(0, 120, 0);
- -unity-font-style: bold;
- margin-right: 10px;
- }
- .buy-button {
- width: 80px;
- height: 25px;
- background-color: rgb(50, 150, 50);
- color: white;
- border-top-left-radius: 3px;
- border-top-right-radius: 3px;
- border-bottom-left-radius: 3px;
- border-bottom-right-radius: 3px;
- border-left-width: 0;
- border-right-width: 0;
- border-top-width: 0;
- border-bottom-width: 0;
- font-size: 12px;
- }
- .buy-button:hover {
- background-color: rgb(70, 170, 70);
- }
- .buy-button:disabled {
- background-color: rgb(150, 150, 150);
- color: rgb(200, 200, 200);
- }
- .cannot-afford {
- background-color: rgb(150, 150, 150);
- color: rgb(200, 200, 200);
- }
|