Align web UI with gui_app features and normalize fonts
This commit is contained in:
1 parent
7ebbdd6c1e
commit
eaa14ce52f
3 files changed
+47
-20
No files matched your search
+45
-7
@@ -53,9 +53,9 @@
|
||||
--motion-fast: 120ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
--motion: 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
--motion-slow: 280ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
--font-ui: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
--font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
--font-log: var(--font-ui);
|
||||
--font-ui: "Microsoft YaHei", "Segoe UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
|
||||
--font-mono: "Consolas", "Cascadia Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
||||
--font-log: "Microsoft YaHei", "Segoe UI", "Consolas", monospace;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
@@ -1487,12 +1487,11 @@ body {
|
||||
}
|
||||
|
||||
:root[data-premium-panel="device"] .premiumReplica {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
:root[data-premium-panel="device"] .configWorkspace > .panels {
|
||||
display: none !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.premiumConfigCard {
|
||||
@@ -1806,7 +1805,6 @@ body {
|
||||
:root[data-premium-panel="device"] .panel[data-panel="yanghao"] {
|
||||
height: auto;
|
||||
margin-bottom: 8px;
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
:root[data-premium-panel="device"] .panel[data-panel="device"] > :nth-child(n+6),
|
||||
@@ -3497,6 +3495,46 @@ body {
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
:root[data-premium-panel="monitor"] .panel[data-panel="monitor"] {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
:root[data-premium-panel="monitor"] .cardShot {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
:root[data-premium-panel="monitor"] .preview {
|
||||
width: min(100%, 322px);
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
max-height: none;
|
||||
aspect-ratio: 9 / 16;
|
||||
margin: 0 auto;
|
||||
border-color: #dfe8e7;
|
||||
border-radius: 8px;
|
||||
background:
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 28px),
|
||||
linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 28px),
|
||||
#101828;
|
||||
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
|
||||
}
|
||||
|
||||
:root[data-premium-panel="monitor"] .preview img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
:root[data-premium-panel="monitor"] #liveShotStatus {
|
||||
width: min(100%, 322px);
|
||||
margin: 10px auto 0;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid #dfe8e7;
|
||||
border-radius: 8px;
|
||||
background: #f8fbfa;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.toastContainer {
|
||||
right: 14px;
|
||||
bottom: max(8px, env(safe-area-inset-bottom));
|
||||
|
||||
+2
-6
@@ -5,10 +5,6 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>抖音挂机 - Web GUI</title>
|
||||
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0%25' stop-color='%23fcd34d'/><stop offset='100%25' stop-color='%23f59e0b'/></linearGradient></defs><rect width='32' height='32' rx='7' fill='url(%23g)'/><path d='M13 10.5v11l9-5.5z' fill='%231a0f00'/><circle cx='22' cy='10' r='2' fill='%23818cf8'/></svg>" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Serif:ital@0;1&display=swap" rel="stylesheet" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
|
||||
<script src="js/theme_bootstrap.js?v=console-20260601-split-1"></script>
|
||||
<!-- WebUI CSS modules are loaded before the compatibility remainder. -->
|
||||
<link rel="stylesheet" href="css/tokens.css?v=console-20260531-split-css-3" />
|
||||
@@ -21,7 +17,7 @@
|
||||
<link rel="stylesheet" href="css/logs.css?v=console-20260531-split-css-3" />
|
||||
<link rel="stylesheet" href="css/charts.css?v=console-20260531-split-css-3" />
|
||||
<link rel="stylesheet" href="styles.css?v=console-20260531-split-css-3" />
|
||||
<link rel="stylesheet" href="css/premium.css?v=console-20260601-goal-sweep-5" />
|
||||
<link rel="stylesheet" href="css/premium.css?v=console-20260601-gui-align-font-1" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
@@ -845,6 +841,6 @@
|
||||
<script src="js/ui_init.js?v=console-20260531-split-8"></script>
|
||||
<script src="js/runtime_actions.js?v=console-20260531-split-8"></script>
|
||||
<script src="app.js?v=console-20260531-split-8"></script>
|
||||
<script src="js/premium_ui.js?v=console-20260601-premium-polish-3"></script>
|
||||
<script src="js/premium_ui.js?v=console-20260601-gui-align-1"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -10,18 +10,11 @@
|
||||
ready(() => {
|
||||
document.documentElement.classList.add("premium-ui");
|
||||
syncActivePanelState();
|
||||
ensureReferenceWorkspace();
|
||||
ensureDashboardRail();
|
||||
enhanceMetricCards();
|
||||
bindReplicaBindings();
|
||||
updateReplicaBindings();
|
||||
updateDashboardRail();
|
||||
addRevealStagger();
|
||||
bindSpotlights();
|
||||
bindPanelPulse();
|
||||
observeDynamicCards();
|
||||
window.setInterval(updateDashboardRail, 1800);
|
||||
window.setInterval(updateReplicaBindings, 1200);
|
||||
});
|
||||
|
||||
function addRevealStagger(root = document) {
|
||||
|
||||
Reference in new issue
Block a user