diff --git a/web/demo/demo.css b/web/demo/demo.css index f850065..d3f8191 100644 --- a/web/demo/demo.css +++ b/web/demo/demo.css @@ -104,6 +104,19 @@ body.usmt-term-open { padding-bottom: calc(var(--usmt-term-h, 340px) + 72px); } @media (max-width: 700px) { .usmt-term-legend, .usmt-term-follow { display: none; } - .usmt-term-tab { padding: 4px 6px; font-size: 0.75em; } + .usmt-term-bar { gap: 4px; padding: 0 6px; } + .usmt-term-toggle { padding: 4px 6px; } + .usmt-term-tabs { flex: 1 1 auto; overflow: hidden; } + .usmt-term-tab { padding: 4px 6px; font-size: 0.72em; } + .usmt-term-live { font-size: 0; gap: 0; } /* just the pulsing dot */ .usmt-term { --usmt-term-h: 45vh; } + .usmt-term-body { font-size: 11.5px; padding: 6px 8px 10px 14px; } + .usmt-term-titlebar { font-size: 0.7em; } + .usmt-demo-card { padding: 18px 16px; } + .usmt-demo-card h2 { font-size: 1.25em; } + .usmt-demo-actions button { flex: 1 1 auto; } + .usmt-demo-actions .usmt-demo-reset { margin-right: 0; } +} +@media (max-height: 500px) { + .usmt-term { --usmt-term-h: 55vh; } /* phones in landscape */ } diff --git a/web/index.html b/web/index.html index e6839c3..021ac60 100755 --- a/web/index.html +++ b/web/index.html @@ -2,6 +2,7 @@ + USMT Dash @@ -350,6 +351,7 @@ .status-btn:hover { color: white; background: rgba(255,255,255,0.1); } } + diff --git a/web/mobile.css b/web/mobile.css new file mode 100644 index 0000000..2a8862b --- /dev/null +++ b/web/mobile.css @@ -0,0 +1,75 @@ +/* + * Small-screen layout for the dashboard (phones, small tablets, split windows). + * Loaded after the page's own