/
masterOK
/
FEF
Обзор
Документация
Войти
/
masterOK
/
FEF
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
style.css
759 строк
14 KB
foxsi02
Add files via upload
07 ноя 2025, 22:08
Не верифицирован
07 ноя 2025, 22:08
f9cdb2c
Код
Авторство
О чём код?
/* Modern CSS Reset */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary: #4f46e5; --primary-dark: #4338ca; --secondary: #f59e0b; --success: #10b981; --danger: #ef4444; --warning: #f59e0b; --dark: #1f2937; --light: #f8fafc; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --radius: 12px; --radius-lg: 16px; } body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: var(--dark); line-height: 1.6; } #app { max-width: 428px; margin: 0 auto; background: white; min-height: 100vh; box-shadow: var(--shadow-lg); position: relative; overflow-x: hidden; } /* Header */ .header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 16px 20px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); } .header-content { display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; cursor: pointer; } .logo i { font-size: 28px; } .header-actions { display: flex; align-items: center; gap: 12px; } .user-info { display: flex; align-items: center; gap: 8px; } .avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); } /* Navigation */ .nav { display: flex; background: white; border-bottom: 1px solid var(--gray-200); padding: 0 8px; position: sticky; top: 68px; z-index: 90; backdrop-filter: blur(10px); } .nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; background: none; border: none; color: var(--gray-500); font-size: 12px; cursor: pointer; transition: all 0.3s ease; border-bottom: 3px solid transparent; } .nav-btn i { font-size: 20px; } .nav-btn.active { color: var(--primary); border-bottom-color: var(--primary); } .nav-btn:hover { color: var(--primary); transform: translateY(-1px); } /* Main Content */ .main-content { padding: 20px; padding-bottom: 80px; } .screen { display: none; animation: fadeIn 0.3s ease; } .screen.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* Hero Section */ .hero-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px 24px; border-radius: var(--radius-lg); margin-bottom: 24px; text-align: center; position: relative; overflow: hidden; } .hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>'); } .hero-content h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; position: relative; } .hero-content p { opacity: 0.9; margin-bottom: 20px; position: relative; } .hero-stats { display: flex; justify-content: space-around; margin-top: 24px; position: relative; } .stat { text-align: center; } .stat-number { font-size: 20px; font-weight: 700; margin-bottom: 4px; } .stat-label { font-size: 12px; opacity: 0.8; } /* Categories */ .categories-section { margin-bottom: 32px; } .categories-section h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; color: var(--gray-800); } .categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .category-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 12px; text-align: center; cursor: pointer; transition: all 0.3s ease; box-shadow: var(--shadow-sm); } .category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); } .category-card i { font-size: 24px; color: var(--primary); margin-bottom: 8px; display: block; } .category-card span { font-size: 14px; font-weight: 500; color: var(--gray-700); } /* Tasks */ .tasks-section { margin-bottom: 24px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .section-header h2 { font-size: 20px; font-weight: 600; color: var(--gray-800); } .tasks-grid, .tasks-list { display: flex; flex-direction: column; gap: 12px; } .task-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; transition: all 0.3s ease; box-shadow: var(--shadow-sm); cursor: pointer; } .task-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); } .task-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; } .task-title { font-size: 16px; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; } .task-price { font-size: 18px; font-weight: 700; color: var(--primary); white-space: nowrap; } .task-description { color: var(--gray-600); font-size: 14px; margin-bottom: 12px; display: -webkit-box; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; /* Добавляем стандартное свойство */ } .task-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--gray-500); } .task-category { background: var(--gray-100); padding: 4px 8px; border-radius: 20px; font-weight: 500; } /* Buttons */ .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: none; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; justify-content: center; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); } .btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); } .btn-outline:hover { background: var(--primary); color: white; } .btn-large { padding: 14px 24px; font-size: 16px; } .btn-vk { background: #4c75a3; color: white; width: 100%; } .btn-vk:hover { background: #3d5f80; transform: translateY(-1px); } .btn-link { background: none; color: var(--primary); padding: 4px 8px; } .btn-back { background: var(--gray-100); color: var(--gray-600); padding: 8px; border-radius: 50%; } /* Forms */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--gray-700); } .form-input, .form-textarea, .form-select { width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 16px; transition: all 0.3s ease; background: white; } .form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); } .form-textarea { resize: vertical; min-height: 120px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } /* Checkbox */ .checkbox-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 500; } .checkbox-label input { display: none; } .checkmark { width: 20px; height: 20px; border: 2px solid var(--gray-300); border-radius: 4px; position: relative; flex-shrink: 0; transition: all 0.3s ease; } .checkbox-label input:checked + .checkmark { background: var(--primary); border-color: var(--primary); } .checkbox-label input:checked + .checkmark::after { content: '✓'; position: absolute; color: white; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); } .hint { display: block; font-size: 12px; color: var(--gray-500); margin-top: 4px; font-weight: normal; } /* Profile */ .profile-header { text-align: center; padding: 24px 0; border-bottom: 1px solid var(--gray-200); margin-bottom: 20px; } .profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--primary); margin-bottom: 12px; } .profile-stats { display: flex; justify-content: space-around; margin-top: 16px; } .profile-stat { text-align: center; } .stat-value { font-size: 20px; font-weight: 700; color: var(--primary); } .stat-label { font-size: 12px; color: var(--gray-500); } /* Tabs */ .profile-tabs, .deals-tabs { display: flex; border-bottom: 1px solid var(--gray-200); margin-bottom: 20px; } .tab-btn, .deal-tab { flex: 1; padding: 12px 8px; background: none; border: none; border-bottom: 3px solid transparent; color: var(--gray-500); font-weight: 500; cursor: pointer; transition: all 0.3s ease; } .tab-btn.active, .deal-tab.active { color: var(--primary); border-bottom-color: var(--primary); } .tab-pane { display: none; } .tab-pane.active { display: block; } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; padding: 20px; } .modal.active { display: flex; } .modal-content { background: white; border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 400px; animation: modalSlideIn 0.3s ease; } @keyframes modalSlideIn { from { opacity: 0; transform: scale(0.9) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .modal-header h3 { font-size: 20px; font-weight: 600; } .btn-close { background: none; border: none; font-size: 20px; color: var(--gray-500); cursor: pointer; padding: 4px; } /* Notification */ .notification { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); background: var(--success); color: white; padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1100; transition: all 0.3s ease; } .notification.show { transform: translateX(-50%) translateY(0); } /* Search & Filters */ .search-box { position: relative; flex: 1; max-width: 200px; } .search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); } .search-box input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 14px; } .filters { display: flex; justify-content: between; align-items: center; gap: 12px; margin-bottom: 16px; } .filter-tags { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; } .filter-tag { padding: 6px 12px; background: var(--gray-100); border-radius: 20px; font-size: 12px; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all 0.3s ease; } .filter-tag.active { background: var(--primary); color: white; } .sort-select { padding: 6px 12px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 12px; background: white; } /* Responsive */ @media (max-width: 380px) { .main-content { padding: 16px; padding-bottom: 80px; } .categories-grid { grid-template-columns: repeat(2, 1fr); } .form-row { grid-template-columns: 1fr; } } /* Loading States */ .loading { opacity: 0.6; pointer-events: none; } .skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 4px; } @keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* Custom Scrollbar */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--gray-100); } ::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }