Files
antigravity-usage-monitor/sidecars/panel/src/styles/base.css
T
fish b9cd1225e7 fix(panel): make font-scale visibly resize all tables/charts and raise readable base sizes
- Raise base typography tokens (data tables to 12.5px, body/titles to 13px) above CJK 12px floor and widen lg (1.14x) / xl (1.28x) scale steps
- Replace 19 hardcoded px font-size rules across tables, charts, tooltips, heatmaps, and monthly bars with scalable --fs-* tokens
- Bind [data-font-scale] directly in CSS and mirror onto Shadow DOM overlay panels without colliding with :host defaults
- Convert rigid control/row pixel heights to scalable min-heights and scale floating panel base widths on lg/xl
2026-11-17 20:55:06 +09:00

134 lines
2.4 KiB
CSS

/*
* Base reset, viewport-locked shell (preventing ultra-long px scroll pages),
* and precision tabular typography.
*/
* {
box-sizing: border-box;
scrollbar-width: none;
-ms-overflow-style: none;
}
*::-webkit-scrollbar {
width: 0 !important;
height: 0 !important;
display: none !important;
}
[hidden] {
display: none !important;
}
html,
body {
margin: 0;
padding: 0;
width: 100%;
height: 100dvh;
max-height: 100dvh;
overflow: hidden;
background: var(--surface-bg);
color: var(--text-primary);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
font-size: var(--fs-body);
line-height: 1.4;
font-variant-numeric: tabular-nums;
-webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea,
table,
th,
td {
font-family: inherit;
font-size: inherit;
font-stretch: inherit;
font-variation-settings: inherit;
line-height: inherit;
letter-spacing: inherit;
font-variant-numeric: inherit;
color: inherit;
}
input[type="number"] {
appearance: textfield;
-moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.app-shell {
display: flex;
flex-direction: column;
width: 100%;
max-width: none;
height: 100dvh;
max-height: 100dvh;
margin: 0;
padding: var(--space-3) var(--space-4);
gap: var(--space-3);
overflow: hidden;
position: relative;
}
html[data-standalone="true"] .app-shell {
max-width: 960px;
margin: 0 auto;
}
@media (min-width: 980px) {
html[data-standalone="true"] .app-shell {
padding: var(--space-4) var(--space-5);
border-left: 1px solid var(--border-hairline);
border-right: 1px solid var(--border-hairline);
}
}
.top-deck {
display: flex;
flex-direction: column;
gap: var(--space-2);
flex-shrink: 0;
}
.viewport-stage {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
}
.view-pane {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
gap: var(--space-3);
overflow-y: auto;
overflow-x: hidden;
padding-right: 1px;
}
.svg-icon {
display: inline-block;
vertical-align: middle;
flex-shrink: 0;
}
.text-muted {
color: var(--text-secondary);
}
.text-mono {
font-variant-numeric: tabular-nums;
}