mirror of
https://github.com/Minidoracat/mcp-feedback-enhanced.git
synced 2025-07-27 10:42:25 +08:00
447 lines
8.5 KiB
CSS
447 lines
8.5 KiB
CSS
/* Interactive Feedback MCP - Modern Dark Theme */
|
|
:root {
|
|
--primary-color: #007acc;
|
|
--primary-hover: #005999;
|
|
--background-color: #1e1e1e;
|
|
--surface-color: #2d2d30;
|
|
--surface-hover: #383838;
|
|
--text-primary: #cccccc;
|
|
--text-secondary: #9e9e9e;
|
|
--text-accent: #007acc;
|
|
--border-color: #464647;
|
|
--success-color: #4caf50;
|
|
--warning-color: #ff9800;
|
|
--error-color: #f44336;
|
|
--console-bg: #1a1a1a;
|
|
--input-bg: #2d2d30;
|
|
--button-bg: #0e639c;
|
|
--button-hover-bg: #1177bb;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background-color: var(--background-color);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
color: var(--text-accent);
|
|
margin-bottom: 30px;
|
|
font-size: 2.5em;
|
|
font-weight: 300;
|
|
}
|
|
|
|
h2, h3 {
|
|
color: var(--text-primary);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.3em;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.section {
|
|
background-color: var(--surface-color);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid var(--border-color);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.section:hover {
|
|
background-color: var(--surface-hover);
|
|
}
|
|
|
|
.session-info {
|
|
background: linear-gradient(135deg, var(--surface-color), var(--surface-hover));
|
|
border-left: 4px solid var(--primary-color);
|
|
}
|
|
|
|
.session-info p {
|
|
margin-bottom: 8px;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.session-info strong {
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.toggle-btn {
|
|
width: 100%;
|
|
background-color: var(--button-bg);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
border-radius: 6px;
|
|
font-size: 1.1em;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.toggle-btn:hover {
|
|
background-color: var(--button-hover-bg);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.command-section {
|
|
animation: slideDown 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
align-items: center;
|
|
}
|
|
|
|
.input-group input {
|
|
flex: 1;
|
|
background-color: var(--input-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 12px 15px;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.input-group input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
|
|
}
|
|
|
|
.input-group button {
|
|
background-color: var(--button-bg);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.input-group button:hover {
|
|
background-color: var(--button-hover-bg);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
#stop-btn {
|
|
background-color: var(--error-color);
|
|
}
|
|
|
|
#stop-btn:hover {
|
|
background-color: #d32f2f;
|
|
}
|
|
|
|
.checkbox-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.checkbox-group label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.checkbox-group input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: var(--primary-color);
|
|
}
|
|
|
|
#save-config {
|
|
background-color: var(--success-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
#save-config:hover {
|
|
background-color: #45a049;
|
|
}
|
|
|
|
.console-section {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.console-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.console-header h4 {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
#clear-logs {
|
|
background-color: var(--warning-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 6px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
#clear-logs:hover {
|
|
background-color: #f57c00;
|
|
}
|
|
|
|
.console {
|
|
background-color: var(--console-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 15px;
|
|
height: 300px;
|
|
overflow-y: auto;
|
|
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.console-line {
|
|
margin-bottom: 2px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.console::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.console::-webkit-scrollbar-track {
|
|
background: var(--surface-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.console::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.console::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-secondary);
|
|
}
|
|
|
|
.feedback-section {
|
|
background: linear-gradient(135deg, var(--surface-color), var(--surface-hover));
|
|
border-left: 4px solid var(--success-color);
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.feedback-description {
|
|
background-color: var(--input-bg);
|
|
padding: 15px;
|
|
border-radius: 6px;
|
|
margin-bottom: 15px;
|
|
border-left: 3px solid var(--primary-color);
|
|
font-style: italic;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
#feedback-input {
|
|
flex-grow: 1;
|
|
min-height: 150px;
|
|
background-color: var(--input-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 15px;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
transition: all 0.3s ease;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
#feedback-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
|
|
}
|
|
|
|
#feedback-input::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
#submit-feedback {
|
|
background: linear-gradient(135deg, var(--success-color), #66bb6a);
|
|
color: white;
|
|
border: none;
|
|
padding: 15px 30px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
#submit-feedback:hover {
|
|
background: linear-gradient(135deg, #45a049, #4caf50);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
margin-top: 30px;
|
|
padding: 20px;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.footer a {
|
|
color: var(--text-accent);
|
|
text-decoration: none;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.footer a:hover {
|
|
color: var(--primary-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.loading {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.spinner {
|
|
width: 50px;
|
|
height: 50px;
|
|
border: 4px solid var(--border-color);
|
|
border-top: 4px solid var(--primary-color);
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.loading p {
|
|
color: var(--text-primary);
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 15px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2em;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.input-group {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.input-group button {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.checkbox-group {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
}
|
|
|
|
.console {
|
|
height: 200px;
|
|
}
|
|
|
|
#feedback-input {
|
|
min-height: 120px;
|
|
}
|
|
}
|
|
|
|
/* Smooth transitions for all interactive elements */
|
|
* {
|
|
transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
|
|
}
|
|
|
|
/* Focus styles for accessibility */
|
|
button:focus,
|
|
input:focus,
|
|
textarea:focus {
|
|
outline: 2px solid var(--primary-color);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Custom selection colors */
|
|
::selection {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
} |