oggui/ogWebconsole/src/app/components/plugins/plugin-settings/plugin-settings.component.css

436 lines
6.8 KiB
CSS

.plugin-settings-container {
display: flex;
flex-direction: column;
gap: 24px;
}
.plugin-header-card {
display: flex;
align-items: center;
gap: 20px;
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 20px 24px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.plugin-header-icon-box {
display: flex;
align-items: center;
justify-content: center;
width: 56px;
height: 56px;
background: #e0f2fe;
color: #0284c7;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}
.plugin-header-icon {
font-size: 32px;
width: 32px;
height: 32px;
}
.plugin-header-info {
display: flex;
flex-direction: column;
flex: 1;
}
.plugin-title-row {
display: flex;
align-items: center;
gap: 12px;
}
.plugin-title {
margin: 0;
font-size: 1.35rem;
font-weight: 700;
color: #0f172a;
}
.plugin-version-tag {
background: #e2e8f0;
color: #475569;
font-size: 0.75rem;
font-weight: 600;
padding: 2px 8px;
border-radius: 12px;
}
.plugin-status-tag {
background: #dcfce7;
color: #166534;
font-size: 0.75rem;
font-weight: 600;
padding: 2px 8px;
border-radius: 12px;
}
.plugin-description {
margin: 6px 0 0 0;
color: #475569;
font-size: 0.92rem;
line-height: 1.5;
}
.plugin-author {
font-size: 0.8rem;
color: #64748b;
margin-top: 4px;
}
.settings-form-wrapper {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.section-header-row {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
margin-bottom: 6px;
}
.section-title-box {
display: flex;
align-items: center;
gap: 8px;
color: #0f172a;
}
.section-icon {
color: #1976d2;
}
.section-heading {
margin: 0;
font-size: 1.15rem;
font-weight: 600;
}
.section-subheading {
margin: 6px 0 24px 0;
color: #64748b;
font-size: 0.9rem;
}
.form-fields-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.form-field-card {
display: flex;
flex-direction: column;
gap: 8px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 16px;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field-card:hover {
border-color: #cbd5e1;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.form-field-card.full-width {
grid-column: 1 / -1;
}
.field-meta {
display: flex;
flex-direction: column;
gap: 4px;
}
.field-label {
font-weight: 600;
font-size: 0.92rem;
color: #1e293b;
}
.field-description {
font-size: 0.82rem;
color: #64748b;
line-height: 1.4;
}
.field-control-container {
margin-top: 8px;
}
.w-100 {
width: 100%;
}
.toggle-wrapper {
display: flex;
align-items: center;
height: 48px;
}
/* Editor de código y visor con resaltado de sintaxis */
.code-editor-box {
margin-top: 4px;
background-color: #0b1120;
border: 1px solid #1e293b;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.code-editor-header {
display: flex;
justify-content: space-between;
align-items: center;
background: #0f172a;
padding: 8px 14px;
border-bottom: 1px solid #1e293b;
}
.code-header-left {
display: flex;
align-items: center;
gap: 7px;
}
.terminal-dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
}
.terminal-dot.red {
background-color: #ef4444;
}
.terminal-dot.yellow {
background-color: #f59e0b;
}
.terminal-dot.green {
background-color: #10b981;
}
.code-lang-badge {
font-family: 'Consolas', 'Fira Code', 'Monaco', monospace;
font-size: 0.72rem;
font-weight: 600;
color: #94a3b8;
background: #1e293b;
padding: 2px 8px;
border-radius: 4px;
margin-left: 8px;
letter-spacing: 0.5px;
text-transform: uppercase;
}
.code-header-actions {
display: flex;
align-items: center;
gap: 8px;
}
.code-action-btn {
display: flex;
align-items: center;
gap: 5px;
background: #1e293b;
color: #94a3b8;
border: 1px solid #334155;
border-radius: 6px;
padding: 4px 10px;
font-size: 0.78rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.code-action-btn:hover {
background: #334155;
color: #f8fafc;
border-color: #475569;
}
.code-action-btn.active {
background: #0284c7;
color: #ffffff;
border-color: #0284c7;
}
.action-btn-icon {
font-size: 15px;
width: 15px;
height: 15px;
}
.code-preview-scroll {
max-height: 280px;
overflow-y: auto;
overflow-x: auto;
padding: 10px 0;
background: #0b1120;
}
.code-lines-table {
display: flex;
flex-direction: column;
width: 100%;
font-family: 'Consolas', 'Fira Code', 'Monaco', monospace;
font-size: 0.92rem;
line-height: 1.6;
}
.code-line-row {
display: flex;
width: 100%;
transition: background-color 0.15s;
}
.code-line-row:hover {
background-color: rgba(255, 255, 255, 0.04);
}
.line-number {
min-width: 42px;
padding: 0 12px;
text-align: right;
color: #475569;
user-select: none;
border-right: 1px solid #1e293b;
font-size: 0.82rem;
}
.line-code {
padding: 0 16px;
white-space: pre;
color: #f8fafc;
flex: 1;
}
/* Tokens de resaltado de sintaxis */
.syntax-comment {
color: #86efac;
font-style: italic;
}
.syntax-cmd {
color: #38bdf8;
font-weight: 600;
}
.syntax-keyword {
color: #c084fc;
font-weight: 500;
}
.syntax-flag {
color: #f472b6;
}
.syntax-string {
color: #fde047;
}
.syntax-val {
color: #34d399;
font-weight: 600;
}
.syntax-num {
color: #fb923c;
}
.code-textarea-wrapper {
padding: 10px;
background: #0b1120;
}
.code-raw-textarea {
width: 100%;
background-color: #090d16;
color: #f8fafc;
border: 1px solid #334155;
border-radius: 6px;
padding: 12px;
font-family: 'Consolas', 'Fira Code', 'Monaco', monospace;
font-size: 0.92rem;
line-height: 1.6;
resize: vertical;
box-sizing: border-box;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}
.code-raw-textarea:focus {
border-color: #38bdf8;
box-shadow: 0 0 0 1px #38bdf8;
}
.form-actions-bar {
display: flex;
align-items: center;
gap: 12px;
}
.form-actions-bar.top-actions {
margin-top: 0;
padding-top: 0;
border-top: none;
}
.btn-save, .btn-reset, .btn-regenerate {
display: flex;
align-items: center;
gap: 8px;
font-weight: 500;
padding: 0 16px;
height: 40px;
}
.no-plugin-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 20px;
color: #94a3b8;
gap: 12px;
}
.no-plugin-icon {
font-size: 48px;
width: 48px;
height: 48px;
}
@media (max-width: 900px) {
.section-header-row {
flex-direction: column;
align-items: flex-start;
}
.form-actions-bar.top-actions {
width: 100%;
justify-content: flex-start;
flex-wrap: wrap;
}
.form-fields-grid {
grid-template-columns: 1fr;
}
}