/
Kitivin
/
tog
Обзор
Документация
Войти
/
Kitivin
/
tog
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
front/main/main.css
751 строка
13 KB
Kitivin
upload files
07 дек 2025, 00:55
07 дек 2025, 00:55
9884693
Код
Авторство
О чём код?
:root { --gold-primary: #d4af37; --gold-secondary: #f4e4a6; --chocolate-dark: #3c2f2f; --chocolate-milk: #8b7355; --vanilla: #f5f5dc; --berry: #8a2be2; --cream: #fffaf0; --text-dark: #2c2c2c; --text-light: #666; --border-light: #e0e0e0; --shadow: 0 4px 20px rgba(0,0,0,0.1); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', sans-serif; background: var(--vanilla); color: var(--text-dark); overflow-x: hidden; } .sweets-dashboard { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; } /* Sidebar */ .sweets-sidebar { background: white; border-right: 1px solid var(--border-light); display: flex; flex-direction: column; box-shadow: var(--shadow); } .sidebar-header { padding: 30px 20px; border-bottom: 1px solid var(--border-light); } .logo { font-size: 1.8rem; font-weight: 700; margin-bottom: 30px; font-family: 'Playfair Display', serif; } .royal { color: var(--chocolate-dark); } .sweets { color: var(--gold-primary); } .user-info { display: flex; align-items: center; gap: 12px; } .user-avatar { width: 40px; height: 40px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; border: 2px solid var(--gold-primary); color: var(--chocolate-dark); font-weight: 600; } .user-details { flex: 1; } .username { font-weight: 700; margin-bottom: 4px; color: var(--chocolate-dark); } .user-status { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-light); } .status-dot { width: 6px; height: 6px; background: var(--gold-primary); border-radius: 50%; } .sidebar-nav { flex: 1; padding: 20px 0; } .nav-item { display: flex; align-items: center; gap: 12px; padding: 15px 20px; cursor: pointer; transition: all 0.3s ease; border-left: 3px solid transparent; color: var(--text-dark); } .nav-item.active { background: rgba(212, 175, 55, 0.1); border-left-color: var(--gold-primary); color: var(--chocolate-dark); } .nav-item:hover:not(.active) { background: rgba(212, 175, 55, 0.05); } .nav-icon { font-size: 1.2rem; width: 20px; text-align: center; } .nav-text { font-weight: 500; font-size: 0.9rem; } .sidebar-footer { padding: 20px; border-top: 1px solid var(--border-light); } .logout-btn { width: 100%; padding: 12px; background: transparent; border: 1px solid var(--border-light); color: var(--text-dark); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Inter', sans-serif; font-size: 0.9rem; transition: all 0.3s ease; } .logout-btn:hover { background: var(--cream); border-color: var(--gold-primary); } /* Main Content */ .sweets-main { background: var(--vanilla); padding: 30px; overflow-y: auto; } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; } .stat-card { background: white; border: 1px solid var(--border-light); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 15px; transition: all 0.3s ease; box-shadow: var(--shadow); } .stat-card:hover { border-color: var(--gold-primary); transform: translateY(-2px); } .stat-icon { font-size: 2rem; opacity: 0.8; color: var(--gold-primary); } .stat-data { flex: 1; } .stat-value { font-size: 2rem; font-weight: 700; color: var(--chocolate-dark); margin-bottom: 4px; } .stat-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; } /* Sections */ .section { margin-bottom: 40px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .section-header h2 { font-size: 1.5rem; color: var(--chocolate-dark); font-family: 'Playfair Display', serif; } .section-controls { display: flex; gap: 15px; align-items: center; } .control-btn { padding: 8px 16px; background: transparent; border: 1px solid var(--border-light); color: var(--text-dark); border-radius: 6px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.8rem; transition: all 0.3s ease; } .control-btn:hover { border-color: var(--gold-primary); color: var(--chocolate-dark); } .filter-select select { background: white; border: 1px solid var(--border-light); color: var(--text-dark); padding: 8px 12px; border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 0.8rem; } /* Кондитеры Grid */ .bakers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; } .baker-card { background: white; border: 1px solid var(--border-light); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: all 0.3s ease; position: relative; box-shadow: var(--shadow); } .baker-card:hover { border-color: var(--gold-primary); transform: translateY(-2px); } .baker-avatar { width: 50px; height: 50px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border: 2px solid var(--gold-primary); color: var(--chocolate-dark); } .baker-info { flex: 1; } .baker-info h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--chocolate-dark); } .baker-stats { display: flex; gap: 10px; } .baker-stats .stat { font-size: 0.8rem; color: var(--text-light); background: var(--cream); padding: 4px 8px; border-radius: 4px; } .baker-status { width: 8px; height: 8px; border-radius: 50%; } .baker-status.active { background: var(--gold-primary); } .baker-status.busy { background: var(--text-light); } /* Products Grid */ .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .dessert-card { background: white; border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; box-shadow: var(--shadow); } .dessert-card:hover { border-color: var(--gold-primary); transform: translateY(-3px); } .dessert-image { width: 100%; height: 200px; background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary)); display: flex; align-items: center; justify-content: center; color: var(--chocolate-dark); font-weight: 500; border-bottom: 1px solid var(--border-light); } .dessert-info { padding: 20px; } .dessert-info h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--chocolate-dark); font-family: 'Playfair Display', serif; } .dessert-price { font-size: 1.5rem; font-weight: 700; color: var(--gold-primary); margin-bottom: 10px; } .dessert-description { font-size: 0.9rem; color: var(--text-light); line-height: 1.4; } /* Loading */ .loading-panel { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: white; border: 1px solid var(--border-light); border-radius: 12px; } .loading-text { font-size: 1.1rem; color: var(--chocolate-dark); margin-bottom: 20px; } .progress-bar { width: 200px; height: 3px; background: var(--border-light); margin: 0 auto; overflow: hidden; border-radius: 2px; } .progress-fill { height: 100%; background: var(--gold-primary); animation: loading 2s ease-in-out infinite; } @keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } /* Footer */ .sweets-footer { background: white; border-top: 1px solid var(--border-light); margin-top: 60px; padding: 40px 0 20px; } .footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 30px; } .footer-section h4 { color: var(--chocolate-dark); margin-bottom: 15px; font-size: 1rem; font-family: 'Playfair Display', serif; } .footer-section p { color: var(--text-light); font-size: 0.9rem; line-height: 1.5; } .network-stats { display: flex; flex-direction: column; gap: 8px; } .network-stats span { font-size: 0.9rem; color: var(--text-light); } .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border-light); } .copyright { font-size: 0.8rem; color: var(--text-light); } .footer-links { display: flex; gap: 20px; } .footer-links a { color: var(--text-light); text-decoration: none; font-size: 0.8rem; transition: color 0.3s ease; } .footer-links a:hover { color: var(--gold-primary); } /* Modals */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; } .modal.active { display: flex; } .modal-content { background: white; border: 1px solid var(--border-light); border-radius: 12px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2); } .modal-content.small { max-width: 400px; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-light); background: linear-gradient(135deg, var(--chocolate-dark), var(--chocolate-milk)); color: white; } .modal-header h3 { color: white; font-family: 'Playfair Display', serif; } .close { color: white; font-size: 1.5rem; cursor: pointer; transition: color 0.3s ease; } .close:hover { color: var(--gold-secondary); } .modal-body { padding: 20px; } /* Адаптивность */ @media (max-width: 768px) { .sweets-dashboard { grid-template-columns: 1fr; } .sweets-sidebar { display: none; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .footer-content { grid-template-columns: 1fr; gap: 30px; } .footer-bottom { flex-direction: column; gap: 15px; text-align: center; } }/* Добавить в main.css */ .cart-indicator { padding: 8px 16px; background: var(--gold-primary); color: white; border-radius: 20px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; } .cart-indicator:hover { background: var(--chocolate-dark); } .product-actions { display: flex; gap: 10px; margin-top: 15px; } .modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: center; } .cart-items, .orders-list { margin-bottom: 20px; } .cart-item, .order-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-light); } .cart-total, .order-total { text-align: center; font-size: 1.2rem; margin: 20px 0; padding-top: 20px; border-top: 2px solid var(--border-light); } .empty-orders { text-align: center; padding: 40px 20px; color: var(--text-light); } .review { background: var(--cream); padding: 15px; border-radius: 8px; margin-bottom: 10px; } .stars { color: var(--gold-primary); margin-top: 5px; } .orders-container { background: white; border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }/* Добавить в main.css */ .btn-remove { background: var(--error); color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.3s ease; } .btn-remove:hover { background: #c82333; transform: scale(1.1); } .btn-danger { background: var(--error); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-family: inherit; transition: all 0.3s ease; } .btn-danger:hover { background: #c82333; } .item-actions, .order-actions { display: flex; align-items: center; gap: 10px; } .cart-actions { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; } .order-total-section { text-align: center; font-size: 1.2rem; margin: 20px 0; padding-top: 20px; border-top: 2px solid var(--border-light); display: flex; flex-direction: column; gap: 15px; align-items: center; } .empty-cart { text-align: center; color: var(--text-light); padding: 40px 20px; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .notification { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }