/** * AlgorithmPress Command Palette CSS * Styling for the command palette with glassmorphic aesthetics */ /* Command Palette Overlay */ .command-palette-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center; z-index: 10000; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; padding-top: 10vh; } .command-palette-overlay.active { opacity: 1; visibility: visible; } /* Command Palette Container */ .command-palette-container { width: 600px; max-width: 90%; background: rgba(30, 30, 30, 0.8); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); overflow: hidden; transform: translateY(-20px); transition: transform 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); } .command-palette-overlay.active .command-palette-container { transform: translateY(0); } /* Input Bar */ .command-palette-input-bar { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .command-palette-input { flex: 1; background: rgba(0, 0, 0, 0.2); border: none; border-radius: 8px; padding: 12px 16px; font-size: 16px; color: white; outline: none; font-family: 'Segoe UI', 'Arial', sans-serif; } .command-palette-input::placeholder { color: rgba(255, 255, 255, 0.5); } .command-palette-clear-btn { background: none; border: none; color: rgba(255, 255, 255, 0.5); font-size: 16px; margin-left: 8px; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; } .command-palette-clear-btn:hover { background: rgba(255, 255, 255, 0.1); color: white; } /* Results Container */ .command-palette-results { max-height: 50vh; overflow-y: auto; padding: 8px 0; } /* Result Item */ .command-palette-result { display: flex; align-items: center; padding: 12px 16px; cursor: pointer; transition: background-color 0.2s; } .command-palette-result:hover, .command-palette-result.selected { background: rgba(255, 255, 255, 0.1); } .command-palette-result-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; margin-right: 12px; color: rgba(255, 255, 255, 0.8); font-size: 18px; } .command-palette-result-content { flex: 1; overflow: hidden; } .command-palette-result-name { font-size: 14px; font-weight: 500; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; } .command-palette-result-description { font-size: 12px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .command-palette-shortcut { font-size: 12px; color: rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.2); padding: 4px 8px; border-radius: 4px; margin-left: 8px; white-space: nowrap; } /* Category Heading */ .command-palette-category { font-size: 12px; font-weight: 600; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); padding: 8px 16px 4px; letter-spacing: 1px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); margin-top: 8px; } /* No Results */ .command-palette-no-results { padding: 20px; text-align: center; color: rgba(255, 255, 255, 0.5); display: flex; flex-direction: column; align-items: center; gap: 10px; } .command-palette-no-results i { font-size: 24px; margin-bottom: 8px; } .command-palette-custom-hint { text-align: center; padding: 8px 16px 16px; font-size: 12px; color: rgba(255, 255, 255, 0.5); font-style: italic; } /* Hint Container */ .command-palette-hint { display: flex; align-items: center; justify-content: center; padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); gap: 16px; flex-wrap: wrap; } .command-palette-hint-item { display: flex; align-items: center; gap: 6px; } .command-palette-hint-key { font-size: 12px; color: rgba(255, 255, 255, 0.7); background: rgba(0, 0, 0, 0.3); padding: 3px 6px; border-radius: 4px; font-weight: 600; } .command-palette-hint-description { font-size: 12px; color: rgba(255, 255, 255, 0.5); } /* Scrollbar styling */ .command-palette-results::-webkit-scrollbar { width: 8px; } .command-palette-results::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); } .command-palette-results::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; } .command-palette-results::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); } /* Animation for results */ @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } } .command-palette-result { animation: fadeIn 0.2s ease forwards; } /* Special styling for results in desktop mode */ #desktop-container .command-palette-container { background: rgba(20, 20, 20, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05); } /* Responsive adjustments */ @media (max-width: 768px) { .command-palette-container { width: 90%; } .command-palette-overlay { padding-top: 5vh; } .command-palette-hint { flex-direction: column; align-items: flex-start; gap: 8px; } .command-palette-hint-item { width: 100%; justify-content: space-between; } } /* Parameter Input */ .command-palette-param { margin-top: 8px; display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-top: 1px dashed rgba(255, 255, 255, 0.1); } .command-palette-param-label { font-size: 13px; color: rgba(255, 255, 255, 0.7); min-width: 100px; } .command-palette-param-input { flex: 1; background: rgba(0, 0, 0, 0.2); border: none; border-radius: 4px; padding: 8px 12px; font-size: 13px; color: white; outline: none; } .command-palette-param-input::placeholder { color: rgba(255, 255, 255, 0.3); } /* Add to desktop taskbar */ #desktop-taskbar .command-palette-button { background: none; border: none; height: 32px; width: 32px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.7); cursor: pointer; border-radius: 4px; margin-right: 6px; transition: background-color 0.2s; } #desktop-taskbar .command-palette-button:hover { background: rgba(255, 255, 255, 0.1); color: white; } /* Add to dock */ .desktop-dock .command-palette-dock-button { background: none; border: none; width: 48px; height: 48px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; cursor: pointer; transition: all 0.2s ease; position: relative; } .desktop-dock .command-palette-dock-button i { font-size: 22px; margin-bottom: 4px; } .desktop-dock .command-palette-dock-button:hover { transform: scale(1.15); background: rgba(255, 255, 255, 0.15); } .desktop-dock .command-palette-dock-button:active { transform: scale(0.95); } /* Floating activator button */ .command-palette-activator { position: fixed; bottom: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); z-index: 9000; transition: transform 0.3s, background-color 0.3s; } .command-palette-activator:hover { transform: scale(1.1); background: rgba(30, 30, 30, 0.8); } .command-palette-activator:active { transform: scale(0.95); } /* Glassmorphism enhancements when NaraUI is active */ .nara-ui-active .command-palette-container { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }