UNPKG

cerebella

Version:
451 lines (387 loc) 8.88 kB
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: #0a0a0a; color: #ffffff; min-height: 100vh; position: relative; padding: 2rem; } body::before { content: ''; position: fixed; top: -20%; left: -20%; width: 140%; height: 140%; background: radial-gradient(circle at center, rgba(88, 28, 135, 0.15) 0%, rgba(124, 58, 237, 0.1) 25%, rgba(139, 92, 246, 0.05) 50%, transparent 70%); z-index: -1; } .container { max-width: 1200px; margin: 0 auto; z-index: 1; position: relative; } h1 { font-size: clamp(3rem, 10vw, 6rem); font-weight: 200; letter-spacing: 0.01em; margin-bottom: 1rem; background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 25%, #a5b4fc 50%, #818cf8 75%, #6366f1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: relative; will-change: transform, text-shadow; /* Performance optimization */ } @keyframes glow { 0%, 100% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.5); transform: scale(1); } 50% { text-shadow: 0 0 30px rgba(139, 92, 246, 0.7); transform: scale(1.01); } } .bordered-section { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1.5rem; background: rgba(255, 255, 255, 0.02); margin-bottom: 1.5rem; backdrop-filter: blur(10px); } .watch-form { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center; flex-wrap: wrap; } .watch-form input { flex: 1; min-width: 300px; padding: 0.75rem 1rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: #fff; font-size: 0.95rem; transition: all 0.3s ease; } .watch-form input::placeholder { color: #64748b; } .watch-form input:focus { outline: none; border-color: #818cf8; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1); } button { padding: 0.75rem 1.5rem; background: linear-gradient(135deg, #6366f1, #818cf8); border: none; border-radius: 8px; color: #fff; font-weight: 200; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; font-size: 0.95rem; } button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3); } .clear-button { background: linear-gradient(135deg, #ef4444, #f87171); } .clear-button:hover { box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3); } .lock-controls { display: flex; gap: 0.5rem; margin-top: 0.5rem; } .lock-all-button { background: linear-gradient(135deg, #f59e0b, #fbbf24); } .lock-all-button:hover { box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3); } .unlock-all-button { background: linear-gradient(135deg, #10b981, #34d399); } .unlock-all-button:hover { box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3); } .status { color: #cbd5e1; line-height: 1.6; } #watching { font-size: 1.1rem; margin-bottom: 1rem; color: #cbd5e1; } .watching { color: #4ade80 !important; font-weight: 500 !important; } .status { margin-bottom: 1.5rem; } .status #stats { color: #94a3b8; font-size: 0.95rem; margin-bottom: 1rem; } .status #stats strong { color: #e2e8f0; font-weight: 500; } .file-summary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; margin-top: 1rem; max-height: 400px; overflow-y: auto; padding-right: 0.5rem; } .file-summary-grid::-webkit-scrollbar { width: 6px; } .file-summary-grid::-webkit-scrollbar-track { background: transparent; } .file-summary-grid::-webkit-scrollbar-thumb { background: rgba(129, 140, 248, 0.3); border-radius: 3px; } .file-summary-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; transition: all 0.2s ease; } .file-summary-item.locked { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.2); } .file-summary-item:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(129, 140, 248, 0.3); } .file-summary-item .file-name { flex: 1; font-weight: 300; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file-summary-item .change-count { color: #94a3b8; font-size: 0.85rem; white-space: nowrap; } .lock-toggle-small { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.4rem; min-width: auto; font-size: 1rem; border-radius: 4px; transition: all 0.2s ease; } .lock-toggle-small:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } .control-buttons { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; } .file-summary-item.no-changes { opacity: 0.6; } .file-summary-item.no-changes .change-count { color: #64748b; } .no-changes { text-align: center; color: #64748b; padding: 2rem; font-style: italic; } h2 { font-size: 1.5rem; font-weight: 200; color: #e2e8f0; margin-bottom: 1rem; letter-spacing: -0.01em; } .bordered-section h2 { margin-top: 0; font-size: 1.3rem; color: #a5b4fc; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 0.75rem; margin-bottom: 1.25rem; } .changes-container { max-height: 60vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(129, 140, 248, 0.3) transparent; } .changes-container::-webkit-scrollbar { width: 6px; } .changes-container::-webkit-scrollbar-track { background: transparent; } .changes-container::-webkit-scrollbar-thumb { background: rgba(129, 140, 248, 0.3); border-radius: 3px; } .change { padding: 1rem; margin: 0.5rem 0; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; cursor: pointer; transition: all 0.3s ease; color: #e2e8f0; position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; } .change:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(129, 140, 248, 0.3); transform: translateY(-1px); } .change-info { flex: 1; } .lock-toggle { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.5rem; min-width: auto; font-size: 1.2rem; border-radius: 6px; transition: all 0.2s ease; } .lock-toggle:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .locked-file { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); } .locked-file .change-info { position: relative; } .locked-file .change-info::before { content: '🔒'; position: absolute; left: -1.5rem; opacity: 0.5; } .vector-info { font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; font-size: 0.75rem; color: #94a3b8; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; } .diff { display: none; background: #1e1e1e; color: #d4d4d4; padding: 1rem; margin: 0.5rem 0; white-space: pre-wrap; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; font-size: 0.85rem; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); overflow-x: auto; line-height: 1.4; } .diff-add { color: #4ade80; background: rgba(74, 222, 128, 0.1); } .diff-del { color: #f87171; background: rgba(248, 113, 113, 0.1); } .diff-hdr { color: #60a5fa; font-weight: 500; } @keyframes float { 0% { opacity: 0; transform: translateY(100vh) scale(0); } 10% { opacity: 1; transform: translateY(90vh) scale(1); } 90% { opacity: 1; transform: translateY(10vh) scale(1); } 100% { opacity: 0; transform: translateY(0) scale(0); } } @media (max-width: 768px) { .watch-form { flex-direction: column; } .watch-form input { min-width: unset; width: 100%; } button { width: 100%; } h1 { font-size: clamp(2rem, 10vw, 3rem); } }