首頁

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 或數值。索引是英文的,請用英文尋找。