tauri integration
This commit is contained in:
@@ -0,0 +1,351 @@
|
||||
/* Crates Module Styles */
|
||||
.crates-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Current crate section (top part) */
|
||||
.current-crate-section {
|
||||
height: 60%;
|
||||
min-height: 200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-bottom: 2px solid rgba(49, 50, 68, 0.6);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.current-crate {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
background-color: rgba(30, 30, 46, 0.3);
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
border: 1px solid rgba(49, 50, 68, 0.4);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Color accents for different crate types */
|
||||
.current-crate::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.current-crate.common::before { background-color: #a6adc8; }
|
||||
.current-crate.uncommon::before { background-color: #a6e3a1; }
|
||||
.current-crate.rare::before { background-color: #89b4fa; }
|
||||
.current-crate.epic::before { background-color: #cba6f7; }
|
||||
.current-crate.legendary::before {
|
||||
background: linear-gradient(90deg, #f9e2af, #fab387, #f9e2af);
|
||||
animation: shimmer 2s infinite;
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { background-position: -100px; }
|
||||
100% { background-position: 100px; }
|
||||
}
|
||||
|
||||
.crate-navigation {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.nav-button {
|
||||
background-color: rgba(49, 50, 68, 0.6);
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--text-color);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.nav-button:hover {
|
||||
background-color: rgba(65, 66, 88, 0.8);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.nav-button:disabled {
|
||||
opacity: 0.3;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.crate-display {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
flex: 1;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.crate-image {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: rgba(24, 24, 37, 0.5);
|
||||
border-radius: 12px;
|
||||
transition: all 0.3s;
|
||||
border: 1px solid rgba(49, 50, 68, 0.6);
|
||||
}
|
||||
|
||||
.crate-icon {
|
||||
font-size: 48px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
/* Crate color styling */
|
||||
.current-crate.common .crate-icon { color: #a6adc8; text-shadow: 0 0 10px rgba(166, 173, 200, 0.4); }
|
||||
.current-crate.uncommon .crate-icon { color: #a6e3a1; text-shadow: 0 0 10px rgba(166, 227, 161, 0.4); }
|
||||
.current-crate.rare .crate-icon { color: #89b4fa; text-shadow: 0 0 10px rgba(137, 180, 250, 0.4); }
|
||||
.current-crate.epic .crate-icon { color: #cba6f7; text-shadow: 0 0 10px rgba(203, 166, 247, 0.4); }
|
||||
.current-crate.legendary .crate-icon { color: #f9e2af; text-shadow: 0 0 15px rgba(249, 226, 175, 0.6); animation: pulse 2s infinite; }
|
||||
|
||||
@keyframes pulse {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(1.05); }
|
||||
100% { transform: scale(1); }
|
||||
}
|
||||
|
||||
/* Opening animation */
|
||||
.crate-image.opening {
|
||||
animation: shake 0.5s infinite;
|
||||
}
|
||||
|
||||
@keyframes shake {
|
||||
0% { transform: translateX(0); }
|
||||
25% { transform: translateX(-5px); }
|
||||
50% { transform: translateX(5px); }
|
||||
75% { transform: translateX(-5px); }
|
||||
100% { transform: translateX(0); }
|
||||
}
|
||||
|
||||
.crate-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.crate-name {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
margin: 0 0 5px 0;
|
||||
}
|
||||
|
||||
.current-crate.common .crate-name { color: #a6adc8; }
|
||||
.current-crate.uncommon .crate-name { color: #a6e3a1; }
|
||||
.current-crate.rare .crate-name { color: #89b4fa; }
|
||||
.current-crate.epic .crate-name { color: #cba6f7; }
|
||||
.current-crate.legendary .crate-name { color: #f9e2af; }
|
||||
|
||||
.crate-description {
|
||||
font-size: 14px;
|
||||
opacity: 0.8;
|
||||
margin: 0 0 10px 0;
|
||||
}
|
||||
|
||||
.crate-stats {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.crate-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.open-button {
|
||||
width: 100%;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
min-width: 150px;
|
||||
justify-content: center;
|
||||
background-color: rgba(49, 50, 68, 0.7);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.open-button:hover:not(:disabled) {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.open-button:active:not(:disabled) {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.open-button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* Button colors by rarity */
|
||||
.open-button.common:hover:not(:disabled) { background-color: #a6adc8; color: #1e1e2e; }
|
||||
.open-button.uncommon:hover:not(:disabled) { background-color: #a6e3a1; color: #1e1e2e; }
|
||||
.open-button.rare:hover:not(:disabled) { background-color: #89b4fa; color: #1e1e2e; }
|
||||
.open-button.epic:hover:not(:disabled) { background-color: #cba6f7; color: #1e1e2e; }
|
||||
.open-button.legendary:hover:not(:disabled) { background-color: #f9e2af; color: #1e1e2e; }
|
||||
|
||||
/* Crates inventory section (bottom part) */
|
||||
.crates-inventory-section {
|
||||
height: 40%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 10px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.inventory-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.inventory-header h3 {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.total-crates {
|
||||
font-size: 12px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.crates-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||||
gap: 10px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.crate-item {
|
||||
background-color: rgba(49, 50, 68, 0.4);
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
border: 2px solid transparent;
|
||||
position: relative;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.crate-item::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
border-bottom-left-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
}
|
||||
|
||||
/* Crate item colors */
|
||||
.crate-item.common::after { background-color: #a6adc8; }
|
||||
.crate-item.uncommon::after { background-color: #a6e3a1; }
|
||||
.crate-item.rare::after { background-color: #89b4fa; }
|
||||
.crate-item.epic::after { background-color: #cba6f7; }
|
||||
.crate-item.legendary::after {
|
||||
background: linear-gradient(90deg, #f9e2af, #fab387, #f9e2af);
|
||||
background-size: 200% auto;
|
||||
animation: shimmer 2s infinite;
|
||||
}
|
||||
|
||||
.crate-item:hover:not(.empty) {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.crate-item.selected {
|
||||
border-color: var(--accent-color);
|
||||
background-color: rgba(49, 50, 68, 0.6);
|
||||
box-shadow: 0 0 10px rgba(137, 180, 250, 0.4);
|
||||
}
|
||||
|
||||
.crate-item.empty {
|
||||
opacity: 0.4;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.crate-item-icon {
|
||||
font-size: 24px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.crate-item.common .crate-item-icon { color: #a6adc8; }
|
||||
.crate-item.uncommon .crate-item-icon { color: #a6e3a1; }
|
||||
.crate-item.rare .crate-item-icon { color: #89b4fa; }
|
||||
.crate-item.epic .crate-item-icon { color: #cba6f7; }
|
||||
.crate-item.legendary .crate-item-icon { color: #f9e2af; }
|
||||
|
||||
.crate-count {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: -10px;
|
||||
background-color: rgba(30, 30, 46, 0.9);
|
||||
border-radius: 50%;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
font-size: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid currentColor;
|
||||
}
|
||||
|
||||
.crate-item-name {
|
||||
font-size: 11px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media (max-width: 500px) {
|
||||
.crate-display {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.crate-info {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user