首页

Slider

把 <input type=range> 画成 Appearance 滑块,可以加刻度。

<label for="clio-rate">Key Repeat Rate</label>
<input id="clio-rate" type="range" class="ticks" min="0" max="4" value="2" style="width: 120px; --clio-slider-tick-count: 5">
Mac OS 四个年代并排对照
System 6
System 7
Drawing Board
Mac OS 9 Platinum

Slider 简介

选择器
input[type=range] input[type=range].ticks
Token
--clio-slider-height --clio-art-slider-track --clio-art-slider-thumb --clio-slider-tick-count
无障碍
原生 range input。给它加标签;只看数字意思不清楚时,用 aria-valuetext 说明数值。
证据(8)
每个数值的来源(英文)
年代数值状态来源
PlatinumA 7-row track (light, black, three grey, black, white), a 15x16 thumb pointing down, tick marks of white, black and #888实测clio.css capture, Mac OS 9.0 in Infinite Mac (driven by hand, frames in .fidelity/hig/platinum9), frame mouse (Mouse Tracking); tooling/hig-art.py
track and thumb 100% identical; the held thumb was not captured
PlatinumThe thumb stops 3px inside the track at both ends (Firefox's thumb is held there by padding)实测clio.css capture, Mac OS 9.0 in Infinite Mac (driven by hand, frames in .fidelity/hig/platinum9), Mouse Tracking dragged to each end (frames slider-min, slider-max)
specimens p9-slider-min and p9-slider-max 100% identical in Chromium, WebKit and Firefox
Classic erasTick marks fall on whole pixels, (width - run) / (count - 1) rounded调整clio.css
each browser rounded a fractional spacing its own way; the Mac's tick placement was not measured
Drawing BoardThe theme's 9x16 thumb (1106, through 16 bits) on a 1px pencil track (ppat 7024)实测the theme file's pxm# and ppat resources (tooling/db-art.py); clio.css capture, Mac OS 8.5 with Drawing Board in Infinite Mac (frames in .fidelity/hig/drawingboard), frame keyboard
thumb and track pen found 1:1; ticks not reproduced
System 7System 7 had no slider in the Toolbox (each control panel drew its own); it uses Platinum's调整clio.css
Macintosh Human Interface Guidelines (1992), ch. 7: Controls Not Supported by the Toolbox
System 6System 6 had none; it uses Platinum's调整clio.css
—
Classic erasA dial is a slider: the 1992 guidelines' "slider (sometimes called a dial)", HIG87's indicator that shows and sets a value推断Macintosh Human Interface Guidelines (1992), ch. 7: Sliders
no other dial control was found in any era
NeXTSTEPSlider: a 16px lane of the scroller's dots, black at the top and left, white at the bottom and right; the 20x14 knob, a raised bevel with a groove down its middle and a #555555 shadow on its right实测clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame prefs3 (Preferences, Display, Automatic Dimming, 170x16); tooling/nx-art.py check
fidelity nx-slider, identical in Chromium, WebKit and Firefox

关于 clio.css

版本 2.0.4

MIT 许可。源代码在 GitHub。

字体:Clio Sans '84、Clio Text '84 和 Clio Sans '97 是按实测点阵新做的字体。ChicagoFLF 的作者是 Robin Casady(公有领域)。Asap 的作者是 Omnibus-Type,Clio Sans NX 取自 Liberation Sans 2,Clio Pixel 取自 TakWolf 的 Fusion Pixel Font,这三种都用 SIL Open Font License 1.1。详情见 THIRD-PARTY.md(英文)。

本项目与 Apple Inc. 没有关联,也未获其认可。Macintosh、Mac OS 和 Chicago 是 Apple Inc. 的商标,这里提到它们只为说明所还原的年代。

查找

输入组件、选择器、token 或数值。索引是英文的,请用英文查找。