Force web panel 90 percent scale

This commit is contained in:
kzolotarev95 committed 2026-06-28 22:47:00 +04:00
1 parent bde34bfac0
commit 3425eba7d5
1 file changed
+19 -4
+19 -4
View File
@@ -649,8 +649,8 @@ $refresh_meta
:root { color-scheme: light dark; --bg: #f6f7f9; --panel: #fff; --text: #15181c; --muted: #667085; --line: #d9dee7; --accent: #16a34a; --accent-hover: #15803d; --button-text: #fff; --bad: #dc2626; --bad-hover: #b91c1c; --ok: #067647; --hot: #dc2626; --warn: #eab308; }
@media (prefers-color-scheme: dark) { :root { --bg: #111418; --panel: #181d23; --text: #eef2f6; --muted: #a6b0bf; --line: #2d3642; --accent: #16a34a; --accent-hover: #15803d; --button-text: #fff; --bad: #dc2626; --bad-hover: #b91c1c; --ok: #7ee0a3; --hot: #dc2626; --warn: #eab308; } }
* { box-sizing: border-box; }
html { zoom: .9; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; zoom: 90%; }
main { max-width: 1280px; margin: 0 auto; padding: 18px; display: grid; gap: 14px; }
h1 { margin: 0; font-size: 22px; }
h2 { margin: 0 0 12px; font-size: 16px; }
@@ -724,10 +724,25 @@ td, th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: lef
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.status { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--muted); }
@media (max-width: 820px) { .span4, .span6, .span8, .span12 { grid-column: 1 / -1; } main { padding: 12px; } .section-head, .hero-top { flex-direction: column; align-items: flex-start; } .settings-tools { grid-template-columns: 1fr; } }
body.scale-fallback { zoom: 1; overflow-x: hidden; }
body.scale-fallback main { transform: scale(.9); transform-origin: top center; width: 111.111%; margin-left: -5.555%; }
@media (max-width: 820px) { body { zoom: 1; } body.scale-fallback main { transform: none; width: auto; margin-left: auto; } .span4, .span6, .span8, .span12 { grid-column: 1 / -1; } main { padding: 12px; } .section-head, .hero-top { flex-direction: column; align-items: flex-start; } .settings-tools { grid-template-columns: 1fr; } }
</style>
<script>
(function() {
var probe = document.createElement('div');
probe.style.cssText = 'position:absolute;left:-9999px;top:-9999px;width:100px;height:1px;zoom:90%;';
document.documentElement.appendChild(probe);
var zoomWorks = probe.getBoundingClientRect().width < 95;
probe.remove();
if (!zoomWorks)
document.addEventListener('DOMContentLoaded', function() {
document.body.classList.add('scale-fallback');
});
}());
</script>
</head>
<body>
<body data-scale="90">
<main>
<header class="hero panel">
<div class="hero-top">