Fix header overlapping content at mobile breakpoints
In the SM (≤767px) and XS (≤479px) media queries, .lt-container { padding }
shorthand appeared after .lt-main { padding-top } with equal specificity,
causing the shorthand to clobber the header-clearance padding-top. Swap order
so .lt-main always wins.
Also remove redundant lt-scanlines div — body::before in base.css already
renders the scanline overlay globally.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -2042,9 +2042,9 @@ select option:checked {
|
|||||||
/* ── SM — phones 480–767px ── */
|
/* ── SM — phones 480–767px ── */
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
:root { --header-height: 50px; }
|
:root { --header-height: 50px; }
|
||||||
.lt-main { padding-top: calc(50px + var(--space-md)); }
|
|
||||||
|
|
||||||
.lt-container { padding: var(--space-md); }
|
.lt-container { padding: var(--space-md); }
|
||||||
|
/* lt-main must come after lt-container so padding-top isn't clobbered by the shorthand */
|
||||||
|
.lt-main { padding-top: calc(50px + var(--space-md)); }
|
||||||
.lt-header { padding: 0 var(--space-md); }
|
.lt-header { padding: 0 var(--space-md); }
|
||||||
.lt-brand-subtitle { display: none; }
|
.lt-brand-subtitle { display: none; }
|
||||||
|
|
||||||
@@ -2142,9 +2142,9 @@ select option:checked {
|
|||||||
/* ── XS — tiny phones ≤ 479px ── */
|
/* ── XS — tiny phones ≤ 479px ── */
|
||||||
@media (max-width: 479px) {
|
@media (max-width: 479px) {
|
||||||
:root { --header-height: 46px; }
|
:root { --header-height: 46px; }
|
||||||
.lt-main { padding-top: calc(46px + var(--space-sm)); }
|
|
||||||
|
|
||||||
.lt-container { padding: var(--space-sm); }
|
.lt-container { padding: var(--space-sm); }
|
||||||
|
/* lt-main must come after lt-container so padding-top isn't clobbered by the shorthand */
|
||||||
|
.lt-main { padding-top: calc(46px + var(--space-sm)); }
|
||||||
.lt-stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
|
.lt-stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
|
||||||
.lt-stat-card { padding: var(--space-xs) var(--space-sm); }
|
.lt-stat-card { padding: var(--space-xs) var(--space-sm); }
|
||||||
.lt-stat-value { font-size: 1.4rem; }
|
.lt-stat-value { font-size: 1.4rem; }
|
||||||
|
|||||||
@@ -56,9 +56,6 @@ $_lt_assetVer = $GLOBALS['config']['ASSET_VERSION'] ?? '20260329';
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Scanlines overlay — dedicated div avoids conflict with body::before/::after pseudo-elements -->
|
|
||||||
<div class="lt-scanlines" aria-hidden="true" style="position:fixed;inset:0;pointer-events:none;z-index:9998"></div>
|
|
||||||
|
|
||||||
<!-- SKIP LINK -->
|
<!-- SKIP LINK -->
|
||||||
<a class="lt-skip-link" href="#main-content">Skip to main content</a>
|
<a class="lt-skip-link" href="#main-content">Skip to main content</a>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user