/
BirdLeon
/
pcsocial
Обзор
Документация
Войти
/
BirdLeon
/
pcsocial
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
CSS/styles.css
1 110 строк
19 KB
BirdLeon
create: README-1.md, ИНСТРУКЦИЯ.txt, ПОЛНАЯ_ДОКУМЕНТАЦИЯ.md, New file, auth.js, feed.js, main.js, messages.js, profile.js, utils.js, responsive.css, styles.css, index.html, logo.png, logo.svg, database.sql
23 фев 2026, 18:54
Верифицирован
23 фев 2026, 18:54
76579db
Код
Авторство
О чём код?
/* ==================== ROOT STYLES ==================== */ :root { --primary-color: #FF3B30; --primary-light: #FF5F57; --primary-dark: #D32F2A; --secondary-color: #FFFFFF; --text-primary: #333333; --text-secondary: #666666; --bg-primary: #FFFFFF; --bg-secondary: #F5F5F5; --bg-tertiary: #EEEEEE; --border-color: #DDDDDD; --shadow: 0 2px 8px rgba(0, 0, 0, 0.1); --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15); --transition: all 0.3s ease; } body.dark-mode { --primary-color: #FF3B30; --secondary-color: #1A1A1A; --text-primary: #FFFFFF; --text-secondary: #BBBBBB; --bg-primary: #121212; --bg-secondary: #1E1E1E; --bg-tertiary: #2A2A2A; --border-color: #333333; } /* ==================== GENERAL STYLES ==================== */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--text-primary); background: var(--bg-primary); transition: var(--transition); } a { color: var(--primary-color); text-decoration: none; transition: var(--transition); } a:hover { color: var(--primary-dark); } button { cursor: pointer; border: none; transition: var(--transition); } input, textarea, select { font-family: inherit; border: 1px solid var(--border-color); padding: 10px 12px; border-radius: 8px; background: var(--bg-primary); color: var(--text-primary); transition: var(--transition); } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1); } /* ==================== LOADING SCREEN ==================== */ .loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); color: white; } .loader { width: 50px; height: 50px; border: 4px solid rgba(255, 255, 255, 0.3); border-top: 4px solid white; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; } @keyframes spin { to { transform: rotate(360deg); } } /* ==================== NAVBAR ==================== */ .navbar { background: var(--bg-primary); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); } .nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; padding: 12px 20px; gap: 20px; } .nav-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--primary-color); min-width: 200px; } .nav-logo img { width: 32px; height: 32px; } .nav-search { display: flex; flex: 1; max-width: 300px; border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; } .nav-search input { flex: 1; border: none; padding: 8px 16px; background: var(--bg-secondary); } .search-btn { background: var(--primary-color); color: white; padding: 8px 16px; } .nav-menu { display: flex; gap: 5px; flex: 1; justify-content: center; } .nav-item { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: var(--text-secondary); font-size: 14px; transition: var(--transition); } .nav-item:hover, .nav-item.active { background: var(--bg-secondary); color: var(--primary-color); } .notification-badge { background: var(--primary-color); color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; margin-left: 4px; } .nav-right { display: flex; align-items: center; gap: 15px; } .btn-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-primary); } .btn-icon:hover { background: var(--bg-tertiary); } .user-menu { position: relative; } .user-avatar-btn { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--bg-secondary); } .user-avatar-btn img { width: 100%; height: 100%; object-fit: cover; } .user-dropdown { position: absolute; right: 0; top: 100%; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 8px; min-width: 180px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; z-index: 1000; margin-top: 8px; } .user-dropdown.active { display: flex; } .user-dropdown a, .user-dropdown button { padding: 12px 16px; text-align: left; background: none; color: var(--text-primary); border-radius: 0; display: flex; align-items: center; gap: 10px; width: 100%; } .user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg-secondary); } .user-dropdown hr { border: none; border-top: 1px solid var(--border-color); margin: 4px 0; } /* ==================== LAYOUT ==================== */ .main-container { display: grid; grid-template-columns: 250px 1fr 300px; gap: 20px; max-width: 1400px; margin: 20px auto; padding: 0 20px; min-height: calc(100vh - 100px); } .sidebar { position: sticky; top: 80px; height: fit-content; } .sidebar-section { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; margin-bottom: 16px; } .sidebar-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; color: var(--text-secondary); } .sidebar-menu { list-style: none; } .sidebar-menu li { margin-bottom: 8px; } .sidebar-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-primary); transition: var(--transition); } .sidebar-menu a:hover { background: var(--bg-secondary); color: var(--primary-color); } .main-content { display: flex; flex-direction: column; gap: 20px; } .right-sidebar { position: sticky; top: 80px; height: fit-content; } .suggestions-card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; } .suggestions-card h3 { margin-bottom: 12px; } .suggestions-list { display: flex; flex-direction: column; gap: 12px; } /* ==================== BUTTONS ==================== */ .btn-primary { background: var(--primary-color); color: white; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; } .btn-primary:hover { background: var(--primary-dark); } .btn-block { width: 100%; } .btn-secondary { background: var(--bg-secondary); color: var(--text-primary); padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 1px solid var(--border-color); } .btn-secondary:hover { background: var(--bg-tertiary); } /* ==================== AUTH STYLES ==================== */ .auth-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); } .auth-box { background: var(--bg-primary); border-radius: 16px; padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); } .auth-logo { text-align: center; margin-bottom: 30px; } .auth-logo img { width: 60px; height: 60px; margin-bottom: 10px; } .auth-logo h1 { color: var(--primary-color); font-size: 28px; } .auth-form { display: none; } .auth-form.active { display: block; } .auth-form h2 { margin-bottom: 20px; font-size: 24px; } .form-group { margin-bottom: 16px; } .form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; } .form-group.checkbox { display: flex; align-items: center; gap: 8px; } .form-group.checkbox input { width: auto; margin: 0; } .auth-form p { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); } .auth-form a { font-weight: 600; } /* ==================== FEED STYLES ==================== */ .feed-container { display: flex; gap: 20px; } .post-creator { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; gap: 12px; } .creator-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; } .creator-input { flex: 1; } .creator-input textarea { width: 100%; border: 1px solid var(--border-color); border-radius: 20px; padding: 12px 16px; resize: vertical; min-height: 40px; font-size: 14px; } .creator-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); } .creator-btn { background: none; color: var(--primary-color); font-size: 20px; padding: 0; } .creator-btn:hover { color: var(--primary-dark); } .posts-feed { display: flex; flex-direction: column; gap: 16px; } .post-card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; } .post-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border-color); } .post-author { display: flex; align-items: center; gap: 12px; flex: 1; } .post-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } .post-info { display: flex; flex-direction: column; } .post-name { font-weight: 600; font-size: 14px; color: var(--text-primary); } .post-time { font-size: 12px; color: var(--text-secondary); } .post-menu-btn { background: none; color: var(--text-secondary); font-size: 20px; padding: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .post-menu-btn:hover { background: var(--bg-secondary); } .post-content { padding: 16px; } .post-text { font-size: 14px; line-height: 1.5; margin-bottom: 12px; } .post-image, .post-video { width: 100%; border-radius: 8px; max-height: 400px; object-fit: cover; } .post-actions { display: flex; justify-content: space-around; padding: 12px 0; border-top: 1px solid var(--border-color); font-size: 14px; color: var(--text-secondary); } .post-action { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; cursor: pointer; transition: var(--transition); flex: 1; justify-content: center; } .post-action:hover { background: var(--bg-secondary); color: var(--primary-color); } .post-action.liked { color: var(--primary-color); } /* ==================== PROFILE STYLES ==================== */ .profile-banner { width: 100%; height: 300px; object-fit: cover; border-radius: 8px 8px 0 0; } .profile-info { padding: 20px; position: relative; } .profile-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--bg-primary); object-fit: cover; margin-top: -70px; position: relative; z-index: 10; } .profile-details { margin-top: 12px; } .profile-details h1 { font-size: 28px; margin-bottom: 6px; } .profile-details p { color: var(--text-secondary); margin-bottom: 12px; } .profile-stats { display: flex; gap: 30px; margin: 16px 0; } .stat { display: flex; flex-direction: column; } .stat-number { font-size: 20px; font-weight: 700; } .stat-label { font-size: 12px; color: var(--text-secondary); } .profile-actions { display: flex; gap: 10px; margin-top: 16px; } .profile-tabs { display: flex; border-bottom: 1px solid var(--border-color); gap: 0; } .tab-btn { padding: 16px 20px; background: none; border: none; color: var(--text-secondary); font-weight: 600; border-bottom: 3px solid transparent; transition: var(--transition); } .tab-btn:hover { color: var(--text-primary); } .tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); } .tab-content { display: none; padding: 20px; } .tab-content.active { display: block; } /* ==================== MESSAGES STYLES ==================== */ .messages-container { display: grid; grid-template-columns: 300px 1fr; gap: 20px; height: 600px; } .messages-list-panel { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; } .messages-list-panel h2 { padding: 16px; border-bottom: 1px solid var(--border-color); font-size: 18px; } .conversations-list { flex: 1; overflow-y: auto; } .conversation-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: var(--transition); } .conversation-item:hover { background: var(--bg-secondary); } .conversation-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; } .conversation-info { flex: 1; } .conversation-name { font-weight: 600; font-size: 14px; } .conversation-preview { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .messages-chat-panel { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; } .chat-header { padding: 16px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; } .chat-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } .messages-box { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .message { display: flex; margin-bottom: 12px; animation: slideIn 0.3s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message.sent { justify-content: flex-end; } .message-bubble { background: var(--bg-secondary); padding: 12px 16px; border-radius: 12px; max-width: 70%; word-wrap: break-word; font-size: 14px; } .message.sent .message-bubble { background: var(--primary-color); color: white; } .message-input-panel { padding: 16px; border-top: 1px solid var(--border-color); display: flex; gap: 10px; } .message-input-panel input { flex: 1; } /* ==================== SETTINGS STYLES ==================== */ .settings-container { background: var(--bg-primary); border-radius: 12px; padding: 20px; max-width: 800px; } .settings-tabs { display: flex; gap: 10px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; } .settings-tab-btn { padding: 12px 20px; background: none; border: none; color: var(--text-secondary); font-weight: 600; border-bottom: 3px solid transparent; transition: var(--transition); } .settings-tab-btn:hover, .settings-tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); } .settings-tab-content { display: none; } .settings-tab-content.active { display: block; } .settings-group { margin-bottom: 20px; } .settings-group label { display: block; margin-bottom: 8px; font-weight: 500; } .settings-group input, .settings-group select, .settings-group textarea { width: 100%; } /* ==================== MODAL STYLES ==================== */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal.active { display: flex; align-items: center; justify-content: center; } .modal-content { background: var(--bg-primary); padding: 30px; border-radius: 12px; width: 90%; max-width: 500px; position: relative; animation: slideDown 0.3s ease; } @keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .close-modal { position: absolute; right: 20px; top: 20px; font-size: 28px; font-weight: bold; color: var(--text-secondary); cursor: pointer; } .close-modal:hover { color: var(--text-primary); } .modal-content h2 { margin-bottom: 20px; } .modal-content input, .modal-content textarea, .modal-content select { width: 100%; margin-bottom: 15px; } /* ==================== RESPONSIVE GRID ==================== */ .grid { display: grid; gap: 16px; } .grid.grid-2 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .grid.grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .grid.grid-4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .videos-grid, .games-grid, .playlists-grid, .people-grid, .communities-grid, .shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } .card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: var(--transition); } .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); } .card-image { width: 100%; height: 150px; object-fit: cover; } .card-content { padding: 12px; } .card-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; } .card-description { font-size: 12px; color: var(--text-secondary); } /* ==================== SCROLLBAR ==================== */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); } /* ==================== UTILITY CLASSES ==================== */ .hidden { display: none !important; } .text-center { text-align: center; } .text-muted { color: var(--text-secondary); } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .p-1 { padding: 8px; } .p-2 { padding: 16px; } .p-3 { padding: 24px; }