Files
ledgrab/server/src/wled_controller/static/css/profiles.css
T
alexei.dolgolyov da3e53e1f1 Replace profile targets with scene activation and searchable scene selector
Profiles now activate scene presets instead of individual targets, with
configurable deactivation behavior (none/revert/fallback scene). The
target checklist UI is replaced by a searchable combobox for scene
selection that scales well with many scenes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 17:29:02 +03:00

273 lines
5.1 KiB
CSS

/* ===== PROFILES ===== */
.badge-profile-active {
background: var(--success-color);
color: #fff;
}
.badge-profile-inactive {
background: var(--border-color);
color: var(--text-color);
}
.badge-profile-disabled {
background: var(--border-color);
color: var(--text-muted);
opacity: 0.7;
}
.profile-status-disabled {
opacity: 0.6;
}
.profile-logic-label {
font-size: 0.7rem;
font-weight: 600;
color: var(--text-muted);
padding: 0 4px;
}
/* Profile condition editor rows */
.profile-condition-row {
border: 1px solid var(--border-color);
border-radius: 6px;
padding: 10px;
margin-bottom: 8px;
background: var(--bg-secondary, var(--bg-color));
}
.condition-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.condition-type-label {
font-weight: 600;
font-size: 0.9rem;
}
.condition-type-select {
font-weight: 600;
font-size: 0.9rem;
padding: 2px 6px;
border: 1px solid var(--border-color);
border-radius: 4px;
background: var(--bg-color);
color: var(--text-color);
}
.condition-always-desc {
display: block;
color: var(--text-muted);
font-size: 0.85rem;
}
.btn-remove-condition {
background: none;
border: none;
color: var(--danger-color, #dc3545);
cursor: pointer;
font-size: 1rem;
padding: 2px 6px;
}
.condition-fields {
display: flex;
flex-direction: column;
gap: 8px;
}
.condition-field label {
display: block;
font-size: 0.85rem;
margin-bottom: 3px;
color: var(--text-muted);
}
.condition-field select,
.condition-field textarea {
width: 100%;
padding: 6px 8px;
border: 1px solid var(--border-color);
border-radius: 4px;
background: var(--bg-color);
color: var(--text-color);
font-size: 0.9rem;
font-family: inherit;
}
.condition-apps {
resize: vertical;
min-height: 60px;
}
.condition-apps-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.btn-browse-apps {
background: none;
border: 1px solid var(--border-color);
color: var(--text-color);
font-size: 0.75rem;
padding: 2px 8px;
border-radius: 4px;
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
}
.btn-browse-apps:hover {
border-color: var(--primary-color);
background: rgba(33, 150, 243, 0.1);
}
.process-picker {
margin-top: 6px;
border: 1px solid var(--border-color);
border-radius: 4px;
overflow: hidden;
}
.process-picker-search {
width: 100%;
padding: 6px 8px;
border: none;
border-bottom: 1px solid var(--border-color);
background: var(--bg-color);
color: var(--text-color);
font-size: 0.85rem;
font-family: inherit;
outline: none;
box-sizing: border-box;
}
.process-picker-list {
max-height: 160px;
overflow-y: auto;
}
.process-picker-item {
padding: 4px 8px;
font-size: 0.8rem;
cursor: pointer;
transition: background 0.1s;
}
.process-picker-item:hover {
background: rgba(33, 150, 243, 0.15);
}
.process-picker-item.added {
color: var(--text-muted);
cursor: default;
opacity: 0.6;
}
.process-picker-loading {
padding: 8px;
font-size: 0.8rem;
color: var(--text-muted);
text-align: center;
}
/* Scene selector (searchable combobox) */
.scene-selector {
position: relative;
}
.scene-selector-input-wrap {
display: flex;
align-items: center;
border: 1px solid var(--border-color);
border-radius: 4px;
background: var(--bg-color);
overflow: hidden;
}
.scene-selector-input {
flex: 1;
padding: 6px 8px;
border: none;
background: transparent;
color: var(--text-color);
font-size: 0.9rem;
font-family: inherit;
outline: none;
}
.scene-selector-clear {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.1rem;
cursor: pointer;
padding: 4px 8px;
line-height: 1;
display: none;
}
.scene-selector-clear.visible {
display: block;
}
.scene-selector-clear:hover {
color: var(--danger-color, #dc3545);
}
.scene-selector-dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 100;
max-height: 200px;
overflow-y: auto;
border: 1px solid var(--border-color);
border-top: none;
border-radius: 0 0 4px 4px;
background: var(--bg-color);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.scene-selector-dropdown.open {
display: block;
}
.scene-selector-item {
padding: 6px 10px;
font-size: 0.85rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
transition: background 0.1s;
}
.scene-selector-item:hover {
background: rgba(33, 150, 243, 0.15);
}
.scene-selector-item.selected {
background: rgba(33, 150, 243, 0.2);
font-weight: 600;
}
.scene-selector-item .scene-color-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
.scene-selector-empty {
padding: 8px 10px;
font-size: 0.85rem;
color: var(--text-muted);
text-align: center;
}