123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- .backpack-content {
- margin-top: 150rpx;
- margin-left: 10rpx;
- background: url('/static/island/UI/kuang.png') no-repeat center center;
- background-size: cover;
- width: 702rpx;
- height: 998rpx;
- display: flex;
- flex-direction: column;
- .backpack-name {
- width: 300rpx;
- height: 60rpx;
- margin: 0 auto;
- background: url('/static/island/UI/title_bg.png') no-repeat center center;
- background-size: 100% 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #FFF;
- font-size: 32rpx;
- font-weight: bold;
- margin-top: 40rpx;
- margin-bottom: 20rpx;
- }
- .backpack-items {
- flex: 1;
- display: grid;
- grid-template-columns: repeat(4, 150rpx);
- grid-template-rows: repeat(20, 150rpx);
- gap: 10rpx;
- padding: 10rpx;
- overflow-y: auto;
- margin-bottom: 10rpx;
- justify-content: center;
- &::-webkit-scrollbar {
- width: 6rpx;
- }
-
- &::-webkit-scrollbar-thumb {
- background: rgba(166, 124, 82, 0.3);
- border-radius: 3rpx;
- }
-
- &::-webkit-scrollbar-track {
- background: transparent;
- }
- .backpack-grid {
- .item-grid {
- position: relative;
- width: 150rpx;
- height: 150rpx;
- background: #FBD6A9;
- border-radius: 16rpx;
- padding: 5rpx;
- box-sizing: border-box;
- border: 2rpx solid #DEB691;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- &.selected {
- border: 4rpx solid #84B654;
- background: #E8F5E9;
- }
- .item-icon {
- width: 130rpx;
- height: 130rpx;
- object-fit: contain;
- }
- .count-text {
- position: absolute;
- top: 5rpx;
- right: 5rpx;
- font-size: 20rpx;
- color: #FFFFFF;
- text-shadow: 1rpx 1rpx 0 #A95F3C,
- -1rpx 1rpx 0 #A95F3C,
- 1rpx -1rpx 0 #A95F3C,
- -1rpx -1rpx 0 #A95F3C;
- padding: 2rpx 8rpx;
- min-width: 32rpx;
- text-align: center;
- }
- .item-name {
- font-size: 20rpx;
- color: #A95F3C;
- white-space: normal;
- line-height: 1.2;
- width: 95%;
- background: rgba(255, 255, 255, 0.8);
- position: absolute;
- bottom: 5rpx;
- left: 50%;
- transform: translateX(-50%);
- border-radius: 0 0 10rpx 10rpx;
- text-align: center;
- padding: 2rpx 0;
- }
- }
- }
- }
- .backpack-bottom {
- background: #FFF1E4;
- border-radius: 0 0 30rpx 30rpx;
- margin: 0 20rpx 20rpx;
- padding: 15rpx;
- .bottom-info {
- text-align: center;
- color: #987453;
- font-size: 24rpx;
- line-height: 1.4;
- margin-bottom: 10rpx;
- min-height: 60rpx;
- }
- .bottom-actions {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 20rpx;
- .coin-info {
- display: flex;
- align-items: center;
- gap: 10rpx;
- .currency-icon {
- width: 32rpx;
- height: 32rpx;
- }
- text {
- color: #987453;
- font-size: 28rpx;
- font-weight: bold;
- text-align: left;
- }
- }
- .sell-btn {
- min-width: 150rpx;
- height: 55rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 24rpx;
- color: #ffffff;
- background-image: url('/static/island/UI/btn_green.png');
- background-size: 100% 100%;
- background-repeat: no-repeat;
- cursor: pointer;
- &.disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- &:active:not(.disabled) {
- transform: scale(0.95);
- opacity: 0.9;
- }
- }
- }
- }
- }
|