Render panel content at 90 percent scale
This commit is contained in:
1 parent
3425eba7d5
commit
48cba62f21
1 file changed
+3
-18
@@ -650,8 +650,8 @@ $refresh_meta
|
|||||||
@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; } }
|
@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; }
|
* { box-sizing: border-box; }
|
||||||
html { min-height: 100%; }
|
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%; }
|
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
|
||||||
main { max-width: 1280px; margin: 0 auto; padding: 18px; display: grid; gap: 14px; }
|
main { max-width: 1280px; margin: 0 auto; padding: 18px; display: grid; gap: 14px; transform: scale(.9); transform-origin: top center; }
|
||||||
h1 { margin: 0; font-size: 22px; }
|
h1 { margin: 0; font-size: 22px; }
|
||||||
h2 { margin: 0 0 12px; font-size: 16px; }
|
h2 { margin: 0 0 12px; font-size: 16px; }
|
||||||
p { margin: 6px 0; color: var(--muted); }
|
p { margin: 6px 0; color: var(--muted); }
|
||||||
@@ -724,23 +724,8 @@ 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; }
|
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
|
||||||
.status { display: flex; flex-wrap: wrap; gap: 8px; }
|
.status { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||||
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--muted); }
|
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--muted); }
|
||||||
body.scale-fallback { zoom: 1; overflow-x: hidden; }
|
@media (max-width: 820px) { main { padding: 12px; transform: none; } .span4, .span6, .span8, .span12 { grid-column: 1 / -1; } .section-head, .hero-top { flex-direction: column; align-items: flex-start; } .settings-tools { grid-template-columns: 1fr; } }
|
||||||
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>
|
</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>
|
</head>
|
||||||
<body data-scale="90">
|
<body data-scale="90">
|
||||||
<main>
|
<main>
|
||||||
|
|||||||
Reference in new issue
Block a user