/
radik665
/
qwerty
Обзор
Документация
Войти
/
radik665
/
qwerty
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
css/style.css
946 строк
17 KB
Роман Ионов
init project
19 дек 2025, 18:54
19 дек 2025, 18:54
f1dd36b
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #4a90e2; --secondary-color: #50c878; --accent-color: #ff6b6b; --dark-color: #2c3e50; --light-color: #ecf0f1; --text-color: #333; --text-light: #666; --border-color: #ddd; --shadow: 0 2px 10px rgba(0, 0, 0, 0.1); --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15); --transition: all 0.3s ease; --bg-color: #f5f5f5; --bg-card: #ffffff; --bg-header: #ffffff; --text-primary: #333; --text-secondary: #666; --border: #ddd; } [data-theme="dark"] { --bg-color: #1a1a1a; --bg-card: #2d2d2d; --bg-header: #242424; --text-primary: #e0e0e0; --text-secondary: #b0b0b0; --border: #404040; --shadow: 0 2px 10px rgba(0, 0, 0, 0.3); --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.4); --light-color: #3a3a3a; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-color); transition: background-color 0.3s ease, color 0.3s ease; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.95); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease; pointer-events: none; } [data-theme="dark"] .loader { background: rgba(26, 26, 26, 0.95); } .loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; } .loader-spinner { width: 50px; height: 50px; border: 4px solid var(--light-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .header { background: var(--bg-header); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; transition: background-color 0.3s ease; } .nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 20px; } .nav-logo a { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); text-decoration: none; transition: var(--transition); } .nav-logo a:hover { color: var(--secondary-color); } .nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; } .nav-link { text-decoration: none; color: var(--text-primary); font-weight: 500; transition: var(--transition); position: relative; } .nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: var(--transition); } .nav-link:hover::after, .nav-link.active::after { width: 100%; } .nav-link:hover { color: var(--primary-color); } .btn-login { background: var(--primary-color); color: white !important; padding: 0.5rem 1.5rem; border-radius: 25px; transition: var(--transition); } .btn-login:hover { background: var(--secondary-color); box-shadow: var(--shadow-hover); } .btn-login::after { display: none; } .lang-toggle { border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; box-shadow: var(--shadow); transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; } .lang-toggle::before { content: '🌐'; font-size: 0.95rem; } .lang-toggle:hover { transform: translateY(-1px); border-color: var(--primary-color); box-shadow: var(--shadow-hover); } .lang-toggle:active { transform: translateY(0); box-shadow: var(--shadow); } [data-theme="dark"] .lang-toggle { background: #141414; } .theme-toggle { background: none; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-size: 1.2rem; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 45px; height: 40px; } .theme-toggle:hover { background: var(--primary-color); color: white; transform: scale(1.05); } .theme-toggle-icon { font-size: 1.2rem; line-height: 1; } .hero { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; padding: 100px 20px; text-align: center; position: relative; } .hero-content { position: relative; z-index: 1; } .hero-title { font-size: 3rem; margin-bottom: 1rem; } .hero-subtitle { font-size: 1.5rem; margin-bottom: 2rem; opacity: 0.9; } .btn { display: inline-block; padding: 0.75rem 2rem; background: var(--primary-color); color: white; text-decoration: none; border-radius: 25px; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; font-size: 1rem; } .btn:hover { background: var(--secondary-color); box-shadow: var(--shadow-hover); } .btn-primary { background: var(--primary-color); } .btn-full { width: 100%; } .section { padding: 80px 20px; } .section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--text-primary); } .fade-in { opacity: 1; } .products-filters { display: flex; gap: 1rem; margin-bottom: 2rem; justify-content: center; } .search-input, .filter-select { padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; transition: var(--transition); width: auto; min-width: 200px; background: var(--bg-card); color: var(--text-primary); } .search-input:focus, .filter-select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1); } .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; } .product-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; display: flex; flex-direction: column; } .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); } .product-card-image { width: 100%; height: 220px; object-fit: contain; background: var(--bg-color); border-bottom: 1px solid var(--border); transition: var(--transition); } .product-card:hover .product-card-image { transform: scale(1.03); } .product-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; } .product-card-title { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-primary); } .product-card-description { color: var(--text-secondary); margin-bottom: 1rem; flex-grow: 1; } .product-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; } .product-card-price { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); } .product-card-category { background: var(--light-color); padding: 0.25rem 0.75rem; border-radius: 15px; font-size: 0.875rem; color: var(--text-secondary); } /* Contacts + Shops UI */ .contacts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 auto; max-width: 1100px; } @media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; } } .contact-card { background: var(--bg-card); border: 2px solid var(--border); border-radius: 16px; padding: 1.25rem 1.25rem; box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease; } .contact-card:hover { transform: translateY(-2px); border-color: var(--primary-color); } .contact-card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; } .contact-card-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; } .contact-card-text { color: var(--text-secondary); line-height: 1.5; } .contact-card-sub { color: var(--text-secondary); opacity: 0.85; font-size: 0.95rem; margin-top: 0.4rem; } .shops-list { display: grid; gap: 0.75rem; } /* both <button> and <a> are used */ .shop-item { width: 100%; text-align: left; border: 2px solid var(--border); background: var(--bg-card); color: var(--text-primary); border-radius: 14px; padding: 0.9rem 1rem; cursor: pointer; display: block; transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; } .shop-item:disabled { opacity: 0.6; cursor: not-allowed; } .shop-item:hover { transform: translateY(-1px); border-color: var(--primary-color); } .shop-item-title { font-weight: 700; margin-bottom: 0.25rem; } .shop-item-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; color: var(--text-secondary); font-size: 0.95rem; } .shop-badge { background: rgba(74, 144, 226, 0.12); color: var(--text-primary); border: 1px solid rgba(74, 144, 226, 0.25); padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.85rem; } .map-section { background: var(--bg-color); } .map-container { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); } .map { width: 100%; height: 500px; } .footer { background: var(--dark-color); color: white; text-align: center; padding: 2rem 20px; transition: background-color 0.3s ease; } [data-theme="dark"] .footer { background: #0f0f0f; } html { scroll-behavior: smooth; } body.auth-page { margin: 0; padding: 0; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); min-height: 100vh; } .auth-container { min-height: 100vh; display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); padding: 20px; position: relative; z-index: 1; } .auth-card { background: var(--bg-card) !important; border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 450px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); position: relative; z-index: 10; opacity: 1 !important; visibility: visible !important; display: block !important; transition: background-color 0.3s ease; } .auth-title { text-align: center; font-size: 2rem; margin-bottom: 2rem; color: var(--text-primary); } .auth-tabs { display: flex; gap: 1rem; margin-bottom: 2rem; border-bottom: 2px solid var(--border); } .tab-btn { flex: 1; padding: 1rem; background: none; border: none; font-size: 1rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: var(--transition); position: relative; padding-bottom: 1rem; } .tab-btn::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: var(--transition); } .tab-btn.active { color: var(--primary-color); } .tab-btn.active::after { width: 100%; } .tab-btn:hover { color: var(--primary-color); } .auth-form { display: none; } .auth-form.active { display: block !important; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 500; } .form-group input { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; transition: var(--transition); background: var(--bg-color); color: var(--text-primary); } .form-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1); } .error-message { color: var(--accent-color); margin-top: 1rem; text-align: center; font-size: 0.875rem; min-height: 20px; } .auth-footer { margin-top: 2rem; text-align: center; } .link-back { color: var(--primary-color); text-decoration: none; transition: var(--transition); } .link-back:hover { color: var(--secondary-color); text-decoration: underline; } .dashboard { min-height: calc(100vh - 70px); padding: 2rem 0; } .dashboard-header { text-align: center; margin-bottom: 3rem; } .dashboard-header h1 { font-size: 2.5rem; color: var(--text-primary); margin-bottom: 1rem; } .user-info { background: var(--bg-card); padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow); display: inline-block; margin-top: 1rem; transition: background-color 0.3s ease; } .user-info p { margin: 0.5rem 0; color: var(--text-secondary); } .user-info strong { color: var(--text-primary); } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; } .stat-card { background: var(--bg-card); padding: 2rem; border-radius: 12px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1.5rem; transition: var(--transition); } .stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); } .stat-icon { font-size: 3rem; } .stat-content h3 { font-size: 2rem; color: var(--primary-color); margin-bottom: 0.5rem; } .stat-content p { color: var(--text-secondary); font-size: 0.9rem; } .charts-section { margin-bottom: 3rem; } .charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; } .chart-card { background: var(--bg-card); padding: 2rem; border-radius: 12px; box-shadow: var(--shadow); transition: var(--transition); } .chart-card:hover { box-shadow: var(--shadow-hover); } .chart-card h3 { margin-bottom: 1.5rem; color: var(--text-primary); text-align: center; } .chart-card canvas { max-height: 300px; } .tables-section { margin-bottom: 3rem; } .table-card { background: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 2rem; overflow: hidden; transition: background-color 0.3s ease; } .table-header { padding: 1.5rem; border-bottom: 2px solid var(--light-color); display: flex; justify-content: space-between; align-items: center; gap: 1rem; } .table-header h3 { color: var(--text-primary); margin: 0; } .table-filters { display: flex; gap: 1rem; } .table-container { overflow-x: auto; } .data-table { width: 100%; border-collapse: collapse; } .data-table thead { background: var(--light-color); } .data-table th { padding: 1rem; text-align: left; font-weight: 600; color: var(--text-primary); cursor: pointer; user-select: none; position: relative; transition: var(--transition); } .data-table th:hover { background: #d5d8da; } .data-table th::after { content: ' ↕'; opacity: 0.3; font-size: 0.8rem; } .data-table th.sorted-asc::after { content: ' ↑'; opacity: 1; color: var(--primary-color); } .data-table th.sorted-desc::after { content: ' ↓'; opacity: 1; color: var(--primary-color); } .data-table td { padding: 1rem; border-bottom: 1px solid var(--border); color: var(--text-primary); } .data-table tbody tr { transition: var(--transition); } .data-table tbody tr:hover { background: #f8f9fa; } .rating-stars { color: #ffc107; font-size: 1.2rem; } .drag-drop-section { margin-bottom: 3rem; } .drag-drop-container { background: var(--bg-card); padding: 2rem; border-radius: 12px; box-shadow: var(--shadow); transition: background-color 0.3s ease; } .drag-list { display: flex; flex-direction: column; gap: 1rem; } .drag-item { background: var(--light-color); padding: 1.5rem; border-radius: 8px; display: flex; align-items: center; gap: 1rem; cursor: move; transition: var(--transition); user-select: none; } .drag-item:hover { background: #d5d8da; } .drag-item.dragging { opacity: 0.5; } .drag-handle { font-size: 1.5rem; color: var(--text-light); cursor: grab; } .drag-handle:active { cursor: grabbing; } .drag-item span:last-child { flex: 1; font-weight: 500; color: var(--text-primary); }