Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec92445a0f | |||
| 0eab5d40e6 | |||
| 3cfe46050b | |||
| e71f35c041 | |||
| 6102985f92 | |||
| e91709798b | |||
| 4150e1ced3 |
+10
-4
@@ -350,6 +350,16 @@ hr {
|
||||
|
||||
.lt-main {
|
||||
padding-top: calc(var(--header-height) + var(--space-lg));
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
/* When both lt-main and lt-container are on the same element, the lt-container
|
||||
shorthand `padding` overrides the lt-main `padding-top` in responsive breakpoints
|
||||
(same cascade specificity, later rule wins). The combined selector has higher
|
||||
specificity (0,2,0 vs 0,1,0) and always wins regardless of source order. */
|
||||
.lt-main.lt-container {
|
||||
padding-top: calc(var(--header-height) + var(--space-lg));
|
||||
}
|
||||
|
||||
.lt-layout {
|
||||
@@ -2042,8 +2052,6 @@ select option:checked {
|
||||
/* ── SM — phones 480–767px ── */
|
||||
@media (max-width: 767px) {
|
||||
:root { --header-height: 50px; }
|
||||
.lt-main { padding-top: calc(50px + var(--space-md)); }
|
||||
|
||||
.lt-container { padding: var(--space-md); }
|
||||
.lt-header { padding: 0 var(--space-md); }
|
||||
.lt-brand-subtitle { display: none; }
|
||||
@@ -2142,8 +2150,6 @@ select option:checked {
|
||||
/* ── XS — tiny phones ≤ 479px ── */
|
||||
@media (max-width: 479px) {
|
||||
:root { --header-height: 46px; }
|
||||
.lt-main { padding-top: calc(46px + var(--space-sm)); }
|
||||
|
||||
.lt-container { padding: var(--space-sm); }
|
||||
.lt-stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
|
||||
.lt-stat-card { padding: var(--space-xs) var(--space-sm); }
|
||||
|
||||
+3
-1
@@ -25,13 +25,15 @@ $GLOBALS['config'] = [
|
||||
'APP_SUBTITLE' => $envVars['APP_SUBTITLE'] ?? 'LotusGuild Infrastructure',
|
||||
'APP_VERSION' => $envVars['APP_VERSION'] ?? '1.2',
|
||||
|
||||
// Asset cache-busting version — auto-computed from dashboard.js/css mtime so
|
||||
// Asset cache-busting version — auto-computed from key asset mtimes so
|
||||
// browsers always pick up changes on deploy. Override via ASSET_VERSION in .env.
|
||||
'ASSET_VERSION' => (function() use ($envVars) {
|
||||
if (!empty($envVars['ASSET_VERSION'])) return $envVars['ASSET_VERSION'];
|
||||
$files = [
|
||||
__DIR__ . '/../assets/css/base.css',
|
||||
__DIR__ . '/../assets/css/dashboard.css',
|
||||
__DIR__ . '/../assets/css/ticket.css',
|
||||
__DIR__ . '/../assets/js/base.js',
|
||||
__DIR__ . '/../assets/js/dashboard.js',
|
||||
__DIR__ . '/../assets/js/ticket.js',
|
||||
];
|
||||
|
||||
@@ -55,8 +55,7 @@ $_lt_assetVer = $GLOBALS['config']['ASSET_VERSION'] ?? '20260329';
|
||||
], JSON_UNESCAPED_UNICODE | JSON_HEX_TAG) ?>;
|
||||
</script>
|
||||
</head>
|
||||
<body class="lt-scanlines">
|
||||
|
||||
<body>
|
||||
<!-- SKIP LINK -->
|
||||
<a class="lt-skip-link" href="#main-content">Skip to main content</a>
|
||||
|
||||
@@ -182,4 +181,4 @@ $_lt_assetVer = $GLOBALS['config']['ASSET_VERSION'] ?? '20260329';
|
||||
|
||||
</header><!-- /.lt-header -->
|
||||
|
||||
<main class="lt-main lt-container" id="main-content">
|
||||
<main class="lt-main lt-container" id="main-content" style="padding-top: calc(var(--header-height, 56px) + var(--space-lg, 1.5rem))">
|
||||
|
||||
Reference in New Issue
Block a user