clio.css窗口控件列表Menu

Scroll bar
Chinese text garbled? Show it as pictures

那个年代的滚动条,画在 clio.css 管的每个滚动区域上,也可以用 .clio-scroll 加到任何元素上,或用 <html class="clio-scrollbars"> 加到整个页面上。

示例:scrollbar

<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>

Scroll bar 简介

选择器
.window-pane .clio-scroll html.clio-scrollbars ::-webkit-scrollbar
Token
--clio-scrollbar-size --clio-scrollbar-track --clio-scrollbar-thumb-bg --clio-scrollbar-button-bg
无障碍
原生滚动不受影响:滚轮、键盘和触控照常滚动。

证据(32)

每个数值的来源(英文)
年代数值状态来源
System 7Arrow 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.py
100% identical
System 7Lane: 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-window
the real box is a fixed 16 rows; the browser sizes it to the content, so only its first 16 rows match
System 6Lane: 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-folder
AI System 6 uses a 16px lane
System 6Active 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-window
AI System 6 draws a 50% checker
System 6Scroll 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-folder
System 6.0.8 Finder list view
System 6Up 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-folder
redrawn as pixels in tooling/s6-art.py
System 6Left 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 6Grow 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-folder
redrawn as pixels in tooling/s6-art.py
Classic erasWithout clio.js the scroll box grows with the visible fraction instead of keeping its fixed length调整clio.css
browsers size ::-webkit-scrollbar-thumb themselves; load dist/clio.js for the fixed box
System 7clio.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 6clio.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 erasclio.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 is
specimen s7-js-hscroll-lane 100% identical; without clio.js the dots may sit one step along (adapted)
System 7Horizontal 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
Platinumclio.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
Platinumclio.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
Platinumclio.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 erasclio.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 erasclio.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 chosen
applications chose their own step and page
PlatinumA 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)
PlatinumLane #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 BoardScroll 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.py
left and right arrows found 1:1 at (192,297) and (570,297)
Drawing BoardTrack: #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.py
the Themes list's horizontal bar and the pattern list's vertical bar
Drawing Boardclio.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 each
the browser's own bar sizes it by the share (adapted)
Drawing Boardclio.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
NeXTSTEPScroller (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
NeXTSTEPKnob: 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
NeXTSTEPArrow 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 check
the art equals AI System 6's ns-scroll-*-16.svg
NeXTSTEPHorizontal 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
NeXTSTEPHorizontal 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 check
fidelity nx-js-hscroller
NeXTSTEPA 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
NeXTSTEPWith 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
NeXTSTEPThe 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.css
a page cannot move the browser's own scroll bar