v0.4.13: Fix Ohli24 CSS side effects and improve metadata sync
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<link rel="stylesheet" href="{{ url_for('.static', filename='css/' ~ arg['sub'] ~ '.css') }}"/>
|
||||
|
||||
|
||||
<div class="content-cloak">
|
||||
<div class="content-cloak ohli24-list-page">
|
||||
<form id="form_search" class="form-inline" style="text-align:left; width:100%;">
|
||||
<div class="search-container">
|
||||
<div class="search-group-left">
|
||||
@@ -98,9 +98,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -513,513 +511,27 @@
|
||||
|
||||
</script>
|
||||
|
||||
/* General Layout Tweaks */
|
||||
.container-fluid {
|
||||
padding-left: 4px !important;
|
||||
padding-right: 4px !important;
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.content-cloak {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
/* Search Bar Design */
|
||||
.search-container {
|
||||
background: rgba(30, 41, 59, 0.7);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
border-radius: 12px;
|
||||
padding: 10px;
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.search-group-left {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.search-group-right {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* Custom Form Controls */
|
||||
.custom-select, .custom-input {
|
||||
background-color: rgba(15, 23, 42, 0.6) !important;
|
||||
border: 1px solid rgba(148, 163, 184, 0.2) !important;
|
||||
color: #e2e8f0 !important;
|
||||
border-radius: 8px !important;
|
||||
padding: 6px 12px !important;
|
||||
height: 38px !important;
|
||||
font-size: 13px !important;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.custom-select:focus, .custom-input:focus {
|
||||
border-color: #3b82f6 !important;
|
||||
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.custom-btn {
|
||||
border-radius: 8px !important;
|
||||
padding: 0 16px !important;
|
||||
height: 38px !important;
|
||||
font-weight: 600 !important;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
transition: all 0.2s;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.btn-search {
|
||||
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
|
||||
color: white !important;
|
||||
}
|
||||
.btn-search:hover { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); transform: translateY(-1px); }
|
||||
|
||||
.btn-reset {
|
||||
background: rgba(148, 163, 184, 0.1);
|
||||
color: #94a3b8 !important;
|
||||
}
|
||||
.btn-reset:hover { background: rgba(148, 163, 184, 0.2); color: white !important; }
|
||||
|
||||
/* List Container - List View */
|
||||
#list_div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 0 5px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Episode Card Style */
|
||||
.episode-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%);
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(148, 163, 184, 0.12);
|
||||
overflow: hidden;
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.episode-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
||||
border-color: rgba(96, 165, 250, 0.4);
|
||||
background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.episode-card-body {
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: row; /* Mobile Default: Row for proper structure */
|
||||
flex-wrap: wrap; /* Allow wrapping on small mobile */
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Inner Components */
|
||||
.episode-thumb {
|
||||
width: 60px;
|
||||
height: 80px;
|
||||
flex-shrink: 0;
|
||||
margin-right: 12px;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background-color: #1e293b;
|
||||
}
|
||||
|
||||
.episode-thumb img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.episode-badge {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
background: #facc15; /* Amber/Yellow 400 */
|
||||
color: #000;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
z-index: 5;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
|
||||
border: 1px solid rgba(0,0,0,0.1);
|
||||
pointer-events: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.episode-main-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.episode-title {
|
||||
color: #f1f5f9;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
margin-bottom: 2px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.episode-subtitle {
|
||||
font-size: 12px;
|
||||
color: #94a3b8;
|
||||
margin-bottom: 4px;
|
||||
line-height: 1.3;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.episode-meta {
|
||||
font-size: 11px;
|
||||
color: #94a3b8;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.meta-tag {
|
||||
background: rgba(148, 163, 184, 0.1);
|
||||
padding: 1px 5px;
|
||||
border-radius: 4px;
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
padding: 2px 5px;
|
||||
border-radius: 4px;
|
||||
text-transform: uppercase;
|
||||
min-width: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
.status-completed { background: rgba(16, 185, 129, 0.2); color: #34d399; }
|
||||
.status-wait { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
|
||||
.status-downloading { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
|
||||
.status-failed { background: rgba(239, 68, 68, 0.2); color: #f87171; }
|
||||
|
||||
.file-path {
|
||||
font-size: 11px;
|
||||
color: #64748b;
|
||||
word-break: break-all;
|
||||
margin-top: 2px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Right Column (Mobile) */
|
||||
.episode-right-col {
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.date-info {
|
||||
font-size: 11px;
|
||||
color: #94a3b8;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.episode-actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.episode-actions .btn {
|
||||
font-size: 11px !important;
|
||||
padding: 4px 8px !important;
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Desktop List View Transformation */
|
||||
@media (min-width: 768px) {
|
||||
.episode-card {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
.episode-card-body {
|
||||
flex-wrap: nowrap;
|
||||
align-items: stretch;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.episode-thumb {
|
||||
margin-right: 15px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.episode-main-info {
|
||||
margin-bottom: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.episode-title {
|
||||
font-size: 15px;
|
||||
word-break: keep-all;
|
||||
}
|
||||
|
||||
.episode-right-col {
|
||||
width: auto;
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
border-top: none;
|
||||
margin-left: auto; /* Push to right */
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
min-width: 220px;
|
||||
}
|
||||
|
||||
.date-info {
|
||||
justify-content: flex-end;
|
||||
margin-bottom: 5px;
|
||||
order: -1;
|
||||
}
|
||||
|
||||
.episode-actions {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.episode-actions .btn {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.episode-thumb img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hide Original Headers */
|
||||
.show-grid { margin-bottom: 20px; }
|
||||
.container-fluid > div:nth-child(3), /* Head Top HR */
|
||||
.container-fluid > div:nth-child(4), /* Headers Row */
|
||||
.container-fluid > div:nth-child(5) /* Head Bottom HR */
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
// Smooth Load Trigger
|
||||
setTimeout(function() {
|
||||
$('.content-cloak, #menu_module_div, #menu_page_div').addClass('visible');
|
||||
}, 100);
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
/* Desktop Full Width Override - .container max-width 제거 */
|
||||
#main_container.container {
|
||||
max-width: 100% !important;
|
||||
padding-left: 8px !important;
|
||||
padding-right: 8px !important;
|
||||
}
|
||||
|
||||
/* Mobile Margin Fix */
|
||||
@media (max-width: 768px) {
|
||||
body { overflow-x: hidden !important; padding: 0 !important; margin: 0 !important; }
|
||||
.container, .container-fluid, .row, form, #program_list, #program_auto_form, #episode_list, .queue-container, #yommi_wrapper, #main_container {
|
||||
width: 100% !important; max-width: 100% !important;
|
||||
padding-left: 4px !important; padding-right: 4px !important;
|
||||
margin-left: 0 !important; margin-right: 0 !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
.form-group, .form-inline, [class*="col-"] {
|
||||
flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important;
|
||||
padding-left: 0 !important; padding-right: 0 !important;
|
||||
}
|
||||
.row { margin-left: 0 !important; margin-right: 0 !important; }
|
||||
.card, .card.p-4, .card.p-lg-5, .card.border-light {
|
||||
width: calc(100% - 8px) !important; max-width: 100% !important;
|
||||
padding: 8px !important; margin: 4px !important;
|
||||
border-radius: 12px !important; box-sizing: border-box !important;
|
||||
}
|
||||
.badge {
|
||||
white-space: normal !important; text-align: left !important;
|
||||
line-height: 1.4 !important; height: auto !important; display: inline-block !important;
|
||||
}
|
||||
|
||||
/* Mobile Nav Pills - blur 제거하고 solid background 사용 */
|
||||
ul.nav.nav-pills.bg-light {
|
||||
background-color: #1e293b !important;
|
||||
backdrop-filter: none !important;
|
||||
-webkit-backdrop-filter: none !important;
|
||||
border-radius: 12px !important;
|
||||
padding: 4px !important;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
ul.nav.nav-pills .nav-link {
|
||||
padding: 6px 12px !important;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
}
|
||||
/* Pagination Styling */
|
||||
.btn-toolbar {
|
||||
justify-content: center;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
/* Pagination & Modal Fixes (Moved to template for specific overrides) */
|
||||
.btn-toolbar { justify-content: center; margin: 20px 0; }
|
||||
#page1 .btn-group .btn, #page2 .btn-group .btn {
|
||||
background: rgba(30, 41, 59, 0.6);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: #94a3b8;
|
||||
padding: 6px 14px;
|
||||
margin: 0 2px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s;
|
||||
color: #94a3b8; padding: 6px 14px; margin: 0 2px; border-radius: 6px;
|
||||
}
|
||||
|
||||
#page1 .btn-group .btn:hover, #page2 .btn-group .btn:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: white;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
#page1 .btn-group .btn[disabled], #page2 .btn-group .btn[disabled] {
|
||||
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
|
||||
color: white;
|
||||
border-color: transparent;
|
||||
opacity: 1;
|
||||
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
|
||||
}
|
||||
|
||||
/* JSON Modal 팝업 폭 확대 */
|
||||
.modal-dialog {
|
||||
max-width: 90% !important;
|
||||
width: 900px !important;
|
||||
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; border-color: transparent;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background: rgba(15, 23, 42, 0.95) !important;
|
||||
border: 1px solid rgba(148, 163, 184, 0.2) !important;
|
||||
border-radius: 12px !important;
|
||||
}
|
||||
|
||||
.modal-body pre {
|
||||
background: rgba(0, 0, 0, 0.5) !important;
|
||||
color: #4ade80 !important;
|
||||
padding: 15px !important;
|
||||
border-radius: 8px !important;
|
||||
max-height: 70vh !important;
|
||||
overflow: auto !important;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
.modal-dialog { max-width: 95% !important; width: 900px !important; margin: 10px auto; }
|
||||
.modal-body pre { background: #000 !important; color: #4ade80 !important; padding: 15px !important; border-radius: 8px !important; max-height: 70vh !important; font-size: 12px !important; }
|
||||
|
||||
/* ========== Mobile Video Modal Fix ========== */
|
||||
@media (max-width: 768px) {
|
||||
/* 모달 크기 조정 - 비디오 모달만 */
|
||||
#videoModal .modal-dialog {
|
||||
margin: 10px auto !important;
|
||||
max-width: calc(100vw - 20px) !important;
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
/* 비디오 높이 제한 */
|
||||
#video-player, .video-js {
|
||||
max-height: 45vh !important;
|
||||
}
|
||||
|
||||
/* 플레이리스트 높이 제한 */
|
||||
#playlist-list-container {
|
||||
max-height: 25vh !important;
|
||||
}
|
||||
|
||||
/* 플레이리스트 컨트롤 간소화 */
|
||||
.playlist-controls {
|
||||
padding: 8px 12px !important;
|
||||
}
|
||||
.playlist-controls > div {
|
||||
gap: 8px !important;
|
||||
}
|
||||
#current-video-title {
|
||||
font-size: 12px !important;
|
||||
min-width: auto !important;
|
||||
}
|
||||
#playlist-progress {
|
||||
font-size: 10px !important;
|
||||
}
|
||||
|
||||
/* 아이템 액션 버튼 스크롤 */
|
||||
.item-actions {
|
||||
flex-wrap: nowrap !important;
|
||||
overflow-x: auto !important;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
.action-btn {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
#videoModal .modal-dialog { width: 100% !important; margin: 5px !important; }
|
||||
.episode-actions { grid-template-columns: repeat(2, 1fr); gap: 6px; }
|
||||
.episode-card { padding: 10px; }
|
||||
.episode-thumb { width: 50px; height: 70px; }
|
||||
}
|
||||
|
||||
/* 초소형 모바일 (400px 미만) */
|
||||
@media (max-width: 400px) {
|
||||
#video-player, .video-js {
|
||||
max-height: 35vh !important;
|
||||
}
|
||||
|
||||
#playlist-list-container {
|
||||
max-height: 20vh !important;
|
||||
}
|
||||
|
||||
.playlist-nav-btn {
|
||||
width: 32px !important;
|
||||
height: 32px !important;
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
.playlist-toggle-btn {
|
||||
padding: 6px 10px !important;
|
||||
font-size: 11px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile Nav Pills Fix */
|
||||
@media (max-width: 768px) {
|
||||
ul.nav.nav-pills.bg-light {
|
||||
margin-top: 50px !important;
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user