那个年代的滚动条,画在 clio.css 管的每个滚动区域上,也可以用 .clio-scroll 加到任何元素上,或用 <html class="clio-scrollbars"> 加到整个页面上。
The lane, the scroll box and both arrow boxes come from the era. Firefox has no scroll-bar parts, so it gets the era's colours only.
Scroll me.
<div class="clio clio-scroll" style="width: 220px; height: 96px; overflow: scroll; border: 1px solid; background: var(--clio-pane-bg); font-family: var(--clio-font-text)">
<p style="width: 360px; margin: 8px">The lane, the scroll box and both arrow boxes come from the era. Firefox has no scroll-bar parts, so it gets the era's colours only.</p>
<p style="margin: 8px">Scroll me.</p>
</div>Mac OS 四个年代并排对照
- 选择器
.window-pane.clio-scrollhtml.clio-scrollbars::-webkit-scrollbar- Token
--clio-scrollbar-size--clio-scrollbar-track--clio-scrollbar-thumb-bg--clio-scrollbar-button-bg- 无障碍
- 原生滚动不受影响:滚轮、键盘和触控照常滚动。
证据(32)
| 年代 | 数值 | 状态 | 来源 |
|---|---|---|---|
| System 7 | Arrow boxes and grow box redrawn from the captured pixels (#ddd face, white light, #777 shade, #99c arrows outlined #336) | 实测 | clio.css capture, System 7.5.3 in Infinite Mac (npm run capture:system7), frame folder-window → tooling/s7-art.py100% identical |
| System 7 | Lane: ltGray pattern in #ddd and #777; scroll box #aaa with #ccf/#336 bevel, a #555 leading edge and a 6×10 grip 3px from it | 实测 | clio.css capture, System 7.5.3 in Infinite Mac (npm run capture:system7), frame folder-windowthe real box is a fixed 16 rows; the browser sizes it to the content, so only its first 16 rows match |
| System 6 | Lane: a 1px line and 14px inside; the window frame closes it, so the bar is 15px in CSS | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame system-folderAI System 6 uses a 16px lane |
| System 6 | Active lane pattern is QuickDraw's ltGray (one dot in four, rows offset by two), not 50% grey; an empty lane is white | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frames system-folder and hd-windowAI System 6 draws a 50% checker |
| System 6 | Scroll box: a white square with a 1px frame filling the lane, 16 rows tall | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame system-folderSystem 6.0.8 Finder list view |
| System 6 | Up and down arrows: hollow, 13 wide and 11 tall in the 14px box, a 45° head and a 7px stem | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frames hd-window and system-folderredrawn as pixels in tooling/s6-art.py |
| System 6 | Left and right arrows: the up arrow turned, apex in the box's first column, tip in its last | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame hd-window (horizontal scroll bar)redrawn as pixels in tooling/s6-art.py |
| System 6 | Grow box: a 7×7 square over a 9×9 square in the 14px corner | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frame system-folderredrawn as pixels in tooling/s6-art.py |
| Classic eras | Without clio.js the scroll box grows with the visible fraction instead of keeping its fixed length | 调整 | clio.cssbrowsers size ::-webkit-scrollbar-thumb themselves; load dist/clio.js for the fixed box |
| System 7 | clio.js: the scroll box is the #555 line and 15 rows, 16 in all, right after the arrow's black line; dragged, it leaves a 14x16 outline in which the lane's #ddd turns black and its #777 dots stay, and the content scrolls on release | 实测 | clio.css capture, System 7.5.3 in Infinite Mac (frames hig/system7/finder-scroll and finder-thumb-drag)specimen s7-js-scroll-top 100% identical |
| System 6 | clio.js: the scroll box is 14x16 inside the bar's line; dragged, it leaves its frame XORed with dkGray, which over the ltGray lane comes out solid black, and the content scrolls on release | 实测 | clio.css capture, System 6.0.8 in Infinite Mac, System Folder list, the box pressed and held 56px lower (frame scroll-box-drag)specimen s6-js-scroll-drag 100% identical in Chromium, WebKit and Firefox (the pointer masked) |
| Classic eras | clio.js: the lane's pattern is kept to the page, as QuickDraw kept it to the screen; the browser's own bar starts it at the lane | 实测 | clio.css capture, System 6.0.8 (System Folder) and System 7.5.3 (Infinite HD narrowed): the lane's dots fall on the same screen columns wherever the bar isspecimen s7-js-hscroll-lane 100% identical; without clio.js the dots may sit one step along (adapted) |
| System 7 | Horizontal bar: the vertical bar turned, its box the #555 line and 15 columns after the left arrow's black line | 实测 | clio.css capture, System 7.5.3 in Infinite Mac, Infinite HD narrowed until it scrolls sideways (frame hbar)specimens s7-scroll-left, s7-scroll-right, s7-hscroll-thumb 100% identical |
| Platinum | clio.js: a 15-row box between black lines that it shares with the arrows; the bar is a black line and 14px, the window's frame closing it; lane shaded #777/#888 along the top and left and #bbb/#ccc down the right, and again just past the box; arrow and box bevels stop a pixel short of the far corners; dragged live | 实测 | clio.css capture, Mac OS 9.0 in Infinite Mac with Smart Scrolling off (frames hig/platinum9/finder-scroll-fixed, finder-thumb-drag)specimen p9-js-scroll-fixed 100% identical; the 16px bar before 0.11 was a pixel too wide and tall |
| Platinum | clio.js, data-clio-scrolling="smart": both arrows at the far end, the up arrow first with its black line on the lane's side; the box sized to the visible share | 实测 | clio.css capture, Mac OS 9.0 in Infinite Mac, Appearance > Options > Smart Scrolling on (frame hig/platinum9/finder-scroll-smart)specimen p9-js-scroll-smart 100% identical; off by default, as in Apple's own Mac OS 9.0 screenshots |
| Platinum | clio.js: with nothing to scroll the lane is flat #eee, the arrows dimmed, the lines beside them #555 | 实测 | clio.css capture, Mac OS 9.0 in Infinite Mac (frame hig/platinum9/finder-scroll-fixed, horizontal bar)specimen p9-js-scroll-off-h 100% identical |
| Classic eras | clio.js: a held arrow or lane steps at once and keeps stepping while held, with no pause in System 6 and 7 and a pause of about 0.2 s after the first step in Mac OS 8 and 9 (--clio-scrollbar-repeat-delay) | 实测 | TrackControl in the Mac IIx and Quadra 650 ROMs calls the action procedure on every pass while the button is down; clio.css capture, Mac OS 9.0 Finder in Infinite Mac (held down arrow)Drawing Board assumed as Mac OS 9 (inferred) |
| Classic eras | clio.js: an arrow step is 16px and a lane step the visible height less 16px; repeats every 50 ms | 调整 | clio.css capture, System 6.0.8 Finder list in Infinite Mac: one click scrolled one 16px row; the Mac stepped as fast as the application could scroll (no fixed rate in the Toolbox), so the rate is chosenapplications chose their own step and page |
| Platinum | A held scroll arrow: #777 face, #555 along the top and left, #999 along the bottom and right, the other two corners #777 | 实测 | clio.css capture, Mac OS 9.0 in Infinite Mac, Finder, the down arrow held at its corner (frame arrow-held)specimen p9-js-scroll-arrow-held 100% identical in all three engines (the pointer masked) |
| Platinum | Lane #aaa with a double bevel; lavender #9999ff scroll box with #ccf/#66c bevel and grip ridges; #ddd arrow boxes with stepped 2/4/6/8 arrows | 实测 | apps/desktop/styles/65-appearance-themes.css:336 (P16), :351 (P17), :364 (P27)Mac OS 9 native capture 16; GUIdebook Open dialog |
| Drawing Board | Scroll arrows: the theme's 16x16 boxes, normal, held and disabled, flush with the bar; the grow box is NoGrowBoxRight | 实测 | clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (npm run capture:drawingboard), frame themes-tab; the theme file's pxm# pixmaps, decoded by tooling/theme-resources.py and redrawn by tooling/db-art.pyleft and right arrows found 1:1 at (192,297) and (570,297) |
| Drawing Board | Track: #ece6e4 ruled by pattern pens (ppat 7045-7049: the edges and a double centre line) tiled from the track's start; scroll box from the theme's ends, stretch and grip, whose colours Mac OS passes through 16 bits (5 per channel); the grip lies over the ends at (length − 2) / 2 rounded down, so the 15px box shows 6px of its start, the grip and 7px of its end | 实测 | clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (npm run capture:drawingboard), frames themes-tab and desktop-tab; the theme file's ppat and pxm# resources, decoded by tooling/theme-resources.py, written by tooling/db-art.py and tooling/db-pens.pythe Themes list's horizontal bar and the pattern list's vertical bar |
| Drawing Board | clio.js: the scroll box keeps the theme's 15px whatever share of the content shows (Smart Scrolling off, the 8.5 default) | 实测 | clio.css capture, Mac OS 8.5 with the theme in Infinite Mac, Infinite HD at three sizes: the horizontal box 15px in eachthe browser's own bar sizes it by the share (adapted) |
| Drawing Board | clio.js, data-clio-scrolling="smart": both arrows at the far end are one theme picture (ScrollArrowsDbl, pxm# 334 and 324), each button showing its half; held, only that arrow lights (state 4 for the first, 1 for the second); dimmed from the same resource | 实测 | clio.css capture, Mac OS 8.5 with the theme, Smart Scrolling on (frames smart-scroll, smart-held-left, smart-held-right); the theme file's pxm#specimens db-js-smart-arrows, db-js-smart-held-left and -right 100% identical in all three engines (the pointer on the held arrow masked); the vertical pair held matches the same way (frames only, no specimen); the dimmed state is still read from the resource order |
| NeXTSTEP | Scroller (clio.js): an 18px lane behind a black line on the content's side: a 1px #aaaaaa margin, then 16px of #555555 and #aaaaaa dots | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame browser-small (the File Viewer in browser view, shrunk until its lists scroll), x 163-181, y 227-325)fidelity nx-js-scroller, identical in Chromium, WebKit and Firefox |
| NeXTSTEP | Knob: a 16px raised square as long as the visible share (at least 18px), 1px below the lane's top, with a 6x6 dimple 1px above and left of its middle | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame browser-small (the File Viewer in browser view, shrunk until its lists scroll))the dimple equals AI System 6's ns-knob-dimple-6.svg |
| NeXTSTEP | Arrow buttons: 16x16 raised buttons with a black triangle, both at the bottom of a vertical scroller, up above down, each in a 17px cell with 1px of lane before it and 1px after the last | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame browser-small (the File Viewer in browser view, shrunk until its lists scroll)); tooling/nx-art.py checkthe art equals AI System 6's ns-scroll-*-16.svg |
| NeXTSTEP | Horizontal scroller: the same lane, margin and knob turned on their side, the black line on top | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame prefsapp-moved (Preferences, Mouse), the icon row's scroller, which has no arrows)read from the frame; no specimen |
| NeXTSTEP | Horizontal scroller (clio.js): both arrows at its left in 17px cells, then a 1px gap, the lane with its 1px margin at the far end | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame ns30b/hb4 (the File Viewer's browser five columns deep); tooling/nx-art.py checkfidelity nx-js-hscroller |
| NeXTSTEP | A held arrow: every pixel one grey lighter (black to #555555, #555555 to #aaaaaa, #aaaaaa to white) | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame ns30b/arrow-held (the right arrow held)fidelity nx-js-arrow-held, three engines |
| NeXTSTEP | With nothing to scroll the knob and the arrows go and the lane runs the whole bar | 实测 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame browser (the browser's columns)AI System 6 reference notes (Controls, F14) agree |
| NeXTSTEP | The browser's own scroll bar (without clio.js) is drawn with the same art but stays on the right, with Chromium's minimum knob | 调整 | clio.cssa page cannot move the browser's own scroll bar |