Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/* ==========================================================================
OWL Controllers - Shared Config Editor Styles
Collapsible sections, badges, banners, relay mapping, loading states
Usage: @import after _forms.css
========================================================================== */
/* -------------------------------------------------------------------------
Config Badges
------------------------------------------------------------------------- */
.config-badge {
font-size: 0.7rem;
padding: 0.2rem 0.5rem;
border-radius: 10px;
font-weight: 600;
text-transform: uppercase;
}
.config-badge.default {
background: #e8f5e9;
color: #2e7d32;
}
.config-badge.custom {
background: #e3f2fd;
color: #1565c0;
}
/* -------------------------------------------------------------------------
Config Banners (Warning, Unsaved, Info)
------------------------------------------------------------------------- */
.config-warning,
.config-unsaved {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
border-radius: 8px;
font-size: 0.875rem;
}
.config-warning {
background: #fff3cd;
border: 1px solid #ffc107;
color: #856404;
}
.config-warning svg {
fill: #856404;
flex-shrink: 0;
}
.config-unsaved {
background: #e3f2fd;
border: 1px solid #2196f3;
color: #1565c0;
}
.config-unsaved svg {
fill: #1565c0;
flex-shrink: 0;
}
.config-info {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
border-radius: 8px;
font-size: 0.85rem;
background: #f5f5f5;
border: 1px solid #e0e0e0;
color: #666;
}
.config-info svg {
fill: #888;
flex-shrink: 0;
}
/* -------------------------------------------------------------------------
Config Sections Container
------------------------------------------------------------------------- */
.config-sections {
display: flex;
flex-direction: column;
gap: 1rem;
}
/* -------------------------------------------------------------------------
Collapsible Config Section
------------------------------------------------------------------------- */
.config-section {
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
overflow: hidden;
}
.config-section-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.25rem;
background: #f8f9fa;
border-bottom: 1px solid #eee;
cursor: pointer;
user-select: none;
transition: background 0.2s;
}
.config-section-header:hover {
background: #f0f0f0;
}
.config-section-header h3 {
margin: 0;
font-size: 1rem;
font-weight: 600;
display: flex;
align-items: center;
gap: 0.5rem;
}
.config-section-header .section-badge {
font-size: 0.7rem;
padding: 0.15rem 0.5rem;
border-radius: 10px;
font-weight: 500;
}
.section-badge.warning {
background: #fff3cd;
color: #856404;
}
.section-badge.info {
background: #e3f2fd;
color: #1565c0;
}
.config-section-header .collapse-icon {
transition: transform 0.2s;
fill: #666;
}
.config-section.collapsed .collapse-icon {
transform: rotate(-90deg);
}
/* -------------------------------------------------------------------------
Config Section Body
------------------------------------------------------------------------- */
.config-section-body {
padding: 1.25rem;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
}
.config-section.collapsed .config-section-body {
display: none;
}
/* -------------------------------------------------------------------------
Config Fields (extends shared _forms.css .config-field)
------------------------------------------------------------------------- */
.config-field input,
.config-field select,
.config-field textarea {
padding: 0.6rem 0.75rem;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 0.875rem;
transition: border-color 0.2s, box-shadow 0.2s;
background: #fff;
}
.config-field input:focus,
.config-field select:focus,
.config-field textarea:focus {
outline: none;
border-color: #4CAF50;
box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}
.config-field input.modified,
.config-field select.modified,
.config-field textarea.modified {
border-color: #2196f3;
background: #f8fbff;
}
.config-field input[type="number"] {
font-family: monospace;
}
.config-field input[type="checkbox"] {
width: auto;
margin-right: 0.5rem;
}
.config-field .checkbox-wrapper {
display: flex;
align-items: center;
padding: 0.6rem 0;
}
.config-field .checkbox-wrapper input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.config-field .checkbox-wrapper label {
cursor: pointer;
margin: 0;
}
.config-field .field-help {
font-size: 0.7rem;
color: #888;
margin-top: 0.15rem;
}
.config-field .field-warning {
font-size: 0.7rem;
color: #e67e22;
margin-top: 0.15rem;
display: flex;
align-items: center;
gap: 0.25rem;
}
/* -------------------------------------------------------------------------
Config Loading Spinner
------------------------------------------------------------------------- */
.config-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem;
gap: 1rem;
color: #666;
}
.config-loading .spinner {
width: 32px;
height: 32px;
border: 3px solid #f0f0f0;
border-top-color: #4CAF50;
border-radius: 50%;
animation: spin 1s linear infinite;
}
/* -------------------------------------------------------------------------
Relay Mapping
------------------------------------------------------------------------- */
.relay-mapping {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 0.75rem;
}
.relay-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem;
background: #f8f9fa;
border-radius: 6px;
}
.relay-item label {
font-weight: 500;
min-width: 60px;
}
.relay-item input {
width: 70px;
text-align: center;
}
46296531dThis file is pinned to the selected release. Download the original to open it in your design tool.