UNPKG

revit-journal-assist

Version:

A web-based interface for viewing Autodesk Revit journal logs

213 lines (182 loc) 3.71 kB
/* General Styling */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 1.6; color: #333; background-color: #f5f5f5; } .container { display: flex; flex-direction: column; height: 100vh; max-width: 100%; margin: 0 auto; } header { background-color: #2c3e50; color: white; padding: 1rem; display: flex; justify-content: space-between; align-items: center; } h1 { margin: 0; font-size: 1.5rem; } h2 { margin: 0; font-size: 1.2rem; } /* Main Content */ .main-content { display: flex; flex: 1; overflow: hidden; } /* File Tree Styling */ .file-tree-container { width: 300px; background-color: #ecf0f1; padding: 1rem; border-right: 1px solid #ddd; display: flex; flex-direction: column; overflow: hidden; } .file-tree-container h2 { margin-bottom: 1rem; } .file-tree { overflow-y: auto; flex: 1; } .tree-item { margin-bottom: 0.5rem; cursor: pointer; } .tree-item .icon { margin-right: 0.5rem; } .tree-item .label { word-break: break-all; } .tree-item:hover { color: #3498db; } .tree-item.selected { color: #2980b9; font-weight: bold; } .tree-children { margin-left: 1.5rem; display: none; } .tree-item.expanded > .tree-children { display: block; } /* Journal Content Styling */ .journal-content-container { flex: 1; display: flex; flex-direction: column; padding: 1rem; overflow: hidden; } .journal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } #downloadBtn { background-color: #3498db; color: white; border: none; border-radius: 4px; padding: 0.5rem 1rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; } #downloadBtn:hover { background-color: #2980b9; } #downloadBtn:disabled { background-color: #95a5a6; cursor: not-allowed; } .journal-content { flex: 1; background-color: white; border: 1px solid #ddd; border-radius: 4px; padding: 1rem; overflow: auto; white-space: pre; font-family: 'Courier New', Courier, monospace; font-size: 0.9rem; } .placeholder { display: flex; justify-content: center; align-items: center; height: 100%; color: #95a5a6; font-style: italic; } .file-info { display: flex; gap: 1rem; font-size: 0.8rem; color: #7f8c8d; margin-top: 0.25rem; } /* Loading Effects */ .loading { color: #7f8c8d; font-style: italic; } .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: none; justify-content: center; align-items: center; flex-direction: column; z-index: 1000; } .spinner { border: 4px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top: 4px solid white; width: 40px; height: 40px; animation: spin 1s linear infinite; margin-bottom: 1rem; } .loading-text { color: white; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* System Info */ .system-info { font-size: 0.8rem; } .system-info a { color: inherit; text-decoration: underline; }