757 lines
15 KiB
CSS
757 lines
15 KiB
CSS
/* NOC Display Manager - Modern Styling */
|
|
|
|
:root {
|
|
--noc-27-width: 140px;
|
|
--noc-42-width: 200px;
|
|
--noc-55-width: 260px;
|
|
--noc-65-width: 320px;
|
|
--noc-online: var(--tt-ok, #0f9d58);
|
|
--noc-offline: var(--tt-bad, #e03131);
|
|
--noc-warning: #f59f00;
|
|
--noc-drag-shadow: 0 12px 32px rgba(0, 83, 132, 0.2);
|
|
}
|
|
|
|
.noc-display-manager {
|
|
padding: 20px;
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.noc-main-card {
|
|
background: var(--tt-card, #fff);
|
|
border: 1px solid var(--tt-border, #e9ecef);
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
/* Header */
|
|
.noc-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.noc-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--tt-text-primary, #1a1a2e);
|
|
margin: 0;
|
|
}
|
|
|
|
.noc-header-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Action Bar */
|
|
.noc-action-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
padding: 12px 16px;
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
border-radius: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.noc-search-input {
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--tt-border, #e9ecef);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
width: 250px;
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.noc-search-input:focus {
|
|
outline: none;
|
|
border-color: var(--tt-accent, #005384);
|
|
box-shadow: 0 0 0 3px rgba(0, 83, 132, 0.1);
|
|
}
|
|
|
|
.noc-bulk-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Loading & Empty States */
|
|
.noc-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.noc-empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 80px 20px;
|
|
text-align: center;
|
|
color: var(--tt-text-secondary, #6c757d);
|
|
}
|
|
|
|
.noc-empty-state i {
|
|
font-size: 64px;
|
|
opacity: 0.3;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.noc-empty-state h3 {
|
|
margin: 0 0 8px;
|
|
font-weight: 600;
|
|
color: var(--tt-text-primary, #1a1a2e);
|
|
}
|
|
|
|
.noc-empty-state p {
|
|
margin: 0 0 20px;
|
|
}
|
|
|
|
/* Groups */
|
|
.noc-groups {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.noc-group {
|
|
background: var(--tt-card, #fff);
|
|
border: 1px solid var(--tt-border, #e9ecef);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
transition: box-shadow 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.noc-group.is-drop-target {
|
|
border-color: var(--tt-accent, #005384);
|
|
box-shadow: inset 0 0 0 2px var(--tt-accent, #005384);
|
|
background: rgba(0, 83, 132, 0.02);
|
|
}
|
|
|
|
.noc-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
border-bottom: 1px solid var(--tt-border, #e9ecef);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.noc-group-header:hover {
|
|
background: var(--tt-card-3, #eef1f4);
|
|
}
|
|
|
|
.noc-group-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--tt-text-primary, #1a1a2e);
|
|
}
|
|
|
|
.noc-group-title i {
|
|
font-size: 12px;
|
|
color: var(--tt-text-tertiary, #adb5bd);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.noc-group-title i.rotated {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.noc-group-count {
|
|
background: var(--tt-accent, #005384);
|
|
color: #fff;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.noc-group-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.noc-group-body {
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
min-height: 80px;
|
|
}
|
|
|
|
.noc-group-empty {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
color: var(--tt-text-tertiary, #adb5bd);
|
|
font-size: 13px;
|
|
border: 2px dashed var(--tt-border, #e9ecef);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Add Group Button */
|
|
.noc-add-group {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 16px;
|
|
border: 2px dashed var(--tt-border, #e9ecef);
|
|
border-radius: 12px;
|
|
color: var(--tt-text-tertiary, #adb5bd);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s, color 0.2s, background 0.2s;
|
|
}
|
|
|
|
.noc-add-group:hover {
|
|
border-color: var(--tt-accent, #005384);
|
|
color: var(--tt-accent, #005384);
|
|
background: rgba(0, 83, 132, 0.02);
|
|
}
|
|
|
|
/* Display Card */
|
|
.noc-display-card {
|
|
background: var(--tt-card, #fff);
|
|
border: 1px solid var(--tt-border, #e9ecef);
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
|
|
position: relative;
|
|
cursor: grab;
|
|
}
|
|
|
|
/* Size Variations */
|
|
.noc-display-card.size-27 { width: var(--noc-27-width); min-height: 120px; }
|
|
.noc-display-card.size-42 { width: var(--noc-42-width); min-height: 140px; }
|
|
.noc-display-card.size-55 { width: var(--noc-55-width); min-height: 160px; }
|
|
.noc-display-card.size-65 { width: var(--noc-65-width); min-height: 180px; }
|
|
|
|
.noc-display-card:hover {
|
|
border-color: var(--tt-accent, #005384);
|
|
box-shadow: 0 4px 16px rgba(0, 83, 132, 0.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.noc-display-card.is-dragging {
|
|
opacity: 0.6;
|
|
transform: scale(0.98);
|
|
box-shadow: var(--noc-drag-shadow);
|
|
}
|
|
|
|
.noc-display-card.is-refreshing {
|
|
animation: noc-pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes noc-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
/* Drag Handle */
|
|
.noc-drag-handle {
|
|
position: absolute;
|
|
top: 6px;
|
|
left: 6px;
|
|
padding: 2px 4px;
|
|
color: var(--tt-text-tertiary, #adb5bd);
|
|
opacity: 0;
|
|
cursor: grab;
|
|
transition: opacity 0.15s;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.noc-display-card:hover .noc-drag-handle {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.noc-drag-handle:hover {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
/* Card Header */
|
|
.noc-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.noc-status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.noc-status-dot.online {
|
|
background: var(--noc-online);
|
|
box-shadow: 0 0 8px var(--noc-online);
|
|
}
|
|
|
|
.noc-status-dot.offline {
|
|
background: var(--noc-offline);
|
|
box-shadow: 0 0 8px var(--noc-offline);
|
|
}
|
|
|
|
.noc-monitor-size {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--tt-text-tertiary, #adb5bd);
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Card Content */
|
|
.noc-card-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.noc-display-label {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
color: var(--tt-text-primary, #1a1a2e);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.noc-display-info {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.noc-hdmi-badge,
|
|
.noc-ip-badge {
|
|
font-size: 10px;
|
|
padding: 2px 5px;
|
|
border-radius: 4px;
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
color: var(--tt-text-secondary, #6c757d);
|
|
font-family: var(--tt-mono, monospace);
|
|
}
|
|
|
|
.noc-display-url {
|
|
font-size: 11px;
|
|
color: var(--tt-text-tertiary, #adb5bd);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
cursor: pointer;
|
|
padding: 4px 0;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.noc-display-url:hover {
|
|
color: var(--tt-accent, #005384);
|
|
}
|
|
|
|
.noc-url-input {
|
|
width: 100%;
|
|
padding: 4px 6px;
|
|
font-size: 11px;
|
|
border: 1px solid var(--tt-accent, #005384);
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
}
|
|
|
|
/* Metrics */
|
|
.noc-metrics {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-wrap: wrap;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.noc-metric-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
padding: 2px 5px;
|
|
border-radius: 4px;
|
|
font-size: 9px;
|
|
font-family: var(--tt-mono, monospace);
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
border: 1px solid var(--tt-border, #e9ecef);
|
|
color: var(--tt-text-secondary, #6c757d);
|
|
}
|
|
|
|
.noc-metric-chip i {
|
|
font-size: 8px;
|
|
}
|
|
|
|
.noc-metric-chip.warn {
|
|
background: #fff8e6;
|
|
border-color: #ffe066;
|
|
color: #e67700;
|
|
}
|
|
|
|
.noc-metric-chip.critical {
|
|
background: #fff5f5;
|
|
border-color: #ffc9c9;
|
|
color: #c92a2a;
|
|
animation: noc-temp-warning 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes noc-temp-warning {
|
|
0%, 100% { background: #fff5f5; }
|
|
50% { background: #ffe3e3; }
|
|
}
|
|
|
|
/* Actions */
|
|
.noc-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-top: 8px;
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.noc-display-card:hover .noc-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.noc-action-btn {
|
|
padding: 4px 6px;
|
|
border-radius: 4px;
|
|
border: none;
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
color: var(--tt-text-secondary, #6c757d);
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
transition: background 0.15s, color 0.15s;
|
|
}
|
|
|
|
.noc-action-btn:hover {
|
|
background: var(--tt-accent, #005384);
|
|
color: #fff;
|
|
}
|
|
|
|
.noc-action-btn.danger:hover {
|
|
background: var(--noc-offline);
|
|
}
|
|
|
|
.noc-action-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Modal Form */
|
|
.noc-modal-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.noc-form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.noc-form-group label {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--tt-text-secondary, #6c757d);
|
|
}
|
|
|
|
.noc-form-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.noc-form-row .noc-form-group {
|
|
flex: 1;
|
|
}
|
|
|
|
.noc-divider {
|
|
border: none;
|
|
border-top: 1px solid var(--tt-border, #e9ecef);
|
|
margin: 8px 0;
|
|
}
|
|
|
|
/* Discovery Section */
|
|
.noc-discover-section {
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.noc-discover-section h4 {
|
|
margin: 0 0 12px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--tt-text-primary, #1a1a2e);
|
|
}
|
|
|
|
.noc-discover-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.noc-discover-row input {
|
|
flex: 1;
|
|
}
|
|
|
|
.noc-discovered-info {
|
|
margin-top: 12px;
|
|
padding: 12px;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--tt-border, #e9ecef);
|
|
}
|
|
|
|
.noc-discovered-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.noc-discovered-displays {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.noc-discovered-display {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px;
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.noc-discovered-display:hover {
|
|
background: var(--tt-card-3, #eef1f4);
|
|
}
|
|
|
|
.noc-url-preview {
|
|
font-size: 12px;
|
|
color: var(--tt-text-secondary, #6c757d);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.noc-discover-error {
|
|
margin-top: 12px;
|
|
padding: 10px;
|
|
background: #fff5f5;
|
|
border-radius: 6px;
|
|
color: #c92a2a;
|
|
font-size: 13px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Progress Overlay */
|
|
.noc-progress-overlay {
|
|
position: fixed;
|
|
top: 80px;
|
|
right: 20px;
|
|
background: var(--tt-card, #fff);
|
|
border: 1px solid var(--tt-border, #e9ecef);
|
|
border-radius: 12px;
|
|
padding: 16px 20px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
|
z-index: 1000;
|
|
min-width: 280px;
|
|
}
|
|
|
|
.noc-progress-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
margin-bottom: 12px;
|
|
color: var(--tt-text-primary, #1a1a2e);
|
|
}
|
|
|
|
.noc-progress-bar {
|
|
height: 6px;
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.noc-progress-fill {
|
|
height: 100%;
|
|
background: var(--tt-accent, #005384);
|
|
border-radius: 3px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.noc-progress-text {
|
|
font-size: 12px;
|
|
color: var(--tt-text-secondary, #6c757d);
|
|
}
|
|
|
|
/* Buttons */
|
|
.tt-scope .ghost-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--tt-border, #e9ecef);
|
|
border-radius: 8px;
|
|
background: var(--tt-card, #fff);
|
|
color: var(--tt-text-primary, #1a1a2e);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.15s, border-color 0.15s, color 0.15s;
|
|
}
|
|
|
|
.tt-scope .ghost-btn i,
|
|
.tt-scope .primary-btn i {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.tt-scope .ghost-btn:hover {
|
|
background: var(--tt-card-2, #f8f9fa);
|
|
border-color: var(--tt-accent, #005384);
|
|
color: var(--tt-accent, #005384);
|
|
}
|
|
|
|
.tt-scope .ghost-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.tt-scope .ghost-btn.small {
|
|
padding: 4px 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tt-scope .ghost-btn.danger:hover {
|
|
border-color: var(--noc-offline);
|
|
color: var(--noc-offline);
|
|
}
|
|
|
|
.tt-scope .primary-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: var(--tt-accent, #005384);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.15s, transform 0.1s;
|
|
}
|
|
|
|
.tt-scope .primary-btn:hover {
|
|
background: var(--tt-accent-2, #1e88c9);
|
|
}
|
|
|
|
.tt-scope .primary-btn:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.tt-scope .primary-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.tt-scope .primary-btn.danger {
|
|
background: var(--noc-offline);
|
|
}
|
|
|
|
.tt-scope .primary-btn.danger:hover {
|
|
background: #c92a2a;
|
|
}
|
|
|
|
/* Form Controls */
|
|
.tt-scope .form-control {
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--tt-border, #e9ecef);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
background: var(--tt-card, #fff);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.tt-scope .form-control:focus {
|
|
outline: none;
|
|
border-color: var(--tt-accent, #005384);
|
|
box-shadow: 0 0 0 3px rgba(0, 83, 132, 0.1);
|
|
}
|
|
|
|
.tt-scope select.form-control {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Utility Classes */
|
|
.mt-2 { margin-top: 8px; }
|
|
.mt-3 { margin-top: 12px; }
|
|
.mt-4 { margin-top: 16px; }
|
|
.text-muted { color: var(--tt-text-tertiary, #adb5bd); }
|
|
.small { font-size: 12px; }
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.noc-action-bar {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.noc-search-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.noc-bulk-actions {
|
|
justify-content: center;
|
|
}
|
|
|
|
.noc-display-card.size-27,
|
|
.noc-display-card.size-42,
|
|
.noc-display-card.size-55,
|
|
.noc-display-card.size-65 {
|
|
width: calc(50% - 6px);
|
|
min-height: auto;
|
|
}
|
|
|
|
.noc-form-row {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.noc-form-row .noc-form-group {
|
|
width: 100% !important;
|
|
}
|
|
}
|