Files
scalesApp/frontend/src/components/ReportEditor/ConfigPanel.css
T
2026-09-23 20:18:29 +03:00

204 lines
3.8 KiB
CSS

.config-panel-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--backdrop);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.config-panel {
background: var(--surface);
border-radius: 8px;
width: 90%;
max-width: 600px;
max-height: 80vh;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-overlay);
}
.config-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-5);
border-bottom: 1px solid var(--border);
background: var(--header-bg);
color: var(--header-text);
border-radius: 8px 8px 0 0;
}
.config-panel-header h2 {
margin: 0;
font-size: var(--fs-2xl);
font-weight: var(--fw-semibold);
}
.close-button {
background: none;
border: none;
color: var(--header-text);
font-size: var(--fs-display);
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: background 0.2s;
}
.close-button:hover {
background: var(--header-chrome);
}
.config-panel-content {
padding: var(--space-5);
overflow-y: auto;
flex: 1;
}
.config-section {
margin-bottom: var(--space-6);
}
.config-section h3 {
margin: 0 0 var(--space-3) 0;
font-size: var(--fs-lg);
font-weight: var(--fw-semibold);
color: var(--text);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-3);
}
.input-group {
display: flex;
gap: var(--space-2);
}
.config-input {
flex: 1;
padding: var(--space-2-5) var(--space-3);
border: 1px solid var(--border);
border-radius: 6px;
font-size: var(--fs-md);
font-family: var(--font-mono);
}
.config-input:focus {
outline: none;
border-color: var(--accent);
}
.config-input:disabled {
background: var(--surface-sunken);
cursor: not-allowed;
}
.config-button {
padding: var(--space-2-5) var(--space-4);
background: var(--surface-sunken);
border: 1px solid var(--border);
border-radius: 6px;
font-size: var(--fs-md);
font-weight: var(--fw-medium);
cursor: pointer;
transition: all 0.2s;
}
.config-button:hover:not(:disabled) {
background: var(--surface-hover);
transform: translateY(-1px);
}
.config-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.config-button.primary {
background: var(--accent-gradient);
color: var(--accent-contrast);
border-color: transparent;
}
.config-button.primary:hover:not(:disabled) {
opacity: 0.9;
}
.config-button.small {
padding: var(--space-1-5) var(--space-3);
font-size: var(--fs-sm);
}
.config-error {
margin-top: var(--space-2);
padding: var(--space-3);
background: var(--danger-soft);
border: 1px solid var(--danger);
border-radius: 6px;
color: var(--danger);
font-size: var(--fs-md);
}
.config-info {
padding: var(--space-4);
background: var(--accent-soft);
border: 1px solid var(--accent);
border-radius: 6px;
color: var(--accent);
font-size: var(--fs-md);
text-align: center;
}
.manual-input-section {
margin-top: var(--space-3);
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.manual-data-input {
padding: var(--space-2-5) var(--space-3);
border: 1px solid var(--border);
border-radius: 6px;
font-size: var(--fs-md);
font-family: var(--font-mono);
resize: vertical;
min-height: 120px;
}
.manual-data-input:focus {
outline: none;
border-color: var(--accent);
}
.data-preview {
max-height: 300px;
overflow-y: auto;
padding: var(--space-3);
background: var(--surface-sunken);
border: 1px solid var(--border);
border-radius: 6px;
}
.data-preview pre {
margin: 0;
font-size: var(--fs-sm);
font-family: var(--font-mono);
white-space: pre-wrap;
word-wrap: break-word;
}