Refactor: CSS theme consolidation & site-specific styles (v0.4.5) | Fix: mod_anilife get_series_info IndexError

This commit is contained in:
2026-01-02 17:48:58 +09:00
parent 84f7ab6670
commit 15a81cc344
24 changed files with 289 additions and 625 deletions

8
static/css/anilife.css Normal file
View File

@@ -0,0 +1,8 @@
/* Anilife Theme Variables */
:root {
--notify-bg: rgba(30, 27, 75, 0.95); /* Cosmic Violet */
--notify-border: rgba(139, 92, 246, 0.4);
--notify-success-bg: rgba(6, 78, 59, 0.95);
--notify-warning-bg: rgba(120, 53, 15, 0.95);
--notify-danger-bg: rgba(127, 29, 29, 0.95);
}

37
static/css/linkkf.css Normal file
View File

@@ -0,0 +1,37 @@
/* Linkkf Theme Variables & Overrides */
:root {
--forest-950: #022c22;
--forest-900: #064e3b;
--forest-800: #065f46;
--forest-500: #10b981;
--forest-400: #34d399;
--forest-100: #d1fae5;
--accent-amber: #fbbf24;
/* Shared Notify Variables */
--notify-bg: rgba(2, 44, 34, 0.95);
--notify-border: rgba(16, 185, 129, 0.3);
--notify-success-bg: rgba(6, 78, 59, 0.95);
--notify-warning-bg: rgba(120, 53, 15, 0.95);
--notify-danger-bg: rgba(127, 29, 29, 0.95);
}
body {
background-color: var(--forest-950) !important;
color: #ecfdf5;
}
/* Linkkf Specific Nav-Pills Overrides */
ul.nav.nav-pills.bg-light {
background-color: rgba(6, 78, 59, 0.4) !important;
border: 1px solid rgba(16, 185, 129, 0.1) !important;
}
ul.nav.nav-pills .nav-link {
color: #d1fae5 !important;
}
ul.nav.nav-pills .nav-link.active {
background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

View File

@@ -0,0 +1,88 @@
/* Shared Mobile Custom CSS for Anime Downloader */
/* Custom Notify Styling for Mobile */
.bootstrap-notify-container,
[data-notify="container"] {
max-width: 90vw !important;
width: auto !important;
right: 5vw !important;
left: 5vw !important;
padding: 12px 16px !important;
border-radius: 10px !important;
background: var(--notify-bg) !important;
backdrop-filter: blur(10px) !important;
border: 1px solid var(--notify-border) !important;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
color: #e0e7ff !important;
font-size: 13px !important;
z-index: 10000 !important;
}
[data-notify="container"].alert-success {
border-color: rgba(16, 185, 129, 0.4) !important;
background: var(--notify-success-bg, rgba(6, 78, 59, 0.95)) !important;
}
[data-notify="container"].alert-warning {
border-color: rgba(245, 158, 11, 0.4) !important;
background: var(--notify-warning-bg, rgba(120, 53, 15, 0.95)) !important;
}
[data-notify="container"].alert-danger {
border-color: rgba(239, 68, 68, 0.4) !important;
background: var(--notify-danger-bg, rgba(127, 29, 29, 0.95)) !important;
}
[data-notify="message"] {
color: #e0e7ff !important;
}
[data-notify="title"] {
color: #fff !important;
font-weight: 600 !important;
}
/* Common Mobile Responsive Fixes */
@media (max-width: 768px) {
body {
padding-top: 5px !important;
overflow-x: hidden !important;
}
/* Global Navigation Pills Fix */
ul.nav.nav-pills.bg-light {
margin-top: 50px !important;
margin-bottom: 10px !important;
width: 100% !important;
display: flex !important;
flex-wrap: wrap !important;
justify-content: center !important;
border-radius: 10px !important;
padding: 4px !important;
gap: 2px !important;
}
ul.nav.nav-pills .nav-link {
padding: 5px 12px !important;
font-size: 13px !important;
}
/* Layout Expansion on Mobile */
.container, .container-fluid, .row, form, #main_container {
width: 100% !important;
max-width: 100% !important;
padding-left: 8px !important;
padding-right: 8px !important;
margin-left: 0 !important;
margin-right: 0 !important;
box-sizing: border-box !important;
}
/* Card/Table Container Fix */
.card, .table-responsive {
width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !important;
border-radius: 12px !important;
}
}

39
static/css/ohli24.css Normal file
View File

@@ -0,0 +1,39 @@
/* Ohli24 Theme Variables & Overrides */
:root {
--slate-950: #0f172a;
--slate-900: #0f172a; /* Same as 950 for deep background */
--slate-800: #1e293b;
--slate-700: #334155;
--blue-500: #3b82f6;
--blue-600: #2563eb;
--amber-400: #facc15;
/* Shared Notify Variables */
--notify-bg: rgba(15, 23, 42, 0.95);
--notify-border: rgba(59, 130, 246, 0.3);
--notify-success-bg: rgba(6, 78, 59, 0.95);
--notify-warning-bg: rgba(120, 53, 15, 0.95);
--notify-danger-bg: rgba(127, 29, 29, 0.95);
}
body {
background-color: var(--slate-950) !important;
color: #f1f5f9;
background-image: linear-gradient(135deg, #1f2937, #111827, #0f172a) !important;
background-attachment: fixed !important;
}
/* Ohli24 Specific Nav-Pills Overrides */
ul.nav.nav-pills.bg-light {
background-color: rgba(30, 41, 59, 0.6) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
ul.nav.nav-pills .nav-link {
color: #94a3b8 !important;
}
ul.nav.nav-pills .nav-link.active {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}