Spaces:
Sleeping
Sleeping
File size: 3,021 Bytes
4cfa289 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# Path: QAgents-workflows/ui/styles.py
# Relations: Used by __init__.py, app.py
# Description: Custom CSS styles for the Gradio app interface
"""
Styles Module: Custom CSS for QAgents Gradio interface.
Provides consistent styling across all UI components.
"""
CUSTOM_CSS = """
/* Main container styling */
.gradio-container {
max-width: 1200px !important;
margin: auto !important;
}
/* Header styling */
.app-header {
text-align: center;
padding: 1rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 10px;
margin-bottom: 1rem;
color: white;
}
/* Chat container */
.chat-container {
border: 1px solid #e0e0e0;
border-radius: 10px;
padding: 1rem;
}
/* Message styling */
.user-message {
background-color: #e3f2fd;
border-radius: 10px;
padding: 0.5rem 1rem;
margin: 0.25rem 0;
}
.bot-message {
background-color: #f5f5f5;
border-radius: 10px;
padding: 0.5rem 1rem;
margin: 0.25rem 0;
}
/* Code blocks in chat */
.code-block {
background-color: #1e1e1e;
color: #d4d4d4;
padding: 1rem;
border-radius: 5px;
font-family: 'Fira Code', 'Consolas', monospace;
overflow-x: auto;
}
/* Status indicators */
.status-connected {
color: #4caf50;
font-weight: bold;
}
.status-disconnected {
color: #f44336;
font-weight: bold;
}
.status-partial {
color: #ff9800;
font-weight: bold;
}
/* Health check table */
.health-table {
width: 100%;
border-collapse: collapse;
}
.health-table th, .health-table td {
padding: 0.5rem;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}
/* Button styling */
.primary-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
border: none !important;
color: white !important;
}
.primary-btn:hover {
opacity: 0.9;
}
/* Tab styling */
.tab-nav {
border-bottom: 2px solid #667eea;
}
/* Circuit output box */
.circuit-output {
font-family: 'Fira Code', 'Consolas', monospace;
background-color: #f8f9fa;
border: 1px solid #e0e0e0;
border-radius: 5px;
padding: 1rem;
}
/* Loading indicator */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(102, 126, 234, 0.3);
border-radius: 50%;
border-top-color: #667eea;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Responsive adjustments */
@media (max-width: 768px) {
.gradio-container {
padding: 0.5rem !important;
}
.app-header h1 {
font-size: 1.5rem;
}
}
"""
# Additional component-specific styles
CHAT_STYLES = """
.chatbot-container {
min-height: 400px;
max-height: 600px;
}
"""
MCP_HEALTH_STYLES = """
.endpoint-card {
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 1rem;
margin: 0.5rem 0;
}
"""
QUICK_BUILD_STYLES = """
.template-selector {
margin-bottom: 1rem;
}
.qubit-slider {
margin: 1rem 0;
}
"""
|