LocalScriptsWeb/frontend/static/css/style.css

163 lines
2.6 KiB
CSS

/* frontend/static/css/style.css - Add these styles */
.script-group {
background: white;
border-radius: 8px;
padding: 1rem;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.script-group-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border-color);
}
.script-group-header h3 {
margin: 0;
color: var(--primary-color);
}
.script-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.script-item {
display: flex;
justify-content: space-between;
align-items: start;
padding: 1rem;
background: var(--bg-color);
border-radius: 4px;
}
.script-info {
flex: 1;
}
.script-info h4 {
margin: 0 0 0.5rem 0;
color: var(--secondary-color);
}
.script-info p {
margin: 0;
font-size: 0.9rem;
color: #666;
}
.script-actions {
display: flex;
gap: 0.5rem;
}
.config-btn {
background-color: var(--secondary-color);
}
.run-btn {
background-color: #27ae60;
}
.run-btn:hover {
background-color: #219a52;
}
.config-editor {
width: 100%;
font-family: monospace;
padding: 0.5rem;
border: 1px solid var(--border-color);
border-radius: 4px;
}
.output-area {
background: white;
padding: 1rem;
border-radius: 4px;
border: 1px solid var(--border-color);
height: 200px;
overflow-y: auto;
font-family: monospace;
white-space: pre-wrap;
}
.no-scripts {
text-align: center;
color: #666;
padding: 2rem;
}
/* Add to your existing style.css */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal-content {
background: white;
padding: 2rem;
border-radius: 8px;
max-width: 600px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
}
.form-group {
margin-bottom: 1rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
}
.button-group {
display: flex;
justify-content: flex-end;
gap: 1rem;
margin-top: 2rem;
}
.config-info {
margin-bottom: 1.5rem;
}
.group-configs {
margin-top: 1.5rem;
}
.group-config {
margin-top: 1rem;
padding: 1rem;
background: var(--bg-color);
border-radius: 4px;
}
.group-config pre {
margin-top: 0.5rem;
white-space: pre-wrap;
font-size: 0.9rem;
}