121 lines
13 KiB
CSS
Raw Normal View History

2025-06-19 04:02:44 +02:00
:root {
--editor-primary: var(--accent-primary);
--editor-primary-hover: var(--accent-hover);
--editor-primary-light: var(--accent-primary-transparent);
--editor-danger: var(--danger);
--editor-danger-hover: color-mix(in srgb, var(--danger) 85%, black);
--editor-danger-light: color-mix(in srgb, var(--danger) 15%, transparent);
--editor-success: var(--success);
--editor-success-hover: color-mix(in srgb, var(--success) 85%, black);
--editor-success-light: color-mix(in srgb, var(--success) 15%, transparent);
--editor-info: var(--info);
--editor-info-hover: color-mix(in srgb, var(--info) 85%, black);
--editor-info-light: color-mix(in srgb, var(--info) 15%, transparent);
--editor-warning: var(--warning);
--editor-warning-hover: color-mix(in srgb, var(--warning) 85%, black);
--editor-warning-light: color-mix(in srgb, var(--warning) 15%, transparent);
--editor-text-dark: var(--text-primary);
--editor-text-light: var(--text-secondary);
--editor-light: var(--bg-primary);
--editor-light-alt: var(--bg-secondary);
--editor-border-color: var(--border-color);
--editor-sidebar-bg: var(--bg-tertiary);
--editor-header-bg: var(--bg-tertiary);
--editor-header-text: var(--text-primary);
--editor-sidebar-collapsed-width: 65px;
--editor-sidebar-expanded-width: 240px;
--editor-content-padding: 20px;
--editor-border-radius: var(--radius-md);
--editor-shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.1);
--editor-shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.2);
--editor-shadow-large: 0 10px 30px rgba(0, 0, 0, 0.3);
--editor-transition-speed: 0.3s;
--editor-selected-bg: var(--accent-primary-transparent);
}
2025-06-19 10:55:14 +02:00
#editorModal .content-wrapper { flex-grow: 1; display: flex; overflow: hidden; background-color: var(--bg-primary); height: 100%; }
2025-06-19 04:02:44 +02:00
#editorModal .list-panel { width: 100%; display: flex; flex-direction: column; border-right: none; overflow: hidden; transition: width var(--editor-transition-speed) ease; }
#editorModal.editor-visible .list-panel { width: 60%; border-right: 1px solid var(--editor-border-color); }
#editorModal .list-toolbar { padding: 10px 15px; border-bottom: 1px solid var(--editor-border-color); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex-shrink: 0; background-color: var(--bg-secondary); }
#editorModal #file-name-display { font-size: 0.9rem; font-weight: 500; background-color: var(--bg-element); padding: 4px 10px; border-radius: var(--editor-border-radius); border: 1px solid var(--editor-border-color); color: var(--editor-text-light); margin-right: auto; }
#editorModal #file-name-display.loaded { color: var(--editor-text-dark); border-color: var(--editor-primary); background-color: var(--editor-primary-light); }
#editorModal .list-toolbar .btn, #editorModal .list-toolbar #group-filter { height: 32px; font-size: 0.8rem; padding: 0 12px; background-color: var(--bg-element); border-color: var(--border-color); color: var(--text-primary); border-radius: var(--radius-sm); }
#editorModal .table-container { flex-grow: 1; overflow-y: auto; background: transparent; }
#editorModal table { min-width: 550px; border-collapse: separate; border-spacing: 0; width: 100%; }
#editorModal th, #editorModal td { padding: 10px 12px; white-space: nowrap; font-size: 0.85rem; vertical-align: middle; }
#editorModal td { border-bottom: 1px solid var(--editor-border-color); }
#editorModal th { background-color: var(--bg-tertiary); font-weight: 600; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border-color-strong); cursor: default; }
#editorModal th.sortable { cursor: pointer; }
#editorModal .handle-cell, #editorModal .checkbox-cell { width: 40px; text-align: center; }
#editorModal .logo-cell { width: 50px; text-align: center; }
#editorModal .name-cell { min-width: 180px; white-space: normal; font-weight: 500; }
#editorModal .url-cell { max-width: 250px; overflow: hidden; text-overflow: ellipsis; color: var(--editor-text-light); font-size: 0.8rem; }
#editorModal .epg-cell { width: 120px; overflow: hidden; text-overflow: ellipsis; }
#editorModal .ch-num-cell { width: 60px; text-align: right; color: var(--editor-text-light); }
#editorModal .actions-cell { width: 80px; text-align: center; }
#editorModal .drag-handle { cursor: move; color: var(--editor-text-light); padding: 0 8px 0 0; opacity: 0.6; }
#editorModal tr:hover .drag-handle { opacity: 1; }
#editorModal .logo-preview { max-width: 32px; max-height: 20px; vertical-align: middle; object-fit: contain; background-color: var(--bg-element); border-radius: 3px; }
#editorModal tr.channel-row { cursor: pointer; transition: background-color var(--editor-transition-speed); }
#editorModal tr.channel-row:hover { background-color: var(--bg-hover); }
#editorModal tr.channel-row.selected-row { background-color: var(--editor-selected-bg) !important; }
#editorModal tr.channel-row.selected-row td { border-bottom-color: var(--editor-primary); }
#editorModal .group-header-row { background-color: var(--bg-element); font-weight: 600; cursor: default; transition: background-color var(--editor-transition-speed); user-select: none; }
#editorModal .group-header-row:hover { background-color: var(--bg-element-hover); }
#editorModal .group-header-row td { padding: 8px 12px; border-bottom: 1px solid var(--border-color-strong); }
#editorModal .group-name-text { cursor: text; }
#editorModal .group-channel-count { font-size: 0.8em; color: var(--editor-text-light); margin-left: 8px; font-weight: 400; }
#editorModal .editor-panel { width: 0; padding: 0; border-left: none; display: flex; flex-direction: column; overflow: hidden; background-color: var(--bg-secondary); transition: width var(--editor-transition-speed) ease, padding var(--editor-transition-speed) ease, opacity var(--editor-transition-speed) ease, border-left var(--editor-transition-speed) ease; opacity: 0; flex-shrink: 0; user-select: none; }
#editorModal.editor-visible .editor-panel { width: 40%; opacity: 1; overflow-y: auto; padding: var(--editor-content-padding); border-left: 1px solid var(--editor-border-color); }
#editorModal .editor-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--editor-border-color); flex-shrink: 0; }
#editorModal .editor-panel-header h3 { margin: 0; font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; }
#editorModal .editor-panel-header i { color: var(--editor-primary); margin-right: 8px; }
#editorModal .btn-close-editor { background: none; border: none; font-size: 1.5rem; color: var(--editor-text-light); cursor: pointer; padding: 0 5px; opacity: 0.7; transition: opacity 0.2s; line-height: 1; }
#editorModal .btn-close-editor:hover { opacity: 1; }
#editorModal .editor-panel-content { flex-grow: 1; }
#editorModal .editor-panel .form-group { margin-bottom: 20px; }
#editorModal .editor-panel label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.85rem; color: var(--editor-text-dark); }
#editorModal .editor-panel input[type="text"], #editorModal .editor-panel input[type="url"], #editorModal .editor-panel input[type="number"], #editorModal .editor-panel textarea { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--editor-border-color); border-radius: var(--editor-border-radius); font-size: 0.9rem; background-color: var(--bg-element); color: var(--text-primary); transition: border-color 0.2s, box-shadow 0.2s; line-height: 1.5; }
#editorModal .editor-panel textarea { height: auto; min-height: 76px; padding: 8px 12px; resize: vertical; }
#editorModal .editor-panel input:focus, #editorModal .editor-panel textarea:focus { border-color: var(--editor-primary); outline: none; box-shadow: 0 0 0 3px var(--editor-primary-light); }
#editorModal .editor-panel .input-group { display: flex; gap: 15px; }
#editorModal .editor-panel .input-group .form-group { flex: 1; margin-bottom: 0; }
#editorModal .editor-panel input[type="number"] { padding-left: 25px; }
#editorModal .editor-panel .ch-num-wrapper { position: relative; }
#editorModal .editor-panel .ch-num-wrapper::before { content: "#"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--editor-text-light); font-size: 0.9rem; font-weight: 600; }
#editorModal .editor-logo-preview { max-width: 100px; max-height: 60px; object-fit: contain; margin-bottom: 10px; border: 1px dashed var(--editor-border-color); padding: 5px; display: block; border-radius: var(--editor-border-radius); background-color: var(--bg-primary); min-height: 30px; text-align: center; line-height: 30px; color: var(--editor-text-light); }
#editorModal .editor-logo-preview[src=''] { display: none; }
#editorModal .editor-panel .form-check-group { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 8px; }
#editorModal .editor-panel .form-check { display: flex; align-items: center; gap: 6px; }
#editorModal .editor-panel .form-check input[type="checkbox"] { width: auto; height: auto; flex-shrink: 0; }
#editorModal .editor-panel .form-check label { margin-bottom: 0; font-weight: 400; font-size: 0.85rem; }
#editorModal .editor-panel h6 { font-weight: 600; margin: 25px 0 15px 0; padding-top: 15px; border-top: 1px solid var(--editor-border-color); font-size: 0.9rem; color: var(--editor-primary); }
#editorModal #editor-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; color: var(--editor-text-light); text-align: center; padding: 20px; }
#editorModal #editor-placeholder i { font-size: 3em; margin-bottom: 15px; opacity: 0.5; }
#editorModal #editor-placeholder p { font-size: 1rem; }
#editorModal .hidden { display: none !important; }
2025-06-19 10:55:14 +02:00
#editorModal .modal-body { padding: 0; }
2025-06-19 04:02:44 +02:00
#editorModal .btn { display: inline-block; font-weight: 400; line-height: 1.5; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; user-select: none; border: 1px solid transparent; padding: .375rem .75rem; font-size: 1rem; border-radius: .25rem; background-color: var(--bg-element); color: var(--text-primary); border-color: var(--border-color); }
#editorModal .btn:hover { background-color: var(--bg-element-hover); border-color: var(--border-color-strong); }
#editorModal .btn-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: .2rem; }
#editorModal .btn-outline-danger { color: var(--danger); border-color: var(--danger); }
#editorModal .btn-outline-danger:hover { color: white; background-color: var(--danger); border-color: var(--danger); }
#editorModal .btn-outline-primary { color: var(--accent-primary); border-color: var(--accent-primary); }
#editorModal .btn-outline-primary:hover { color: white; background-color: var(--accent-primary); border-color: var(--accent-primary); }
#editorModal .btn-info { background-color: var(--editor-info); border-color: var(--editor-info); color: white; }
#editorModal .btn-info:hover { background-color: var(--editor-info-hover); border-color: var(--editor-info-hover); }
#editorModal .btn-success { background-color: var(--editor-success); border-color: var(--editor-success); color: white; }
#editorModal .btn-success:hover { background-color: var(--editor-success-hover); border-color: var(--editor-success-hover); }
#editorModal .editor-panel-footer { padding-top: 20px; margin-top: auto; border-top: 1px solid var(--editor-border-color); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
#editorModal .btn-action { background: none; border: none; color: var(--editor-text-light); opacity: 0.6; cursor: pointer; padding: 2px 4px; transition: opacity 0.2s, color 0.2s; }
#editorModal .btn-action:hover { opacity: 1; color: var(--editor-primary); }
#editorModal .btn-action.play:hover { color: var(--editor-success); }
#editorModal .btn-action i { pointer-events: none; }
#editorModal th i.fas { margin-left: 8px; color: var(--editor-text-light); }
#editorModal th:hover i.fas { color: var(--editor-text-dark); }
#editorModal th .fa-sort-up, #editorModal th .fa-sort-down { color: var(--editor-primary); }
#multiEditModal .multi-edit-field { background-color: var(--bg-element); padding: 15px; border-radius: var(--editor-border-radius); border: 1px solid var(--editor-border-color); margin-bottom: 15px; }
#multiEditModal .multi-edit-field .form-check { margin-bottom: 10px; }
#multiEditModal .multi-edit-field .form-control:disabled, #multiEditModal .multi-edit-field .form-select:disabled { background-color: var(--bg-secondary); opacity: 0.5; }
body.editor-is-dragging { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; cursor: grabbing; }
.sortable-ghost { opacity: 0.4; background-color: var(--accent-primary-transparent); }
.sortable-fallback { display: none; }