Skip to content

Instantly share code, notes, and snippets.

@blacksmithop
Last active November 30, 2025 10:32
Show Gist options
  • Select an option

  • Save blacksmithop/3c6d868eeb17fa82c746d7ddd2e5fcc1 to your computer and use it in GitHub Desktop.

Select an option

Save blacksmithop/3c6d868eeb17fa82c746d7ddd2e5fcc1 to your computer and use it in GitHub Desktop.
Criminds - Inventory
.inventory-grid {
display: grid;
gap: 16px;
margin-bottom: 32px;
}
.inventory-header {
font-size: 14px;
font-weight: 600;
color: #9ca3af;
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.inventory-grid > div:first-child .inventory-header {
font-size: 18px;
color: #f9fafb;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 2px solid #6366f1;
text-transform: none;
letter-spacing: normal;
}
.inventory-grid > div > div:last-child {
background: rgba(0, 0, 0, 0.4) !important;
border: 1px solid #2a2a3a;
border-radius: 8px;
padding: 12px !important;
transition: all 0.2s ease;
}
.inventory-grid > div > div:last-child:hover {
border-color: rgba(99, 102, 241, 0.4);
background: rgba(99, 102, 241, 0.05) !important;
}
.inventory-grid a {
display: block;
color: #6366f1;
font-weight: 500;
margin-bottom: 8px;
font-size: 14px;
}
.inventory-grid a:hover {
color: #818cf8;
}
.inventory-grid .button {
width: 100%;
margin-top: 8px !important;
padding: 8px 12px;
font-size: 12px;
background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.inventory-grid .button:hover {
background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.items-section {
margin-top: 32px;
}
.items-header {
font-size: 18px;
font-weight: 600;
color: #f9fafb;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 2px solid #6366f1;
}
.search-bar {
display: flex;
gap: 12px;
margin-bottom: 20px;
align-items: center;
}
.search-bar input {
flex: 1;
}
.category-filters {
display: flex;
gap: 8px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.category-filter {
background: rgba(255, 255, 255, 0.05);
border: 1px solid #2a2a3a;
border-radius: 8px;
padding: 8px 16px;
font-size: 13px;
font-weight: 500;
color: #d1d5db;
cursor: pointer;
transition: all 0.2s ease;
}
.category-filter:hover {
background: rgba(99, 102, 241, 0.1);
border-color: rgba(99, 102, 241, 0.3);
color: #ffffff;
}
.category-filter.active {
background: rgba(99, 102, 241, 0.15);
border-color: #6366f1;
color: #ffffff;
}
.items-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
}
.item-card {
background: rgba(0, 0, 0, 0.3);
border: 1px solid #2a2a3a;
border-radius: 10px;
padding: 16px;
transition: all 0.2s ease;
cursor: pointer;
}
.item-card:hover {
border-color: #6366f1;
background: rgba(99, 102, 241, 0.05);
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.item-icon {
width: 64px;
height: 64px;
margin: 0 auto 12px;
background: rgba(0, 0, 0, 0.4);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #2a2a3a;
}
.item-icon img {
max-width: 48px;
max-height: 48px;
}
.item-name {
font-weight: 600;
font-size: 14px;
color: #f9fafb;
margin-bottom: 4px;
text-align: center;
}
.item-quantity {
font-size: 12px;
color: #9ca3af;
text-align: center;
margin-bottom: 12px;
}
.item-actions {
display: flex;
gap: 8px;
justify-content: center;
}
.item-actions .button {
flex: 1;
padding: 6px 12px;
font-size: 11px;
}
.equipped-indicator {
display: inline-block;
background: #10b981;
color: #ffffff;
font-size: 10px;
font-weight: 600;
padding: 2px 8px;
border-radius: 4px;
margin-left: 8px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.stats-preview {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 12px;
color: #9ca3af;
}
.stat-row {
display: flex;
justify-content: space-between;
margin-bottom: 4px;
}
.stat-label {
color: #6b7280;
}
.stat-value {
color: #10b981;
font-weight: 600;
}
.stat-value.negative {
color: #ef4444;
}
.empty-state {
text-align: center;
padding: 48px 24px;
color: #6b7280;
}
.empty-state-icon {
font-size: 48px;
margin-bottom: 16px;
opacity: 0.3;
}
.empty-state-text {
font-size: 14px;
font-weight: 500;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment