BackpackDialog.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. .backpack-content {
  2. margin-top: 150rpx;
  3. margin-left: 10rpx;
  4. background: url('/static/island/UI/kuang.png') no-repeat center center;
  5. background-size: cover;
  6. width: 702rpx;
  7. height: 998rpx;
  8. display: flex;
  9. flex-direction: column;
  10. .backpack-name {
  11. width: 300rpx;
  12. height: 60rpx;
  13. margin: 0 auto;
  14. background: url('/static/island/UI/title_bg.png') no-repeat center center;
  15. background-size: 100% 100%;
  16. display: flex;
  17. align-items: center;
  18. justify-content: center;
  19. color: #FFF;
  20. font-size: 32rpx;
  21. font-weight: bold;
  22. margin-top: 40rpx;
  23. margin-bottom: 20rpx;
  24. }
  25. .backpack-items {
  26. flex: 1;
  27. display: grid;
  28. grid-template-columns: repeat(4, 150rpx);
  29. grid-template-rows: repeat(20, 150rpx);
  30. gap: 10rpx;
  31. padding: 10rpx;
  32. overflow-y: auto;
  33. margin-bottom: 10rpx;
  34. justify-content: center;
  35. &::-webkit-scrollbar {
  36. width: 6rpx;
  37. }
  38. &::-webkit-scrollbar-thumb {
  39. background: rgba(166, 124, 82, 0.3);
  40. border-radius: 3rpx;
  41. }
  42. &::-webkit-scrollbar-track {
  43. background: transparent;
  44. }
  45. .backpack-grid {
  46. .item-grid {
  47. position: relative;
  48. width: 150rpx;
  49. height: 150rpx;
  50. background: #FBD6A9;
  51. border-radius: 16rpx;
  52. padding: 5rpx;
  53. box-sizing: border-box;
  54. border: 2rpx solid #DEB691;
  55. display: flex;
  56. align-items: center;
  57. justify-content: center;
  58. cursor: pointer;
  59. &.selected {
  60. border: 4rpx solid #84B654;
  61. background: #E8F5E9;
  62. }
  63. .item-icon {
  64. width: 130rpx;
  65. height: 130rpx;
  66. object-fit: contain;
  67. }
  68. .count-text {
  69. position: absolute;
  70. top: 5rpx;
  71. right: 5rpx;
  72. font-size: 20rpx;
  73. color: #FFFFFF;
  74. text-shadow: 1rpx 1rpx 0 #A95F3C,
  75. -1rpx 1rpx 0 #A95F3C,
  76. 1rpx -1rpx 0 #A95F3C,
  77. -1rpx -1rpx 0 #A95F3C;
  78. padding: 2rpx 8rpx;
  79. min-width: 32rpx;
  80. text-align: center;
  81. }
  82. .item-name {
  83. font-size: 20rpx;
  84. color: #A95F3C;
  85. white-space: normal;
  86. line-height: 1.2;
  87. width: 95%;
  88. background: rgba(255, 255, 255, 0.8);
  89. position: absolute;
  90. bottom: 5rpx;
  91. left: 50%;
  92. transform: translateX(-50%);
  93. border-radius: 0 0 10rpx 10rpx;
  94. text-align: center;
  95. padding: 2rpx 0;
  96. }
  97. }
  98. }
  99. }
  100. .backpack-bottom {
  101. background: #FFF1E4;
  102. border-radius: 0 0 30rpx 30rpx;
  103. margin: 0 20rpx 20rpx;
  104. padding: 15rpx;
  105. .bottom-info {
  106. text-align: center;
  107. color: #987453;
  108. font-size: 24rpx;
  109. line-height: 1.4;
  110. margin-bottom: 10rpx;
  111. min-height: 60rpx;
  112. }
  113. .bottom-actions {
  114. display: flex;
  115. align-items: center;
  116. justify-content: space-between;
  117. padding: 0 20rpx;
  118. .coin-info {
  119. display: flex;
  120. align-items: center;
  121. gap: 10rpx;
  122. .currency-icon {
  123. width: 32rpx;
  124. height: 32rpx;
  125. }
  126. text {
  127. color: #987453;
  128. font-size: 28rpx;
  129. font-weight: bold;
  130. text-align: left;
  131. }
  132. }
  133. .sell-btn {
  134. min-width: 150rpx;
  135. height: 55rpx;
  136. display: flex;
  137. align-items: center;
  138. justify-content: center;
  139. font-size: 24rpx;
  140. color: #ffffff;
  141. background-image: url('/static/island/UI/btn_green.png');
  142. background-size: 100% 100%;
  143. background-repeat: no-repeat;
  144. cursor: pointer;
  145. &.disabled {
  146. opacity: 0.5;
  147. cursor: not-allowed;
  148. }
  149. &:active:not(.disabled) {
  150. transform: scale(0.95);
  151. opacity: 0.9;
  152. }
  153. }
  154. }
  155. }
  156. }