mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-02-17 18:39:07 +00:00
765 lines
13 KiB
CSS
765 lines
13 KiB
CSS
/* Reset and base styles */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
/* Colors */
|
|
--bg-primary: #1a1a1a;
|
|
--bg-secondary: #2a2a2a;
|
|
--bg-tertiary: #3a3a3a;
|
|
--bg-card: #2d2d2d;
|
|
--bg-hover: #404040;
|
|
--border-color: #444;
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #b3b3b3;
|
|
--text-muted: #888;
|
|
--accent-blue: #4a9eff;
|
|
--accent-blue-hover: #357abd;
|
|
--accent-orange: #ff6b35;
|
|
--accent-green: #4caf50;
|
|
|
|
/* Shadows and Effects */
|
|
--shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
|
|
--border-radius: 8px;
|
|
--transition: all 0.2s ease;
|
|
|
|
/* Layout */
|
|
--sidebar-width: 320px;
|
|
--header-height: 70px;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, var(--bg-primary) 0%, #1e1e1e 100%);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Common button styles */
|
|
.btn,
|
|
button {
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: var(--transition);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
font-size: 0.9rem;
|
|
padding: 0.75rem 1.5rem;
|
|
}
|
|
|
|
.btn-primary,
|
|
.customize-btn,
|
|
.equip-btn {
|
|
background: var(--accent-blue);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover,
|
|
.customize-btn:hover,
|
|
.equip-btn:hover {
|
|
background: var(--accent-blue-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.equip-btn {
|
|
background: var(--accent-green);
|
|
}
|
|
|
|
.equip-btn:hover {
|
|
background: #45a049;
|
|
}
|
|
|
|
.logout-btn {
|
|
background: var(--accent-orange);
|
|
color: white;
|
|
text-decoration: none;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: var(--border-radius);
|
|
transition: var(--transition);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background: #e55a2b;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Login Page */
|
|
.login-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.login-card {
|
|
background: var(--bg-card);
|
|
padding: 40px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-lg);
|
|
text-align: center;
|
|
max-width: 400px;
|
|
width: 100%;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.login-card h1 {
|
|
margin-bottom: 10px;
|
|
color: var(--accent-blue);
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.login-card p {
|
|
margin-bottom: 30px;
|
|
color: var(--text-secondary);
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* App Layout */
|
|
.app-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app-header {
|
|
background: var(--bg-secondary);
|
|
padding: 1rem 2rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
box-shadow: var(--shadow);
|
|
height: var(--header-height);
|
|
}
|
|
|
|
.header-left h1 {
|
|
color: var(--accent-blue);
|
|
font-size: 1.8rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.user-info {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.app-main {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: var(--sidebar-width);
|
|
background: var(--bg-secondary);
|
|
border-right: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 1.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.sidebar-header h3 {
|
|
color: var(--text-primary);
|
|
font-size: 1.3rem;
|
|
font-weight: 600;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.search-container {
|
|
position: relative;
|
|
}
|
|
|
|
.search-container input {
|
|
width: 100%;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
padding: 0.75rem;
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.search-container input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-blue);
|
|
box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
|
|
}
|
|
|
|
.search-container input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 1rem 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
/* Navigation Items */
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 1rem 1.5rem;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
border-left: 3px solid transparent;
|
|
}
|
|
|
|
.nav-item:hover,
|
|
.nav-item.active {
|
|
background: var(--bg-hover);
|
|
border-left-color: var(--accent-blue);
|
|
}
|
|
|
|
.nav-icon {
|
|
font-size: 1.2rem;
|
|
margin-right: 0.75rem;
|
|
width: 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-content {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.nav-text {
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-count {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
font-size: 0.75rem;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 12px;
|
|
font-weight: 600;
|
|
min-width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-item.active .nav-count {
|
|
background: var(--accent-blue);
|
|
color: white;
|
|
}
|
|
|
|
.nav-arrow {
|
|
color: var(--text-muted);
|
|
transition: var(--transition);
|
|
font-size: 0.8rem;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
/* Weapon Lists */
|
|
.nav-category {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.weapon-list {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s ease;
|
|
background: rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.weapon-list.expanded {
|
|
max-height: none;
|
|
}
|
|
|
|
.weapon-container:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.weapon-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.75rem 2rem;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.weapon-item:hover,
|
|
.weapon-item.expanded {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.weapon-icon {
|
|
width: 32px;
|
|
height: 20px;
|
|
object-fit: contain;
|
|
margin-right: 0.75rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.weapon-name {
|
|
flex: 1;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.weapon-arrow {
|
|
color: var(--text-muted);
|
|
font-size: 0.7rem;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.weapon-item.expanded .weapon-arrow {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.weapon-skins-grid {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s ease;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.weapon-skins-grid.expanded {
|
|
max-height: none;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.skins-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.skin-option {
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid var(--border-color);
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
text-align: center;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.skin-option:hover {
|
|
transform: translateY(-2px);
|
|
border-color: var(--accent-blue);
|
|
}
|
|
|
|
.skin-option.active {
|
|
border-color: var(--accent-green);
|
|
box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
|
|
}
|
|
|
|
.skin-option img {
|
|
width: 100%;
|
|
height: 60px;
|
|
object-fit: contain;
|
|
margin-bottom: 0.25rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.skin-option-name {
|
|
font-size: 0.7rem;
|
|
color: var(--text-secondary);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
flex: 1;
|
|
padding: 2rem;
|
|
overflow-y: auto;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.loadout-header {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.loadout-header h2 {
|
|
color: var(--text-primary);
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.loadout-header p {
|
|
color: var(--text-secondary);
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Loadout Grid */
|
|
.loadout-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
max-width: 1200px;
|
|
}
|
|
|
|
.loadout-item {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid var(--border-color);
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
animation: fadeInUp 0.3s ease;
|
|
}
|
|
|
|
.loadout-item:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
border-color: var(--accent-blue);
|
|
}
|
|
|
|
.loadout-item[data-equipped="true"] {
|
|
border-color: var(--accent-green);
|
|
}
|
|
|
|
.loadout-item[data-equipped="true"] .item-category {
|
|
color: var(--accent-green);
|
|
}
|
|
|
|
.item-image-container {
|
|
position: relative;
|
|
aspect-ratio: 16/10;
|
|
background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.item-image {
|
|
width: 80%;
|
|
height: auto;
|
|
object-fit: contain;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.item-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.loadout-item:hover .item-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.item-info {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.item-category {
|
|
color: var(--text-muted);
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
margin-bottom: 0.25rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.item-name {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
/* Footer */
|
|
.app-footer {
|
|
background: var(--bg-secondary);
|
|
border-top: 1px solid var(--border-color);
|
|
padding: 1rem 0;
|
|
text-align: center;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.footer-content {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.footer-content p {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.footer-content a {
|
|
color: var(--accent-blue);
|
|
text-decoration: none;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.footer-content a:hover {
|
|
color: var(--accent-blue-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Modals */
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
backdrop-filter: blur(4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.modal.hidden {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-card);
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid var(--border-color);
|
|
box-shadow: var(--shadow-lg);
|
|
max-width: 90vw;
|
|
max-height: 90vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 500px;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 1.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
color: var(--text-primary);
|
|
font-size: 1.4rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.close-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
padding: 0.25rem;
|
|
line-height: 1;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.close-btn:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.customize-grid {
|
|
display: grid;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.customize-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.customize-section label {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.customize-section select,
|
|
.customize-section input {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
padding: 0.75rem;
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.customize-section select:focus,
|
|
.customize-section input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-blue);
|
|
box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 1rem 1.5rem;
|
|
border-top: 1px solid var(--border-color);
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: flex-end;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Smooth scrolling */
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
/* Scrollbars */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 4px;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted);
|
|
}
|
|
|
|
::-webkit-scrollbar-corner {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
/* Firefox scrollbar styling */
|
|
.sidebar-nav,
|
|
.weapon-skins-grid,
|
|
.skins-container {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border-color) var(--bg-tertiary);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 1024px) {
|
|
.app-main {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 100%;
|
|
max-height: 400px;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.loadout-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.app-header {
|
|
padding: 1rem;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
height: auto;
|
|
}
|
|
|
|
.header-right {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 90%;
|
|
margin: 1rem;
|
|
}
|
|
|
|
.loadout-header h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.loadout-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
|
}
|
|
|
|
.main-content {
|
|
padding: 0.5rem;
|
|
}
|
|
} |