mainhud/shophud.razor.scss
.shop-popup-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
z-index: 9999;
// Centers everything inside it perfectly
display: none;
justify-content: center;
align-items: center;
pointer-events: none;
&.is-visible {
display: flex;
pointer-events: all;
}
}
// The storefront card panel content
.shop-box {
background-color: #15151c;
border: 2px solid #ff4b4b;
width: 500px;
padding: 25px;
border-radius: 6px;
display: flex;
flex-direction: column;
font-family: 'Courier New', Courier, monospace;
}
.shop-title {
color: #ff4b4b;
text-align: center;
font-size: 24px;
margin-bottom: 20px;
text-transform: uppercase;
font-weight: bold;
}
.shop-items-container {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 20px;
}
// Individual item row styles
.shop-item-row {
background-color: #202028;
border-left: 4px solid #ffd700;
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
.item-details {
display: flex;
flex-direction: column;
.item-name {
color: #ffffff;
font-weight: bold;
font-size: 15px;
}
.item-desc {
color: #a0a0b0;
font-size: 11px;
margin-top: 2px;
}
}
}
.buy-btn, .close-window-btn {
background-color: #101014;
color: #ffffff;
border: 1px solid #40404a;
padding: 8px 16px;
font-weight: bold;
// CRITICAL: Tells the s&box physics canvas to let the cursor click this button
pointer-events: all;
// Note: s&box SCSS does not recognize 'cursor: pointer', use pointer-events instead
&:hover {
background-color: #ffd700;
color: #000000;
border-color: #ffd700;
}
}
.close-window-btn {
margin-top: 10px;
background-color: #2d1515;
border-color: #602020;
color: #ff4b4b;
align-self: center;
width: 100%;
// Keep this here too just to be absolutely sure it inherits click behavior
pointer-events: all;
&:hover {
background-color: #ff4b4b;
color: #ffffff;
border-color: #ff4b4b;
}
}