feat: add demo mode

This commit is contained in:
2026-08-11 22:02:46 +02:00
parent b572e1c794
commit d91bcaa20f
28 changed files with 3904 additions and 1876 deletions
@@ -0,0 +1,147 @@
.gauge-viewport {
position: relative;
flex: 1 1 0;
min-height: 0;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
}
.gauge-track {
position: relative;
flex: 1 1 auto;
min-height: 0;
width: 100%;
display: flex;
align-items: stretch;
justify-content: center;
gap: 1.2cqh;
padding-bottom: 1.5cqh;
padding-top: 1.2cqh;
}
.gauge-track.no-ticks {
padding-left: calc(2.75cqh);
padding-right: calc(2.75cqh);
}
.ticks {
flex: 0 0 auto;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
pointer-events: none;
}
.ticks span {
width: 2.8cqh;
height: 0.55cqh;
min-height: 1px;
background: var(--border-hairline);
border-radius: 999px;
}
.slider {
position: relative;
flex: 0 0 auto;
width: 6.5cqh;
height: 100%;
cursor: pointer;
touch-action: none;
user-select: none;
}
.track {
position: absolute;
left: 50%;
top: 0;
transform: translateX(-50%);
width: 0.55cqh;
min-width: 1px;
height: 100%;
background: var(--border-hairline);
border-radius: 999px;
}
.thumb {
position: absolute;
left: 50%;
width: 5cqh;
aspect-ratio: 1;
transform: translate(-50%, 50%);
border-radius: 50%;
background: var(--bg-panel);
border: 0.55cqh solid var(--accent-brand);
box-shadow: 0 0.55cqh 1.6cqh rgba(0, 0, 0, 0.2);
}
.value {
flex: 0 0 auto;
width: 100%;
margin-top: 0.8cqh;
padding: 0.5cqh 1cqh;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
gap: 0.25em;
white-space: nowrap;
color: var(--accent-brand);
font-size: 3.2cqh;
font-family: var(--font-mono);
font-weight: var(--font-weight-medium);
box-shadow: 0 0.55cqh 1.6cqh rgba(0, 0, 0, 0.2);
border-radius: 1.6cqh;
overflow: hidden;
}
.value.no-ticks {
padding-left: 0;
padding-right: 0;
}
.value input {
width: auto;
min-width: 0;
height: 1.4em;
text-align: center;
background: transparent;
border: 0.3cqh solid var(--border-hairline);
border-radius: 1.2cqh;
appearance: none;
}
.value input,
.value-unit {
font-size: inherit;
line-height: 1;
font-family: inherit;
color: inherit;
}