mirror of
https://github.com/plexguide/Huntarr.io.git
synced 2026-04-20 04:36:51 -04:00
237 lines
8.4 KiB
HTML
237 lines
8.4 KiB
HTML
<section id="profileEditorSection" class="content-section">
|
|
<div id="profileEditorContainer" class="app-content-panel">
|
|
<div class="profile-editor-header" style="margin-bottom: 25px; display: flex; align-items: center; justify-content: space-between;">
|
|
<div style="display: flex; align-items: center; gap: 15px;">
|
|
<button type="button" id="profile-editor-back" class="btn-card" style="width: auto; padding: 8px 15px; background: rgba(148, 163, 184, 0.1); height: 38px; display: flex; align-items: center; justify-content: center;">
|
|
<i class="fas fa-arrow-left" style="margin-right: 8px;"></i> Back
|
|
</button>
|
|
<button type="button" id="profile-editor-save" class="btn-card profile-save-btn" disabled style="width: auto; padding: 8px 20px; height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px;">
|
|
<i class="fas fa-save"></i> Save
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="profile-editor-content">
|
|
<!-- Content generated by profile-editor.js -->
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<style>
|
|
.profile-save-btn {
|
|
background: #475569 !important;
|
|
color: rgba(255, 255, 255, 0.4) !important;
|
|
cursor: not-allowed !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
opacity: 0.7;
|
|
}
|
|
.profile-save-btn.enabled {
|
|
background: linear-gradient(135deg, #6366f1, #818cf8) !important;
|
|
color: white !important;
|
|
cursor: pointer !important;
|
|
opacity: 1 !important;
|
|
border: none !important;
|
|
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important;
|
|
}
|
|
.profile-save-btn.enabled:hover {
|
|
background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
|
|
transform: translateY(-1px) !important;
|
|
box-shadow: 0 6px 15px rgba(99, 102, 241, 0.45) !important;
|
|
}
|
|
#profile-editor-back {
|
|
transition: all 0.3s ease;
|
|
}
|
|
#profile-editor-back:hover {
|
|
background: rgba(148, 163, 184, 0.2) !important;
|
|
transform: translateX(-2px);
|
|
}
|
|
#profileEditorSection {
|
|
display: none;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
#profileEditorSection.active {
|
|
display: block !important;
|
|
}
|
|
#profileEditorContainer {
|
|
width: 100%;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 30px 20px;
|
|
padding-bottom: 150px;
|
|
}
|
|
#profile-editor-content .editor-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
|
|
gap: 25px;
|
|
align-items: start;
|
|
}
|
|
#profile-editor-content .editor-section {
|
|
background: rgba(30, 41, 59, 0.5);
|
|
border: 1px solid rgba(148, 163, 184, 0.1);
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
margin-bottom: 25px;
|
|
}
|
|
#profile-editor-content .editor-section-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: #94a3b8;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.1);
|
|
}
|
|
#profile-editor-content .editor-field-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 20px;
|
|
width: 100%;
|
|
}
|
|
#profile-editor-content .editor-field-group:last-child { margin-bottom: 0; }
|
|
#profile-editor-content .editor-field-group label { color: #e2e8f0; font-weight: 500; font-size: 0.95rem; margin: 0; }
|
|
#profile-editor-content .editor-field-group input[type="text"],
|
|
#profile-editor-content .editor-field-group input[type="number"],
|
|
#profile-editor-content .editor-field-group select {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border-radius: 8px;
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
background: rgba(15, 23, 42, 0.6);
|
|
color: #f8fafc;
|
|
font-size: 0.95rem;
|
|
}
|
|
#profile-editor-content .editor-field-group select {
|
|
cursor: pointer;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
padding-right: 36px;
|
|
}
|
|
#profile-editor-content .editor-field-group input:focus,
|
|
#profile-editor-content .editor-field-group select:focus {
|
|
border-color: #6366f1;
|
|
outline: none;
|
|
background: rgba(15, 23, 42, 0.8);
|
|
}
|
|
#profile-editor-content .editor-help-text {
|
|
color: #94a3b8;
|
|
font-size: 0.85rem;
|
|
margin: 4px 0 0 0;
|
|
line-height: 1.4;
|
|
}
|
|
#profile-editor-content .editor-setting-item.flex-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
#profile-editor-content .profile-quality-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 6px;
|
|
background: rgba(15, 23, 42, 0.4);
|
|
border: 1px solid rgba(148, 163, 184, 0.1);
|
|
border-radius: 8px;
|
|
cursor: grab;
|
|
transition: border-color 0.15s ease, background 0.15s ease;
|
|
}
|
|
#profile-editor-content .profile-quality-item:active {
|
|
cursor: grabbing;
|
|
}
|
|
#profile-editor-content .profile-quality-item.profile-quality-dragging {
|
|
opacity: 0.6;
|
|
cursor: grabbing;
|
|
}
|
|
#profile-editor-content .profile-quality-item.profile-quality-drag-over {
|
|
border-color: rgba(99, 102, 241, 0.5);
|
|
background: rgba(99, 102, 241, 0.08);
|
|
}
|
|
#profile-editor-content .profile-quality-item .quality-drag-handle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
color: #64748b;
|
|
cursor: grab;
|
|
flex-shrink: 0;
|
|
}
|
|
#profile-editor-content .profile-quality-item .quality-drag-handle:hover {
|
|
color: #94a3b8;
|
|
}
|
|
#profile-editor-content .profile-quality-item input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
accent-color: #6366f1;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
#profile-editor-content .profile-quality-item .quality-name {
|
|
flex: 1;
|
|
color: #e2e8f0;
|
|
font-size: 0.95rem;
|
|
min-width: 0;
|
|
}
|
|
#profile-editor-content .profile-quality-list {
|
|
max-height: none;
|
|
overflow-y: visible;
|
|
}
|
|
.profile-editor-scores-container { overflow-x: auto; }
|
|
.profile-editor-scores-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.95rem;
|
|
}
|
|
.profile-editor-scores-table th,
|
|
.profile-editor-scores-table td {
|
|
padding: 10px 14px;
|
|
text-align: left;
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.15);
|
|
}
|
|
.profile-editor-scores-table th {
|
|
color: #94a3b8;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
font-size: 0.8rem;
|
|
}
|
|
.profile-editor-scores-table td { color: #e2e8f0; }
|
|
.profile-editor-scores-table .th-score,
|
|
.profile-editor-scores-table .th-recommended { width: 120px; text-align: right; }
|
|
.profile-editor-scores-table td:nth-child(2),
|
|
.profile-editor-scores-table td:nth-child(3) { text-align: right; }
|
|
.profile-editor-scores-table input[type="number"] {
|
|
width: 7em;
|
|
min-width: 90px;
|
|
padding: 6px 10px;
|
|
border-radius: 6px;
|
|
border: 1px solid rgba(148, 163, 184, 0.3);
|
|
background: rgba(15, 23, 42, 0.6);
|
|
color: #f8fafc;
|
|
font-size: 0.9rem;
|
|
text-align: left;
|
|
}
|
|
.profile-editor-scores-table input[type="number"]:focus {
|
|
border-color: #6366f1;
|
|
outline: none;
|
|
}
|
|
.profile-editor-scores-table .recommended-value { color: #94a3b8; font-size: 0.9rem; }
|
|
.profile-editor-scores-empty { color: #94a3b8; font-size: 0.95rem; margin: 20px 0 0 0; }
|
|
@media (max-width: 768px) {
|
|
#profileEditorContainer { padding: 20px 15px; padding-bottom: 100px; }
|
|
#profile-editor-content .editor-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|