InventorySheet.uss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. /* General Container Styling (similar to character sheet) */
  2. .inventory-sheet-container {
  3. flex-grow: 1;
  4. padding: 10px;
  5. background-color: rgba(40, 40, 60, 0.8); /* Dark background to match theme */
  6. border-color: rgba(100, 120, 150, 0.8);
  7. border-width: 2px;
  8. margin: 5px; /* Add some margin */
  9. }
  10. /* Headings (reuse from CharacterSheet if desired, or define specific ones) */
  11. .MainHeading {
  12. font-size: 20px;
  13. -unity-font-style: bold;
  14. -unity-text-align: upper-center;
  15. margin-bottom: 15px;
  16. color: rgb(255, 255, 255);
  17. }
  18. .InventoryHeading {
  19. -unity-font-style: bold;
  20. font-size: 16px;
  21. margin-bottom: 8px;
  22. padding-bottom: 4px;
  23. border-bottom-width: 1px;
  24. border-bottom-color: rgba(255, 255, 255, 0.3);
  25. color: rgb(255, 255, 255);
  26. }
  27. /* Section Styling */
  28. .inventory-section, .bank-section {
  29. margin-bottom: 15px;
  30. padding: 10px;
  31. background-color: rgba(50, 50, 70, 0.6); /* Dark section background */
  32. border-radius: 4px;
  33. border: 1px solid rgba(150, 150, 170, 0.4);
  34. }
  35. /* Item List Styling */
  36. .item-list {
  37. margin-bottom: 10px; /* Space before the add button */
  38. min-height: 50px; /* Ensure list has some height even when empty */
  39. /* Add scrollbars if content overflows */
  40. /* overflow: scroll; */ /* Uncomment if you expect many items */
  41. }
  42. /* Individual Item Row Styling */
  43. .inventory-item-row {
  44. flex-direction: row;
  45. justify-content: space-between; /* Pushes label left, button right */
  46. align-items: center;
  47. padding: 4px 8px;
  48. margin-bottom: 4px;
  49. border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  50. background-color: rgb(250, 250, 250);
  51. border-radius: 3px;
  52. min-height: 28px;
  53. }
  54. .item-name-label {
  55. font-size: 14px;
  56. color: rgb(220, 220, 220);
  57. flex-grow: 1; /* Takes up available space */
  58. margin-right: 10px; /* Space between label and button */
  59. }
  60. /* Button Styling */
  61. .remove-item-button {
  62. font-size: 11px;
  63. min-width: 60px;
  64. max-height: 22px;
  65. padding: 2px 6px;
  66. /* Add specific button styling (colors, borders) */
  67. background-color: rgb(217, 83, 79); /* Reddish */
  68. color: white;
  69. border-width: 0;
  70. border-radius: 3px;
  71. }
  72. .remove-item-button:hover {
  73. background-color: rgb(201, 48, 44);
  74. }
  75. .remove-item-button:active {
  76. background-color: rgb(172, 41, 37);
  77. }
  78. .add-item-button {
  79. font-size: 12px;
  80. min-width: 80px;
  81. max-height: 25px;
  82. padding: 3px 8px;
  83. /* Align button to the right or center if desired */
  84. align-self: flex-end; /* Puts button on the right */
  85. margin-top: 5px;
  86. /* Add specific button styling */
  87. background-color: rgb(92, 184, 92); /* Greenish */
  88. color: white;
  89. border-width: 0;
  90. border-radius: 3px;
  91. }
  92. .add-item-button:hover {
  93. background-color: rgb(76, 174, 76);
  94. }
  95. .add-item-button:active {
  96. background-color: rgb(68, 157, 68);
  97. }
  98. /* Bank Section Styling */
  99. .bank-row {
  100. flex-direction: row;
  101. justify-content: space-between;
  102. align-items: center;
  103. margin-bottom: 5px;
  104. padding: 1px 5px;
  105. min-height: 24px;
  106. }
  107. .bank-label {
  108. font-size: 14px;
  109. color: rgb(220, 220, 220);
  110. min-width: 50px; /* Ensure labels align */
  111. margin-right: 10px;
  112. }
  113. /* Reusing/Adapting stat-input styles for bank inputs */
  114. .bank-input {
  115. min-width: 80px; /* Wider for currency */
  116. max-width: 100px;
  117. font-size: 14px;
  118. -unity-text-align: middle-right;
  119. border-width: 1px;
  120. color: rgb(255, 255, 255);
  121. height: 22px;
  122. margin: 0;
  123. padding: 0;
  124. border-radius: 5px; /* Simplified border-radius */
  125. background-color: rgba(255, 255, 255, 0.1);
  126. border-color: rgba(150, 150, 150, 0.5);
  127. }
  128. .bank-input > .unity-base-field__input {
  129. background-color: rgba(255, 255, 255, 0.05);
  130. color: rgb(255, 255, 255);
  131. border-width: 0;
  132. margin: 0;
  133. padding: 0 4px 0 0; /* Adjust padding */
  134. height: 100%;
  135. line-height: 20px; /* Adjust line-height if needed */
  136. }
  137. .bank-input:focus {
  138. border-color: rgb(66, 139, 202);
  139. outline-color: rgb(66, 139, 202);
  140. outline-width: 1px;
  141. }