60 lines
3.2 KiB
CSS
60 lines
3.2 KiB
CSS
/* ---------------------------------------------------------------- responsive */
|
|
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
|
|
@media (max-width: 860px) {
|
|
.tv { grid-template-columns: 1fr; }
|
|
.tv-list { max-height: 40vh; order: 2; }
|
|
.g2, .g3, .g4 { grid-template-columns: 1fr; }
|
|
.view { padding: 12px; }
|
|
.who { display: none; }
|
|
.epg-ch, .epg-head .corner { width: 110px; flex-basis: 110px; }
|
|
.epg-ch .logo, .epg-ch .logo-ph { display: none; }
|
|
}
|
|
|
|
|
|
/* ---------------------------------------------------------------- phones
|
|
* The side rail becomes a bottom tab bar (icons only), the top bar keeps only the page
|
|
* name and compact buttons, wide rows scroll inside their own box instead of the page. */
|
|
@media (max-width: 640px) {
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
body { overflow-x: clip; }
|
|
.sidebar, .sidebar:hover,
|
|
html[data-sidebar] .sidebar, html[data-sidebar] .sidebar:hover {
|
|
inset: auto 0 0 0; width: 100%; height: calc(54px + env(safe-area-inset-bottom)); flex-direction: row; justify-content: space-around;
|
|
padding: 0 0 env(safe-area-inset-bottom); gap: 0; border-right: 0; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px #0005; transition: none;
|
|
}
|
|
.sidebar a, html[data-sidebar] .sidebar a { flex: 1 1 0; justify-content: center; padding: 0; height: 54px; border-left: 0; border-top: 2px solid transparent; min-width: 0; }
|
|
.sidebar a.active { border-left: 0; border-top-color: var(--green); }
|
|
.sidebar a span, .sidebar:hover a span { display: none !important; }
|
|
.sidebar a.brand, .sidebar-foot { display: none; }
|
|
.main, html[data-sidebar] .main, html[data-sidebar=pinned] .main { margin-left: 0 !important; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
|
|
.topbar { padding-left: 10px; padding-right: 10px; gap: 8px; }
|
|
.crumbs { min-width: 0; overflow: hidden; white-space: nowrap; }
|
|
.crumbs .crumb-root, .crumbs .sep { display: none; }
|
|
.crumbs #crumb { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
|
|
.top-actions { gap: 4px; flex: 0 0 auto; }
|
|
.top-actions .clock { display: none; }
|
|
#logout .lbl { display: none; }
|
|
#lang-switch .lang-select { max-width: 64px; }
|
|
.view { padding: 10px 10px 24px; }
|
|
.page-head { margin-bottom: 12px; gap: 10px; }
|
|
.page-head h1 { font-size: 21px; }
|
|
.actions .btn { flex: 0 0 auto; }
|
|
.tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
|
|
.tabs::-webkit-scrollbar { display: none; }
|
|
.tabs button { white-space: nowrap; flex: 0 0 auto; }
|
|
.modal { padding: 10px 6px; }
|
|
.modal-card, .modal-card.wide { padding: 12px; }
|
|
.filters { gap: 6px; }
|
|
.filters input, .filters select { max-width: 100%; }
|
|
input, select, textarea { font-size: 16px; } /* no zoom-in on focus (iOS) */
|
|
.toast-wrap, .toasts { left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); }
|
|
}
|
|
|
|
/* any box holding a table scrolls sideways instead of widening the page */
|
|
*:has(> table) { overflow-x: auto; }
|
|
@media (max-width: 640px) {
|
|
.search { flex-wrap: wrap; }
|
|
.search > input { flex: 1 1 160px; min-width: 0; }
|
|
.search > select { flex: 1 1 120px; min-width: 0; max-width: 100%; }
|
|
}
|