50 lines
815 B
SCSS
50 lines
815 B
SCSS
InventoryItem {
|
|
flex-shrink: 0;
|
|
width: 100%;
|
|
background: #2a3d53;
|
|
display: flex;
|
|
gap: 24px;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
border: 1px solid #666;
|
|
border-radius: 12px;
|
|
padding: 12px 24px;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
position: relative;
|
|
|
|
&:hover {
|
|
background: #444;
|
|
}
|
|
|
|
img {
|
|
width: 32px;
|
|
height: 32px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.inventory-item__name {
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.inventory-item__count {
|
|
margin-left: auto;
|
|
font-size: 14px;
|
|
color: #ccc;
|
|
}
|
|
|
|
.inventory-item__slot {
|
|
font-size: 12px;
|
|
color: #8fc98f;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
&.equipped {
|
|
border: 2px solid #4caf50;
|
|
background: #2e3e2e;
|
|
}
|
|
}
|