kv-tube/static/css/modules/grid.css

86 lines
No EOL
1.7 KiB
CSS

/* ===== Video Grid ===== */
.yt-video-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
@media (max-width: 1400px) {
.yt-video-grid,
.yt-section-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 1100px) {
.yt-video-grid,
.yt-section-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 600px) {
.yt-video-grid,
.yt-section-grid {
grid-template-columns: 1fr;
}
}
/* Grid Layout for Sections (4 rows x 4 columns = 16 videos) */
.yt-section-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
padding-bottom: 24px;
}
.yt-section-grid .yt-video-card {
width: 100%;
min-width: 0;
}
/* Scrollbar hiding */
.yt-section-grid::-webkit-scrollbar {
display: none;
}
/* Mobile Grid Overrides */
@media (max-width: 768px) {
/* Main Grid - Single column for mobile */
.yt-video-grid {
grid-template-columns: 1fr !important;
gap: 16px !important;
padding: 0 12px !important;
background: var(--yt-bg-primary);
}
/* Section Grid - Single column vertical scroll */
.yt-section-grid {
display: grid;
grid-template-columns: 1fr !important;
gap: 16px;
padding-bottom: 12px;
overflow: visible;
}
.yt-section-grid::-webkit-scrollbar {
display: none;
}
/* Adjust video card size for single column */
.yt-section-grid .yt-video-card {
width: 100%;
margin: 0;
}
}
/* Tablet Grid */
@media (min-width: 769px) and (max-width: 1024px) {
.yt-video-grid {
grid-template-columns: repeat(2, 1fr);
}
}