mirror of
https://github.com/plexguide/Huntarr.io.git
synced 2026-02-19 23:37:26 -05:00
596 lines
14 KiB
CSS
596 lines
14 KiB
CSS
/* ============================================================
|
|
Import Lists — Cards, Modals, Type Picker
|
|
============================================================ */
|
|
|
|
/* Header with Sync All button */
|
|
.import-lists-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 4px;
|
|
}
|
|
.import-lists-header h3 { margin: 0; }
|
|
.import-lists-help {
|
|
color: rgba(255,255,255,.55);
|
|
font-size: 13px;
|
|
margin: 4px 0 0;
|
|
}
|
|
.btn-sync-all {
|
|
background: rgba(99,102,241,.25);
|
|
color: #a5b4fc;
|
|
border: 1px solid rgba(99,102,241,.35);
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
white-space: nowrap;
|
|
transition: background .2s, border-color .2s;
|
|
}
|
|
.btn-sync-all:hover {
|
|
background: rgba(99,102,241,.4);
|
|
border-color: rgba(99,102,241,.55);
|
|
}
|
|
|
|
/* ---- List cards ---- */
|
|
.import-list-card {
|
|
border-radius: 12px;
|
|
background: rgba(30,41,59,.5);
|
|
border: 1px solid rgba(99,102,241,.2);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: border-color .2s, box-shadow .2s;
|
|
}
|
|
.import-list-card:hover {
|
|
border-color: rgba(99,102,241,.45);
|
|
box-shadow: 0 0 12px rgba(99,102,241,.12);
|
|
}
|
|
.import-list-card.disabled-list {
|
|
opacity: .55;
|
|
}
|
|
|
|
.import-list-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 16px 8px;
|
|
}
|
|
.import-list-card-icon {
|
|
font-size: 22px;
|
|
color: #818cf8;
|
|
width: 32px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.import-list-card-title {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
.import-list-card-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.import-list-card-type {
|
|
font-size: 11px;
|
|
color: rgba(255,255,255,.45);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.import-list-card-body {
|
|
padding: 4px 16px 10px;
|
|
flex: 1;
|
|
}
|
|
|
|
/* Badges */
|
|
.import-list-badges {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 8px;
|
|
}
|
|
.import-list-badge {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: 6px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.badge-enabled { background: rgba(34,197,94,.18); color: #4ade80; }
|
|
.badge-disabled { background: rgba(239,68,68,.18); color: #f87171; }
|
|
.badge-interval { background: rgba(99,102,241,.15); color: #a5b4fc; }
|
|
|
|
/* Stats row */
|
|
.import-list-stats {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.import-list-stat {
|
|
font-size: 11px;
|
|
color: rgba(255,255,255,.5);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.import-list-stat.stat-error { color: #f87171; }
|
|
|
|
/* Footer buttons */
|
|
.import-list-card-footer {
|
|
display: flex;
|
|
border-top: 1px solid rgba(255,255,255,.06);
|
|
background: rgba(0,0,0,.15);
|
|
}
|
|
.import-list-card-footer .btn-card {
|
|
flex: 1;
|
|
padding: 8px 0;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
background: none;
|
|
border: none;
|
|
color: rgba(255,255,255,.6);
|
|
cursor: pointer;
|
|
transition: background .15s, color .15s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
}
|
|
.import-list-card-footer .btn-card:hover {
|
|
background: rgba(99,102,241,.15);
|
|
color: #a5b4fc;
|
|
}
|
|
.import-list-card-footer .btn-card + .btn-card {
|
|
border-left: 1px solid rgba(255,255,255,.06);
|
|
}
|
|
|
|
/* ---- Modal (shared) ---- */
|
|
.import-list-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9999;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
body.modal-open .app-container {
|
|
filter: blur(10px);
|
|
}
|
|
.import-list-modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,.5);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
}
|
|
.import-list-modal-content {
|
|
position: relative;
|
|
background: rgba(15,23,42,.98);
|
|
border: 1px solid rgba(99,102,241,.3);
|
|
border-radius: 16px;
|
|
width: 90vw;
|
|
max-width: 560px;
|
|
max-height: 85vh;
|
|
overflow-y: auto;
|
|
padding: 28px 32px 24px;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,.5);
|
|
}
|
|
.import-list-modal-header {
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
}
|
|
.import-list-modal-close {
|
|
position: absolute;
|
|
top: -4px;
|
|
right: -8px;
|
|
background: none;
|
|
border: none;
|
|
color: rgba(255,255,255,.5);
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
}
|
|
.import-list-modal-close:hover { color: #fff; }
|
|
.import-list-modal-title {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
.import-list-modal-subtitle {
|
|
color: rgba(255,255,255,.5);
|
|
font-size: 13px;
|
|
margin: 6px 0 0;
|
|
}
|
|
|
|
/* ---- Type picker grid ---- */
|
|
.import-list-type-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.import-list-type-card {
|
|
background: rgba(30,41,59,.6);
|
|
border: 1px solid rgba(99,102,241,.2);
|
|
border-radius: 12px;
|
|
padding: 20px 12px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: border-color .2s, background .2s, transform .15s;
|
|
}
|
|
.import-list-type-card:hover {
|
|
border-color: rgba(99,102,241,.5);
|
|
background: rgba(99,102,241,.1);
|
|
transform: translateY(-2px);
|
|
}
|
|
.import-list-type-icon {
|
|
font-size: 28px;
|
|
color: #818cf8;
|
|
margin-bottom: 10px;
|
|
}
|
|
.import-list-type-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
.import-list-type-oauth {
|
|
font-size: 10px;
|
|
color: rgba(255,255,255,.4);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
/* ---- Config form ---- */
|
|
.import-list-config-form { }
|
|
.import-list-config-back {
|
|
color: #818cf8;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
margin-bottom: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.import-list-config-back:hover { color: #a5b4fc; }
|
|
|
|
.import-list-form-group {
|
|
margin-bottom: 14px;
|
|
}
|
|
.import-list-form-group label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: rgba(255,255,255,.7);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
/* OAuth buttons */
|
|
.btn-trakt-auth, .btn-plex-auth {
|
|
background: rgba(99,102,241,.2);
|
|
color: #a5b4fc;
|
|
border: 1px solid rgba(99,102,241,.35);
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: background .2s, opacity .2s;
|
|
}
|
|
.btn-trakt-auth:hover, .btn-plex-auth:hover {
|
|
background: rgba(99,102,241,.35);
|
|
}
|
|
.btn-trakt-auth:disabled, .btn-plex-auth:disabled {
|
|
opacity: .6;
|
|
cursor: not-allowed;
|
|
}
|
|
.btn-trakt-auth.trakt-auth-success {
|
|
background: rgba(34,197,94,.2);
|
|
color: #4ade80;
|
|
border-color: rgba(34,197,94,.35);
|
|
}
|
|
.trakt-auth-row {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
.trakt-auth-status, .plex-auth-status {
|
|
font-size: 12px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* Trakt device code auth UI */
|
|
.trakt-device-auth {
|
|
margin-top: 8px;
|
|
}
|
|
.trakt-device-code-box {
|
|
background: rgba(15,23,42,.6);
|
|
border: 1px solid rgba(99,102,241,.25);
|
|
border-radius: 8px;
|
|
padding: 14px 16px;
|
|
text-align: center;
|
|
}
|
|
.trakt-device-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: rgba(255,255,255,.5);
|
|
margin-bottom: 4px;
|
|
}
|
|
.trakt-device-link {
|
|
display: block;
|
|
font-size: 13px;
|
|
color: #818cf8;
|
|
text-decoration: none;
|
|
margin-bottom: 10px;
|
|
}
|
|
.trakt-device-link:hover { color: #a5b4fc; text-decoration: underline; }
|
|
.trakt-device-code {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
|
|
letter-spacing: 4px;
|
|
color: #fff;
|
|
background: rgba(99,102,241,.15);
|
|
border: 1px dashed rgba(99,102,241,.35);
|
|
border-radius: 8px;
|
|
padding: 10px 20px;
|
|
display: inline-block;
|
|
margin-bottom: 10px;
|
|
user-select: all;
|
|
}
|
|
.trakt-device-code-copyable {
|
|
cursor: pointer;
|
|
transition: background .2s, border-color .2s, transform .1s;
|
|
}
|
|
.trakt-device-code-copyable:hover {
|
|
background: rgba(99,102,241,.25);
|
|
border-color: rgba(99,102,241,.55);
|
|
transform: scale(1.02);
|
|
}
|
|
.trakt-device-code-copyable:active {
|
|
transform: scale(0.98);
|
|
}
|
|
.trakt-code-copied {
|
|
background: rgba(34,197,94,.2) !important;
|
|
border-color: rgba(34,197,94,.5) !important;
|
|
color: #22c55e !important;
|
|
}
|
|
.trakt-device-open-link {
|
|
display: inline-block;
|
|
padding: 8px 18px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
background: #6366f1;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
margin-bottom: 12px;
|
|
transition: background .2s, transform .1s;
|
|
}
|
|
.trakt-device-open-link:hover {
|
|
background: #4f46e5;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
transform: translateY(-1px);
|
|
}
|
|
.trakt-device-open-link i {
|
|
margin-right: 6px;
|
|
}
|
|
.trakt-device-waiting {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: rgba(255,255,255,.45);
|
|
}
|
|
|
|
/* Plex device auth UI */
|
|
.plex-auth-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.plex-device-auth {
|
|
margin-top: 8px;
|
|
}
|
|
.plex-device-code-box {
|
|
background: rgba(15,23,42,.6);
|
|
border: 1px solid rgba(229,160,21,.25);
|
|
border-radius: 8px;
|
|
padding: 14px 16px;
|
|
text-align: center;
|
|
}
|
|
.plex-device-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: rgba(255,255,255,.5);
|
|
margin-bottom: 10px;
|
|
}
|
|
.plex-device-open-link {
|
|
display: inline-block;
|
|
padding: 10px 24px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #000;
|
|
background: #e5a015;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
margin-bottom: 12px;
|
|
transition: background .2s, transform .1s;
|
|
}
|
|
.plex-device-open-link:hover {
|
|
background: #cc8a00;
|
|
color: #000;
|
|
text-decoration: none;
|
|
transform: translateY(-1px);
|
|
}
|
|
.plex-device-open-link i {
|
|
margin-right: 6px;
|
|
}
|
|
.plex-device-waiting {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: rgba(255,255,255,.45);
|
|
}
|
|
.btn-plex-auth {
|
|
padding: 8px 16px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
color: #000;
|
|
background: #e5a015;
|
|
transition: background .2s;
|
|
}
|
|
.btn-plex-auth:hover { background: #cc8a00; }
|
|
.btn-plex-auth:disabled { opacity: .6; cursor: not-allowed; }
|
|
.plex-auth-success {
|
|
background: rgba(34,197,94,.15) !important;
|
|
color: #22c55e !important;
|
|
border: 1px solid rgba(34,197,94,.3);
|
|
}
|
|
|
|
/* Form actions */
|
|
.import-list-form-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid rgba(255,255,255,.06);
|
|
}
|
|
.import-list-form-actions .btn-cancel {
|
|
background: rgba(255,255,255,.08);
|
|
color: rgba(255,255,255,.7);
|
|
border: 1px solid rgba(255,255,255,.12);
|
|
border-radius: 8px;
|
|
padding: 8px 20px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
.import-list-form-actions .btn-save {
|
|
background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
|
|
color: #fff;
|
|
border: 1px solid rgba(99,102,241,.5);
|
|
border-radius: 8px;
|
|
padding: 8px 20px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.import-list-form-actions .btn-save:hover { background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%); }
|
|
.import-list-form-actions .btn-delete {
|
|
background: rgba(239,68,68,.2);
|
|
color: #f87171;
|
|
border: 1px solid rgba(239,68,68,.3);
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
margin-right: auto;
|
|
}
|
|
.import-list-form-actions .btn-delete:hover { background: rgba(239,68,68,.35); }
|
|
|
|
/* Add Import List card — Huntarr blue (match rest of app) */
|
|
/* Instance bar dropdown — slim, blue focus */
|
|
#settingsImportListsSection .media-hunt-settings-instance-bar .control-select {
|
|
padding: 6px 12px;
|
|
min-height: 34px;
|
|
font-size: 13px;
|
|
border-color: rgba(148,163,184,0.2);
|
|
}
|
|
#settingsImportListsSection .media-hunt-settings-instance-bar .control-select:focus {
|
|
border-color: #6366f1;
|
|
box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
|
|
}
|
|
|
|
.import-lists-settings-group .add-import-list-card .add-icon {
|
|
color: #6366f1;
|
|
}
|
|
.import-lists-settings-group .add-import-list-card:hover .add-icon {
|
|
color: #818cf8;
|
|
}
|
|
|
|
/* Form controls in modals — slim, theme-aligned inputs/selects */
|
|
.import-list-modal .control-input,
|
|
.import-list-modal .control-select {
|
|
width: 100%;
|
|
padding: 6px 12px;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
min-height: 32px;
|
|
background: rgba(15,23,42,0.6);
|
|
border: 1px solid rgba(148,163,184,0.2);
|
|
border-radius: 6px;
|
|
color: #e2e8f0;
|
|
transition: border-color .2s, box-shadow .2s;
|
|
}
|
|
.import-list-modal .control-input::placeholder {
|
|
color: rgba(148,163,184,0.5);
|
|
}
|
|
.import-list-modal .control-input:hover,
|
|
.import-list-modal .control-select:hover {
|
|
border-color: rgba(148,163,184,0.35);
|
|
}
|
|
.import-list-modal .control-input:focus,
|
|
.import-list-modal .control-select:focus {
|
|
outline: none;
|
|
border-color: #6366f1;
|
|
box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
|
|
}
|
|
.import-list-modal .control-select option {
|
|
background: #0f172a;
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
/* Toggle row */
|
|
.import-list-toggle-row {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
.import-list-toggle-row > label:first-child {
|
|
flex: 1;
|
|
min-width: 120px;
|
|
}
|
|
.import-list-toggle-row .toggle-switch {
|
|
flex-shrink: 0;
|
|
}
|
|
.import-list-toggle-row .import-list-field-help {
|
|
flex-basis: 100%;
|
|
margin: 2px 0 0;
|
|
font-size: 12px;
|
|
color: rgba(148,163,184,0.7);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* ---- Responsive ---- */
|
|
@media (max-width: 600px) {
|
|
.import-list-modal-content {
|
|
width: 95vw;
|
|
padding: 20px 16px;
|
|
}
|
|
.import-list-type-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
.import-lists-header {
|
|
flex-direction: column;
|
|
}
|
|
}
|