styles.css•4.25 kB
/* General Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
height: 100vh;
overflow: hidden;
}
/* Sidebar Styles */
.sidebar {
background-color: #343a40;
color: white;
height: 100vh;
padding: 20px;
position: fixed;
width: 25%;
}
.sidebar-header {
margin-bottom: 30px;
}
.sidebar h2 {
color: #fff;
font-size: 1.5rem;
margin-bottom: 10px;
}
.connection-status {
display: flex;
align-items: center;
font-size: 0.9rem;
color: #adb5bd;
}
.status-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #6c757d;
margin-right: 8px;
}
.status-indicator.connected {
background-color: #28a745;
}
.status-indicator.disconnected {
background-color: #dc3545;
}
.nav-pills .nav-link {
color: #adb5bd;
margin-bottom: 10px;
border-radius: 5px;
transition: all 0.3s;
display: flex;
align-items: center;
gap: 10px;
}
.nav-pills .nav-link:hover {
background-color: #495057;
color: #fff;
}
.nav-pills .nav-link.active {
background-color: #0d6efd;
color: #fff;
}
/* Main Content Styles */
.main-content {
margin-left: 25%;
height: 100vh;
overflow-y: auto;
padding: 20px;
}
/* Query Editor Styles */
.query-editor {
background-color: white;
border-radius: 5px;
padding: 15px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.query-toolbar {
margin-bottom: 10px;
}
#query-input {
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
background-color: #f8f9fa;
border: 1px solid #dee2e6;
resize: vertical;
}
.query-actions {
display: flex;
gap: 10px;
}
/* Results Table Styles */
.table-responsive {
max-height: 500px;
overflow-y: auto;
border: 1px solid #dee2e6;
border-radius: 5px;
}
.table th {
background-color: #f8f9fa;
position: sticky;
top: 0;
z-index: 1;
}
.table-hover tbody tr:hover {
background-color: rgba(0,0,0,.075);
}
/* Schema List Styles */
.schema-list {
background-color: white;
border-radius: 5px;
padding: 15px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
min-height: 200px;
}
.schema-item {
padding: 10px;
border-bottom: 1px solid #dee2e6;
cursor: pointer;
transition: background-color 0.3s;
}
.schema-item:hover {
background-color: #f8f9fa;
}
.tables-list {
margin-left: 20px;
margin-top: 10px;
}
.table-item {
padding: 8px;
border-left: 2px solid #dee2e6;
margin-bottom: 5px;
}
.table-item:hover {
border-left-color: #0d6efd;
background-color: #f8f9fa;
}
/* Analysis Tools Styles */
.analysis-tools .card {
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.analysis-params {
background-color: #f8f9fa;
padding: 15px;
border-radius: 5px;
margin-bottom: 15px;
}
/* History Styles */
.history-list {
background-color: white;
border-radius: 5px;
padding: 15px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.history-item {
padding: 10px;
border-bottom: 1px solid #dee2e6;
cursor: pointer;
}
.history-item:hover {
background-color: #f8f9fa;
}
.history-item .query {
font-family: 'Courier New', Courier, monospace;
font-size: 0.9rem;
color: #6c757d;
}
/* Settings Styles */
.settings-form {
max-width: 500px;
}
/* Loading Spinner */
.loading-spinner {
display: flex;
justify-content: center;
align-items: center;
min-height: 200px;
}
/* Toast Notifications */
.toast {
background-color: white;
box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}
.toast.success {
border-left: 4px solid #28a745;
}
.toast.error {
border-left: 4px solid #dc3545;
}
.toast.warning {
border-left: 4px solid #ffc107;
}
/* Responsive Design */
@media (max-width: 768px) {
.sidebar {
width: 100%;
height: auto;
position: relative;
}
.main-content {
margin-left: 0;
height: auto;
}
.nav-pills {
flex-direction: row;
overflow-x: auto;
white-space: nowrap;
}
.nav-pills .nav-link {
margin-right: 10px;
margin-bottom: 0;
}
}